@onairos/react-native 3.4.0 → 3.5.4

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 (546) hide show
  1. package/README.md +62 -13
  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/Onairoslogo.png +0 -0
  26. package/lib/commonjs/assets/images/Personalityprofile.svg +3 -0
  27. package/lib/commonjs/assets/images/Personalitytraits.svg +3 -0
  28. package/lib/commonjs/assets/images/Redditicon.png +0 -0
  29. package/lib/commonjs/assets/images/Userpreferences.svg +3 -0
  30. package/lib/commonjs/assets/images/YouTubeicon3.png +0 -0
  31. package/lib/commonjs/assets/images/arrow.svg +20 -0
  32. package/lib/commonjs/assets/images/basicproficon.svg +43 -0
  33. package/lib/commonjs/assets/images/basicprofile.svg +3 -0
  34. package/lib/commonjs/assets/images/chatgpt.png +0 -0
  35. package/lib/commonjs/assets/images/checkmark.svg +4 -0
  36. package/lib/commonjs/assets/images/claude.png +0 -0
  37. package/lib/commonjs/assets/images/contentanalysis.svg +3 -0
  38. package/lib/commonjs/assets/images/contenticon.svg +23 -0
  39. package/lib/commonjs/assets/images/gemini.png +0 -0
  40. package/lib/commonjs/assets/images/grok.png +0 -0
  41. package/lib/commonjs/assets/images/persona1.png +0 -0
  42. package/lib/commonjs/assets/images/persona2.png +0 -0
  43. package/lib/commonjs/assets/images/persona3.png +0 -0
  44. package/lib/commonjs/assets/images/persona4.png +0 -0
  45. package/lib/commonjs/assets/images/persona5.png +0 -0
  46. package/lib/commonjs/assets/images/personalityicon.svg +18 -0
  47. package/lib/commonjs/assets/images/x-close.svg +3 -0
  48. package/lib/commonjs/components/BodyText.js +9 -0
  49. package/lib/commonjs/components/BrandMark.js +10 -0
  50. package/lib/commonjs/components/CodeInput.js +9 -0
  51. package/lib/commonjs/components/EmailInput.js +8 -0
  52. package/lib/commonjs/components/GoogleButton.js +9 -0
  53. package/lib/commonjs/components/HeadingGroup.js +9 -0
  54. package/lib/commonjs/components/LLMDataInputModal.js +14 -0
  55. package/lib/commonjs/components/ModalHeader.js +9 -0
  56. package/lib/commonjs/components/ModalSheet.js +9 -0
  57. package/lib/commonjs/components/Onairos.js +14 -374
  58. package/lib/commonjs/components/OnairosButton.js +13 -309
  59. package/lib/commonjs/components/OnairosSignInButton.js +12 -0
  60. package/lib/commonjs/components/Overlay.js +13 -483
  61. package/lib/commonjs/components/PersonaImage.js +10 -0
  62. package/lib/commonjs/components/PersonaLoadingScreen.js +12 -0
  63. package/lib/commonjs/components/PersonalizationConsentScreen.js +13 -0
  64. package/lib/commonjs/components/PinCreationScreen.js +12 -0
  65. package/lib/commonjs/components/PinInput.js +9 -302
  66. package/lib/commonjs/components/PlatformConnectorsStep.js +22 -0
  67. package/lib/commonjs/components/PlatformList.js +10 -137
  68. package/lib/commonjs/components/PlatformToggle.js +9 -0
  69. package/lib/commonjs/components/PrimaryButton.js +10 -0
  70. package/lib/commonjs/components/SignInMatchAnimation.js +9 -0
  71. package/lib/commonjs/components/SignInStep.js +12 -0
  72. package/lib/commonjs/components/UniversalOnboarding.js +29 -1702
  73. package/lib/commonjs/components/VerificationStep.js +11 -0
  74. package/lib/commonjs/components/WelcomeScreen.js +21 -0
  75. package/lib/commonjs/components/icons/Basicproficon.js +8 -0
  76. package/lib/commonjs/components/icons/Basicprofile.js +8 -0
  77. package/lib/commonjs/components/icons/Checkbox.js +8 -0
  78. package/lib/commonjs/components/icons/Checkmark.js +8 -0
  79. package/lib/commonjs/components/icons/Contentanalysis.js +8 -0
  80. package/lib/commonjs/components/icons/Contenticon.js +8 -0
  81. package/lib/commonjs/components/icons/EnochE.js +8 -0
  82. package/lib/commonjs/components/icons/Personalityicon.js +8 -0
  83. package/lib/commonjs/components/icons/Personalityprofile.js +8 -0
  84. package/lib/commonjs/components/icons/Personalitytraits.js +8 -0
  85. package/lib/commonjs/components/icons/Userpreferences.js +8 -0
  86. package/lib/commonjs/components/icons/index.js +17 -0
  87. package/lib/commonjs/components/onboarding/OAuthWebView.js +14 -827
  88. package/lib/commonjs/components/onboarding/OnboardingHeader.js +10 -74
  89. package/lib/commonjs/components/onboarding/PinInput.js +10 -283
  90. package/lib/commonjs/components/onboarding/PlatformConnector.js +11 -249
  91. package/lib/commonjs/config/api.js +7 -0
  92. package/lib/commonjs/constants/index.js +7 -83
  93. package/lib/commonjs/context/AuthContext.js +10 -0
  94. package/lib/commonjs/hooks/useConnectedAccounts.js +9 -0
  95. package/lib/commonjs/hooks/useConnections.js +8 -159
  96. package/lib/commonjs/hooks/useCredentials.js +10 -177
  97. package/lib/commonjs/hooks/useUserConnections.js +10 -0
  98. package/lib/commonjs/index.js +35 -106
  99. package/lib/commonjs/services/SDK_API_KEY_VALIDATION.md +31 -38
  100. package/lib/commonjs/services/apiClient.js +8 -0
  101. package/lib/commonjs/services/apiKeyService.js +9 -946
  102. package/lib/commonjs/services/authService.js +10 -0
  103. package/lib/commonjs/services/biometricPinService.js +8 -0
  104. package/lib/commonjs/services/chatGPTConversationExtractor.js +8 -0
  105. package/lib/commonjs/services/chatGPTConversationService.js +9 -0
  106. package/lib/commonjs/services/claudeConversationExtractor.js +8 -0
  107. package/lib/commonjs/services/claudeConversationService.js +9 -0
  108. package/lib/commonjs/services/connectedAccountsService.js +10 -0
  109. package/lib/commonjs/services/googleAuthService.js +11 -0
  110. package/lib/commonjs/services/imageCompressionService.js +7 -0
  111. package/lib/commonjs/services/jwtStorageService.js +7 -0
  112. package/lib/commonjs/services/linkedinDOMExtractor.js +7 -0
  113. package/lib/commonjs/services/linkedinProfileService.js +9 -0
  114. package/lib/commonjs/services/linkedinScrapingService.js +8 -0
  115. package/lib/commonjs/services/llmDataStorage.js +8 -0
  116. package/lib/commonjs/services/mobileTrainingService.js +8 -0
  117. package/lib/commonjs/services/oauthService.js +11 -390
  118. package/lib/commonjs/services/pinEncryptionService.js +8 -0
  119. package/lib/commonjs/services/pinStorageUtils.js +7 -0
  120. package/lib/commonjs/services/platformAuthService.js +12 -1067
  121. package/lib/commonjs/services/storageService.js +8 -0
  122. package/lib/commonjs/services/trainingApiHelpers.js +7 -0
  123. package/lib/commonjs/services/userConnectionsService.js +10 -0
  124. package/lib/commonjs/services/youtubeMigrationService.js +10 -0
  125. package/lib/commonjs/theme/index.js +7 -0
  126. package/lib/commonjs/types/ambient.d.js +1 -2
  127. package/lib/commonjs/types/declarations.d.js +1 -2
  128. package/lib/commonjs/types/index.js +1 -6
  129. package/lib/commonjs/types/node-fix.d.js +1 -2
  130. package/lib/commonjs/types/node-override.d.js +1 -2
  131. package/lib/commonjs/types/opacity.d.js +1 -2
  132. package/lib/commonjs/types.js +1 -14
  133. package/lib/commonjs/utils/Portal.js +8 -98
  134. package/lib/commonjs/utils/api.js +9 -129
  135. package/lib/commonjs/utils/assetRegistry.js +33 -0
  136. package/lib/commonjs/utils/auth.js +9 -111
  137. package/lib/commonjs/utils/crypto.js +8 -62
  138. package/lib/commonjs/utils/debugHelper.js +1 -64
  139. package/lib/commonjs/utils/encryption.js +7 -76
  140. package/lib/commonjs/utils/eventUtils.js +1 -0
  141. package/lib/commonjs/utils/haptics.js +9 -0
  142. package/lib/commonjs/utils/imagePreloader.js +1 -0
  143. package/lib/commonjs/utils/networkDiagnostics.js +8 -0
  144. package/lib/commonjs/utils/onairosApi.js +9 -350
  145. package/lib/commonjs/utils/programmaticFlow.js +9 -117
  146. package/lib/commonjs/utils/retryHelper.js +1 -220
  147. package/lib/commonjs/utils/secureStorage.js +10 -349
  148. package/lib/commonjs/utils/webviewScripts/chatgpt.js +1 -0
  149. package/lib/commonjs/utils/webviewScripts/claude.js +1 -0
  150. package/lib/commonjs/utils/webviewScripts/index.js +9 -0
  151. package/lib/commonjs/utils/webviewScripts/linkedin.js +1 -0
  152. package/lib/module/api/index.js +1 -139
  153. package/lib/module/assets/animations/loaderani.json +1 -0
  154. package/lib/module/assets/animations/persona-animation.json +1 -0
  155. package/lib/module/assets/fonts/EBGaramond-VariableFont_wght.ttf +0 -0
  156. package/lib/module/assets/fonts/IBMPlexSans-VariableFont_wdth,wght.ttf +0 -0
  157. package/lib/module/assets/icons/Facebookicon.png +0 -0
  158. package/lib/module/assets/icons/Gmail.png +0 -0
  159. package/lib/module/assets/icons/Linkedinicon.png +0 -0
  160. package/lib/module/assets/icons/Redditicon.png +0 -0
  161. package/lib/module/assets/icons/YouTubeicon2.png +0 -0
  162. package/lib/module/assets/icons/YouTubeicon3.png +0 -0
  163. package/lib/module/assets/icons/chatgpt.png +0 -0
  164. package/lib/module/assets/icons/claude.png +0 -0
  165. package/lib/module/assets/icons/farcaster.png +0 -0
  166. package/lib/module/assets/icons/gemini.png +0 -0
  167. package/lib/module/assets/icons/grok.png +0 -0
  168. package/lib/module/assets/icons/instagram.png +0 -0
  169. package/lib/module/assets/icons/pinterest.png +0 -0
  170. package/lib/module/assets/icons/swerv_logo.png +0 -0
  171. package/lib/module/assets/icons/twitter.jpg +0 -0
  172. package/lib/module/assets/images/Checkbox.svg +3 -0
  173. package/lib/module/assets/images/EnochE.svg +19 -0
  174. package/lib/module/assets/images/Enochicon1.png +0 -0
  175. package/lib/module/assets/images/Face_ID_logo.png +0 -0
  176. package/lib/module/assets/images/Facebookicon.png +0 -0
  177. package/lib/module/assets/images/Gmail.png +0 -0
  178. package/lib/module/assets/images/Googlelogo.png +0 -0
  179. package/lib/module/assets/images/Linkedinicon.png +0 -0
  180. package/lib/module/assets/images/Onairoslogo.png +0 -0
  181. package/lib/module/assets/images/Personalityprofile.svg +3 -0
  182. package/lib/module/assets/images/Personalitytraits.svg +3 -0
  183. package/lib/module/assets/images/Redditicon.png +0 -0
  184. package/lib/module/assets/images/Userpreferences.svg +3 -0
  185. package/lib/module/assets/images/YouTubeicon3.png +0 -0
  186. package/lib/module/assets/images/arrow.svg +20 -0
  187. package/lib/module/assets/images/basicproficon.svg +43 -0
  188. package/lib/module/assets/images/basicprofile.svg +3 -0
  189. package/lib/module/assets/images/chatgpt.png +0 -0
  190. package/lib/module/assets/images/checkmark.svg +4 -0
  191. package/lib/module/assets/images/claude.png +0 -0
  192. package/lib/module/assets/images/contentanalysis.svg +3 -0
  193. package/lib/module/assets/images/contenticon.svg +23 -0
  194. package/lib/module/assets/images/gemini.png +0 -0
  195. package/lib/module/assets/images/grok.png +0 -0
  196. package/lib/module/assets/images/persona1.png +0 -0
  197. package/lib/module/assets/images/persona2.png +0 -0
  198. package/lib/module/assets/images/persona3.png +0 -0
  199. package/lib/module/assets/images/persona4.png +0 -0
  200. package/lib/module/assets/images/persona5.png +0 -0
  201. package/lib/module/assets/images/personalityicon.svg +18 -0
  202. package/lib/module/assets/images/x-close.svg +3 -0
  203. package/lib/module/components/BodyText.js +1 -0
  204. package/lib/module/components/BrandMark.js +1 -0
  205. package/lib/module/components/CodeInput.js +1 -0
  206. package/lib/module/components/EmailInput.js +1 -0
  207. package/lib/module/components/GoogleButton.js +1 -0
  208. package/lib/module/components/HeadingGroup.js +1 -0
  209. package/lib/module/components/LLMDataInputModal.js +8 -0
  210. package/lib/module/components/ModalHeader.js +1 -0
  211. package/lib/module/components/ModalSheet.js +1 -0
  212. package/lib/module/components/Onairos.js +1 -367
  213. package/lib/module/components/OnairosButton.js +1 -302
  214. package/lib/module/components/OnairosSignInButton.js +1 -0
  215. package/lib/module/components/Overlay.js +1 -474
  216. package/lib/module/components/PersonaImage.js +1 -0
  217. package/lib/module/components/PersonaLoadingScreen.js +1 -0
  218. package/lib/module/components/PersonalizationConsentScreen.js +1 -0
  219. package/lib/module/components/PinCreationScreen.js +1 -0
  220. package/lib/module/components/PinInput.js +1 -293
  221. package/lib/module/components/PlatformConnectorsStep.js +1 -0
  222. package/lib/module/components/PlatformList.js +1 -129
  223. package/lib/module/components/PlatformToggle.js +1 -0
  224. package/lib/module/components/PrimaryButton.js +1 -0
  225. package/lib/module/components/SignInMatchAnimation.js +1 -0
  226. package/lib/module/components/SignInStep.js +1 -0
  227. package/lib/module/components/UniversalOnboarding.js +1 -1693
  228. package/lib/module/components/VerificationStep.js +1 -0
  229. package/lib/module/components/WelcomeScreen.js +1 -0
  230. package/lib/module/components/icons/Basicproficon.js +1 -0
  231. package/lib/module/components/icons/Basicprofile.js +1 -0
  232. package/lib/module/components/icons/Checkbox.js +1 -0
  233. package/lib/module/components/icons/Checkmark.js +1 -0
  234. package/lib/module/components/icons/Contentanalysis.js +1 -0
  235. package/lib/module/components/icons/Contenticon.js +1 -0
  236. package/lib/module/components/icons/EnochE.js +1 -0
  237. package/lib/module/components/icons/Personalityicon.js +1 -0
  238. package/lib/module/components/icons/Personalityprofile.js +1 -0
  239. package/lib/module/components/icons/Personalitytraits.js +1 -0
  240. package/lib/module/components/icons/Userpreferences.js +1 -0
  241. package/lib/module/components/icons/index.js +1 -0
  242. package/lib/module/components/onboarding/OAuthWebView.js +1 -818
  243. package/lib/module/components/onboarding/OnboardingHeader.js +1 -66
  244. package/lib/module/components/onboarding/PinInput.js +1 -274
  245. package/lib/module/components/onboarding/PlatformConnector.js +1 -240
  246. package/lib/module/config/api.js +1 -0
  247. package/lib/module/constants/index.js +1 -77
  248. package/lib/module/context/AuthContext.js +1 -0
  249. package/lib/module/hooks/useConnectedAccounts.js +1 -0
  250. package/lib/module/hooks/useConnections.js +1 -152
  251. package/lib/module/hooks/useCredentials.js +6 -169
  252. package/lib/module/hooks/useUserConnections.js +1 -0
  253. package/lib/module/index.js +1 -32
  254. package/lib/module/services/SDK_API_KEY_VALIDATION.md +31 -38
  255. package/lib/module/services/apiClient.js +1 -0
  256. package/lib/module/services/apiKeyService.js +1 -919
  257. package/lib/module/services/authService.js +1 -0
  258. package/lib/module/services/biometricPinService.js +1 -0
  259. package/lib/module/services/chatGPTConversationExtractor.js +1 -0
  260. package/lib/module/services/chatGPTConversationService.js +1 -0
  261. package/lib/module/services/claudeConversationExtractor.js +1 -0
  262. package/lib/module/services/claudeConversationService.js +1 -0
  263. package/lib/module/services/connectedAccountsService.js +1 -0
  264. package/lib/module/services/googleAuthService.js +1 -0
  265. package/lib/module/services/imageCompressionService.js +1 -0
  266. package/lib/module/services/jwtStorageService.js +1 -0
  267. package/lib/module/services/linkedinDOMExtractor.js +1 -0
  268. package/lib/module/services/linkedinProfileService.js +1 -0
  269. package/lib/module/services/linkedinScrapingService.js +1 -0
  270. package/lib/module/services/llmDataStorage.js +1 -0
  271. package/lib/module/services/mobileTrainingService.js +1 -0
  272. package/lib/module/services/oauthService.js +1 -380
  273. package/lib/module/services/pinEncryptionService.js +7 -0
  274. package/lib/module/services/pinStorageUtils.js +1 -0
  275. package/lib/module/services/platformAuthService.js +1 -1041
  276. package/lib/module/services/storageService.js +1 -0
  277. package/lib/module/services/trainingApiHelpers.js +1 -0
  278. package/lib/module/services/userConnectionsService.js +1 -0
  279. package/lib/module/services/youtubeMigrationService.js +1 -0
  280. package/lib/module/theme/index.js +1 -0
  281. package/lib/module/types.js +1 -10
  282. package/lib/module/utils/Portal.js +1 -90
  283. package/lib/module/utils/api.js +1 -117
  284. package/lib/module/utils/assetRegistry.js +33 -0
  285. package/lib/module/utils/auth.js +1 -99
  286. package/lib/module/utils/crypto.js +1 -54
  287. package/lib/module/utils/debugHelper.js +1 -54
  288. package/lib/module/utils/encryption.js +1 -67
  289. package/lib/module/utils/eventUtils.js +1 -0
  290. package/lib/module/utils/haptics.js +8 -0
  291. package/lib/module/utils/imagePreloader.js +1 -0
  292. package/lib/module/utils/networkDiagnostics.js +1 -0
  293. package/lib/module/utils/onairosApi.js +1 -333
  294. package/lib/module/utils/programmaticFlow.js +1 -111
  295. package/lib/module/utils/retryHelper.js +1 -211
  296. package/lib/module/utils/secureStorage.js +6 -330
  297. package/lib/module/utils/webviewScripts/chatgpt.js +1 -0
  298. package/lib/module/utils/webviewScripts/claude.js +1 -0
  299. package/lib/module/utils/webviewScripts/index.js +1 -0
  300. package/lib/module/utils/webviewScripts/linkedin.js +1 -0
  301. package/package.json +62 -39
  302. package/lib/commonjs/api/index.js.map +0 -1
  303. package/lib/commonjs/assets/images/email.png +0 -0
  304. package/lib/commonjs/assets/images/linkedin.png +0 -0
  305. package/lib/commonjs/assets/images/reddit.png +0 -0
  306. package/lib/commonjs/assets/images/youtube.png +0 -0
  307. package/lib/commonjs/components/DataRequestModal.js +0 -228
  308. package/lib/commonjs/components/DataRequestModal.js.map +0 -1
  309. package/lib/commonjs/components/DataRequestScreen.js +0 -329
  310. package/lib/commonjs/components/DataRequestScreen.js.map +0 -1
  311. package/lib/commonjs/components/EmailVerificationModal.js +0 -320
  312. package/lib/commonjs/components/EmailVerificationModal.js.map +0 -1
  313. package/lib/commonjs/components/Onairos.js.map +0 -1
  314. package/lib/commonjs/components/OnairosButton.js.map +0 -1
  315. package/lib/commonjs/components/Overlay.js.map +0 -1
  316. package/lib/commonjs/components/PinInput.js.map +0 -1
  317. package/lib/commonjs/components/PlatformList.js.map +0 -1
  318. package/lib/commonjs/components/TrainingModal.js +0 -717
  319. package/lib/commonjs/components/TrainingModal.js.map +0 -1
  320. package/lib/commonjs/components/UniversalOnboarding.js.map +0 -1
  321. package/lib/commonjs/components/UniversalOnboarding.tsx.new +0 -455
  322. package/lib/commonjs/components/onboarding/OAuthWebView.js.map +0 -1
  323. package/lib/commonjs/components/onboarding/OnboardingHeader.js.map +0 -1
  324. package/lib/commonjs/components/onboarding/PinInput.js.map +0 -1
  325. package/lib/commonjs/components/onboarding/PlatformConnector.js.map +0 -1
  326. package/lib/commonjs/components/screens/ConnectorScreen.js +0 -146
  327. package/lib/commonjs/components/screens/ConnectorScreen.js.map +0 -1
  328. package/lib/commonjs/components/screens/LoadingScreen.js +0 -91
  329. package/lib/commonjs/components/screens/LoadingScreen.js.map +0 -1
  330. package/lib/commonjs/components/screens/PinCreationScreen.js +0 -61
  331. package/lib/commonjs/components/screens/PinCreationScreen.js.map +0 -1
  332. package/lib/commonjs/constants/index.js.map +0 -1
  333. package/lib/commonjs/hooks/useConnections.js.map +0 -1
  334. package/lib/commonjs/hooks/useCredentials.js.map +0 -1
  335. package/lib/commonjs/index.js.map +0 -1
  336. package/lib/commonjs/services/apiKeyService.js.map +0 -1
  337. package/lib/commonjs/services/oauthService.js.map +0 -1
  338. package/lib/commonjs/services/platformAuthService.js.map +0 -1
  339. package/lib/commonjs/types/ambient.d.js.map +0 -1
  340. package/lib/commonjs/types/declarations.d.js.map +0 -1
  341. package/lib/commonjs/types/index.d.js.map +0 -1
  342. package/lib/commonjs/types/index.js.map +0 -1
  343. package/lib/commonjs/types/node-fix.d.js.map +0 -1
  344. package/lib/commonjs/types/node-override.d.js.map +0 -1
  345. package/lib/commonjs/types/opacity.d.js.map +0 -1
  346. package/lib/commonjs/types/types.d.js.map +0 -1
  347. package/lib/commonjs/types.js.map +0 -1
  348. package/lib/commonjs/utils/Portal.js.map +0 -1
  349. package/lib/commonjs/utils/api.js.map +0 -1
  350. package/lib/commonjs/utils/auth.js.map +0 -1
  351. package/lib/commonjs/utils/crypto.js.map +0 -1
  352. package/lib/commonjs/utils/debugHelper.js.map +0 -1
  353. package/lib/commonjs/utils/encryption.js.map +0 -1
  354. package/lib/commonjs/utils/onairosApi.js.map +0 -1
  355. package/lib/commonjs/utils/programmaticFlow.js.map +0 -1
  356. package/lib/commonjs/utils/retryHelper.js.map +0 -1
  357. package/lib/commonjs/utils/secureStorage.js.map +0 -1
  358. package/lib/module/api/index.js.map +0 -1
  359. package/lib/module/assets/images/email.png +0 -0
  360. package/lib/module/assets/images/linkedin.png +0 -0
  361. package/lib/module/assets/images/reddit.png +0 -0
  362. package/lib/module/assets/images/youtube.png +0 -0
  363. package/lib/module/components/DataRequestModal.js +0 -220
  364. package/lib/module/components/DataRequestModal.js.map +0 -1
  365. package/lib/module/components/DataRequestScreen.js +0 -321
  366. package/lib/module/components/DataRequestScreen.js.map +0 -1
  367. package/lib/module/components/EmailVerificationModal.js +0 -311
  368. package/lib/module/components/EmailVerificationModal.js.map +0 -1
  369. package/lib/module/components/Onairos.js.map +0 -1
  370. package/lib/module/components/OnairosButton.js.map +0 -1
  371. package/lib/module/components/Overlay.js.map +0 -1
  372. package/lib/module/components/PinInput.js.map +0 -1
  373. package/lib/module/components/PlatformList.js.map +0 -1
  374. package/lib/module/components/TrainingModal.js +0 -708
  375. package/lib/module/components/TrainingModal.js.map +0 -1
  376. package/lib/module/components/UniversalOnboarding.js.map +0 -1
  377. package/lib/module/components/UniversalOnboarding.tsx.new +0 -455
  378. package/lib/module/components/onboarding/OAuthWebView.js.map +0 -1
  379. package/lib/module/components/onboarding/OnboardingHeader.js.map +0 -1
  380. package/lib/module/components/onboarding/PinInput.js.map +0 -1
  381. package/lib/module/components/onboarding/PlatformConnector.js.map +0 -1
  382. package/lib/module/components/screens/ConnectorScreen.js +0 -138
  383. package/lib/module/components/screens/ConnectorScreen.js.map +0 -1
  384. package/lib/module/components/screens/LoadingScreen.js +0 -83
  385. package/lib/module/components/screens/LoadingScreen.js.map +0 -1
  386. package/lib/module/components/screens/PinCreationScreen.js +0 -53
  387. package/lib/module/components/screens/PinCreationScreen.js.map +0 -1
  388. package/lib/module/constants/index.js.map +0 -1
  389. package/lib/module/hooks/useConnections.js.map +0 -1
  390. package/lib/module/hooks/useCredentials.js.map +0 -1
  391. package/lib/module/index.js.map +0 -1
  392. package/lib/module/services/apiKeyService.js.map +0 -1
  393. package/lib/module/services/oauthService.js.map +0 -1
  394. package/lib/module/services/platformAuthService.js.map +0 -1
  395. package/lib/module/types/ambient.d.js.map +0 -1
  396. package/lib/module/types/declarations.d.js.map +0 -1
  397. package/lib/module/types/index.d.js.map +0 -1
  398. package/lib/module/types/index.js.map +0 -1
  399. package/lib/module/types/node-fix.d.js.map +0 -1
  400. package/lib/module/types/node-override.d.js.map +0 -1
  401. package/lib/module/types/opacity.d.js.map +0 -1
  402. package/lib/module/types/types.d.js.map +0 -1
  403. package/lib/module/types.js.map +0 -1
  404. package/lib/module/utils/Portal.js.map +0 -1
  405. package/lib/module/utils/api.js.map +0 -1
  406. package/lib/module/utils/auth.js.map +0 -1
  407. package/lib/module/utils/crypto.js.map +0 -1
  408. package/lib/module/utils/debugHelper.js.map +0 -1
  409. package/lib/module/utils/encryption.js.map +0 -1
  410. package/lib/module/utils/onairosApi.js.map +0 -1
  411. package/lib/module/utils/programmaticFlow.js.map +0 -1
  412. package/lib/module/utils/retryHelper.js.map +0 -1
  413. package/lib/module/utils/secureStorage.js.map +0 -1
  414. package/lib/typescript/api/index.d.ts +0 -8
  415. package/lib/typescript/api/index.d.ts.map +0 -1
  416. package/lib/typescript/components/DataRequestModal.d.ts +0 -11
  417. package/lib/typescript/components/DataRequestModal.d.ts.map +0 -1
  418. package/lib/typescript/components/DataRequestScreen.d.ts +0 -11
  419. package/lib/typescript/components/DataRequestScreen.d.ts.map +0 -1
  420. package/lib/typescript/components/EmailVerificationModal.d.ts +0 -11
  421. package/lib/typescript/components/EmailVerificationModal.d.ts.map +0 -1
  422. package/lib/typescript/components/Onairos.d.ts +0 -4
  423. package/lib/typescript/components/Onairos.d.ts.map +0 -1
  424. package/lib/typescript/components/OnairosButton.d.ts +0 -12
  425. package/lib/typescript/components/OnairosButton.d.ts.map +0 -1
  426. package/lib/typescript/components/Overlay.d.ts +0 -4
  427. package/lib/typescript/components/Overlay.d.ts.map +0 -1
  428. package/lib/typescript/components/PinInput.d.ts +0 -4
  429. package/lib/typescript/components/PinInput.d.ts.map +0 -1
  430. package/lib/typescript/components/PlatformList.d.ts +0 -4
  431. package/lib/typescript/components/PlatformList.d.ts.map +0 -1
  432. package/lib/typescript/components/TrainingModal.d.ts +0 -4
  433. package/lib/typescript/components/TrainingModal.d.ts.map +0 -1
  434. package/lib/typescript/components/UniversalOnboarding.d.ts +0 -4
  435. package/lib/typescript/components/UniversalOnboarding.d.ts.map +0 -1
  436. package/lib/typescript/components/onboarding/OAuthWebView.d.ts +0 -10
  437. package/lib/typescript/components/onboarding/OAuthWebView.d.ts.map +0 -1
  438. package/lib/typescript/components/onboarding/OnboardingHeader.d.ts +0 -11
  439. package/lib/typescript/components/onboarding/OnboardingHeader.d.ts.map +0 -1
  440. package/lib/typescript/components/onboarding/PinInput.d.ts +0 -4
  441. package/lib/typescript/components/onboarding/PinInput.d.ts.map +0 -1
  442. package/lib/typescript/components/onboarding/PlatformConnector.d.ts +0 -13
  443. package/lib/typescript/components/onboarding/PlatformConnector.d.ts.map +0 -1
  444. package/lib/typescript/components/screens/ConnectorScreen.d.ts +0 -9
  445. package/lib/typescript/components/screens/ConnectorScreen.d.ts.map +0 -1
  446. package/lib/typescript/components/screens/LoadingScreen.d.ts +0 -9
  447. package/lib/typescript/components/screens/LoadingScreen.d.ts.map +0 -1
  448. package/lib/typescript/components/screens/PinCreationScreen.d.ts +0 -10
  449. package/lib/typescript/components/screens/PinCreationScreen.d.ts.map +0 -1
  450. package/lib/typescript/constants/index.d.ts +0 -53
  451. package/lib/typescript/constants/index.d.ts.map +0 -1
  452. package/lib/typescript/hooks/useConnections.d.ts +0 -9
  453. package/lib/typescript/hooks/useConnections.d.ts.map +0 -1
  454. package/lib/typescript/hooks/useCredentials.d.ts +0 -9
  455. package/lib/typescript/hooks/useCredentials.d.ts.map +0 -1
  456. package/lib/typescript/index.d.ts +0 -18
  457. package/lib/typescript/index.d.ts.map +0 -1
  458. package/lib/typescript/services/apiKeyService.d.ts +0 -132
  459. package/lib/typescript/services/apiKeyService.d.ts.map +0 -1
  460. package/lib/typescript/services/oauthService.d.ts +0 -50
  461. package/lib/typescript/services/oauthService.d.ts.map +0 -1
  462. package/lib/typescript/services/platformAuthService.d.ts +0 -144
  463. package/lib/typescript/services/platformAuthService.d.ts.map +0 -1
  464. package/lib/typescript/types/index.d.ts +0 -231
  465. package/lib/typescript/types/index.d.ts.map +0 -1
  466. package/lib/typescript/types.d.ts +0 -270
  467. package/lib/typescript/types.d.ts.map +0 -1
  468. package/lib/typescript/utils/Portal.d.ts +0 -14
  469. package/lib/typescript/utils/Portal.d.ts.map +0 -1
  470. package/lib/typescript/utils/api.d.ts +0 -6
  471. package/lib/typescript/utils/api.d.ts.map +0 -1
  472. package/lib/typescript/utils/auth.d.ts +0 -6
  473. package/lib/typescript/utils/auth.d.ts.map +0 -1
  474. package/lib/typescript/utils/crypto.d.ts +0 -4
  475. package/lib/typescript/utils/crypto.d.ts.map +0 -1
  476. package/lib/typescript/utils/debugHelper.d.ts +0 -29
  477. package/lib/typescript/utils/debugHelper.d.ts.map +0 -1
  478. package/lib/typescript/utils/encryption.d.ts +0 -19
  479. package/lib/typescript/utils/encryption.d.ts.map +0 -1
  480. package/lib/typescript/utils/onairosApi.d.ts +0 -87
  481. package/lib/typescript/utils/onairosApi.d.ts.map +0 -1
  482. package/lib/typescript/utils/programmaticFlow.d.ts +0 -23
  483. package/lib/typescript/utils/programmaticFlow.d.ts.map +0 -1
  484. package/lib/typescript/utils/retryHelper.d.ts +0 -69
  485. package/lib/typescript/utils/retryHelper.d.ts.map +0 -1
  486. package/lib/typescript/utils/secureStorage.d.ts +0 -94
  487. package/lib/typescript/utils/secureStorage.d.ts.map +0 -1
  488. package/src/api/index.ts +0 -111
  489. package/src/assets/images/email.png +0 -0
  490. package/src/assets/images/linkedin.png +0 -0
  491. package/src/assets/images/onairos_logo.png +0 -0
  492. package/src/assets/images/reddit.png +0 -0
  493. package/src/assets/images/youtube.png +0 -0
  494. package/src/components/DataRequestModal.tsx +0 -227
  495. package/src/components/DataRequestScreen.tsx +0 -356
  496. package/src/components/EmailVerificationModal.tsx +0 -364
  497. package/src/components/Onairos.tsx +0 -425
  498. package/src/components/OnairosButton.tsx +0 -359
  499. package/src/components/Overlay.tsx +0 -506
  500. package/src/components/PinInput.tsx +0 -343
  501. package/src/components/PlatformList.tsx +0 -145
  502. package/src/components/TrainingModal.tsx +0 -737
  503. package/src/components/UniversalOnboarding.tsx +0 -1839
  504. package/src/components/UniversalOnboarding.tsx.new +0 -455
  505. package/src/components/onboarding/OAuthWebView.tsx +0 -838
  506. package/src/components/onboarding/OnboardingHeader.tsx +0 -70
  507. package/src/components/onboarding/PinInput.tsx +0 -356
  508. package/src/components/onboarding/PlatformConnector.tsx +0 -302
  509. package/src/components/screens/ConnectorScreen.tsx +0 -153
  510. package/src/components/screens/LoadingScreen.tsx +0 -100
  511. package/src/components/screens/PinCreationScreen.tsx +0 -67
  512. package/src/constants/index.ts +0 -83
  513. package/src/hooks/useConnections.ts +0 -163
  514. package/src/hooks/useCredentials.ts +0 -175
  515. package/src/index.js +0 -14
  516. package/src/index.ts +0 -50
  517. package/src/services/SDK_API_KEY_VALIDATION.md +0 -428
  518. package/src/services/apiKeyService.ts +0 -979
  519. package/src/services/oauthService.ts +0 -412
  520. package/src/services/platformAuthService.ts +0 -1113
  521. package/src/types/ambient.d.ts +0 -29
  522. package/src/types/declarations.d.ts +0 -26
  523. package/src/types/index.d.ts +0 -274
  524. package/src/types/index.ts +0 -244
  525. package/src/types/node-fix.d.ts +0 -19
  526. package/src/types/node-override.d.ts +0 -24
  527. package/src/types/opacity.d.ts +0 -16
  528. package/src/types/types.d.ts +0 -18
  529. package/src/types.ts +0 -298
  530. package/src/utils/Portal.tsx +0 -83
  531. package/src/utils/api.js +0 -112
  532. package/src/utils/auth.js +0 -104
  533. package/src/utils/crypto.js +0 -60
  534. package/src/utils/debugHelper.ts +0 -53
  535. package/src/utils/encryption.ts +0 -69
  536. package/src/utils/onairosApi.ts +0 -391
  537. package/src/utils/programmaticFlow.ts +0 -113
  538. package/src/utils/retryHelper.ts +0 -275
  539. package/src/utils/secureStorage.ts +0 -361
  540. package/types/index.d.ts +0 -218
  541. package/types/node-env.d.ts +0 -15
  542. /package/{src/assets/images → lib/commonjs/assets/icons}/farcaster.png +0 -0
  543. /package/{src/assets/images → lib/commonjs/assets/icons}/instagram.png +0 -0
  544. /package/{src/assets/images → lib/commonjs/assets/icons}/pinterest.png +0 -0
  545. /package/{src/assets/images → lib/commonjs/assets/icons}/swerv_logo.png +0 -0
  546. /package/{src/assets/images → lib/commonjs/assets/icons}/twitter.jpg +0 -0
@@ -1,249 +1,11 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.PlatformConnector = void 0;
7
- var _react = _interopRequireWildcard(require("react"));
8
- var _reactNative = require("react-native");
9
- var _MaterialIcons = _interopRequireDefault(require("react-native-vector-icons/MaterialIcons"));
10
- var _constants = require("../../constants");
11
- var _OAuthWebView = require("./OAuthWebView");
12
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
13
- function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
14
- // Platform definitions
15
- const PLATFORMS = {
16
- instagram: {
17
- name: 'Instagram',
18
- icon: 'photo-camera',
19
- color: '#E1306C',
20
- description: 'Connect to share and analyze your Instagram content'
21
- },
22
- youtube: {
23
- name: 'YouTube',
24
- icon: 'smart-display',
25
- color: '#FF0000',
26
- description: 'Connect for YouTube video recommendations and analysis'
27
- },
28
- pinterest: {
29
- name: 'Pinterest',
30
- icon: 'push-pin',
31
- color: '#E60023',
32
- description: 'Connect to enhance Pinterest board recommendations'
33
- },
34
- reddit: {
35
- name: 'Reddit',
36
- icon: 'forum',
37
- color: '#FF4500',
38
- description: 'Connect to personalize Reddit content insights'
39
- }
40
- };
41
- const PlatformConnector = ({
42
- connections,
43
- onConnect,
44
- onDisconnect,
45
- isLoading,
46
- canProceed,
47
- onProceed
48
- }) => {
49
- const [activeWebview, setActiveWebview] = (0, _react.useState)(null);
50
- const handleConnectPress = async platform => {
51
- setActiveWebview(platform);
52
- };
53
- const handleWebViewComplete = () => {
54
- setActiveWebview(null);
55
- };
56
- const handleWebViewClose = () => {
57
- setActiveWebview(null);
58
- };
59
- const handleDisconnectPress = async platform => {
60
- await onDisconnect(platform);
61
- };
62
- const getPlatformStatus = platform => {
63
- const platformKey = platform;
64
- return connections[platformKey] ? true : false;
65
- };
66
- const getConnectedCount = () => {
67
- return Object.values(connections).filter(Boolean).length;
68
- };
69
- return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
70
- style: styles.container
71
- }, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
72
- style: styles.title
73
- }, "Connect Your Platforms"), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
74
- style: styles.subtitle
75
- }, "Connect at least 2 platforms to create your Onairos account"), /*#__PURE__*/_react.default.createElement(_reactNative.ScrollView, {
76
- style: styles.platformList
77
- }, Object.keys(PLATFORMS).map(platform => {
78
- var _connections;
79
- const platformInfo = PLATFORMS[platform];
80
- const isConnected = getPlatformStatus(platform);
81
- const userName = isConnected ? (_connections = connections[platform]) === null || _connections === void 0 ? void 0 : _connections.userName : null;
82
- return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
83
- key: platform,
84
- style: styles.platformItem
85
- }, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
86
- style: styles.platformInfo
87
- }, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
88
- style: [styles.platformIcon, {
89
- backgroundColor: platformInfo.color
90
- }]
91
- }, /*#__PURE__*/_react.default.createElement(_MaterialIcons.default, {
92
- name: platformInfo.icon,
93
- size: 24,
94
- color: "#fff"
95
- })), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
96
- style: styles.platformText
97
- }, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
98
- style: styles.platformName
99
- }, platformInfo.name), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
100
- style: styles.platformDescription
101
- }, isConnected ? `Connected as ${userName}` : platformInfo.description))), /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
102
- style: [styles.platformButton, isConnected ? styles.disconnectButton : styles.connectButton],
103
- onPress: () => isConnected ? handleDisconnectPress(platform) : handleConnectPress(platform),
104
- disabled: isLoading
105
- }, isLoading ? /*#__PURE__*/_react.default.createElement(_reactNative.ActivityIndicator, {
106
- size: "small",
107
- color: "#fff"
108
- }) : /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
109
- style: styles.buttonText
110
- }, isConnected ? 'Disconnect' : 'Connect')));
111
- })), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
112
- style: styles.footer
113
- }, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
114
- style: styles.connectionStatus
115
- }, getConnectedCount(), " of ", Object.keys(PLATFORMS).length, " platforms connected"), /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
116
- style: [styles.proceedButton, canProceed ? styles.proceedActive : styles.proceedInactive],
117
- onPress: onProceed,
118
- disabled: !canProceed
119
- }, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
120
- style: [styles.proceedText, canProceed ? styles.proceedTextActive : styles.proceedTextInactive]
121
- }, "Continue"), /*#__PURE__*/_react.default.createElement(_MaterialIcons.default, {
122
- name: "arrow-forward",
123
- size: 20,
124
- color: canProceed ? '#fff' : '#999'
125
- }))), activeWebview && /*#__PURE__*/_react.default.createElement(_OAuthWebView.OAuthWebView, {
126
- url: `https://oauth.example.com/${activeWebview}` // This would be replaced with actual OAuth URL
127
- ,
128
- platform: activeWebview,
129
- onComplete: handleWebViewComplete,
130
- onClose: handleWebViewClose,
131
- onSuccess: code => {
132
- console.log(`Received authorization code for ${activeWebview}: ${code}`);
133
- // In a real implementation, we'd pass this code to our API service
134
- handleWebViewComplete();
135
- }
136
- }));
137
- };
138
- exports.PlatformConnector = PlatformConnector;
139
- const styles = _reactNative.StyleSheet.create({
140
- container: {
141
- flex: 1,
142
- padding: 16
143
- },
144
- title: {
145
- fontSize: 24,
146
- fontWeight: 'bold',
147
- marginBottom: 8,
148
- color: '#000'
149
- },
150
- subtitle: {
151
- fontSize: 16,
152
- color: '#666',
153
- marginBottom: 24
154
- },
155
- platformList: {
156
- flex: 1
157
- },
158
- platformItem: {
159
- flexDirection: 'row',
160
- alignItems: 'center',
161
- marginBottom: 16,
162
- padding: 12,
163
- backgroundColor: '#f8f8f8',
164
- borderRadius: 12,
165
- borderWidth: 1,
166
- borderColor: '#eee'
167
- },
168
- platformInfo: {
169
- flex: 1,
170
- flexDirection: 'row',
171
- alignItems: 'center'
172
- },
173
- platformIcon: {
174
- width: 40,
175
- height: 40,
176
- borderRadius: 20,
177
- justifyContent: 'center',
178
- alignItems: 'center',
179
- marginRight: 12
180
- },
181
- platformText: {
182
- flex: 1
183
- },
184
- platformName: {
185
- fontSize: 16,
186
- fontWeight: '600',
187
- marginBottom: 4,
188
- color: '#000'
189
- },
190
- platformDescription: {
191
- fontSize: 14,
192
- color: '#666'
193
- },
194
- platformButton: {
195
- paddingHorizontal: 16,
196
- paddingVertical: 8,
197
- borderRadius: 20,
198
- justifyContent: 'center',
199
- alignItems: 'center',
200
- minWidth: 100
201
- },
202
- connectButton: {
203
- backgroundColor: _constants.COLORS.primary
204
- },
205
- disconnectButton: {
206
- backgroundColor: '#f44336'
207
- },
208
- buttonText: {
209
- color: '#fff',
210
- fontWeight: '600'
211
- },
212
- footer: {
213
- flexDirection: 'row',
214
- alignItems: 'center',
215
- justifyContent: 'space-between',
216
- paddingTop: 16,
217
- borderTopWidth: 1,
218
- borderTopColor: '#eee',
219
- marginTop: 16
220
- },
221
- connectionStatus: {
222
- fontSize: 14,
223
- color: '#666'
224
- },
225
- proceedButton: {
226
- flexDirection: 'row',
227
- alignItems: 'center',
228
- paddingHorizontal: 16,
229
- paddingVertical: 10,
230
- borderRadius: 24
231
- },
232
- proceedActive: {
233
- backgroundColor: _constants.COLORS.primary
234
- },
235
- proceedInactive: {
236
- backgroundColor: '#eee'
237
- },
238
- proceedText: {
239
- fontWeight: '600',
240
- marginRight: 8
241
- },
242
- proceedTextActive: {
243
- color: '#fff'
244
- },
245
- proceedTextInactive: {
246
- color: '#999'
247
- }
248
- });
249
- //# sourceMappingURL=PlatformConnector.js.map
1
+ 'use strict';
2
+ // Onairos SDK - Asset Registry (auto-generated)
3
+ var __ONAIROS_REQ_REGISTRY__ = [
4
+ require("react"),
5
+ require("react-native"),
6
+ require("react-native-vector-icons/MaterialIcons"),
7
+ require("../../constants"),
8
+ require("./OAuthWebView")
9
+ ];
10
+ function __ONAIROS_REQ_FUNC__(i) { return __ONAIROS_REQ_REGISTRY__[i]; }
11
+ Object[_0x3d6b(0x0)](exports,_0x3d6b(0x1),{'value':!![]}),exports['PlatformConnector']=void 0x0;var _react=_interopRequireWildcard(__ONAIROS_REQ_FUNC__(0x0)),_reactNative=__ONAIROS_REQ_FUNC__(0x1),_MaterialIcons=_interopRequireDefault(__ONAIROS_REQ_FUNC__(0x2)),_constants=__ONAIROS_REQ_FUNC__(0x3),_OAuthWebView=__ONAIROS_REQ_FUNC__(0x4);function _interopRequireDefault(_0x246b3f){return _0x246b3f&&_0x246b3f[_0x3d6b(0x1)]?_0x246b3f:{'default':_0x246b3f};}function _interopRequireWildcard(_0x541eae,_0x5e1b25){const _0x4974bb={'mIEPe':function(_0x55a05e,_0x55d078){return _0x55a05e&&_0x55d078;},'XgCJw':function(_0x34a488,_0x3dd60e){return _0x34a488===_0x3dd60e;},'mikXs':function(_0x1d3cc2,_0x541885){return _0x1d3cc2!=_0x541885;},'pLoXB':_0x3d6b(0x2),'BhcLm':function(_0x5cd3e,_0x259071){return _0x5cd3e!=_0x259071;},'ctAuB':function(_0x11e4f0,_0x228bfa){return _0x11e4f0!==_0x228bfa;},'QcibZ':_0x3d6b(0x3),'EoKMC':function(_0x14ccbd,_0x255461,_0x2c0235,_0x180de9){return _0x14ccbd(_0x255461,_0x2c0235,_0x180de9);}};if(_0x3d6b(0x4)==typeof WeakMap)var _0x4a34a5=new WeakMap(),_0xa51ddd=new WeakMap();return(_interopRequireWildcard=function(_0x25d6b4,_0x2d0b60){if(_0x4974bb['mIEPe'](!_0x2d0b60,_0x25d6b4)&&_0x25d6b4[_0x3d6b(0x1)])return _0x25d6b4;var _0x550bae,_0x20d0fd,_0x5356a3={'__proto__':null,'default':_0x25d6b4};if(_0x4974bb[_0x3d6b(0x5)](null,_0x25d6b4)||_0x4974bb[_0x3d6b(0x6)](_0x4974bb[_0x3d6b(0x7)],typeof _0x25d6b4)&&_0x4974bb[_0x3d6b(0x8)](_0x3d6b(0x4),typeof _0x25d6b4))return _0x5356a3;if(_0x550bae=_0x2d0b60?_0xa51ddd:_0x4a34a5){if(_0x550bae[_0x3d6b(0x9)](_0x25d6b4))return _0x550bae['get'](_0x25d6b4);_0x550bae[_0x3d6b(0xa)](_0x25d6b4,_0x5356a3);}for(const _0x515bdc in _0x25d6b4)_0x4974bb['ctAuB'](_0x4974bb[_0x3d6b(0xb)],_0x515bdc)&&{}[_0x3d6b(0xc)][_0x3d6b(0xd)](_0x25d6b4,_0x515bdc)&&((_0x20d0fd=(_0x550bae=Object[_0x3d6b(0x0)])&&Object[_0x3d6b(0xe)](_0x25d6b4,_0x515bdc))&&(_0x20d0fd['get']||_0x20d0fd[_0x3d6b(0xa)])?_0x4974bb[_0x3d6b(0xf)](_0x550bae,_0x5356a3,_0x515bdc,_0x20d0fd):_0x5356a3[_0x515bdc]=_0x25d6b4[_0x515bdc]);return _0x5356a3;})(_0x541eae,_0x5e1b25);}function _0x3d6b(_0x322238,_0x3d6bea){_0x322238=_0x322238-0x0;const _0x4c885c=_0x3222();let _0x3b5562=_0x4c885c[_0x322238];return _0x3b5562;}const PLATFORMS={'instagram':{'name':_0x3d6b(0x10),'icon':_0x3d6b(0x11),'color':_0x3d6b(0x12),'description':'Connect\x20to\x20share\x20and\x20analyze\x20your\x20Instagram\x20content'},'youtube':{'name':_0x3d6b(0x13),'icon':'smart-display','color':_0x3d6b(0x14),'description':_0x3d6b(0x15)},'pinterest':{'name':_0x3d6b(0x16),'icon':_0x3d6b(0x17),'color':_0x3d6b(0x18),'description':'Connect\x20to\x20enhance\x20Pinterest\x20board\x20recommendations'},'reddit':{'name':_0x3d6b(0x19),'icon':_0x3d6b(0x1a),'color':_0x3d6b(0x1b),'description':_0x3d6b(0x1c)}},PlatformConnector=({connections:_0x481e63,onConnect:_0xe86730,onDisconnect:_0x410f6f,isLoading:_0x57bc6e,canProceed:_0x3e4418,onProceed:_0x419746})=>{const _0x3ff46b={'iEQbi':'yEuCL','joqsu':function(_0x391fa7,_0xf3038a){return _0x391fa7(_0xf3038a);},'qgKoe':function(_0x4dff8d,_0x170bd3){return _0x4dff8d!==_0x170bd3;},'TAvHS':'UFBhK','JpdOt':function(_0x3db4b9,_0x3bbc34){return _0x3db4b9(_0x3bbc34);},'HwusH':function(_0x70dc8d,_0x40c514){return _0x70dc8d(_0x40c514);},'xNAzH':_0x3d6b(0x1d),'XrzyL':_0x3d6b(0x1e),'vXmwb':function(_0x572814,_0x2b8914){return _0x572814&&_0x2b8914;},'rBPmB':function(_0x4f7eb6,_0x5897a5){return _0x4f7eb6===_0x5897a5;},'PFrBe':function(_0x3253ca,_0x1e9824){return _0x3253ca!=_0x1e9824;},'bkIWO':'object','lcvAT':function(_0x172311,_0x73e38){return _0x172311!=_0x73e38;},'ciQVh':_0x3d6b(0x3),'tYolf':function(_0x33b1d2,_0x5502b6,_0xbefe61,_0x27f3db){return _0x33b1d2(_0x5502b6,_0xbefe61,_0x27f3db);},'jTnaA':'jYVUc','PNdJu':'#fff','fwuuT':_0x3d6b(0x1f),'hBLIx':_0x3d6b(0x20),'mwRyA':_0x3d6b(0x21),'EbvDk':function(_0x4d87c6){return _0x4d87c6();},'hIAbg':_0x3d6b(0x22),'OpbPM':'Connect\x20at\x20least\x202\x20platforms\x20to\x20create\x20your\x20Onairos\x20account','mhLTL':_0x3d6b(0x23),'tgbdL':_0x3d6b(0x24),'IzPXr':_0x3d6b(0x25),'GwvrJ':_0x3d6b(0x26)},[_0x2626a6,_0x357b4c]=(0x0,_react[_0x3d6b(0x27)])(null),_0x4fc79f=async _0x5361c0=>{if(_0x3ff46b[_0x3d6b(0x28)]===_0x3ff46b[_0x3d6b(0x28)])_0x3ff46b[_0x3d6b(0x29)](_0x357b4c,_0x5361c0);else return _0x335624[_0x3d6b(0x2a)](_0x2ca4c9)[_0x3d6b(0x2b)](_0x3b629c)[_0x3d6b(0x2c)];},_0x36c2c2=()=>{_0x3ff46b[_0x3d6b(0x2d)](_0x3d6b(0x2e),_0x3ff46b[_0x3d6b(0x2f)])?_0x2af082(null):_0x3ff46b['JpdOt'](_0x357b4c,null);},_0x4bb128=()=>{_0x3ff46b['HwusH'](_0x357b4c,null);},_0x289d61=async _0x5abbe7=>{await _0x3ff46b['HwusH'](_0x410f6f,_0x5abbe7);},_0x1b06b0=_0x60bb33=>{if(_0x3ff46b[_0x3d6b(0x30)]!==_0x3ff46b[_0x3d6b(0x31)]){const _0x15bde3=_0x60bb33;return _0x481e63[_0x15bde3]?!![]:![];}else{if(_0x5cdc85[_0x3d6b(0x9)](_0x1d7457))return _0x3d2bf8['get'](_0x5845b8);_0x3fa6f5['set'](_0x47f46d,_0x4e49f7);}},_0x272579=()=>{if(_0x3ff46b[_0x3d6b(0x32)](_0x3ff46b[_0x3d6b(0x33)],_0x3d6b(0x34))){if(_0x3ff46b['vXmwb'](!_0xf51a5a,_0x580cc2)&&_0x494109[_0x3d6b(0x1)])return _0xe8d8b0;var _0x556ead,_0x52eeac,_0x16d75d={'__proto__':null,'default':_0x8ccff1};if(_0x3ff46b[_0x3d6b(0x32)](null,_0x33f2aa)||_0x3ff46b[_0x3d6b(0x35)](_0x3ff46b[_0x3d6b(0x36)],typeof _0x504770)&&_0x3ff46b[_0x3d6b(0x37)](_0x3d6b(0x4),typeof _0x46139f))return _0x16d75d;if(_0x556ead=_0x3170d9?_0x52d2a6:_0x1416da){if(_0x556ead[_0x3d6b(0x9)](_0x2f070c))return _0x556ead[_0x3d6b(0x38)](_0x447af0);_0x556ead[_0x3d6b(0xa)](_0x7c522b,_0x16d75d);}for(const _0x1fcf10 in _0x54d19c)_0x3ff46b[_0x3d6b(0x2d)](_0x3ff46b[_0x3d6b(0x39)],_0x1fcf10)&&{}[_0x3d6b(0xc)][_0x3d6b(0xd)](_0x158b27,_0x1fcf10)&&((_0x52eeac=(_0x556ead=_0x34979c[_0x3d6b(0x0)])&&_0xead966[_0x3d6b(0xe)](_0x522511,_0x1fcf10))&&(_0x52eeac[_0x3d6b(0x38)]||_0x52eeac[_0x3d6b(0xa)])?_0x3ff46b[_0x3d6b(0x3a)](_0x556ead,_0x16d75d,_0x1fcf10,_0x52eeac):_0x16d75d[_0x1fcf10]=_0x514c89[_0x1fcf10]);return _0x16d75d;}else return Object[_0x3d6b(0x2a)](_0x481e63)[_0x3d6b(0x2b)](Boolean)[_0x3d6b(0x2c)];};return _react[_0x3d6b(0x3)][_0x3d6b(0x3b)](_reactNative[_0x3d6b(0x3c)],{'style':styles[_0x3d6b(0x3d)]},_react[_0x3d6b(0x3)][_0x3d6b(0x3b)](_reactNative['Text'],{'style':styles['title']},_0x3ff46b[_0x3d6b(0x3e)]),_react[_0x3d6b(0x3)][_0x3d6b(0x3b)](_reactNative[_0x3d6b(0x3f)],{'style':styles[_0x3d6b(0x40)]},_0x3ff46b[_0x3d6b(0x41)]),_react['default']['createElement'](_reactNative[_0x3d6b(0x42)],{'style':styles[_0x3d6b(0x43)]},Object[_0x3d6b(0x44)](PLATFORMS)[_0x3d6b(0x45)](_0x3ee340=>{var _0x10a70d;const _0x5d5b81=PLATFORMS[_0x3ee340],_0x1829e3=_0x3ff46b[_0x3d6b(0x29)](_0x1b06b0,_0x3ee340),_0xad9e0b=_0x1829e3?_0x3ff46b['rBPmB'](_0x10a70d=_0x481e63[_0x3ee340],null)||_0x3ff46b['rBPmB'](_0x10a70d,void 0x0)?void 0x0:_0x10a70d[_0x3d6b(0x46)]:null;return _react[_0x3d6b(0x3)]['createElement'](_reactNative[_0x3d6b(0x3c)],{'key':_0x3ee340,'style':styles[_0x3d6b(0x47)]},_react['default']['createElement'](_reactNative[_0x3d6b(0x3c)],{'style':styles[_0x3d6b(0x48)]},_react['default'][_0x3d6b(0x3b)](_reactNative[_0x3d6b(0x3c)],{'style':[styles['platformIcon'],{'backgroundColor':_0x5d5b81[_0x3d6b(0x49)]}]},_react[_0x3d6b(0x3)]['createElement'](_MaterialIcons['default'],{'name':_0x5d5b81[_0x3d6b(0x4a)],'size':0x18,'color':_0x3ff46b[_0x3d6b(0x4b)]})),_react[_0x3d6b(0x3)][_0x3d6b(0x3b)](_reactNative[_0x3d6b(0x3c)],{'style':styles[_0x3d6b(0x4c)]},_react[_0x3d6b(0x3)][_0x3d6b(0x3b)](_reactNative[_0x3d6b(0x3f)],{'style':styles[_0x3d6b(0x4d)]},_0x5d5b81[_0x3d6b(0x4e)]),_react[_0x3d6b(0x3)][_0x3d6b(0x3b)](_reactNative[_0x3d6b(0x3f)],{'style':styles[_0x3d6b(0x4f)]},_0x1829e3?_0x3d6b(0x50)+_0xad9e0b:_0x5d5b81['description']))),_react[_0x3d6b(0x3)]['createElement'](_reactNative[_0x3d6b(0x51)],{'style':[styles[_0x3d6b(0x52)],_0x1829e3?styles[_0x3d6b(0x53)]:styles[_0x3d6b(0x54)]],'onPress':()=>_0x1829e3?_0x289d61(_0x3ee340):_0x4fc79f(_0x3ee340),'disabled':_0x57bc6e},_0x57bc6e?_react[_0x3d6b(0x3)][_0x3d6b(0x3b)](_reactNative[_0x3d6b(0x55)],{'size':_0x3ff46b[_0x3d6b(0x56)],'color':_0x3ff46b[_0x3d6b(0x4b)]}):_react[_0x3d6b(0x3)]['createElement'](_reactNative['Text'],{'style':styles[_0x3d6b(0x57)]},_0x1829e3?'Disconnect':_0x3ff46b[_0x3d6b(0x58)])));})),_react[_0x3d6b(0x3)]['createElement'](_reactNative[_0x3d6b(0x3c)],{'style':styles[_0x3d6b(0x59)]},_react['default'][_0x3d6b(0x3b)](_reactNative[_0x3d6b(0x3f)],{'style':styles[_0x3d6b(0x5a)]},_0x3ff46b[_0x3d6b(0x5b)](_0x272579),_0x3ff46b['mhLTL'],Object[_0x3d6b(0x44)](PLATFORMS)[_0x3d6b(0x2c)],_0x3ff46b['tgbdL']),_react[_0x3d6b(0x3)][_0x3d6b(0x3b)](_reactNative['TouchableOpacity'],{'style':[styles[_0x3d6b(0x5c)],_0x3e4418?styles[_0x3d6b(0x5d)]:styles[_0x3d6b(0x5e)]],'onPress':_0x419746,'disabled':!_0x3e4418},_react[_0x3d6b(0x3)][_0x3d6b(0x3b)](_reactNative[_0x3d6b(0x3f)],{'style':[styles[_0x3d6b(0x5f)],_0x3e4418?styles[_0x3d6b(0x60)]:styles[_0x3d6b(0x61)]]},_0x3ff46b['IzPXr']),_react[_0x3d6b(0x3)][_0x3d6b(0x3b)](_MaterialIcons[_0x3d6b(0x3)],{'name':_0x3d6b(0x62),'size':0x14,'color':_0x3e4418?_0x3ff46b[_0x3d6b(0x4b)]:_0x3ff46b[_0x3d6b(0x63)]}))),_0x2626a6&&_react[_0x3d6b(0x3)][_0x3d6b(0x3b)](_OAuthWebView[_0x3d6b(0x64)],{'url':_0x3d6b(0x65)+_0x2626a6,'platform':_0x2626a6,'onComplete':_0x36c2c2,'onClose':_0x4bb128,'onSuccess':_0x7edd40=>{if(_0x3ff46b[_0x3d6b(0x32)](_0x3d6b(0x21),_0x3ff46b[_0x3d6b(0x66)]))console[_0x3d6b(0x67)](_0x3d6b(0x68)+_0x2626a6+':\x20'+_0x7edd40),_0x3ff46b['EbvDk'](_0x36c2c2);else return _0x599982&&_0x49045e[_0x3d6b(0x1)]?_0x26377d:{'default':_0x1ffb27};}}));};exports['PlatformConnector']=PlatformConnector;const styles=_reactNative[_0x3d6b(0x69)][_0x3d6b(0x6a)]({'container':{'flex':0x1,'padding':0x10},'title':{'fontSize':0x18,'fontWeight':_0x3d6b(0x6b),'marginBottom':0x8,'color':'#000'},'subtitle':{'fontSize':0x10,'color':_0x3d6b(0x6c),'marginBottom':0x18},'platformList':{'flex':0x1},'platformItem':{'flexDirection':_0x3d6b(0x6d),'alignItems':_0x3d6b(0x6e),'marginBottom':0x10,'padding':0xc,'backgroundColor':_0x3d6b(0x6f),'borderRadius':0xc,'borderWidth':0x1,'borderColor':_0x3d6b(0x70)},'platformInfo':{'flex':0x1,'flexDirection':_0x3d6b(0x6d),'alignItems':_0x3d6b(0x6e)},'platformIcon':{'width':0x28,'height':0x28,'borderRadius':0x14,'justifyContent':_0x3d6b(0x6e),'alignItems':_0x3d6b(0x6e),'marginRight':0xc},'platformText':{'flex':0x1},'platformName':{'fontSize':0x10,'fontWeight':'600','marginBottom':0x4,'color':_0x3d6b(0x71)},'platformDescription':{'fontSize':0xe,'color':_0x3d6b(0x6c)},'platformButton':{'paddingHorizontal':0x10,'paddingVertical':0x8,'borderRadius':0x14,'justifyContent':_0x3d6b(0x6e),'alignItems':_0x3d6b(0x6e),'minWidth':0x64},'connectButton':{'backgroundColor':_constants[_0x3d6b(0x72)]['primary']},'disconnectButton':{'backgroundColor':_0x3d6b(0x73)},'buttonText':{'color':_0x3d6b(0x74),'fontWeight':_0x3d6b(0x75)},'footer':{'flexDirection':_0x3d6b(0x6d),'alignItems':_0x3d6b(0x6e),'justifyContent':_0x3d6b(0x76),'paddingTop':0x10,'borderTopWidth':0x1,'borderTopColor':_0x3d6b(0x70),'marginTop':0x10},'connectionStatus':{'fontSize':0xe,'color':_0x3d6b(0x6c)},'proceedButton':{'flexDirection':'row','alignItems':'center','paddingHorizontal':0x10,'paddingVertical':0xa,'borderRadius':0x18},'proceedActive':{'backgroundColor':_constants[_0x3d6b(0x72)][_0x3d6b(0x77)]},'proceedInactive':{'backgroundColor':_0x3d6b(0x70)},'proceedText':{'fontWeight':_0x3d6b(0x75),'marginRight':0x8},'proceedTextActive':{'color':'#fff'},'proceedTextInactive':{'color':'#999'}});function _0x3222(){const _0x236020=['defineProperty','__esModule','object','default','function','XgCJw','mikXs','pLoXB','BhcLm','has','set','QcibZ','hasOwnProperty','call','getOwnPropertyDescriptor','EoKMC','Instagram','photo-camera','#E1306C','YouTube','#FF0000','Connect\x20for\x20YouTube\x20video\x20recommendations\x20and\x20analysis','Pinterest','push-pin','#E60023','Reddit','forum','#FF4500','Connect\x20to\x20personalize\x20Reddit\x20content\x20insights','jDfvX','wNrKz','small','Connect','qwdXQ','Connect\x20Your\x20Platforms','\x20of\x20','\x20platforms\x20connected','Continue','#999','useState','iEQbi','joqsu','values','filter','length','qgKoe','UFBhK','TAvHS','xNAzH','XrzyL','rBPmB','jTnaA','gpQWb','PFrBe','bkIWO','lcvAT','get','ciQVh','tYolf','createElement','View','container','hIAbg','Text','subtitle','OpbPM','ScrollView','platformList','keys','map','userName','platformItem','platformInfo','color','icon','PNdJu','platformText','platformName','name','platformDescription','Connected\x20as\x20','TouchableOpacity','platformButton','disconnectButton','connectButton','ActivityIndicator','fwuuT','buttonText','hBLIx','footer','connectionStatus','EbvDk','proceedButton','proceedActive','proceedInactive','proceedText','proceedTextActive','proceedTextInactive','arrow-forward','GwvrJ','OAuthWebView','https://oauth.example.com/','mwRyA','log','Received\x20authorization\x20code\x20for\x20','StyleSheet','create','bold','#666','row','center','#f8f8f8','#eee','#000','COLORS','#f44336','#fff','600','space-between','primary'];_0x3222=function(){return _0x236020;};return _0x3222();}
@@ -0,0 +1,7 @@
1
+ 'use strict';
2
+ // Onairos SDK - Asset Registry (auto-generated)
3
+ var __ONAIROS_REQ_REGISTRY__ = [
4
+ require("../services/authService")
5
+ ];
6
+ function __ONAIROS_REQ_FUNC__(i) { return __ONAIROS_REQ_REGISTRY__[i]; }
7
+ function _0x53b9(_0x58b5fd,_0x53b998){_0x58b5fd=_0x58b5fd-0x0;const _0x44f4fb=_0x58b5();let _0x50ba5a=_0x44f4fb[_0x58b5fd];return _0x50ba5a;}function _0x58b5(){const _0x21d17c=['defineProperty','__esModule','getUserAuthHeaders','getAuthHeaders','getApiHeaders','API_CONFIG','/auth','/connections','/training','/oauth','Bearer\x20','User\x20not\x20authenticated\x20-\x20no\x20JWT\x20token\x20found','getAuthToken','aKPya','eAXfO'];_0x58b5=function(){return _0x21d17c;};return _0x58b5();}Object[_0x53b9(0x0)](exports,_0x53b9(0x1),{'value':!![]}),exports[_0x53b9(0x2)]=exports[_0x53b9(0x3)]=exports[_0x53b9(0x4)]=exports[_0x53b9(0x5)]=void 0x0;var _authService=__ONAIROS_REQ_FUNC__(0x0);const API_CONFIG=exports['API_CONFIG']={'BASE_URL':'https://api3.onairos.uk','ENDPOINTS':{'AUTH':_0x53b9(0x6),'USER':'/user','CONNECTIONS':_0x53b9(0x7),'TRAINING':_0x53b9(0x8),'OAUTH':_0x53b9(0x9)},'TIMEOUT':0x7530},getApiHeaders=()=>({'Content-Type':'application/json','Accept':'application/json'});exports[_0x53b9(0x4)]=getApiHeaders;const getAuthHeaders=_0x743b9f=>({...getApiHeaders(),..._0x743b9f&&{'Authorization':_0x53b9(0xa)+_0x743b9f}});exports[_0x53b9(0x3)]=getAuthHeaders;const getUserAuthHeaders=async()=>{const _0x3d118f={'aKPya':_0x53b9(0xb),'eAXfO':function(_0x4bd8d1){return _0x4bd8d1();}},_0x5dada=await(0x0,_authService[_0x53b9(0xc)])();if(!_0x5dada)throw new Error(_0x3d118f[_0x53b9(0xd)]);return{..._0x3d118f[_0x53b9(0xe)](getApiHeaders),'Authorization':'Bearer\x20'+_0x5dada};};exports[_0x53b9(0x2)]=getUserAuthHeaders;
@@ -1,83 +1,7 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.STORAGE_KEYS = exports.PLATFORMS = exports.PIN_REQUIREMENTS = exports.DEEP_LINK_CONFIG = exports.COLORS = exports.API_ENDPOINTS = void 0;
7
- const COLORS = exports.COLORS = {
8
- primary: '#1BA9D4',
9
- headerBg: '#F8F9FA',
10
- text: {
11
- primary: '#000000',
12
- secondary: '#666666'
13
- },
14
- border: '#E5E5E5',
15
- success: '#34C759',
16
- error: '#FF3B30',
17
- instagram: '#E1306C',
18
- pinterest: '#E60023',
19
- reddit: '#FF4500',
20
- youtube: '#FF0000',
21
- white: '#FFFFFF',
22
- black: '#000000',
23
- gray: '#666666',
24
- lightGray: '#E5E5E5'
25
- };
26
- const PLATFORMS = exports.PLATFORMS = {
27
- instagram: {
28
- name: 'Instagram',
29
- icon: 'instagram',
30
- color: COLORS.instagram,
31
- description: 'Connect your Instagram account to train your AI model'
32
- },
33
- pinterest: {
34
- name: 'Pinterest',
35
- icon: 'pinterest',
36
- color: COLORS.pinterest,
37
- description: 'Use your Pinterest boards for AI training'
38
- },
39
- reddit: {
40
- name: 'Reddit',
41
- icon: 'reddit',
42
- color: COLORS.reddit,
43
- description: 'Connect Reddit to enhance your AI model'
44
- },
45
- youtube: {
46
- name: 'YouTube',
47
- icon: 'youtube',
48
- color: COLORS.youtube,
49
- description: 'Use YouTube data to improve AI recommendations'
50
- }
51
- };
52
- const API_ENDPOINTS = exports.API_ENDPOINTS = {
53
- base: 'https://api2.onairos.uk',
54
- oauth: {
55
- instagram: '/instagram/auth',
56
- pinterest: '/pinterest/auth',
57
- reddit: '/reddit/auth',
58
- youtube: '/youtube/auth'
59
- },
60
- callback: {
61
- instagram: '/instagram/callback',
62
- pinterest: '/pinterest/callback',
63
- reddit: '/reddit/callback',
64
- youtube: '/youtube/callback'
65
- }
66
- };
67
- const STORAGE_KEYS = exports.STORAGE_KEYS = {
68
- credentials: 'onairos_credentials',
69
- connections: 'onairos_connections'
70
- };
71
- const PIN_REQUIREMENTS = exports.PIN_REQUIREMENTS = {
72
- minLength: 8,
73
- requireUppercase: true,
74
- requireLowercase: true,
75
- requireNumber: true,
76
- requireSpecialChar: true
77
- };
78
- const DEEP_LINK_CONFIG = exports.DEEP_LINK_CONFIG = {
79
- scheme: 'onairosanime',
80
- host: 'authenticate',
81
- redirectUri: 'onairosanime://auth/'
82
- };
83
- //# sourceMappingURL=index.js.map
1
+ 'use strict';
2
+ // Onairos SDK - Asset Registry (auto-generated)
3
+ var __ONAIROS_REQ_REGISTRY__ = [
4
+ require("../config/api")
5
+ ];
6
+ function __ONAIROS_REQ_FUNC__(i) { return __ONAIROS_REQ_REGISTRY__[i]; }
7
+ function _0x2643(_0x205dda,_0x264345){_0x205dda=_0x205dda-0x0;const _0x3a15ce=_0x205d();let _0x57d95c=_0x3a15ce[_0x205dda];return _0x57d95c;}function _0x205d(){const _0x507208=['defineProperty','__esModule','STORAGE_KEYS','PIN_REQUIREMENTS','COLORS','API_ENDPOINTS','#1BA9D4','#F8F9FA','#34C759','#FF3B30','#E1306C','#E60023','#FF4500','#FF0000','#10A37F','#000000','#666666','PLATFORMS','Instagram','instagram','Connect\x20your\x20Instagram\x20account\x20to\x20train\x20your\x20AI\x20model','Pinterest','pinterest','Use\x20your\x20Pinterest\x20boards\x20for\x20AI\x20training','Reddit','reddit','Connect\x20Reddit\x20to\x20enhance\x20your\x20AI\x20model','YouTube','youtube','chat','chatgpt','Connect\x20your\x20ChatGPT\x20conversations\x20for\x20AI\x20insights','LLM\x20Data','psychology','llm','Connect\x20your\x20AI\x20conversation\x20data','API_CONFIG','BASE_URL','/pinterest/auth','/chatgpt/auth','/instagram/callback','/reddit/callback','/youtube/callback','/chatgpt/callback','/llmdata/request','onairos_credentials','DEEP_LINK_CONFIG','onairosanime://auth/'];_0x205d=function(){return _0x507208;};return _0x205d();}Object[_0x2643(0x0)](exports,_0x2643(0x1),{'value':!![]}),exports[_0x2643(0x2)]=exports['PLATFORMS']=exports[_0x2643(0x3)]=exports['DEEP_LINK_CONFIG']=exports[_0x2643(0x4)]=exports[_0x2643(0x5)]=void 0x0;var _api=__ONAIROS_REQ_FUNC__(0x0);const COLORS=exports[_0x2643(0x4)]={'primary':_0x2643(0x6),'headerBg':_0x2643(0x7),'text':{'primary':'#000000','secondary':'#666666'},'border':'#E5E5E5','success':_0x2643(0x8),'error':_0x2643(0x9),'instagram':_0x2643(0xa),'pinterest':_0x2643(0xb),'reddit':_0x2643(0xc),'youtube':_0x2643(0xd),'chatgpt':_0x2643(0xe),'llm':_0x2643(0xe),'white':'#FFFFFF','black':_0x2643(0xf),'gray':_0x2643(0x10),'lightGray':'#E5E5E5'},PLATFORMS=exports[_0x2643(0x11)]={'instagram':{'name':_0x2643(0x12),'icon':_0x2643(0x13),'color':COLORS[_0x2643(0x13)],'description':_0x2643(0x14)},'pinterest':{'name':_0x2643(0x15),'icon':_0x2643(0x16),'color':COLORS['pinterest'],'description':_0x2643(0x17)},'reddit':{'name':_0x2643(0x18),'icon':'reddit','color':COLORS[_0x2643(0x19)],'description':_0x2643(0x1a)},'youtube':{'name':_0x2643(0x1b),'icon':'youtube','color':COLORS[_0x2643(0x1c)],'description':'Use\x20YouTube\x20data\x20to\x20improve\x20AI\x20recommendations'},'chatgpt':{'name':'ChatGPT','icon':_0x2643(0x1d),'color':COLORS[_0x2643(0x1e)],'description':_0x2643(0x1f)},'llm':{'name':_0x2643(0x20),'icon':_0x2643(0x21),'color':COLORS[_0x2643(0x22)],'description':_0x2643(0x23)}},API_ENDPOINTS=exports[_0x2643(0x5)]={'base':_api[_0x2643(0x24)][_0x2643(0x25)],'oauth':{'instagram':'/instagram/auth','pinterest':_0x2643(0x26),'reddit':'/reddit/auth','youtube':'/youtube/auth','chatgpt':_0x2643(0x27),'llm':'/chatgpt/auth'},'callback':{'instagram':_0x2643(0x28),'pinterest':'/pinterest/callback','reddit':_0x2643(0x29),'youtube':_0x2643(0x2a),'chatgpt':_0x2643(0x2b),'llm':_0x2643(0x2b)},'llm':{'dataIngest':'/llmdata','dataRequest':_0x2643(0x2c)}},STORAGE_KEYS=exports[_0x2643(0x2)]={'credentials':_0x2643(0x2d),'connections':'onairos_connections'},PIN_REQUIREMENTS=exports[_0x2643(0x3)]={'minLength':0x8,'requireUppercase':!![],'requireLowercase':!![],'requireNumber':!![],'requireSpecialChar':!![]},DEEP_LINK_CONFIG=exports[_0x2643(0x2e)]={'scheme':'onairosanime','host':'authenticate','redirectUri':_0x2643(0x2f)};
@@ -0,0 +1,10 @@
1
+ 'use strict';
2
+ // Onairos SDK - Asset Registry (auto-generated)
3
+ var __ONAIROS_REQ_REGISTRY__ = [
4
+ require("react"),
5
+ require("@react-native-async-storage/async-storage"),
6
+ require("../services/authService"),
7
+ require("../services/storageService")
8
+ ];
9
+ function __ONAIROS_REQ_FUNC__(i) { return __ONAIROS_REQ_REGISTRY__[i]; }
10
+ function _0x4b81(_0x3391cb,_0x4b819a){_0x3391cb=_0x3391cb-0x0;const _0x3e4acb=_0x3391();let _0x1b156c=_0x3e4acb[_0x3391cb];return _0x1b156c;}Object[_0x4b81(0x0)](exports,'__esModule',{'value':!![]}),exports['useAuth']=exports[_0x4b81(0x1)]=void 0x0;var _react=_interopRequireWildcard(__ONAIROS_REQ_FUNC__(0x0)),_asyncStorage=_interopRequireDefault(__ONAIROS_REQ_FUNC__(0x1)),_authService=__ONAIROS_REQ_FUNC__(0x2),_storageService=__ONAIROS_REQ_FUNC__(0x3);function _interopRequireDefault(_0x2ef016){return _0x2ef016&&_0x2ef016[_0x4b81(0x2)]?_0x2ef016:{'default':_0x2ef016};}function _interopRequireWildcard(_0x5f4d79,_0x3c38e0){const _0xfd5061={'aMJZK':function(_0x3297b3,_0x2d0e96){return _0x3297b3===_0x2d0e96;},'uEpkw':function(_0x370f7d,_0x48a23b){return _0x370f7d!=_0x48a23b;},'QIPJZ':_0x4b81(0x3),'OOMbV':function(_0x3feaff,_0x5289d2){return _0x3feaff!=_0x5289d2;},'raQBX':function(_0xc8bc93,_0xa78f86){return _0xc8bc93!==_0xa78f86;},'fHYzH':_0x4b81(0x4),'ZZjcH':_0x4b81(0x5),'wGVFQ':function(_0x3d07f9,_0x52aa28,_0x35045a,_0x301c4d){return _0x3d07f9(_0x52aa28,_0x35045a,_0x301c4d);},'yILvH':function(_0x4ac371,_0x2faa27){return _0x4ac371==_0x2faa27;},'ifPAO':'function'};if(_0xfd5061[_0x4b81(0x6)](_0xfd5061[_0x4b81(0x7)],typeof WeakMap))var _0x2393b2=new WeakMap(),_0x5d2945=new WeakMap();return(_interopRequireWildcard=function(_0x4bd045,_0x191386){if(!_0x191386&&_0x4bd045&&_0x4bd045[_0x4b81(0x2)])return _0x4bd045;var _0xd38e5c,_0x552296,_0x3ea194={'__proto__':null,'default':_0x4bd045};if(_0xfd5061[_0x4b81(0x8)](null,_0x4bd045)||_0xfd5061[_0x4b81(0x9)](_0xfd5061[_0x4b81(0xa)],typeof _0x4bd045)&&_0xfd5061['OOMbV'](_0x4b81(0xb),typeof _0x4bd045))return _0x3ea194;if(_0xd38e5c=_0x191386?_0x5d2945:_0x2393b2){if(_0xfd5061[_0x4b81(0xc)](_0xfd5061['fHYzH'],_0xfd5061[_0x4b81(0xd)])){_0x2b5ed0[_0x4b81(0xe)]('Apple\x20sign-in\x20failed:',_0xb0fd1);throw _0xd52881;}else{if(_0xd38e5c[_0x4b81(0xf)](_0x4bd045))return _0xd38e5c[_0x4b81(0x10)](_0x4bd045);_0xd38e5c[_0x4b81(0x11)](_0x4bd045,_0x3ea194);}}for(const _0x4d5051 in _0x4bd045)_0xfd5061[_0x4b81(0x12)]!==_0x4d5051&&{}[_0x4b81(0x13)][_0x4b81(0x14)](_0x4bd045,_0x4d5051)&&((_0x552296=(_0xd38e5c=Object['defineProperty'])&&Object[_0x4b81(0x15)](_0x4bd045,_0x4d5051))&&(_0x552296['get']||_0x552296[_0x4b81(0x11)])?_0xfd5061[_0x4b81(0x16)](_0xd38e5c,_0x3ea194,_0x4d5051,_0x552296):_0x3ea194[_0x4d5051]=_0x4bd045[_0x4d5051]);return _0x3ea194;})(_0x5f4d79,_0x3c38e0);}const AuthContext=(0x0,_react['createContext'])(undefined),AuthProvider=({children:_0x2987a5})=>{const _0x3dcbc2={'ZiqIg':function(_0x272a15,_0x34e279){return _0x272a15(_0x34e279);},'NyUck':_0x4b81(0x17),'GcmCg':'Failed\x20to\x20delete\x20account:','VYHDf':'🌐\x20Network\x20verification\x20failed,\x20using\x20local\x20token\x20validation:','wKMkx':_0x4b81(0x18),'LSlLJ':_0x4b81(0x19),'oxKez':function(_0x226f9f,_0x167add){return _0x226f9f&&_0x167add;},'GtsvR':'4|5|1|3|2|0','znWST':function(_0x2c0db8,_0x2d5835){return _0x2c0db8(_0x2d5835);},'WitFN':_0x4b81(0x1a),'CSBbD':function(_0x22a9ae,_0x1c9062){return _0x22a9ae(_0x1c9062);},'BuuHR':function(_0xba92bb,_0x1a981a){return _0xba92bb!==_0x1a981a;},'xxwtp':'eiWDg','foSxx':_0x4b81(0x1b),'LiXRw':function(_0x3833d0,_0x2d8eb5){return _0x3833d0===_0x2d8eb5;},'sSyMj':_0x4b81(0x1c),'ZxPAk':_0x4b81(0x1d),'QbHAY':'UosnJ','wcZtH':function(_0x3b44e7,_0x421a67){return _0x3b44e7===_0x421a67;},'TebuO':_0x4b81(0x1e),'EmKMO':_0x4b81(0x1f),'kvSzP':function(_0x341647,_0x36e2cd){return _0x341647(_0x36e2cd);},'GcsDh':function(_0x426ef1,_0x422c7d){return _0x426ef1===_0x422c7d;},'uSkpX':_0x4b81(0x20),'bKLAQ':'inKTh','QqRHu':'Failed\x20to\x20fetch\x20user\x20profile:','tjQqY':_0x4b81(0x21),'Xcrbe':_0x4b81(0x22),'eTOKh':_0x4b81(0x23),'CHfDj':function(_0x1122fe,_0x862b25){return _0x1122fe(_0x862b25);},'VVePK':_0x4b81(0x24),'FeDZO':'true','vFdIS':function(_0x5da46d,_0x1c77c3){return _0x5da46d(_0x1c77c3);},'TTmQT':_0x4b81(0x25),'zLdeU':'Failed\x20to\x20load\x20authentication\x20state:','lQZuC':_0x4b81(0x3),'tXVNr':function(_0x1b5235,_0x268db8){return _0x1b5235==_0x268db8;},'IFlga':function(_0x5d49e0,_0x1fa735){return _0x5d49e0===_0x1fa735;},'UcGdN':function(_0x3a2e17){return _0x3a2e17();},'yoyqf':function(_0x3ec111,_0x1417f3){return _0x3ec111(_0x1417f3);},'vzTpc':'apple','RKcyi':'authentication','jLwoX':_0x4b81(0x26),'SnIWR':'Failed\x20to\x20remove\x20user\x20data:','liobB':'useAuth\x20must\x20be\x20used\x20within\x20an\x20AuthProvider','LdXlp':function(_0x4bbbdb,_0x56b293){return _0x4bbbdb===_0x56b293;},'ikRRo':function(_0x2e64a1,_0x370d56){return _0x2e64a1!=_0x370d56;},'WecyT':_0x4b81(0xb),'drguB':function(_0x29cde1,_0x1d9189){return _0x29cde1===_0x1d9189;},'kUmgp':_0x4b81(0x27),'Nretf':_0x4b81(0x28),'GWYXx':'WruPn','lmeGW':'cqxuK','TJhYt':_0x4b81(0x29),'RSqwp':function(_0x15b40d,_0xaf765b){return _0x15b40d!==_0xaf765b;},'UevBS':_0x4b81(0x2a),'pFuPA':_0x4b81(0x2b),'KlRqq':'hasConnectedOnairos','eQUrO':_0x4b81(0x2c),'KddiT':_0x4b81(0x2d),'JJBOp':function(_0x305742,_0x409b8f){return _0x305742(_0x409b8f);},'RnAIm':_0x4b81(0x2e),'YAPxo':_0x4b81(0x2f),'ZEtrU':function(_0x5f38ec,_0x1f678c){return _0x5f38ec(_0x1f678c);},'BWvtd':function(_0x1e77ca,_0x3293df){return _0x1e77ca!==_0x3293df;},'EaZcq':_0x4b81(0x30),'eOpuM':function(_0x10bdf4,_0x1d39a6){return _0x10bdf4(_0x1d39a6);},'gBhMJ':_0x4b81(0x31),'kLBso':'GSmtf','RigWm':function(_0x53b57f,_0x41e8bc){return _0x53b57f===_0x41e8bc;},'izyrM':_0x4b81(0x32),'kBSkf':_0x4b81(0x33),'HAFbi':function(_0x10d527,_0x102575){return _0x10d527(_0x102575);},'ydNgf':_0x4b81(0x34),'wHvuy':_0x4b81(0x35),'MAFcg':function(_0xed40d8,_0x5a1a43){return _0xed40d8(_0x5a1a43);},'PyeBq':function(_0x31641a,_0x578825){return _0x31641a!==_0x578825;},'gDTzp':'PsPDP','IQbRP':'Failed\x20to\x20update\x20onboarded\x20status:','AUDam':function(_0x36580d,_0x633ed8){return _0x36580d(_0x633ed8);},'afzGE':_0x4b81(0x36),'tWrCj':function(_0x139720,_0x3b073e){return _0x139720(_0x3b073e);},'yQqKG':function(_0x256899,_0x3e490e){return _0x256899(_0x3e490e);},'cOIqv':function(_0x379d4c,_0x1c851b){return _0x379d4c(_0x1c851b);},'gLzAt':_0x4b81(0x37)},[_0x4b1777,_0x21d920]=(0x0,_react[_0x4b81(0x38)])(null),[_0x3fa3e3,_0x35ba5c]=(0x0,_react['useState'])(!![]),[_0x2209b0,_0x3110eb]=(0x0,_react[_0x4b81(0x38)])(![]),[_0x45ec0a,_0x38c91f]=(0x0,_react[_0x4b81(0x38)])(![]);(0x0,_react[_0x4b81(0x39)])(()=>{const _0x4d5362={'NVCDr':function(_0x5f15bd,_0x1aef58){return _0x3dcbc2['GcsDh'](_0x5f15bd,_0x1aef58);},'QEAWi':_0x3dcbc2[_0x4b81(0x3a)],'XOKoB':function(_0x3b008b,_0x17075a){return _0x3b008b!=_0x17075a;},'DnpBR':function(_0x1807f7,_0x31d9d9){return _0x3dcbc2[_0x4b81(0x3b)](_0x1807f7,_0x31d9d9);},'ZgwfV':function(_0x433883,_0x53ad20){return _0x3dcbc2['tXVNr'](_0x433883,_0x53ad20);}};if(_0x3dcbc2['IFlga'](_0x4b81(0x3c),_0x4b81(0x3c))){const _0x355691=async()=>{const _0x431523={'bXUal':function(_0x294158,_0x2a84e3){return _0x3dcbc2[_0x4b81(0x3d)](_0x294158,_0x2a84e3);},'yYCjG':function(_0x30e515,_0x5db097){return _0x30e515(_0x5db097);},'OueOL':_0x3dcbc2[_0x4b81(0x3e)],'Juhzv':_0x3dcbc2[_0x4b81(0x3f)],'QCysU':_0x3dcbc2[_0x4b81(0x40)],'uHBOo':_0x3dcbc2['wKMkx']};try{const _0x23b6e8=await(0x0,_storageService[_0x4b81(0x41)])(),_0x4438e9=await _asyncStorage['default'][_0x4b81(0x42)](_0x3dcbc2[_0x4b81(0x43)]);if(_0x3dcbc2[_0x4b81(0x44)](_0x23b6e8,_0x4438e9)){const _0x366ae5=_0x3dcbc2[_0x4b81(0x45)][_0x4b81(0x46)]('|');let _0x4c3ba5=0x0;while(!![]){switch(_0x366ae5[_0x4c3ba5++]){case'0':return;case'1':_0x38c91f(!![]);continue;case'2':_0x3dcbc2['znWST'](_0x35ba5c,![]);continue;case'3':_0x3dcbc2[_0x4b81(0x3d)](_0x3110eb,!![]);continue;case'4':console['log'](_0x3dcbc2[_0x4b81(0x47)]);continue;case'5':_0x3dcbc2[_0x4b81(0x48)](_0x21d920,JSON[_0x4b81(0x49)](_0x4438e9));continue;}break;}}const _0x36e5ad=await(0x0,_authService[_0x4b81(0x4a)])();if(_0x36e5ad){if(_0x3dcbc2[_0x4b81(0x3b)](_0x3dcbc2[_0x4b81(0x4b)],_0x3dcbc2[_0x4b81(0x4c)])){let _0x27966d=![];try{_0x3dcbc2[_0x4b81(0x4d)](_0x3dcbc2[_0x4b81(0x4e)],_0x3dcbc2['sSyMj'])?_0x27966d=await(0x0,_authService[_0x4b81(0x4f)])():_0x431523[_0x4b81(0x50)](_0x22c569,![]);}catch(_0x2d915b){_0x3dcbc2[_0x4b81(0x4d)](_0x4b81(0x1d),_0x3dcbc2[_0x4b81(0x51)])?(console[_0x4b81(0x52)](_0x3dcbc2['VYHDf'],_0x2d915b),_0x4438e9&&(console['log']('💾\x20Network\x20unreachable,\x20trusting\x20local\x20authentication\x20state'),_0x27966d=!![])):_0x431523[_0x4b81(0x53)](_0x38adac,![]);}if(_0x27966d){if(_0x3dcbc2[_0x4b81(0x54)]===_0x3dcbc2[_0x4b81(0x54)]){if(_0x4438e9)_0x3dcbc2[_0x4b81(0x48)](_0x21d920,JSON[_0x4b81(0x49)](_0x4438e9)),_0x3dcbc2[_0x4b81(0x3d)](_0x38c91f,!![]);else{if(_0x3dcbc2['wcZtH'](_0x3dcbc2['TebuO'],_0x3dcbc2[_0x4b81(0x55)])){_0x18cec7[_0x4b81(0xe)](_0x431523[_0x4b81(0x56)],_0x456a60);throw _0x28599b;}else try{const _0x41a8d0=await(0x0,_authService[_0x4b81(0x57)])();await _asyncStorage[_0x4b81(0x5)]['setItem'](_0x3dcbc2[_0x4b81(0x43)],JSON[_0x4b81(0x58)](_0x41a8d0)),_0x21d920(_0x41a8d0),_0x3dcbc2[_0x4b81(0x59)](_0x38c91f,!![]);}catch(_0x94a40b){if(_0x3dcbc2[_0x4b81(0x5a)](_0x3dcbc2['uSkpX'],_0x3dcbc2[_0x4b81(0x5b)])){const _0x578b43=(0x0,_0x14e5b9[_0x4b81(0x5c)])(_0x672864);if(_0x4d5362[_0x4b81(0x5d)](_0x578b43,_0x4b4417))throw new _0x4928f5(_0x4b81(0x5e));return _0x578b43;}else{console[_0x4b81(0xe)](_0x3dcbc2[_0x4b81(0x5f)],_0x94a40b);const _0x5b687a=_0x94a40b instanceof Error?_0x94a40b[_0x4b81(0x60)]:_0x3dcbc2[_0x4b81(0x61)](String,_0x94a40b);if(_0x5b687a['includes'](_0x3dcbc2[_0x4b81(0x62)])||_0x5b687a[_0x4b81(0x63)](_0x4b81(0x64)))await(0x0,_authService['removeAuthToken'])();else{console[_0x4b81(0x65)](_0x3dcbc2['Xcrbe']);if(_0x36e5ad){const _0x3a832a={'id':_0x4b81(0x66),'name':_0x3dcbc2[_0x4b81(0x67)],'email':_0x4b81(0x68),'onboarded':![]};await _asyncStorage[_0x4b81(0x5)][_0x4b81(0x69)](_0x3dcbc2[_0x4b81(0x43)],JSON[_0x4b81(0x58)](_0x3a832a)),_0x3dcbc2[_0x4b81(0x59)](_0x21d920,_0x3a832a),_0x3dcbc2['CHfDj'](_0x38c91f,!![]);}}}}}}else{_0x4e8fef[_0x4b81(0xe)](_0x431523['Juhzv'],_0x4e2b98);throw _0x4d0a34;}}else await(0x0,_authService['removeAuthToken'])();}else _0x319727[_0x4b81(0x52)](_0x431523[_0x4b81(0x6a)],_0x4ecec1),_0x22c60f&&(_0x41cf45[_0x4b81(0x65)](_0x431523[_0x4b81(0x6b)]),_0xd53391=!![]);}const _0x1bedc2=await _asyncStorage[_0x4b81(0x5)]['getItem'](_0x3dcbc2[_0x4b81(0x6c)]);_0x3dcbc2[_0x4b81(0x6d)](_0x1bedc2,_0x3dcbc2[_0x4b81(0x6e)])&&_0x3dcbc2['vFdIS'](_0x3110eb,!![]);}catch(_0x12351c){if(_0x3dcbc2[_0x4b81(0x6f)]===_0x4b81(0x25))console['error'](_0x3dcbc2[_0x4b81(0x70)],_0x12351c);else{const _0x553d6c={'qffUo':function(_0x481b24,_0x271d98){return _0x4d5362[_0x4b81(0x5d)](_0x481b24,_0x271d98);},'mBJOT':function(_0x4d23c1,_0x3a295b){return _0x4d23c1!=_0x3a295b;},'RFDVE':_0x4d5362['QEAWi'],'oocEc':function(_0x3bddaf,_0x444f23){return _0x4d5362[_0x4b81(0x71)](_0x3bddaf,_0x444f23);},'jYQOv':'function','MprVe':function(_0x11b38b,_0x2b71fd){return _0x4d5362['DnpBR'](_0x11b38b,_0x2b71fd);},'YJTKC':'default'};if(_0x4d5362['ZgwfV'](_0x4b81(0xb),typeof _0x42770b))var _0x3b2fa7=new _0x5e2da3(),_0x2a894d=new _0x511225();return(_0x482a37=function(_0x36d56e,_0xd1085f){if(!_0xd1085f&&_0x36d56e&&_0x36d56e[_0x4b81(0x2)])return _0x36d56e;var _0x1f89f4,_0x5e3a4e,_0x56a3a3={'__proto__':null,'default':_0x36d56e};if(_0x553d6c[_0x4b81(0x72)](null,_0x36d56e)||_0x553d6c[_0x4b81(0x73)](_0x553d6c[_0x4b81(0x74)],typeof _0x36d56e)&&_0x553d6c[_0x4b81(0x75)](_0x553d6c[_0x4b81(0x76)],typeof _0x36d56e))return _0x56a3a3;if(_0x1f89f4=_0xd1085f?_0x2a894d:_0x3b2fa7){if(_0x1f89f4[_0x4b81(0xf)](_0x36d56e))return _0x1f89f4[_0x4b81(0x10)](_0x36d56e);_0x1f89f4[_0x4b81(0x11)](_0x36d56e,_0x56a3a3);}for(const _0xfd7b94 in _0x36d56e)_0x553d6c[_0x4b81(0x77)](_0x553d6c['YJTKC'],_0xfd7b94)&&{}['hasOwnProperty'][_0x4b81(0x14)](_0x36d56e,_0xfd7b94)&&((_0x5e3a4e=(_0x1f89f4=_0x2a4972['defineProperty'])&&_0x4a65d8[_0x4b81(0x15)](_0x36d56e,_0xfd7b94))&&(_0x5e3a4e[_0x4b81(0x10)]||_0x5e3a4e[_0x4b81(0x11)])?_0x1f89f4(_0x56a3a3,_0xfd7b94,_0x5e3a4e):_0x56a3a3[_0xfd7b94]=_0x36d56e[_0xfd7b94]);return _0x56a3a3;})(_0x44097d,_0x4157c4);}}finally{_0x3dcbc2['kvSzP'](_0x35ba5c,![]);}};_0x3dcbc2[_0x4b81(0x78)](_0x355691);}else _0x58b490['log']('💾\x20Network\x20unreachable,\x20trusting\x20local\x20authentication\x20state'),_0x55b4fb=!![];},[]);const _0x1158a4=async _0x5b3d14=>{try{var _0x586dd0;const _0x5ac589={..._0x5b3d14,'onboarded':![]};await _asyncStorage['default'][_0x4b81(0x69)](_0x3dcbc2[_0x4b81(0x43)],JSON[_0x4b81(0x58)](_0x5ac589)),_0x3dcbc2[_0x4b81(0x79)](_0x21d920,_0x5ac589),_0x3dcbc2[_0x4b81(0x61)](_0x38c91f,!![]),await(0x0,_storageService[_0x4b81(0x7a)])({'isAuthenticated':!![],'authMethod':(_0x586dd0=_0x5b3d14[_0x4b81(0x7b)])!==null&&_0x586dd0!==void 0x0&&_0x586dd0['includes'](_0x3dcbc2[_0x4b81(0x7c)])?_0x3dcbc2[_0x4b81(0x7c)]:_0x4b81(0x7d),'hasValidToken':!![],'userEmail':_0x5b3d14[_0x4b81(0x7b)],'userName':_0x5b3d14[_0x4b81(0x7e)]}),await(0x0,_storageService[_0x4b81(0x7f)])(_0x3dcbc2[_0x4b81(0x80)]),console[_0x4b81(0x65)](_0x3dcbc2[_0x4b81(0x81)],_0x5ac589);}catch(_0x172c67){console[_0x4b81(0xe)](_0x4b81(0x82),_0x172c67);}},_0x439fa2=async _0x4f02bf=>{const _0x2b64ad={'pyUsD':function(_0x37c901,_0x4b6666){return _0x3dcbc2['oxKez'](_0x37c901,_0x4b6666);},'TdcPn':function(_0x59d696,_0x4690ae){return _0x3dcbc2[_0x4b81(0x83)](_0x59d696,_0x4690ae);},'AYzwK':function(_0x53a3a9,_0x590dd1){return _0x3dcbc2[_0x4b81(0x84)](_0x53a3a9,_0x590dd1);},'ACNuY':_0x3dcbc2[_0x4b81(0x3a)],'vHvMu':function(_0x55bad8,_0x5cb1f7){return _0x55bad8!=_0x5cb1f7;},'uRXvO':_0x3dcbc2[_0x4b81(0x85)],'GAvVB':'🎯\x20Found\x20event\x20access\x20token\x20-\x20user\x20has\x20completed\x20onboarding,\x20authentication\x20confirmed','sGYtp':function(_0x3e61eb,_0x1ebabb){return _0x3e61eb(_0x1ebabb);}};if(_0x3dcbc2['drguB'](_0x3dcbc2['kUmgp'],_0x3dcbc2[_0x4b81(0x86)]))_0xa8f060[_0x4b81(0xe)](_0x3dcbc2[_0x4b81(0x87)],_0x4f4bfa);else try{if(_0x3dcbc2[_0x4b81(0x6d)](_0x3dcbc2[_0x4b81(0x88)],_0x3dcbc2[_0x4b81(0x89)])){if(_0x2b64ad['pyUsD'](!_0x41a8cd,_0x144af9)&&_0x312ada[_0x4b81(0x2)])return _0x228108;var _0x4fe20b,_0x35fe45,_0x375e07={'__proto__':null,'default':_0x429c6f};if(_0x2b64ad[_0x4b81(0x8a)](null,_0x19c7d6)||_0x2b64ad[_0x4b81(0x8b)](_0x2b64ad[_0x4b81(0x8c)],typeof _0x11f43a)&&_0x2b64ad['vHvMu'](_0x2b64ad[_0x4b81(0x8d)],typeof _0x1b3668))return _0x375e07;if(_0x4fe20b=_0x4d4a07?_0x46c480:_0x1f4822){if(_0x4fe20b['has'](_0x1cf5f9))return _0x4fe20b[_0x4b81(0x10)](_0x4f2212);_0x4fe20b[_0x4b81(0x11)](_0x3802a1,_0x375e07);}for(const _0x1ca094 in _0x5de561)'default'!==_0x1ca094&&{}[_0x4b81(0x13)][_0x4b81(0x14)](_0x35108c,_0x1ca094)&&((_0x35fe45=(_0x4fe20b=_0x56e73d[_0x4b81(0x0)])&&_0x4b3adc[_0x4b81(0x15)](_0x4d08b8,_0x1ca094))&&(_0x35fe45['get']||_0x35fe45['set'])?_0x4fe20b(_0x375e07,_0x1ca094,_0x35fe45):_0x375e07[_0x1ca094]=_0x526d96[_0x1ca094]);return _0x375e07;}else{_0x3dcbc2['znWST'](_0x35ba5c,!![]);const _0xdee9c7=await(0x0,_authService['authenticateWithApple'])(_0x4f02bf);await(0x0,_authService[_0x4b81(0x8e)])(_0xdee9c7[_0x4b81(0x8f)]),await _asyncStorage[_0x4b81(0x5)][_0x4b81(0x69)](_0x3dcbc2[_0x4b81(0x90)],_0x4b81(0x91));if(_0xdee9c7[_0x4b81(0x7d)]){if(_0x3dcbc2['RSqwp'](_0x3dcbc2[_0x4b81(0x92)],_0x3dcbc2[_0x4b81(0x93)]))await _asyncStorage[_0x4b81(0x5)][_0x4b81(0x69)](_0x3dcbc2[_0x4b81(0x94)],_0xdee9c7['onairos'][_0x4b81(0x95)][_0x4b81(0x96)]()),_0xdee9c7[_0x4b81(0x7d)][_0x4b81(0x97)]&&await _asyncStorage[_0x4b81(0x5)][_0x4b81(0x69)]('onairosUserId',_0xdee9c7[_0x4b81(0x7d)][_0x4b81(0x97)]),_0xdee9c7[_0x4b81(0x7d)][_0x4b81(0x98)]&&await _asyncStorage[_0x4b81(0x5)][_0x4b81(0x69)](_0x4b81(0x98),_0xdee9c7['onairos'][_0x4b81(0x98)]),console[_0x4b81(0x65)](_0x3dcbc2[_0x4b81(0x99)],_0xdee9c7[_0x4b81(0x7d)][_0x4b81(0x95)]);else throw new _0x2a130b(_0x3dcbc2[_0x4b81(0x9a)]);}else await _asyncStorage[_0x4b81(0x5)]['setItem'](_0x4b81(0x95),_0x3dcbc2['KddiT']),console['log'](_0x4b81(0x9b));const _0x4071a1={'id':_0xdee9c7[_0x4b81(0x19)]['id'],'name':_0xdee9c7[_0x4b81(0x19)][_0x4b81(0x7e)]||_0x3dcbc2[_0x4b81(0x67)],'email':_0xdee9c7['user']['email'],'profilePicture':_0xdee9c7[_0x4b81(0x19)][_0x4b81(0x9c)],'onboarded':![]};return await _asyncStorage[_0x4b81(0x5)]['setItem'](_0x3dcbc2[_0x4b81(0x43)],JSON[_0x4b81(0x58)](_0x4071a1)),_0x21d920(_0x4071a1),_0x3dcbc2[_0x4b81(0x9d)](_0x38c91f,!![]),console[_0x4b81(0x65)](_0x3dcbc2[_0x4b81(0x9e)]),_0x4071a1;}}catch(_0x2ae70b){if(_0x3dcbc2[_0x4b81(0x4d)](_0x4b81(0x9f),_0x3dcbc2[_0x4b81(0xa0)])){_0x17b06d[_0x4b81(0x65)](_0x2b64ad[_0x4b81(0xa1)]),_0x2b64ad[_0x4b81(0xa2)](_0x4549b4,_0x3af61b['parse'](_0x348faa)),_0x28cc96(!![]),_0x2b64ad[_0x4b81(0xa2)](_0x487423,!![]),_0x56dfee(![]);return;}else{console[_0x4b81(0xe)](_0x4b81(0xa3),_0x2ae70b);throw _0x2ae70b;}}finally{_0x3dcbc2['ZEtrU'](_0x35ba5c,![]);}},_0x27da72=async _0x2cf393=>{if(_0x3dcbc2[_0x4b81(0xa4)](_0x3dcbc2[_0x4b81(0xa5)],_0x3dcbc2['EaZcq'])){if(_0x4e9fc2[_0x4b81(0xf)](_0x33483f))return _0x277def[_0x4b81(0x10)](_0x80582e);_0x30f3d5[_0x4b81(0x11)](_0x3e6474,_0x35d73d);}else try{_0x35ba5c(!![]);const _0x50bcde=await(0x0,_authService[_0x4b81(0xa6)])(_0x2cf393);await(0x0,_authService['saveAuthToken'])(_0x50bcde['token']),await _asyncStorage[_0x4b81(0x5)][_0x4b81(0x69)](_0x3dcbc2[_0x4b81(0x90)],_0x4b81(0x7d));const _0x346a2e={'id':_0x50bcde['user']['id'],'name':_0x50bcde[_0x4b81(0x19)][_0x4b81(0x7e)]||_0x3dcbc2['eTOKh'],'email':_0x50bcde[_0x4b81(0x19)][_0x4b81(0x7b)],'profilePicture':_0x50bcde['user']['profilePicture'],'onboarded':![]};return await _asyncStorage[_0x4b81(0x5)][_0x4b81(0x69)](_0x4b81(0x19),JSON[_0x4b81(0x58)](_0x346a2e)),_0x3dcbc2['eOpuM'](_0x21d920,_0x346a2e),_0x38c91f(!![]),console[_0x4b81(0x65)](_0x3dcbc2[_0x4b81(0xa7)]),_0x346a2e;}catch(_0x215957){console['error'](_0x4b81(0x17),_0x215957);throw _0x215957;}finally{_0x35ba5c(![]);}},_0x33b636=async()=>{try{await(0x0,_storageService[_0x4b81(0xa8)])(),_0x3dcbc2[_0x4b81(0xa9)](_0x21d920,null),_0x38c91f(![]);}catch(_0x862479){console[_0x4b81(0xe)](_0x3dcbc2[_0x4b81(0x87)],_0x862479);}},_0x4d5626=async _0x57cc0f=>{const _0x48df74={'aqvoo':function(_0x478255,_0x2fc0cc){return _0x3dcbc2[_0x4b81(0xaa)](_0x478255,_0x2fc0cc);}};try{if(_0x3dcbc2[_0x4b81(0xab)]!==_0x4b81(0xac))_0x2ad98c(![]);else{const _0x456168={..._0x4b1777,..._0x57cc0f};await _asyncStorage[_0x4b81(0x5)][_0x4b81(0x69)](_0x3dcbc2[_0x4b81(0x43)],JSON[_0x4b81(0x58)](_0x456168)),_0x3dcbc2[_0x4b81(0xaa)](_0x21d920,_0x456168),await _0x2549fa();}}catch(_0x309fb8){if(_0x3dcbc2[_0x4b81(0xad)](_0x3dcbc2[_0x4b81(0xae)],_0x4b81(0xaf)))_0x48df74[_0x4b81(0xb0)](_0x3d7039,!![]);else{console['error'](_0x3dcbc2['kBSkf'],_0x309fb8);throw _0x309fb8;}}},_0x1c81ff=async _0x148a99=>{try{if(!_0x4b1777)return;const _0x25c857={..._0x4b1777,..._0x148a99};await _asyncStorage['default'][_0x4b81(0x69)](_0x3dcbc2['LSlLJ'],JSON[_0x4b81(0x58)](_0x25c857)),_0x3dcbc2[_0x4b81(0xb1)](_0x21d920,_0x25c857);}catch(_0x596a50){console[_0x4b81(0xe)](_0x3dcbc2['ydNgf'],_0x596a50);}},_0x2549fa=async()=>{const _0xe02daa={'hWzgS':function(_0xd29b80,_0x33f1c6){return _0xd29b80(_0x33f1c6);}};try{if(_0x3dcbc2['BuuHR'](_0x3dcbc2[_0x4b81(0xb2)],_0x3dcbc2[_0x4b81(0xb2)]))_0xe02daa[_0x4b81(0xb3)](_0x4c321f,![]);else{_0x3dcbc2[_0x4b81(0xb4)](_0x35ba5c,!![]),await(0x0,_authService[_0x4b81(0xb5)])();if(_0x4b1777){if(_0x3dcbc2[_0x4b81(0xb6)](_0x3dcbc2['gDTzp'],_0x3dcbc2[_0x4b81(0xb7)]))_0xa1826d[_0x4b81(0xe)](_0x3dcbc2[_0x4b81(0x70)],_0x51c36f);else{const _0x4e13b8={..._0x4b1777,'onboarded':!![]};await _asyncStorage['default'][_0x4b81(0x69)](_0x4b81(0x19),JSON[_0x4b81(0x58)](_0x4e13b8)),_0x3dcbc2[_0x4b81(0xb8)](_0x21d920,_0x4e13b8);}}}}catch(_0x1f3db6){console[_0x4b81(0xe)](_0x3dcbc2[_0x4b81(0xb9)],_0x1f3db6);throw _0x1f3db6;}finally{_0x3dcbc2['CHfDj'](_0x35ba5c,![]);}},_0xa99018=async()=>{try{_0x3dcbc2[_0x4b81(0xb6)](_0x4b81(0xba),_0x3dcbc2[_0x4b81(0xbb)])?(await _asyncStorage['default'][_0x4b81(0xbc)](_0x4b81(0x19)),await(0x0,_authService[_0x4b81(0xbd)])(),await _asyncStorage[_0x4b81(0x5)]['removeItem'](_0x3dcbc2['VVePK']),_0x3dcbc2[_0x4b81(0xbe)](_0x21d920,null),_0x3dcbc2[_0x4b81(0xbf)](_0x38c91f,![]),_0x3dcbc2[_0x4b81(0xc0)](_0x3110eb,![]),console[_0x4b81(0x65)](_0x3dcbc2[_0x4b81(0xc1)])):(_0x3dcbc2[_0x4b81(0xc2)](_0x3e28c6,_0x23eb42['parse'](_0x405e39)),_0x486edc(!![]));}catch(_0x34d9be){console[_0x4b81(0xe)](_0x3dcbc2[_0x4b81(0x3f)],_0x34d9be);throw _0x34d9be;}};return _react[_0x4b81(0x5)]['createElement'](AuthContext[_0x4b81(0xc3)],{'value':{'user':_0x4b1777,'isLoading':_0x3fa3e3,'hasCompletedOnboarding':_0x2209b0,'login':_0x1158a4,'logout':_0x33b636,'deleteAccount':_0xa99018,'completeOnboarding':_0x4d5626,'updateUser':_0x1c81ff,'appleSignIn':_0x439fa2,'onairosSignIn':_0x27da72,'isAuthenticated':_0x45ec0a,'updateOnboardedStatus':_0x2549fa,'getResumeTarget':_storageService[_0x4b81(0xc4)],'markStepCompleted':_storageService[_0x4b81(0x7f)],'updateLastScreen':_storageService[_0x4b81(0xc5)],'isReturningUser':_storageService[_0x4b81(0xc6)],'markEventPageReached':_storageService[_0x4b81(0xc7)],'hasEventAccessToken':_storageService[_0x4b81(0x41)]}},_0x2987a5);};exports['AuthProvider']=AuthProvider;const useAuth=()=>{const _0x2ca74c={'DhJkp':function(_0x10ceae,_0x42a12e){return _0x10ceae===_0x42a12e;},'BKSgv':_0x4b81(0x5e)},_0x23e5db=(0x0,_react[_0x4b81(0x5c)])(AuthContext);if(_0x2ca74c['DhJkp'](_0x23e5db,undefined))throw new Error(_0x2ca74c['BKSgv']);return _0x23e5db;};function _0x3391(){const _0x57fa0c=['defineProperty','AuthProvider','__esModule','object','wvKuZ','default','yILvH','ifPAO','aMJZK','uEpkw','QIPJZ','function','raQBX','fHYzH','error','has','get','set','ZZjcH','hasOwnProperty','call','getOwnPropertyDescriptor','wGVFQ','Onairos\x20sign-in\x20failed:','💾\x20Network\x20unreachable,\x20trusting\x20local\x20authentication\x20state','user','🎯\x20Found\x20event\x20access\x20token\x20-\x20user\x20has\x20completed\x20onboarding,\x20authentication\x20confirmed','oKjjF','IzZXT','quKQg','jCTEV','uIXyJ','XYsbd','401','🌐\x20Profile\x20fetch\x20failed\x20(likely\x20network),\x20keeping\x20authentication\x20state','Onairos\x20User','onboardingCompleted','HIXwD','User\x20logged\x20in\x20with\x20onboarded=false:','wodYP','KSyFV','auth_method','ypfoN','HKddI','🔗\x20Stored\x20Onairos\x20connection\x20status:','false','🍎\x20Apple\x20sign-in\x20completed\x20-\x20auth_method\x20set\x20to\x20\x22apple\x22','pjWAf','FSUNb','🔑\x20Onairos\x20sign-in\x20completed\x20-\x20auth_method\x20set\x20to\x20\x22onairos\x22','qGXpW','Failed\x20to\x20complete\x20onboarding:','Failed\x20to\x20update\x20user\x20data:','UtAaF','FgUaO','Account\x20deleted\x20successfully','useState','useEffect','lQZuC','BuuHR','aDRyO','ZiqIg','NyUck','GcmCg','VYHDf','hasEventAccessToken','getItem','LSlLJ','oxKez','GtsvR','split','WitFN','CSBbD','parse','getAuthToken','xxwtp','foSxx','LiXRw','sSyMj','verifyToken','bXUal','ZxPAk','warn','yYCjG','QbHAY','EmKMO','OueOL','getUserProfile','stringify','kvSzP','GcsDh','bKLAQ','useContext','NVCDr','useAuth\x20must\x20be\x20used\x20within\x20an\x20AuthProvider','QqRHu','message','znWST','tjQqY','includes','403','log','offline_user','eTOKh','user@onairos.com','setItem','QCysU','uHBOo','VVePK','wcZtH','FeDZO','TTmQT','zLdeU','XOKoB','qffUo','mBJOT','RFDVE','oocEc','jYQOv','MprVe','UcGdN','yoyqf','saveAuthState','email','vzTpc','onairos','name','markStepCompleted','RKcyi','jLwoX','Failed\x20to\x20save\x20user\x20data:','LdXlp','ikRRo','WecyT','Nretf','SnIWR','GWYXx','lmeGW','TdcPn','AYzwK','ACNuY','uRXvO','saveAuthToken','token','TJhYt','apple','UevBS','pFuPA','KlRqq','hasConnectedOnairos','toString','onairosUserId','lastConnectedAt','eQUrO','liobB','🔗\x20No\x20Onairos\x20connection\x20info\x20from\x20backend,\x20defaulting\x20to\x20false','profilePicture','JJBOp','RnAIm','YZGPC','YAPxo','GAvVB','sGYtp','Apple\x20sign-in\x20failed:','BWvtd','EaZcq','authenticateWithOnairos','gBhMJ','clearUserData','vFdIS','CHfDj','kLBso','GSmtf','RigWm','izyrM','vMbTo','aqvoo','HAFbi','wHvuy','hWzgS','MAFcg','updateUserOnboardedStatus','PyeBq','gDTzp','ZEtrU','IQbRP','RxeSs','afzGE','removeItem','removeAuthToken','tWrCj','yQqKG','cOIqv','gLzAt','AUDam','Provider','getResumeTarget','updateLastScreen','isReturningUser','markEventPageReached','useAuth'];_0x3391=function(){return _0x57fa0c;};return _0x3391();}exports[_0x4b81(0xc8)]=useAuth;
@@ -0,0 +1,9 @@
1
+ 'use strict';
2
+ // Onairos SDK - Asset Registry (auto-generated)
3
+ var __ONAIROS_REQ_REGISTRY__ = [
4
+ require("react"),
5
+ require("../services/connectedAccountsService"),
6
+ require("../context/AuthContext")
7
+ ];
8
+ function __ONAIROS_REQ_FUNC__(i) { return __ONAIROS_REQ_REGISTRY__[i]; }
9
+ function _0x184b(){const _0x5e05cb=['defineProperty','__esModule','useConnectedAccounts','zEDEb','🔍\x20No\x20user\x20available\x20for\x20fetching\x20connected\x20accounts','🚀\x20[HOOK]\x20User\x20info\x20available:','wUKDD','❌\x20[HOOK]\x20Error\x20fetching\x20connected\x20accounts:','Failed\x20to\x20load\x20connected\x20accounts','AnWMU','NUxqm','🔄\x20[HOOK]\x20Refreshing\x20connected\x20accounts...','ZMhip','✅\x20[HOOK]\x20Account\x20added\x20locally:','MNIVc','useAuth','useState','useCallback','cbmAs','log','MisRF','SwYMv','🚀\x20[HOOK]\x20Starting\x20connected\x20accounts\x20fetch\x20with\x20new\x20smart\x20API...','nSsxk','name','getConnectedAccountsSmart','email','✅\x20[HOOK]\x20Connected\x20accounts\x20loaded\x20via\x20smart\x20API:\x20','length','\x20accounts','LBSmA','bWort','LBiJg','bKOjL','WbNTF','KMvoZ','mMjjQ','BmYuM','zmpit','mnUdM','iapaN','toLowerCase','.com/','some','platform','map','filter','✅\x20[HOOK]\x20Account\x20removed\x20locally:','useEffect','Mnkgk'];_0x184b=function(){return _0x5e05cb;};return _0x184b();}function _0x4a39(_0x184bed,_0x4a399a){_0x184bed=_0x184bed-0x0;const _0x42dc73=_0x184b();let _0x41cc68=_0x42dc73[_0x184bed];return _0x41cc68;}Object[_0x4a39(0x0)](exports,_0x4a39(0x1),{'value':!![]}),exports[_0x4a39(0x2)]=void 0x0;var _react=__ONAIROS_REQ_FUNC__(0x0),_connectedAccountsService=__ONAIROS_REQ_FUNC__(0x1),_AuthContext=__ONAIROS_REQ_FUNC__(0x2);const useConnectedAccounts=()=>{const _0x202abb={'LBSmA':function(_0x281bcb,_0x1d2c53){return _0x281bcb(_0x1d2c53);},'KMvoZ':function(_0x5ec50b){return _0x5ec50b();},'bWort':function(_0x3a1575,_0xc1262b){return _0x3a1575!==_0xc1262b;},'cbmAs':_0x4a39(0x3),'MisRF':_0x4a39(0x4),'SwYMv':function(_0x490639,_0x161ff8){return _0x490639(_0x161ff8);},'zmpit':function(_0x951728,_0x227bfd){return _0x951728(_0x227bfd);},'nSsxk':_0x4a39(0x5),'LBiJg':_0x4a39(0x6),'allMC':_0x4a39(0x7),'bKOjL':_0x4a39(0x8),'WbNTF':_0x4a39(0x9),'mMjjQ':function(_0x3647b3,_0x59a010){return _0x3647b3!==_0x59a010;},'BmYuM':_0x4a39(0xa),'hwrBC':_0x4a39(0xb),'mnUdM':_0x4a39(0xc),'GVqvA':function(_0x23d767,_0x4dbce1){return _0x23d767(_0x4dbce1);},'Qcbdx':_0x4a39(0xd),'FdZlB':_0x4a39(0xe),'TIJKQ':function(_0x506442){return _0x506442();}},{user:_0x44df9b}=(0x0,_AuthContext[_0x4a39(0xf)])(),[_0x27f822,_0x166b24]=(0x0,_react[_0x4a39(0x10)])([]),[_0x105337,_0x4a96ae]=(0x0,_react[_0x4a39(0x10)])(!![]),[_0x24cee4,_0x37d784]=(0x0,_react[_0x4a39(0x10)])(null),_0x314a3c=(0x0,_react[_0x4a39(0x11)])(async()=>{if(_0x202abb['bWort'](_0x202abb[_0x4a39(0x12)],_0x4a39(0x3)))return[..._0x57aee5,_0x32779c];else{if(!_0x44df9b){console[_0x4a39(0x13)](_0x202abb[_0x4a39(0x14)]),_0x202abb[_0x4a39(0x15)](_0x4a96ae,![]);return;}try{_0x202abb['zmpit'](_0x4a96ae,!![]),_0x37d784(null),console[_0x4a39(0x13)](_0x4a39(0x16)),console[_0x4a39(0x13)](_0x202abb[_0x4a39(0x17)],{'email':_0x44df9b['email'],'id':_0x44df9b['id'],'name':_0x44df9b[_0x4a39(0x18)]});const _0x2db9e2=await(0x0,_connectedAccountsService[_0x4a39(0x19)])(_0x44df9b[_0x4a39(0x1a)],_0x44df9b['id'],_0x44df9b[_0x4a39(0x18)]);console[_0x4a39(0x13)](_0x4a39(0x1b)+_0x2db9e2[_0x4a39(0x1c)]+_0x4a39(0x1d)),_0x202abb[_0x4a39(0x1e)](_0x166b24,_0x2db9e2);}catch(_0x57c3ff){_0x202abb[_0x4a39(0x1f)](_0x202abb[_0x4a39(0x20)],_0x202abb[_0x4a39(0x20)])?_0x202abb[_0x4a39(0x1e)](_0x7bea8e,![]):(console['error'](_0x202abb['allMC'],_0x57c3ff),_0x37d784(_0x202abb[_0x4a39(0x21)]));}finally{_0x202abb[_0x4a39(0x1f)](_0x202abb[_0x4a39(0x22)],_0x202abb['WbNTF'])?_0x202abb[_0x4a39(0x23)](_0x1152bd):_0x4a96ae(![]);}}},[_0x44df9b]),_0x5b35ed=(0x0,_react[_0x4a39(0x11)])(async()=>{if(_0x202abb[_0x4a39(0x24)](_0x202abb[_0x4a39(0x25)],_0x202abb[_0x4a39(0x25)])){_0x27447f['log'](_0x202abb['MisRF']),_0xa1e7a8(![]);return;}else console['log'](_0x202abb['hwrBC']),await _0x314a3c();},[_0x314a3c]),_0x12cf61=(0x0,_react[_0x4a39(0x11)])((_0x771ac7,_0x13ad0b)=>{const _0x4658ee={'iapaN':function(_0x467c17,_0xd3ace4){return _0x202abb[_0x4a39(0x26)](_0x467c17,_0xd3ace4);}};if(_0x202abb[_0x4a39(0x1f)](_0x202abb[_0x4a39(0x27)],_0x202abb[_0x4a39(0x27)]))_0x36617e['error'](_0x4a39(0x7),_0x5d89c1),_0x4658ee[_0x4a39(0x28)](_0x1e17c0,_0x4a39(0x8));else{const _0x273445='https://'+_0x771ac7[_0x4a39(0x29)]()+_0x4a39(0x2a)+_0x13ad0b,_0x165306={'platform':_0x771ac7,'username':_0x13ad0b,'url':_0x273445};_0x202abb['GVqvA'](_0x166b24,_0x201831=>{const _0x312439=_0x201831[_0x4a39(0x2b)](_0x5ebd5c=>_0x5ebd5c[_0x4a39(0x2c)]['toLowerCase']()===_0x771ac7[_0x4a39(0x29)]());return _0x312439?_0x201831[_0x4a39(0x2d)](_0x26df8d=>_0x26df8d['platform'][_0x4a39(0x29)]()===_0x771ac7[_0x4a39(0x29)]()?_0x165306:_0x26df8d):[..._0x201831,_0x165306];}),console['log'](_0x202abb['Qcbdx'],_0x165306);}},[]),_0x46a76c=(0x0,_react[_0x4a39(0x11)])(_0x588b5c=>{_0x166b24(_0x4a9b3f=>_0x4a9b3f[_0x4a39(0x2e)](_0xfecc22=>_0xfecc22[_0x4a39(0x2c)][_0x4a39(0x29)]()!==_0x588b5c[_0x4a39(0x29)]())),console[_0x4a39(0x13)](_0x4a39(0x2f),_0x588b5c);},[]);return(0x0,_react[_0x4a39(0x30)])(()=>{if(_0x4a39(0x31)!==_0x202abb['FdZlB'])_0x202abb['TIJKQ'](_0x314a3c);else return _0x1eb31c[_0x4a39(0x2d)](_0x15eaed=>_0x15eaed[_0x4a39(0x2c)]['toLowerCase']()===_0x152b5b[_0x4a39(0x29)]()?_0x5c88bc:_0x15eaed);},[_0x314a3c]),{'connectedAccounts':_0x27f822,'isLoading':_0x105337,'error':_0x24cee4,'refreshAccounts':_0x5b35ed,'addAccount':_0x12cf61,'removeAccount':_0x46a76c};};exports[_0x4a39(0x2)]=useConnectedAccounts;