@onairos/react-native 3.4.1 → 3.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (574) hide show
  1. package/README.md +423 -374
  2. package/lib/commonjs/api/index.js +9 -145
  3. package/lib/commonjs/assets/animations/loaderani.json +1 -0
  4. package/lib/commonjs/assets/animations/persona-animation.json +1 -0
  5. package/lib/commonjs/assets/fonts/EBGaramond-VariableFont_wght.ttf +0 -0
  6. package/lib/commonjs/assets/fonts/IBMPlexSans-VariableFont_wdth,wght.ttf +0 -0
  7. package/lib/commonjs/assets/icons/Facebookicon.png +0 -0
  8. package/lib/commonjs/assets/icons/Gmail.png +0 -0
  9. package/lib/commonjs/assets/icons/Linkedinicon.png +0 -0
  10. package/lib/commonjs/assets/icons/Redditicon.png +0 -0
  11. package/lib/commonjs/assets/icons/YouTubeicon2.png +0 -0
  12. package/lib/commonjs/assets/icons/YouTubeicon3.png +0 -0
  13. package/lib/commonjs/assets/icons/chatgpt.png +0 -0
  14. package/lib/commonjs/assets/icons/claude.png +0 -0
  15. package/lib/commonjs/assets/icons/gemini.png +0 -0
  16. package/lib/commonjs/assets/icons/grok.png +0 -0
  17. package/lib/commonjs/assets/images/Checkbox.svg +3 -0
  18. package/lib/commonjs/assets/images/EnochE.svg +19 -0
  19. package/lib/commonjs/assets/images/Enochicon1.png +0 -0
  20. package/lib/commonjs/assets/images/Face_ID_logo.png +0 -0
  21. package/lib/commonjs/assets/images/Facebookicon.png +0 -0
  22. package/lib/commonjs/assets/images/Gmail.png +0 -0
  23. package/lib/commonjs/assets/images/Googlelogo.png +0 -0
  24. package/lib/commonjs/assets/images/Linkedinicon.png +0 -0
  25. package/lib/commonjs/assets/images/OnairosNewLogo.png +0 -0
  26. package/lib/commonjs/assets/images/Onairoslogo.png +0 -0
  27. package/lib/commonjs/assets/images/Personalityprofile.svg +3 -0
  28. package/lib/commonjs/assets/images/Personalitytraits.svg +3 -0
  29. package/lib/commonjs/assets/images/Redditicon.png +0 -0
  30. package/lib/commonjs/assets/images/Userpreferences.svg +3 -0
  31. package/lib/commonjs/assets/images/YouTubeicon3.png +0 -0
  32. package/lib/commonjs/assets/images/arrow.svg +20 -0
  33. package/lib/commonjs/assets/images/basicproficon.svg +43 -0
  34. package/lib/commonjs/assets/images/basicprofile.svg +3 -0
  35. package/lib/commonjs/assets/images/chatgpt.png +0 -0
  36. package/lib/commonjs/assets/images/checkmark.svg +4 -0
  37. package/lib/commonjs/assets/images/claude.png +0 -0
  38. package/lib/commonjs/assets/images/contentanalysis.svg +3 -0
  39. package/lib/commonjs/assets/images/contenticon.svg +23 -0
  40. package/lib/commonjs/assets/images/gemini.png +0 -0
  41. package/lib/commonjs/assets/images/grok.png +0 -0
  42. package/lib/commonjs/assets/images/persona1.png +0 -0
  43. package/lib/commonjs/assets/images/persona2.png +0 -0
  44. package/lib/commonjs/assets/images/persona3.png +0 -0
  45. package/lib/commonjs/assets/images/persona4.png +0 -0
  46. package/lib/commonjs/assets/images/persona5.png +0 -0
  47. package/lib/commonjs/assets/images/personalityicon.svg +18 -0
  48. package/lib/commonjs/assets/images/x-close.svg +3 -0
  49. package/lib/commonjs/components/BodyText.js +9 -0
  50. package/lib/commonjs/components/BrandMark.js +10 -0
  51. package/lib/commonjs/components/CodeInput.js +9 -0
  52. package/lib/commonjs/components/EmailInput.js +8 -0
  53. package/lib/commonjs/components/GoogleButton.js +9 -0
  54. package/lib/commonjs/components/HeadingGroup.js +9 -0
  55. package/lib/commonjs/components/LLMDataInputModal.js +14 -0
  56. package/lib/commonjs/components/ModalHeader.js +9 -0
  57. package/lib/commonjs/components/ModalSheet.js +9 -0
  58. package/lib/commonjs/components/Onairos.js +14 -374
  59. package/lib/commonjs/components/OnairosButton.js +13 -309
  60. package/lib/commonjs/components/OnairosSignInButton.js +12 -0
  61. package/lib/commonjs/components/Overlay.js +13 -483
  62. package/lib/commonjs/components/PersonaImage.js +10 -0
  63. package/lib/commonjs/components/PersonaLoadingScreen.js +12 -0
  64. package/lib/commonjs/components/PersonalizationConsentScreen.js +13 -0
  65. package/lib/commonjs/components/PinCreationScreen.js +12 -0
  66. package/lib/commonjs/components/PinInput.js +9 -302
  67. package/lib/commonjs/components/PlatformConnectorsStep.js +23 -0
  68. package/lib/commonjs/components/PlatformList.js +10 -137
  69. package/lib/commonjs/components/PlatformToggle.js +9 -0
  70. package/lib/commonjs/components/PrimaryButton.js +10 -0
  71. package/lib/commonjs/components/SignInMatchAnimation.js +9 -0
  72. package/lib/commonjs/components/SignInStep.js +12 -0
  73. package/lib/commonjs/components/UniversalOnboarding.js +30 -1702
  74. package/lib/commonjs/components/VerificationStep.js +11 -0
  75. package/lib/commonjs/components/WelcomeScreen.js +22 -0
  76. package/lib/commonjs/components/icons/Basicproficon.js +8 -0
  77. package/lib/commonjs/components/icons/Basicprofile.js +8 -0
  78. package/lib/commonjs/components/icons/Checkbox.js +8 -0
  79. package/lib/commonjs/components/icons/Checkmark.js +8 -0
  80. package/lib/commonjs/components/icons/Contentanalysis.js +8 -0
  81. package/lib/commonjs/components/icons/Contenticon.js +8 -0
  82. package/lib/commonjs/components/icons/EnochE.js +8 -0
  83. package/lib/commonjs/components/icons/Personalityicon.js +8 -0
  84. package/lib/commonjs/components/icons/Personalityprofile.js +8 -0
  85. package/lib/commonjs/components/icons/Personalitytraits.js +8 -0
  86. package/lib/commonjs/components/icons/Userpreferences.js +8 -0
  87. package/lib/commonjs/components/icons/index.js +17 -0
  88. package/lib/commonjs/components/onboarding/OAuthWebView.js +18 -827
  89. package/lib/commonjs/components/onboarding/OnboardingHeader.js +10 -74
  90. package/lib/commonjs/components/onboarding/PinInput.js +10 -283
  91. package/lib/commonjs/components/onboarding/PlatformConnector.js +11 -249
  92. package/lib/commonjs/config/api.js +7 -0
  93. package/lib/commonjs/constants/index.js +7 -83
  94. package/lib/commonjs/context/AuthContext.js +10 -0
  95. package/lib/commonjs/hooks/useConnectedAccounts.js +9 -0
  96. package/lib/commonjs/hooks/useConnections.js +8 -159
  97. package/lib/commonjs/hooks/useCredentials.js +10 -177
  98. package/lib/commonjs/hooks/useUserConnections.js +10 -0
  99. package/lib/commonjs/index.js +34 -106
  100. package/lib/commonjs/services/SDK_API_KEY_VALIDATION.md +421 -421
  101. package/lib/commonjs/services/apiClient.js +8 -0
  102. package/lib/commonjs/services/apiKeyService.js +9 -952
  103. package/lib/commonjs/services/authService.js +10 -0
  104. package/lib/commonjs/services/biometricPinService.js +8 -0
  105. package/lib/commonjs/services/chatGPTConversationExtractor.js +8 -0
  106. package/lib/commonjs/services/chatGPTConversationService.js +9 -0
  107. package/lib/commonjs/services/claudeConversationExtractor.js +8 -0
  108. package/lib/commonjs/services/claudeConversationService.js +9 -0
  109. package/lib/commonjs/services/connectedAccountsService.js +10 -0
  110. package/lib/commonjs/services/googleAuthService.js +11 -0
  111. package/lib/commonjs/services/hingeDataExtractor.js +8 -0
  112. package/lib/commonjs/services/hingeDataService.js +9 -0
  113. package/lib/commonjs/services/imageCompressionService.js +7 -0
  114. package/lib/commonjs/services/instagramDataExtractor.js +8 -0
  115. package/lib/commonjs/services/instagramDataService.js +9 -0
  116. package/lib/commonjs/services/jwtStorageService.js +7 -0
  117. package/lib/commonjs/services/linkedinDOMExtractor.js +7 -0
  118. package/lib/commonjs/services/linkedinProfileService.js +9 -0
  119. package/lib/commonjs/services/linkedinScrapingService.js +8 -0
  120. package/lib/commonjs/services/llmDataStorage.js +8 -0
  121. package/lib/commonjs/services/mobileTrainingService.js +8 -0
  122. package/lib/commonjs/services/oauthService.js +11 -390
  123. package/lib/commonjs/services/pinEncryptionService.js +8 -0
  124. package/lib/commonjs/services/pinStorageUtils.js +7 -0
  125. package/lib/commonjs/services/platformAuthService.js +12 -1067
  126. package/lib/commonjs/services/sephoraDataExtractor.js +8 -0
  127. package/lib/commonjs/services/sephoraDataService.js +9 -0
  128. package/lib/commonjs/services/storageService.js +8 -0
  129. package/lib/commonjs/services/telegramDataExtractor.js +8 -0
  130. package/lib/commonjs/services/telegramDataService.js +11 -0
  131. package/lib/commonjs/services/trainingApiHelpers.js +7 -0
  132. package/lib/commonjs/services/userConnectionsService.js +10 -0
  133. package/lib/commonjs/services/youtubeMigrationService.js +10 -0
  134. package/lib/commonjs/theme/index.js +7 -0
  135. package/lib/commonjs/types/ambient.d.js +1 -2
  136. package/lib/commonjs/types/declarations.d.js +1 -2
  137. package/lib/commonjs/types/index.js +1 -6
  138. package/lib/commonjs/types/node-fix.d.js +1 -2
  139. package/lib/commonjs/types/node-override.d.js +1 -2
  140. package/lib/commonjs/types/opacity.d.js +1 -2
  141. package/lib/commonjs/types.js +1 -14
  142. package/lib/commonjs/utils/Portal.js +8 -98
  143. package/lib/commonjs/utils/api.js +9 -129
  144. package/lib/commonjs/utils/assetRegistry.js +33 -0
  145. package/lib/commonjs/utils/auth.js +9 -111
  146. package/lib/commonjs/utils/connectorTests.js +29 -0
  147. package/lib/commonjs/utils/crypto.js +8 -62
  148. package/lib/commonjs/utils/debugHelper.js +1 -64
  149. package/lib/commonjs/utils/encryption.js +7 -76
  150. package/lib/commonjs/utils/eventUtils.js +1 -0
  151. package/lib/commonjs/utils/haptics.js +9 -0
  152. package/lib/commonjs/utils/imagePreloader.js +1 -0
  153. package/lib/commonjs/utils/networkDiagnostics.js +8 -0
  154. package/lib/commonjs/utils/onairosApi.js +9 -350
  155. package/lib/commonjs/utils/programmaticFlow.js +9 -117
  156. package/lib/commonjs/utils/retryHelper.js +1 -220
  157. package/lib/commonjs/utils/secureStorage.js +10 -349
  158. package/lib/commonjs/utils/webviewScripts/chatgpt.js +1 -0
  159. package/lib/commonjs/utils/webviewScripts/claude.js +1 -0
  160. package/lib/commonjs/utils/webviewScripts/hinge.js +1 -0
  161. package/lib/commonjs/utils/webviewScripts/index.js +13 -0
  162. package/lib/commonjs/utils/webviewScripts/instagram.js +1 -0
  163. package/lib/commonjs/utils/webviewScripts/linkedin.js +1 -0
  164. package/lib/commonjs/utils/webviewScripts/sephora.js +1 -0
  165. package/lib/commonjs/utils/webviewScripts/telegram.js +1 -0
  166. package/lib/module/api/index.js +1 -139
  167. package/lib/module/assets/animations/loaderani.json +1 -0
  168. package/lib/module/assets/animations/persona-animation.json +1 -0
  169. package/lib/module/assets/fonts/EBGaramond-VariableFont_wght.ttf +0 -0
  170. package/lib/module/assets/fonts/IBMPlexSans-VariableFont_wdth,wght.ttf +0 -0
  171. package/lib/module/assets/icons/Facebookicon.png +0 -0
  172. package/lib/module/assets/icons/Gmail.png +0 -0
  173. package/lib/module/assets/icons/Linkedinicon.png +0 -0
  174. package/lib/module/assets/icons/Redditicon.png +0 -0
  175. package/lib/module/assets/icons/YouTubeicon2.png +0 -0
  176. package/lib/module/assets/icons/YouTubeicon3.png +0 -0
  177. package/lib/module/assets/icons/chatgpt.png +0 -0
  178. package/lib/module/assets/icons/claude.png +0 -0
  179. package/lib/module/assets/icons/farcaster.png +0 -0
  180. package/lib/module/assets/icons/gemini.png +0 -0
  181. package/lib/module/assets/icons/grok.png +0 -0
  182. package/lib/module/assets/icons/instagram.png +0 -0
  183. package/lib/module/assets/icons/pinterest.png +0 -0
  184. package/lib/module/assets/icons/swerv_logo.png +0 -0
  185. package/lib/module/assets/icons/twitter.jpg +0 -0
  186. package/lib/module/assets/images/Checkbox.svg +3 -0
  187. package/lib/module/assets/images/EnochE.svg +19 -0
  188. package/lib/module/assets/images/Enochicon1.png +0 -0
  189. package/lib/module/assets/images/Face_ID_logo.png +0 -0
  190. package/lib/module/assets/images/Facebookicon.png +0 -0
  191. package/lib/module/assets/images/Gmail.png +0 -0
  192. package/lib/module/assets/images/Googlelogo.png +0 -0
  193. package/lib/module/assets/images/Linkedinicon.png +0 -0
  194. package/lib/module/assets/images/OnairosNewLogo.png +0 -0
  195. package/lib/module/assets/images/Onairoslogo.png +0 -0
  196. package/lib/module/assets/images/Personalityprofile.svg +3 -0
  197. package/lib/module/assets/images/Personalitytraits.svg +3 -0
  198. package/lib/module/assets/images/Redditicon.png +0 -0
  199. package/lib/module/assets/images/Userpreferences.svg +3 -0
  200. package/lib/module/assets/images/YouTubeicon3.png +0 -0
  201. package/lib/module/assets/images/arrow.svg +20 -0
  202. package/lib/module/assets/images/basicproficon.svg +43 -0
  203. package/lib/module/assets/images/basicprofile.svg +3 -0
  204. package/lib/module/assets/images/chatgpt.png +0 -0
  205. package/lib/module/assets/images/checkmark.svg +4 -0
  206. package/lib/module/assets/images/claude.png +0 -0
  207. package/lib/module/assets/images/contentanalysis.svg +3 -0
  208. package/lib/module/assets/images/contenticon.svg +23 -0
  209. package/lib/module/assets/images/gemini.png +0 -0
  210. package/lib/module/assets/images/grok.png +0 -0
  211. package/lib/module/assets/images/persona1.png +0 -0
  212. package/lib/module/assets/images/persona2.png +0 -0
  213. package/lib/module/assets/images/persona3.png +0 -0
  214. package/lib/module/assets/images/persona4.png +0 -0
  215. package/lib/module/assets/images/persona5.png +0 -0
  216. package/lib/module/assets/images/personalityicon.svg +18 -0
  217. package/lib/module/assets/images/x-close.svg +3 -0
  218. package/lib/module/components/BodyText.js +1 -0
  219. package/lib/module/components/BrandMark.js +1 -0
  220. package/lib/module/components/CodeInput.js +1 -0
  221. package/lib/module/components/EmailInput.js +1 -0
  222. package/lib/module/components/GoogleButton.js +1 -0
  223. package/lib/module/components/HeadingGroup.js +1 -0
  224. package/lib/module/components/LLMDataInputModal.js +8 -0
  225. package/lib/module/components/ModalHeader.js +1 -0
  226. package/lib/module/components/ModalSheet.js +1 -0
  227. package/lib/module/components/Onairos.js +1 -367
  228. package/lib/module/components/OnairosButton.js +1 -302
  229. package/lib/module/components/OnairosSignInButton.js +1 -0
  230. package/lib/module/components/Overlay.js +1 -474
  231. package/lib/module/components/PersonaImage.js +1 -0
  232. package/lib/module/components/PersonaLoadingScreen.js +1 -0
  233. package/lib/module/components/PersonalizationConsentScreen.js +1 -0
  234. package/lib/module/components/PinCreationScreen.js +1 -0
  235. package/lib/module/components/PinInput.js +1 -293
  236. package/lib/module/components/PlatformConnectorsStep.js +7 -0
  237. package/lib/module/components/PlatformList.js +1 -129
  238. package/lib/module/components/PlatformToggle.js +1 -0
  239. package/lib/module/components/PrimaryButton.js +1 -0
  240. package/lib/module/components/SignInMatchAnimation.js +1 -0
  241. package/lib/module/components/SignInStep.js +1 -0
  242. package/lib/module/components/UniversalOnboarding.js +1 -1693
  243. package/lib/module/components/VerificationStep.js +1 -0
  244. package/lib/module/components/WelcomeScreen.js +1 -0
  245. package/lib/module/components/icons/Basicproficon.js +1 -0
  246. package/lib/module/components/icons/Basicprofile.js +1 -0
  247. package/lib/module/components/icons/Checkbox.js +1 -0
  248. package/lib/module/components/icons/Checkmark.js +1 -0
  249. package/lib/module/components/icons/Contentanalysis.js +1 -0
  250. package/lib/module/components/icons/Contenticon.js +1 -0
  251. package/lib/module/components/icons/EnochE.js +1 -0
  252. package/lib/module/components/icons/Personalityicon.js +1 -0
  253. package/lib/module/components/icons/Personalityprofile.js +1 -0
  254. package/lib/module/components/icons/Personalitytraits.js +1 -0
  255. package/lib/module/components/icons/Userpreferences.js +1 -0
  256. package/lib/module/components/icons/index.js +1 -0
  257. package/lib/module/components/onboarding/OAuthWebView.js +1 -818
  258. package/lib/module/components/onboarding/OnboardingHeader.js +1 -66
  259. package/lib/module/components/onboarding/PinInput.js +1 -274
  260. package/lib/module/components/onboarding/PlatformConnector.js +1 -240
  261. package/lib/module/config/api.js +1 -0
  262. package/lib/module/constants/index.js +1 -77
  263. package/lib/module/context/AuthContext.js +1 -0
  264. package/lib/module/hooks/useConnectedAccounts.js +1 -0
  265. package/lib/module/hooks/useConnections.js +1 -152
  266. package/lib/module/hooks/useCredentials.js +6 -169
  267. package/lib/module/hooks/useUserConnections.js +1 -0
  268. package/lib/module/index.js +1 -32
  269. package/lib/module/services/SDK_API_KEY_VALIDATION.md +421 -421
  270. package/lib/module/services/apiClient.js +1 -0
  271. package/lib/module/services/apiKeyService.js +1 -925
  272. package/lib/module/services/authService.js +1 -0
  273. package/lib/module/services/biometricPinService.js +1 -0
  274. package/lib/module/services/chatGPTConversationExtractor.js +1 -0
  275. package/lib/module/services/chatGPTConversationService.js +1 -0
  276. package/lib/module/services/claudeConversationExtractor.js +1 -0
  277. package/lib/module/services/claudeConversationService.js +1 -0
  278. package/lib/module/services/connectedAccountsService.js +1 -0
  279. package/lib/module/services/googleAuthService.js +1 -0
  280. package/lib/module/services/hingeDataExtractor.js +1 -0
  281. package/lib/module/services/hingeDataService.js +1 -0
  282. package/lib/module/services/imageCompressionService.js +1 -0
  283. package/lib/module/services/instagramDataExtractor.js +1 -0
  284. package/lib/module/services/instagramDataService.js +1 -0
  285. package/lib/module/services/jwtStorageService.js +1 -0
  286. package/lib/module/services/linkedinDOMExtractor.js +1 -0
  287. package/lib/module/services/linkedinProfileService.js +1 -0
  288. package/lib/module/services/linkedinScrapingService.js +1 -0
  289. package/lib/module/services/llmDataStorage.js +1 -0
  290. package/lib/module/services/mobileTrainingService.js +1 -0
  291. package/lib/module/services/oauthService.js +1 -380
  292. package/lib/module/services/pinEncryptionService.js +7 -0
  293. package/lib/module/services/pinStorageUtils.js +1 -0
  294. package/lib/module/services/platformAuthService.js +1 -1041
  295. package/lib/module/services/sephoraDataExtractor.js +1 -0
  296. package/lib/module/services/sephoraDataService.js +1 -0
  297. package/lib/module/services/storageService.js +1 -0
  298. package/lib/module/services/telegramDataExtractor.js +1 -0
  299. package/lib/module/services/telegramDataService.js +8 -0
  300. package/lib/module/services/trainingApiHelpers.js +1 -0
  301. package/lib/module/services/userConnectionsService.js +1 -0
  302. package/lib/module/services/youtubeMigrationService.js +1 -0
  303. package/lib/module/theme/index.js +1 -0
  304. package/lib/module/types.js +1 -10
  305. package/lib/module/utils/Portal.js +1 -90
  306. package/lib/module/utils/api.js +1 -117
  307. package/lib/module/utils/assetRegistry.js +33 -0
  308. package/lib/module/utils/auth.js +1 -99
  309. package/lib/module/utils/connectorTests.js +28 -0
  310. package/lib/module/utils/crypto.js +1 -54
  311. package/lib/module/utils/debugHelper.js +1 -54
  312. package/lib/module/utils/encryption.js +1 -67
  313. package/lib/module/utils/eventUtils.js +1 -0
  314. package/lib/module/utils/haptics.js +8 -0
  315. package/lib/module/utils/imagePreloader.js +1 -0
  316. package/lib/module/utils/networkDiagnostics.js +1 -0
  317. package/lib/module/utils/onairosApi.js +1 -333
  318. package/lib/module/utils/programmaticFlow.js +1 -111
  319. package/lib/module/utils/retryHelper.js +1 -211
  320. package/lib/module/utils/secureStorage.js +6 -330
  321. package/lib/module/utils/webviewScripts/chatgpt.js +1 -0
  322. package/lib/module/utils/webviewScripts/claude.js +1 -0
  323. package/lib/module/utils/webviewScripts/hinge.js +1 -0
  324. package/lib/module/utils/webviewScripts/index.js +1 -0
  325. package/lib/module/utils/webviewScripts/instagram.js +1 -0
  326. package/lib/module/utils/webviewScripts/linkedin.js +1 -0
  327. package/lib/module/utils/webviewScripts/sephora.js +1 -0
  328. package/lib/module/utils/webviewScripts/telegram.js +1 -0
  329. package/package.json +62 -39
  330. package/lib/commonjs/api/index.js.map +0 -1
  331. package/lib/commonjs/assets/images/email.png +0 -0
  332. package/lib/commonjs/assets/images/linkedin.png +0 -0
  333. package/lib/commonjs/assets/images/reddit.png +0 -0
  334. package/lib/commonjs/assets/images/youtube.png +0 -0
  335. package/lib/commonjs/components/DataRequestModal.js +0 -228
  336. package/lib/commonjs/components/DataRequestModal.js.map +0 -1
  337. package/lib/commonjs/components/DataRequestScreen.js +0 -329
  338. package/lib/commonjs/components/DataRequestScreen.js.map +0 -1
  339. package/lib/commonjs/components/EmailVerificationModal.js +0 -320
  340. package/lib/commonjs/components/EmailVerificationModal.js.map +0 -1
  341. package/lib/commonjs/components/Onairos.js.map +0 -1
  342. package/lib/commonjs/components/OnairosButton.js.map +0 -1
  343. package/lib/commonjs/components/Overlay.js.map +0 -1
  344. package/lib/commonjs/components/PinInput.js.map +0 -1
  345. package/lib/commonjs/components/PlatformList.js.map +0 -1
  346. package/lib/commonjs/components/TrainingModal.js +0 -717
  347. package/lib/commonjs/components/TrainingModal.js.map +0 -1
  348. package/lib/commonjs/components/UniversalOnboarding.js.map +0 -1
  349. package/lib/commonjs/components/UniversalOnboarding.tsx.new +0 -455
  350. package/lib/commonjs/components/onboarding/OAuthWebView.js.map +0 -1
  351. package/lib/commonjs/components/onboarding/OnboardingHeader.js.map +0 -1
  352. package/lib/commonjs/components/onboarding/PinInput.js.map +0 -1
  353. package/lib/commonjs/components/onboarding/PlatformConnector.js.map +0 -1
  354. package/lib/commonjs/components/screens/ConnectorScreen.js +0 -146
  355. package/lib/commonjs/components/screens/ConnectorScreen.js.map +0 -1
  356. package/lib/commonjs/components/screens/LoadingScreen.js +0 -91
  357. package/lib/commonjs/components/screens/LoadingScreen.js.map +0 -1
  358. package/lib/commonjs/components/screens/PinCreationScreen.js +0 -61
  359. package/lib/commonjs/components/screens/PinCreationScreen.js.map +0 -1
  360. package/lib/commonjs/constants/index.js.map +0 -1
  361. package/lib/commonjs/hooks/useConnections.js.map +0 -1
  362. package/lib/commonjs/hooks/useCredentials.js.map +0 -1
  363. package/lib/commonjs/index.js.map +0 -1
  364. package/lib/commonjs/services/apiKeyService.js.map +0 -1
  365. package/lib/commonjs/services/oauthService.js.map +0 -1
  366. package/lib/commonjs/services/platformAuthService.js.map +0 -1
  367. package/lib/commonjs/types/ambient.d.js.map +0 -1
  368. package/lib/commonjs/types/declarations.d.js.map +0 -1
  369. package/lib/commonjs/types/index.d.js.map +0 -1
  370. package/lib/commonjs/types/index.js.map +0 -1
  371. package/lib/commonjs/types/node-fix.d.js.map +0 -1
  372. package/lib/commonjs/types/node-override.d.js.map +0 -1
  373. package/lib/commonjs/types/opacity.d.js.map +0 -1
  374. package/lib/commonjs/types/types.d.js.map +0 -1
  375. package/lib/commonjs/types.js.map +0 -1
  376. package/lib/commonjs/utils/Portal.js.map +0 -1
  377. package/lib/commonjs/utils/api.js.map +0 -1
  378. package/lib/commonjs/utils/auth.js.map +0 -1
  379. package/lib/commonjs/utils/crypto.js.map +0 -1
  380. package/lib/commonjs/utils/debugHelper.js.map +0 -1
  381. package/lib/commonjs/utils/encryption.js.map +0 -1
  382. package/lib/commonjs/utils/onairosApi.js.map +0 -1
  383. package/lib/commonjs/utils/programmaticFlow.js.map +0 -1
  384. package/lib/commonjs/utils/retryHelper.js.map +0 -1
  385. package/lib/commonjs/utils/secureStorage.js.map +0 -1
  386. package/lib/module/api/index.js.map +0 -1
  387. package/lib/module/assets/images/email.png +0 -0
  388. package/lib/module/assets/images/linkedin.png +0 -0
  389. package/lib/module/assets/images/reddit.png +0 -0
  390. package/lib/module/assets/images/youtube.png +0 -0
  391. package/lib/module/components/DataRequestModal.js +0 -220
  392. package/lib/module/components/DataRequestModal.js.map +0 -1
  393. package/lib/module/components/DataRequestScreen.js +0 -321
  394. package/lib/module/components/DataRequestScreen.js.map +0 -1
  395. package/lib/module/components/EmailVerificationModal.js +0 -311
  396. package/lib/module/components/EmailVerificationModal.js.map +0 -1
  397. package/lib/module/components/Onairos.js.map +0 -1
  398. package/lib/module/components/OnairosButton.js.map +0 -1
  399. package/lib/module/components/Overlay.js.map +0 -1
  400. package/lib/module/components/PinInput.js.map +0 -1
  401. package/lib/module/components/PlatformList.js.map +0 -1
  402. package/lib/module/components/TrainingModal.js +0 -708
  403. package/lib/module/components/TrainingModal.js.map +0 -1
  404. package/lib/module/components/UniversalOnboarding.js.map +0 -1
  405. package/lib/module/components/UniversalOnboarding.tsx.new +0 -455
  406. package/lib/module/components/onboarding/OAuthWebView.js.map +0 -1
  407. package/lib/module/components/onboarding/OnboardingHeader.js.map +0 -1
  408. package/lib/module/components/onboarding/PinInput.js.map +0 -1
  409. package/lib/module/components/onboarding/PlatformConnector.js.map +0 -1
  410. package/lib/module/components/screens/ConnectorScreen.js +0 -138
  411. package/lib/module/components/screens/ConnectorScreen.js.map +0 -1
  412. package/lib/module/components/screens/LoadingScreen.js +0 -83
  413. package/lib/module/components/screens/LoadingScreen.js.map +0 -1
  414. package/lib/module/components/screens/PinCreationScreen.js +0 -53
  415. package/lib/module/components/screens/PinCreationScreen.js.map +0 -1
  416. package/lib/module/constants/index.js.map +0 -1
  417. package/lib/module/hooks/useConnections.js.map +0 -1
  418. package/lib/module/hooks/useCredentials.js.map +0 -1
  419. package/lib/module/index.js.map +0 -1
  420. package/lib/module/services/apiKeyService.js.map +0 -1
  421. package/lib/module/services/oauthService.js.map +0 -1
  422. package/lib/module/services/platformAuthService.js.map +0 -1
  423. package/lib/module/types/ambient.d.js.map +0 -1
  424. package/lib/module/types/declarations.d.js.map +0 -1
  425. package/lib/module/types/index.d.js.map +0 -1
  426. package/lib/module/types/index.js.map +0 -1
  427. package/lib/module/types/node-fix.d.js.map +0 -1
  428. package/lib/module/types/node-override.d.js.map +0 -1
  429. package/lib/module/types/opacity.d.js.map +0 -1
  430. package/lib/module/types/types.d.js.map +0 -1
  431. package/lib/module/types.js.map +0 -1
  432. package/lib/module/utils/Portal.js.map +0 -1
  433. package/lib/module/utils/api.js.map +0 -1
  434. package/lib/module/utils/auth.js.map +0 -1
  435. package/lib/module/utils/crypto.js.map +0 -1
  436. package/lib/module/utils/debugHelper.js.map +0 -1
  437. package/lib/module/utils/encryption.js.map +0 -1
  438. package/lib/module/utils/onairosApi.js.map +0 -1
  439. package/lib/module/utils/programmaticFlow.js.map +0 -1
  440. package/lib/module/utils/retryHelper.js.map +0 -1
  441. package/lib/module/utils/secureStorage.js.map +0 -1
  442. package/lib/typescript/api/index.d.ts +0 -8
  443. package/lib/typescript/api/index.d.ts.map +0 -1
  444. package/lib/typescript/components/DataRequestModal.d.ts +0 -11
  445. package/lib/typescript/components/DataRequestModal.d.ts.map +0 -1
  446. package/lib/typescript/components/DataRequestScreen.d.ts +0 -11
  447. package/lib/typescript/components/DataRequestScreen.d.ts.map +0 -1
  448. package/lib/typescript/components/EmailVerificationModal.d.ts +0 -11
  449. package/lib/typescript/components/EmailVerificationModal.d.ts.map +0 -1
  450. package/lib/typescript/components/Onairos.d.ts +0 -4
  451. package/lib/typescript/components/Onairos.d.ts.map +0 -1
  452. package/lib/typescript/components/OnairosButton.d.ts +0 -12
  453. package/lib/typescript/components/OnairosButton.d.ts.map +0 -1
  454. package/lib/typescript/components/Overlay.d.ts +0 -4
  455. package/lib/typescript/components/Overlay.d.ts.map +0 -1
  456. package/lib/typescript/components/PinInput.d.ts +0 -4
  457. package/lib/typescript/components/PinInput.d.ts.map +0 -1
  458. package/lib/typescript/components/PlatformList.d.ts +0 -4
  459. package/lib/typescript/components/PlatformList.d.ts.map +0 -1
  460. package/lib/typescript/components/TrainingModal.d.ts +0 -4
  461. package/lib/typescript/components/TrainingModal.d.ts.map +0 -1
  462. package/lib/typescript/components/UniversalOnboarding.d.ts +0 -4
  463. package/lib/typescript/components/UniversalOnboarding.d.ts.map +0 -1
  464. package/lib/typescript/components/onboarding/OAuthWebView.d.ts +0 -10
  465. package/lib/typescript/components/onboarding/OAuthWebView.d.ts.map +0 -1
  466. package/lib/typescript/components/onboarding/OnboardingHeader.d.ts +0 -11
  467. package/lib/typescript/components/onboarding/OnboardingHeader.d.ts.map +0 -1
  468. package/lib/typescript/components/onboarding/PinInput.d.ts +0 -4
  469. package/lib/typescript/components/onboarding/PinInput.d.ts.map +0 -1
  470. package/lib/typescript/components/onboarding/PlatformConnector.d.ts +0 -13
  471. package/lib/typescript/components/onboarding/PlatformConnector.d.ts.map +0 -1
  472. package/lib/typescript/components/screens/ConnectorScreen.d.ts +0 -9
  473. package/lib/typescript/components/screens/ConnectorScreen.d.ts.map +0 -1
  474. package/lib/typescript/components/screens/LoadingScreen.d.ts +0 -9
  475. package/lib/typescript/components/screens/LoadingScreen.d.ts.map +0 -1
  476. package/lib/typescript/components/screens/PinCreationScreen.d.ts +0 -10
  477. package/lib/typescript/components/screens/PinCreationScreen.d.ts.map +0 -1
  478. package/lib/typescript/constants/index.d.ts +0 -53
  479. package/lib/typescript/constants/index.d.ts.map +0 -1
  480. package/lib/typescript/hooks/useConnections.d.ts +0 -9
  481. package/lib/typescript/hooks/useConnections.d.ts.map +0 -1
  482. package/lib/typescript/hooks/useCredentials.d.ts +0 -9
  483. package/lib/typescript/hooks/useCredentials.d.ts.map +0 -1
  484. package/lib/typescript/index.d.ts +0 -18
  485. package/lib/typescript/index.d.ts.map +0 -1
  486. package/lib/typescript/services/apiKeyService.d.ts +0 -132
  487. package/lib/typescript/services/apiKeyService.d.ts.map +0 -1
  488. package/lib/typescript/services/oauthService.d.ts +0 -50
  489. package/lib/typescript/services/oauthService.d.ts.map +0 -1
  490. package/lib/typescript/services/platformAuthService.d.ts +0 -144
  491. package/lib/typescript/services/platformAuthService.d.ts.map +0 -1
  492. package/lib/typescript/types/index.d.ts +0 -231
  493. package/lib/typescript/types/index.d.ts.map +0 -1
  494. package/lib/typescript/types.d.ts +0 -270
  495. package/lib/typescript/types.d.ts.map +0 -1
  496. package/lib/typescript/utils/Portal.d.ts +0 -14
  497. package/lib/typescript/utils/Portal.d.ts.map +0 -1
  498. package/lib/typescript/utils/api.d.ts +0 -6
  499. package/lib/typescript/utils/api.d.ts.map +0 -1
  500. package/lib/typescript/utils/auth.d.ts +0 -6
  501. package/lib/typescript/utils/auth.d.ts.map +0 -1
  502. package/lib/typescript/utils/crypto.d.ts +0 -4
  503. package/lib/typescript/utils/crypto.d.ts.map +0 -1
  504. package/lib/typescript/utils/debugHelper.d.ts +0 -29
  505. package/lib/typescript/utils/debugHelper.d.ts.map +0 -1
  506. package/lib/typescript/utils/encryption.d.ts +0 -19
  507. package/lib/typescript/utils/encryption.d.ts.map +0 -1
  508. package/lib/typescript/utils/onairosApi.d.ts +0 -87
  509. package/lib/typescript/utils/onairosApi.d.ts.map +0 -1
  510. package/lib/typescript/utils/programmaticFlow.d.ts +0 -23
  511. package/lib/typescript/utils/programmaticFlow.d.ts.map +0 -1
  512. package/lib/typescript/utils/retryHelper.d.ts +0 -69
  513. package/lib/typescript/utils/retryHelper.d.ts.map +0 -1
  514. package/lib/typescript/utils/secureStorage.d.ts +0 -94
  515. package/lib/typescript/utils/secureStorage.d.ts.map +0 -1
  516. package/src/api/index.ts +0 -111
  517. package/src/assets/images/email.png +0 -0
  518. package/src/assets/images/linkedin.png +0 -0
  519. package/src/assets/images/onairos_logo.png +0 -0
  520. package/src/assets/images/reddit.png +0 -0
  521. package/src/assets/images/youtube.png +0 -0
  522. package/src/components/DataRequestModal.tsx +0 -227
  523. package/src/components/DataRequestScreen.tsx +0 -356
  524. package/src/components/EmailVerificationModal.tsx +0 -364
  525. package/src/components/Onairos.tsx +0 -425
  526. package/src/components/OnairosButton.tsx +0 -359
  527. package/src/components/Overlay.tsx +0 -506
  528. package/src/components/PinInput.tsx +0 -343
  529. package/src/components/PlatformList.tsx +0 -145
  530. package/src/components/TrainingModal.tsx +0 -737
  531. package/src/components/UniversalOnboarding.tsx +0 -1839
  532. package/src/components/UniversalOnboarding.tsx.new +0 -455
  533. package/src/components/onboarding/OAuthWebView.tsx +0 -838
  534. package/src/components/onboarding/OnboardingHeader.tsx +0 -70
  535. package/src/components/onboarding/PinInput.tsx +0 -356
  536. package/src/components/onboarding/PlatformConnector.tsx +0 -302
  537. package/src/components/screens/ConnectorScreen.tsx +0 -153
  538. package/src/components/screens/LoadingScreen.tsx +0 -100
  539. package/src/components/screens/PinCreationScreen.tsx +0 -67
  540. package/src/constants/index.ts +0 -83
  541. package/src/hooks/useConnections.ts +0 -163
  542. package/src/hooks/useCredentials.ts +0 -175
  543. package/src/index.js +0 -14
  544. package/src/index.ts +0 -50
  545. package/src/services/SDK_API_KEY_VALIDATION.md +0 -421
  546. package/src/services/apiKeyService.ts +0 -984
  547. package/src/services/oauthService.ts +0 -412
  548. package/src/services/platformAuthService.ts +0 -1113
  549. package/src/types/ambient.d.ts +0 -29
  550. package/src/types/declarations.d.ts +0 -26
  551. package/src/types/index.d.ts +0 -274
  552. package/src/types/index.ts +0 -244
  553. package/src/types/node-fix.d.ts +0 -19
  554. package/src/types/node-override.d.ts +0 -24
  555. package/src/types/opacity.d.ts +0 -16
  556. package/src/types/types.d.ts +0 -18
  557. package/src/types.ts +0 -298
  558. package/src/utils/Portal.tsx +0 -83
  559. package/src/utils/api.js +0 -112
  560. package/src/utils/auth.js +0 -104
  561. package/src/utils/crypto.js +0 -60
  562. package/src/utils/debugHelper.ts +0 -53
  563. package/src/utils/encryption.ts +0 -69
  564. package/src/utils/onairosApi.ts +0 -391
  565. package/src/utils/programmaticFlow.ts +0 -113
  566. package/src/utils/retryHelper.ts +0 -275
  567. package/src/utils/secureStorage.ts +0 -361
  568. package/types/index.d.ts +0 -218
  569. package/types/node-env.d.ts +0 -15
  570. /package/{src/assets/images → lib/commonjs/assets/icons}/farcaster.png +0 -0
  571. /package/{src/assets/images → lib/commonjs/assets/icons}/instagram.png +0 -0
  572. /package/{src/assets/images → lib/commonjs/assets/icons}/pinterest.png +0 -0
  573. /package/{src/assets/images → lib/commonjs/assets/icons}/swerv_logo.png +0 -0
  574. /package/{src/assets/images → lib/commonjs/assets/icons}/twitter.jpg +0 -0
@@ -1,309 +1,13 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = exports.OnairosButton = void 0;
7
- var _react = _interopRequireWildcard(require("react"));
8
- var _reactNative = require("react-native");
9
- var _UniversalOnboarding = require("./UniversalOnboarding");
10
- var _Overlay = require("./Overlay");
11
- var _secureStorage = require("../utils/secureStorage");
12
- var _api = require("../api");
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
- /**
15
- * OnairosButton Component - A sign-in button similar to Google/Apple sign-in
16
- */
17
- const OnairosButton = exports.OnairosButton = /*#__PURE__*/(0, _react.forwardRef)(({
18
- AppName,
19
- appIcon,
20
- requestData,
21
- returnLink,
22
- prefillUrl,
23
- buttonType = 'normal',
24
- buttonWidth = 180,
25
- buttonHeight = 48,
26
- hasStroke = false,
27
- enabled = true,
28
- buttonForm = 'default',
29
- auto = false,
30
- onRejection,
31
- onResolved,
32
- preCheck,
33
- color,
34
- swerv = false,
35
- debug = false,
36
- preferredPlatform,
37
- testMode = false,
38
- darkMode = false
39
- }, ref) => {
40
- const [showOnboarding, setShowOnboarding] = (0, _react.useState)(false);
41
- const [showOverlay, setShowOverlay] = (0, _react.useState)(false);
42
- const [storedCredentials, setStoredCredentials] = (0, _react.useState)(null);
43
- const [isLoading, setIsLoading] = (0, _react.useState)(false);
44
- const [isPressed, setIsPressed] = (0, _react.useState)(false);
45
-
46
- // Expose methods via ref
47
- (0, _react.useImperativeHandle)(ref, () => ({
48
- trigger: async () => {
49
- await handlePress();
50
- },
51
- reset: async () => {
52
- await (0, _secureStorage.deleteCredentials)();
53
- }
54
- }));
55
-
56
- // Compute button text based on buttonForm
57
- const getButtonText = () => {
58
- if (buttonForm === 'connect' || buttonForm === 'signup') {
59
- return 'Connect with Onairos';
60
- } else {
61
- return 'Sign in with Onairos';
62
- }
63
- };
64
-
65
- // Calculate background color based on props and state
66
- const getBackgroundColor = () => {
67
- if (!enabled) {
68
- return darkMode ? '#3A3A3A' : '#e0e0e0';
69
- }
70
- if (isPressed) {
71
- return color ? typeof color === 'string' ? `${color}80` : color : darkMode ? '#32323280' : '#f5f5f580';
72
- }
73
- return color || (darkMode ? '#2A2A2A' : '#ffffff');
74
- };
75
-
76
- // Calculate text color based on background luminance
77
- const getTextColor = () => {
78
- if (!enabled) {
79
- return darkMode ? '#777777' : '#AAAAAA';
80
- }
81
- if (darkMode) {
82
- return '#FFFFFF';
83
- }
84
- const bgColor = getBackgroundColor();
85
- // Simple luminance check
86
- return bgColor === '#ffffff' || bgColor === '#f5f5f580' || bgColor.includes('#f') ? '#000000' : '#FFFFFF';
87
- };
88
- const handlePress = async () => {
89
- if (!enabled || isLoading) return;
90
- setIsLoading(true);
91
- try {
92
- // If auto is enabled, make API call automatically and return result
93
- if (auto) {
94
- try {
95
- // Check if credentials exist
96
- const hasStoredCreds = await (0, _secureStorage.hasCredentials)();
97
- if (hasStoredCreds) {
98
- const credentials = await (0, _secureStorage.getCredentials)();
99
- if (!credentials || !credentials.username) {
100
- throw new Error('Invalid credentials');
101
- }
102
-
103
- // Call the API directly and return result
104
- const result = await fetch(`https://api2.onairos.uk/api/inference`, {
105
- method: 'POST',
106
- headers: {
107
- 'Content-Type': 'application/json',
108
- 'Authorization': `Bearer ${credentials.userPin || ''}`
109
- },
110
- body: JSON.stringify({
111
- username: credentials.username,
112
- modelKey: credentials.userPin || '',
113
- requestData: requestData || {},
114
- appName: AppName
115
- })
116
- }).then(res => res.json());
117
- if (result && result.success) {
118
- if (onResolved) {
119
- onResolved(result.apiUrl || 'https://api2.onairos.uk', result.token || '', result.data || {});
120
- }
121
- setIsLoading(false);
122
- return;
123
- } else {
124
- throw new Error((result === null || result === void 0 ? void 0 : result.error) || 'API call failed');
125
- }
126
- } else {
127
- // No credentials, proceed with normal flow
128
- console.log('No credentials found, proceeding with normal flow');
129
- }
130
- } catch (automaticError) {
131
- console.error('Automatic API call error:', automaticError);
132
- // Fall back to normal flow on error
133
- }
134
- }
135
- if (preCheck) {
136
- const shouldProceed = await preCheck();
137
- if (!shouldProceed) {
138
- onRejection === null || onRejection === void 0 || onRejection('Precheck validation failed');
139
- setIsLoading(false);
140
- return;
141
- }
142
- }
143
-
144
- // Check if credentials exist
145
- const hasStoredCreds = await (0, _secureStorage.hasCredentials)();
146
- if (hasStoredCreds) {
147
- // If credentials exist, fetch them and verify
148
- const credentials = await (0, _secureStorage.getCredentials)();
149
- if (!credentials || !credentials.username) {
150
- // Invalid credentials, clear and start fresh
151
- await (0, _secureStorage.deleteCredentials)();
152
- setShowOnboarding(true);
153
- setIsLoading(false);
154
- return;
155
- }
156
- try {
157
- // Validate credentials with server
158
- const isValid = await _api.onairosApi.validateCredentials(credentials.username);
159
- if (!isValid) {
160
- // Clear invalid credentials
161
- await (0, _secureStorage.deleteCredentials)();
162
- setShowOnboarding(true);
163
- setIsLoading(false);
164
- return;
165
- }
166
-
167
- // Store and display overlay with valid credentials
168
- setStoredCredentials(credentials);
169
- setShowOverlay(true);
170
- } catch (validationError) {
171
- console.warn('Validation error, proceeding to onboarding:', validationError);
172
- setShowOnboarding(true);
173
- }
174
- } else {
175
- // If no credentials, show onboarding
176
- setShowOnboarding(true);
177
- }
178
- } catch (error) {
179
- console.error('Error during button press flow:', error);
180
- // Only call onRejection for actual errors, not when user cancels
181
- // The onboarding component will handle user cancellation separately
182
- setShowOnboarding(true);
183
- } finally {
184
- setIsLoading(false);
185
- }
186
- };
187
- const handleOnboardingComplete = (0, _react.useCallback)((apiUrl, token, data) => {
188
- setShowOnboarding(false);
189
- if (onResolved) {
190
- onResolved(apiUrl, token, data);
191
- }
192
- }, [onResolved]);
193
- const handleOverlayResolved = (0, _react.useCallback)((apiUrl, token, data) => {
194
- setShowOverlay(false);
195
- if (onResolved) {
196
- onResolved(apiUrl, token, data);
197
- }
198
- }, [onResolved]);
199
-
200
- // Calculate button styles based on props
201
- const buttonStyle = [styles.button, buttonType === 'pill' && styles.pillButton, hasStroke && styles.strokedButton, {
202
- width: buttonWidth,
203
- height: buttonHeight,
204
- backgroundColor: getBackgroundColor(),
205
- borderColor: darkMode ? '#555555' : '#000000'
206
- }, swerv && styles.swervButton, !enabled && styles.disabledButton].filter(Boolean);
207
-
208
- // Calculate button text color
209
- const buttonTextColor = getTextColor();
210
-
211
- // Render components
212
- return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
213
- style: buttonStyle,
214
- onPress: handlePress,
215
- disabled: !enabled || isLoading,
216
- accessibilityLabel: `Sign in with Onairos`,
217
- onPressIn: () => setIsPressed(true),
218
- onPressOut: () => setIsPressed(false)
219
- }, isLoading ? /*#__PURE__*/_react.default.createElement(_reactNative.ActivityIndicator, {
220
- size: "small",
221
- color: buttonTextColor
222
- }) : /*#__PURE__*/_react.default.createElement(_reactNative.View, {
223
- style: styles.buttonContent
224
- }, /*#__PURE__*/_react.default.createElement(_reactNative.Image, {
225
- source: require('../assets/images/onairos_logo.png'),
226
- style: styles.logo,
227
- resizeMode: "contain"
228
- }), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
229
- style: [styles.buttonText, {
230
- color: buttonTextColor
231
- }]
232
- }, getButtonText()))), showOnboarding && /*#__PURE__*/_react.default.createElement(_UniversalOnboarding.UniversalOnboarding, {
233
- visible: showOnboarding,
234
- onClose: () => {
235
- setShowOnboarding(false);
236
- onRejection === null || onRejection === void 0 || onRejection('User closed onboarding');
237
- },
238
- AppName: AppName,
239
- appIcon: appIcon,
240
- requestData: requestData,
241
- returnLink: returnLink || '',
242
- onComplete: handleOnboardingComplete,
243
- debug: debug,
244
- testMode: testMode,
245
- preferredPlatform: preferredPlatform
246
- }), showOverlay && storedCredentials && /*#__PURE__*/_react.default.createElement(_Overlay.Overlay, {
247
- data: requestData || {},
248
- username: storedCredentials.username,
249
- modelKey: storedCredentials.userPin || '',
250
- onResolved: handleOverlayResolved,
251
- appName: AppName,
252
- darkMode: darkMode
253
- }));
254
- });
255
- const styles = _reactNative.StyleSheet.create({
256
- button: {
257
- flexDirection: 'row',
258
- alignItems: 'center',
259
- justifyContent: 'center',
260
- paddingVertical: 12,
261
- paddingHorizontal: 16,
262
- borderRadius: 8,
263
- shadowColor: '#000',
264
- shadowOffset: {
265
- width: 0,
266
- height: 2
267
- },
268
- shadowOpacity: 0.1,
269
- shadowRadius: 4,
270
- elevation: 2
271
- },
272
- buttonContent: {
273
- flexDirection: 'row',
274
- alignItems: 'center',
275
- justifyContent: 'center'
276
- },
277
- logo: {
278
- width: 24,
279
- height: 24,
280
- marginRight: 8
281
- },
282
- pillButton: {
283
- borderRadius: 24
284
- },
285
- strokedButton: {
286
- backgroundColor: 'transparent',
287
- borderWidth: 1
288
- },
289
- swervButton: {
290
- transform: [{
291
- rotate: '0deg'
292
- }]
293
- },
294
- disabledButton: {
295
- opacity: 0.6
296
- },
297
- buttonText: {
298
- fontSize: 16,
299
- fontWeight: '600',
300
- textAlign: 'center'
301
- }
302
- });
303
-
304
- // Add displayName for better debugging
305
- OnairosButton.displayName = 'OnairosButton';
306
-
307
- // Ensure the component is properly exported
308
- var _default = exports.default = OnairosButton;
309
- //# sourceMappingURL=OnairosButton.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-linear-gradient"),
7
+ require("./UniversalOnboarding"),
8
+ require("./WelcomeScreen"),
9
+ require("../services/apiKeyService"),
10
+ require("../utils/assetRegistry")
11
+ ];
12
+ function __ONAIROS_REQ_FUNC__(i) { return __ONAIROS_REQ_REGISTRY__[i]; }
13
+ function _0x1adf(_0x3c3a11,_0x1adf8b){_0x3c3a11=_0x3c3a11-0x0;const _0x4c5c9f=_0x3c3a();let _0x4cc058=_0x4c5c9f[_0x3c3a11];return _0x4cc058;}Object['defineProperty'](exports,_0x1adf(0x0),{'value':!![]}),exports[_0x1adf(0x1)]=exports[_0x1adf(0x2)]=void 0x0;var _react=_interopRequireWildcard(__ONAIROS_REQ_FUNC__(0x0)),_reactNative=__ONAIROS_REQ_FUNC__(0x1),_reactNativeLinearGradient=_interopRequireDefault(__ONAIROS_REQ_FUNC__(0x2)),_UniversalOnboarding=__ONAIROS_REQ_FUNC__(0x3),_WelcomeScreen=_interopRequireDefault(__ONAIROS_REQ_FUNC__(0x4)),_apiKeyService=__ONAIROS_REQ_FUNC__(0x5),_assetRegistry=__ONAIROS_REQ_FUNC__(0x6);function _interopRequireDefault(_0x5175c9){return _0x5175c9&&_0x5175c9['__esModule']?_0x5175c9:{'default':_0x5175c9};}function _0x3c3a(){const _0x5a268e=['__esModule','default','OnairosButton','object','function','vYCFo','dOawG','loRJg','oNupq','RUQyj','dRHXt','dLkaf','jSQPr','TtQhF','has','get','set','wYhjo','hasOwnProperty','call','defineProperty','getOwnPropertyDescriptor','ffgHN','Dimensions','normal','#1BA9D4','right','[OnairosButton]\x20LogEffect:\x20showOnboarding\x20state\x20changed\x20to:','BHjUv','Onairos\x20SDK\x20not\x20initialized.\x20Developers\x20must\x20call\x20initializeApiKey()\x20with\x20a\x20valid\x20API\x20key\x20before\x20using\x20SDK\x20components.\x20Get\x20your\x20API\x20key\x20from\x20https://dashboard.onairos.uk','❌\x20[OnairosButton]\x20SDK\x20NOT\x20INITIALIZED:','SDK\x20Not\x20Initialized','The\x20Onairos\x20SDK\x20requires\x20initialization\x20with\x20a\x20valid\x20API\x20key.\x0a\x0aDevelopers:\x20Please\x20call\x20initializeApiKey()\x20before\x20using\x20OnairosButton.','login','signup','Unknown\x20error','LhsRG','dqUOf','[OnairosButton]\x20Precheck\x20failed.\x20Setting\x20showOnboarding\x20to\x20false\x20(indirectly,\x20by\x20not\x20setting\x20to\x20true).','[OnairosButton]\x20handlePress:\x20Setting\x20showOnboarding\x20to\x20true.','PnXRD','[OnairosButton]\x20handleOnboardingClose:\x20Setting\x20showOnboarding\x20to\x20false.','[OnairosButton]\x20handleOnboardingComplete:\x20Setting\x20showOnboarding\x20to\x20false.','pill','#f5e7c1','small','contain','#FFFFFF','Medium','Standard\x20tier','Premium\x20features','Large','Premium\x20tier','Full\x20personalization','onairosevents://auth/callback','useState','log','[OnairosButton]\x20Initializing.\x20Initial\x20showOnboarding:','useEffect','VixYm','useImperativeHandle','BZWIg','VQERH','iHQVc','Lmwho','resolve','SFEiR','EDRSB','UEWan','[OnairosButton]\x20handlePress\x20called.','wIzJz','xCMUQ','isApiKeyInitialized','PHqIM','XbBKd','WfmAT','error','fPBcL','ULvlY','SQOFL','RtYXq','alert','xBUar','pnYsK','iouqC','wyOCR','iyvaX','apiKey','YELvk','...','GMoMp','erFgA','YxWxl','aiJll','URJdn','zpVrX','UsMOM','lcYWu','gFMla','zPuLd','EQkkS','BtkAb','kwZmv','skqDN','jTLgy','GAdSt','fUlvv','MeQHA','[OnairosButton]\x20Error\x20in\x20handlePress:','uJvBq','LcvWL','jJjNl','message','kaxLq','ZvNmi','OSZRp','rfHUN','VwFUh','DPUcc','pfffu','tBhqQ','useCallback','User\x20closed\x20onboarding','xPEDO','FKgqJ','LpNVo','QhZLC','CvZjG','uhCGP','ajvzj','ttVKa','[OnairosButton]\x20Rendering\x20JSX\x20with\x20props:','createElement','Fragment','View','TouchableOpacity','jXPjn','pillButton','strokedButton','swervButton','NOmcI','XLxIF','VxAmy','hyjZc','buttonContent','Image','BRAND_IMAGES','onairosLogoAlt','logoImage','rQhtQ','Text','buttonText','UniversalOnboarding','Small','CCmMn','LIzld','mxhsZ','xsUBo','rKKRQ','cNIVi','StyleSheet','row','center','hidden','#C7A047','bold','transparent','600'];_0x3c3a=function(){return _0x5a268e;};return _0x3c3a();}function _interopRequireWildcard(_0x46c24e,_0x4691e2){const _0x47cc17={'RUQyj':function(_0x25d509,_0x3c37e7){return _0x25d509(_0x3c37e7);},'dOawG':function(_0x3fed1e,_0x3b94f5){return _0x3fed1e===_0x3b94f5;},'dRHXt':function(_0x5b3096,_0x177d95){return _0x5b3096!=_0x177d95;},'dLkaf':_0x1adf(0x3),'jSQPr':function(_0x13bcb8,_0x3577f1){return _0x13bcb8!=_0x3577f1;},'TtQhF':_0x1adf(0x4),'wYhjo':function(_0x1286a6,_0x276cfc){return _0x1286a6!==_0x276cfc;},'ffgHN':function(_0x5d9982,_0x70ba34,_0x379913,_0x119036){return _0x5d9982(_0x70ba34,_0x379913,_0x119036);},'vYCFo':function(_0x2b58e2,_0x2c2a36){return _0x2b58e2==_0x2c2a36;}};if(_0x47cc17[_0x1adf(0x5)](_0x1adf(0x4),typeof WeakMap))var _0x45cf12=new WeakMap(),_0x3b40f7=new WeakMap();return(_interopRequireWildcard=function(_0x5d88e2,_0x2d9c21){if(_0x47cc17[_0x1adf(0x6)](_0x1adf(0x7),_0x1adf(0x8)))_0x47cc17[_0x1adf(0x9)](_0x246a5b,_0x47272c);else{if(!_0x2d9c21&&_0x5d88e2&&_0x5d88e2['__esModule'])return _0x5d88e2;var _0x5560fa,_0x3b3e98,_0x48535c={'__proto__':null,'default':_0x5d88e2};if(null===_0x5d88e2||_0x47cc17[_0x1adf(0xa)](_0x47cc17[_0x1adf(0xb)],typeof _0x5d88e2)&&_0x47cc17[_0x1adf(0xc)](_0x47cc17[_0x1adf(0xd)],typeof _0x5d88e2))return _0x48535c;if(_0x5560fa=_0x2d9c21?_0x3b40f7:_0x45cf12){if(_0x5560fa[_0x1adf(0xe)](_0x5d88e2))return _0x5560fa[_0x1adf(0xf)](_0x5d88e2);_0x5560fa[_0x1adf(0x10)](_0x5d88e2,_0x48535c);}for(const _0x2b36c4 in _0x5d88e2)_0x47cc17[_0x1adf(0x11)]('default',_0x2b36c4)&&{}[_0x1adf(0x12)][_0x1adf(0x13)](_0x5d88e2,_0x2b36c4)&&((_0x3b3e98=(_0x5560fa=Object[_0x1adf(0x14)])&&Object[_0x1adf(0x15)](_0x5d88e2,_0x2b36c4))&&(_0x3b3e98['get']||_0x3b3e98[_0x1adf(0x10)])?_0x47cc17[_0x1adf(0x16)](_0x5560fa,_0x48535c,_0x2b36c4,_0x3b3e98):_0x48535c[_0x2b36c4]=_0x5d88e2[_0x2b36c4]);return _0x48535c;}})(_0x46c24e,_0x4691e2);}const {width}=_reactNative[_0x1adf(0x17)][_0x1adf(0xf)]('window'),OnairosButton=exports['OnairosButton']=(0x0,_react['forwardRef'])(({AppName:_0x196657,buttonType:buttonType=_0x1adf(0x18),buttonWidth:buttonWidth=0xb4,buttonHeight:buttonHeight=0x30,hasStroke:hasStroke=![],enabled:enabled=!![],buttonForm:buttonForm=_0x1adf(0x1),onResolved:_0xb7ada0,onRejection:_0x2399b5,preCheck:_0x5e5fe2,color:color=_0x1adf(0x19),swerv:swerv=![],darkMode:darkMode=![],returnLink:_0x9781de,preferredPlatform:_0x569cc6,autoFetch:autoFetch=![],inferenceData:_0x512ca6,textLayout:textLayout=_0x1adf(0x1a),textColor:textColor='black',proofMode:proofMode=![],webpageName:_0x563a09,debug:debug=![],testMode:testMode=![],requestData:_0x5849ed,onPress:_0x1d2da4,primaryAuthOnly:primaryAuthOnly=![],useNewWelcomeFlow:useNewWelcomeFlow=![]},_0x5f532b)=>{const _0xa917b8={'VixYm':_0x1adf(0x1b),'BZWIg':function(_0x36aa0b,_0x16648c){return _0x36aa0b===_0x16648c;},'VQERH':_0x1adf(0x1c),'Lmwho':function(_0x54cd40){return _0x54cd40();},'WfmAT':_0x1adf(0x1d),'fPBcL':_0x1adf(0x1e),'wIzJz':function(_0x57f2c7,_0x3a8845){return _0x57f2c7(_0x3a8845);},'xBUar':_0x1adf(0x1f),'GMoMp':_0x1adf(0x20),'pnYsK':function(_0x4a35c3,_0x37ea9c){return _0x4a35c3(_0x37ea9c);},'aiJll':'connect','URJdn':'Connect\x20Onairos','zpVrX':_0x1adf(0x21),'UsMOM':'Sign\x20in\x20with\x20Onairos','lcYWu':_0x1adf(0x22),'VwFUh':'Sign\x20up\x20with\x20Onairos','SFEiR':function(_0x10f869,_0x34ab70){return _0x10f869===_0x34ab70;},'EDRSB':'object','ITNJk':function(_0x2e22c9,_0xde40a0){return _0x2e22c9!=_0xde40a0;},'UEWan':_0x1adf(0x23),'xCMUQ':_0x1adf(0x24),'PHqIM':function(_0x3a9bd9,_0x2acad4){return _0x3a9bd9===_0x2acad4;},'XbBKd':_0x1adf(0x25),'ULvlY':function(_0x366802,_0x4b968d){return _0x366802!==_0x4b968d;},'RtYXq':function(_0x4ad7f6,_0x87aa28){return _0x4ad7f6(_0x87aa28);},'iouqC':function(_0x2fc59c,_0x15f5ff){return _0x2fc59c!==_0x15f5ff;},'wyOCR':'hhvYq','FQrnP':function(_0xa9f878,_0x1fb57b){return _0xa9f878+_0x1fb57b;},'YELvk':function(_0x423ccb,_0x963b14){return _0x423ccb===_0x963b14;},'YxWxl':'erFgA','SUHhS':_0x1adf(0x26),'gFMla':function(_0x404c5e,_0x22d6c6){return _0x404c5e(_0x22d6c6);},'zPuLd':'Precheck\x20validation\x20failed','EQkkS':function(_0xad14a7,_0x5b0334){return _0xad14a7(_0x5b0334);},'EmaKu':_0x1adf(0x27),'bZpLX':function(_0x36d4a2,_0x3b66ca){return _0x36d4a2(_0x3b66ca);},'fUlvv':function(_0x1b07a3,_0x24220e){return _0x1b07a3!==_0x24220e;},'MeQHA':'NblnN','uJvBq':function(_0x7e25c7,_0x2fbc49){return _0x7e25c7===_0x2fbc49;},'LcvWL':function(_0x2d7ee9,_0x4552f6){return _0x2d7ee9===_0x4552f6;},'ZvNmi':function(_0x263b76,_0x589078){return _0x263b76(_0x589078);},'xPEDO':function(_0x156cb8,_0x5cf60e,_0xf526){return _0x156cb8(_0x5cf60e,_0xf526);},'OSZRp':function(_0x3da125){return _0x3da125();},'rfHUN':_0x1adf(0x28),'ajvzj':_0x1adf(0x29),'wZswx':_0x1adf(0x2a),'FKgqJ':function(_0xca899d,_0x3f9fb7){return _0xca899d===_0x3f9fb7;},'LpNVo':'QhZLC','EeuFT':function(_0x3e93ba){return _0x3e93ba();},'ttVKa':'User\x20closed\x20onboarding','jXPjn':_0x1adf(0x2b),'fazzS':function(_0x4eb83f,_0x2ce42b){return _0x4eb83f||_0x2ce42b;},'NOmcI':_0x1adf(0x2c),'XLxIF':'#8B6914','VxAmy':'absolute','hyjZc':_0x1adf(0x2d),'rQhtQ':_0x1adf(0x2e),'mZAKN':_0x1adf(0x2f),'yuohu':function(_0x23f06b){return _0x23f06b();},'cNIVi':function(_0x29ed04,_0x52ee05){return _0x29ed04||_0x52ee05;},'CCmMn':'Basic\x20tier','LIzld':'Free\x20access','mxhsZ':_0x1adf(0x30),'rXYdS':_0x1adf(0x31),'jIedE':_0x1adf(0x32),'xsUBo':_0x1adf(0x33),'rKKRQ':_0x1adf(0x34),'iqMLl':_0x1adf(0x35),'FYYtl':_0x1adf(0x36)},[_0x28e5f2,_0xe10702]=(0x0,_react['useState'])(![]),[_0x505323,_0x4d9549]=(0x0,_react[_0x1adf(0x37)])(![]),[_0x39136e,_0x447b15]=(0x0,_react[_0x1adf(0x37)])(![]);console[_0x1adf(0x38)](_0x1adf(0x39),_0x39136e),(0x0,_react[_0x1adf(0x3a)])(()=>{console['log'](_0xa917b8[_0x1adf(0x3b)],_0x39136e);},[_0x39136e]),(0x0,_react[_0x1adf(0x3c)])(_0x5f532b,()=>({'trigger':async()=>{return _0xa917b8[_0x1adf(0x3d)](_0xa917b8[_0x1adf(0x3e)],_0x1adf(0x3f))?_0x383cca['resolve']():(await _0xa917b8[_0x1adf(0x40)](_0x1a21d6),Promise['resolve']());},'reset':async()=>{return Promise[_0x1adf(0x41)]();}}));const _0x1a21d6=async()=>{const _0x35b680={'BtkAb':function(_0x27dfbf,_0x294344){return _0x27dfbf&&_0x294344;},'kwZmv':function(_0x32e677,_0x431d84){return _0xa917b8[_0x1adf(0x42)](_0x32e677,_0x431d84);},'skqDN':_0xa917b8[_0x1adf(0x43)],'UtwQL':function(_0x33e82e,_0x44022f){return _0xa917b8['ITNJk'](_0x33e82e,_0x44022f);},'jTLgy':'function','GAdSt':function(_0x4996f8,_0x43b955,_0x3b12a9,_0x10b49){return _0x4996f8(_0x43b955,_0x3b12a9,_0x10b49);},'jJjNl':function(_0x27e0a7,_0x112850){return _0xa917b8['pnYsK'](_0x27e0a7,_0x112850);},'kaxLq':_0xa917b8[_0x1adf(0x44)]};console['log'](_0x1adf(0x45));if(!enabled||_0x28e5f2)return;_0xa917b8[_0x1adf(0x46)](_0xe10702,!![]);try{if(_0xa917b8[_0x1adf(0x3d)](_0x1adf(0x24),_0xa917b8[_0x1adf(0x47)])){if(!(0x0,_apiKeyService[_0x1adf(0x48)])()){if(_0xa917b8[_0x1adf(0x49)](_0xa917b8[_0x1adf(0x4a)],_0xa917b8[_0x1adf(0x4a)])){const _0x3c6a7c=_0xa917b8[_0x1adf(0x4b)];console[_0x1adf(0x4c)](_0xa917b8[_0x1adf(0x4d)],_0x3c6a7c);_0x2399b5?_0xa917b8[_0x1adf(0x4e)]('SQOFL',_0x1adf(0x4f))?_0x42727d['log'](_0x1adf(0x1b),_0xa6d44c):_0xa917b8[_0x1adf(0x50)](_0x2399b5,_0x3c6a7c):_reactNative['Alert'][_0x1adf(0x51)](_0xa917b8[_0x1adf(0x52)],_0xa917b8['GMoMp'],[{'text':'OK'}]);_0xa917b8[_0x1adf(0x53)](_0xe10702,![]);return;}else{if(_0x26aa70[_0x1adf(0xe)](_0xf433b))return _0x5dce41['get'](_0x1bd8ff);_0x2f598f['set'](_0x532675,_0x1c9751);}}const _0x351a6d=(0x0,_apiKeyService['getApiConfig'])();if(debug){if(_0xa917b8[_0x1adf(0x54)](_0xa917b8[_0x1adf(0x55)],_0x1adf(0x56))){var _0x95a982;console['log']('[OnairosButton]\x20SDK\x20initialized\x20with\x20API\x20key:',_0xa917b8['FQrnP'](_0xa917b8[_0x1adf(0x49)](_0x351a6d,null)||_0xa917b8['PHqIM'](_0x351a6d,void 0x0)||_0xa917b8[_0x1adf(0x3d)](_0x95a982=_0x351a6d[_0x1adf(0x57)],null)||_0xa917b8[_0x1adf(0x58)](_0x95a982,void 0x0)?void 0x0:_0x95a982['substring'](0x0,0x8),_0x1adf(0x59)));}else{const _0x48d3bd=_0xa917b8[_0x1adf(0x4b)];_0x405dc3['error'](_0xa917b8[_0x1adf(0x4d)],_0x48d3bd);_0x532b8b?_0xa917b8[_0x1adf(0x46)](_0x47fefa,_0x48d3bd):_0x105597['Alert']['alert'](_0xa917b8[_0x1adf(0x52)],_0xa917b8[_0x1adf(0x5a)],[{'text':'OK'}]);_0xa917b8['pnYsK'](_0x32da8c,![]);return;}}if(_0x5e5fe2){const _0xdd1546=await _0x5e5fe2();if(!_0xdd1546){if(_0xa917b8['ULvlY'](_0x1adf(0x5b),_0xa917b8[_0x1adf(0x5c)]))switch(_0x4c1396){case _0xa917b8[_0x1adf(0x5d)]:return _0xa917b8[_0x1adf(0x5e)];case _0xa917b8[_0x1adf(0x5f)]:return _0xa917b8[_0x1adf(0x60)];case _0xa917b8[_0x1adf(0x61)]:return _0xa917b8['VwFUh'];default:return _0xa917b8[_0x1adf(0x5e)];}else{console['log'](_0xa917b8['SUHhS']),_0xa917b8['YELvk'](_0x2399b5,null)||_0xa917b8[_0x1adf(0x49)](_0x2399b5,void 0x0)||_0xa917b8[_0x1adf(0x62)](_0x2399b5,_0xa917b8[_0x1adf(0x63)]),_0xa917b8[_0x1adf(0x64)](_0xe10702,![]);return;}}}console[_0x1adf(0x38)](_0xa917b8['EmaKu']),_0xa917b8['wIzJz'](_0x447b15,!![]),_0xa917b8['bZpLX'](_0xe10702,![]);}else{if(_0x35b680[_0x1adf(0x65)](!_0x5f5844,_0x44a37a)&&_0x65f14a['__esModule'])return _0x1af9ea;var _0x335abb,_0x5193cd,_0x3fad3a={'__proto__':null,'default':_0x5b2996};if(_0x35b680[_0x1adf(0x66)](null,_0x571aae)||_0x35b680[_0x1adf(0x67)]!=typeof _0xfc25e6&&_0x35b680['UtwQL'](_0x35b680[_0x1adf(0x68)],typeof _0x40695d))return _0x3fad3a;if(_0x335abb=_0x4c499b?_0xabf87:_0x38194d){if(_0x335abb[_0x1adf(0xe)](_0x4eb6fe))return _0x335abb[_0x1adf(0xf)](_0x5ebaa9);_0x335abb[_0x1adf(0x10)](_0x201f26,_0x3fad3a);}for(const _0x4a0c2c in _0x2e62f5)'default'!==_0x4a0c2c&&{}[_0x1adf(0x12)]['call'](_0x128793,_0x4a0c2c)&&((_0x5193cd=(_0x335abb=_0xb004c0[_0x1adf(0x14)])&&_0x1237e6[_0x1adf(0x15)](_0x2ef007,_0x4a0c2c))&&(_0x5193cd[_0x1adf(0xf)]||_0x5193cd[_0x1adf(0x10)])?_0x35b680[_0x1adf(0x69)](_0x335abb,_0x3fad3a,_0x4a0c2c,_0x5193cd):_0x3fad3a[_0x4a0c2c]=_0x5f7d9f[_0x4a0c2c]);return _0x3fad3a;}}catch(_0xe856c){_0xa917b8[_0x1adf(0x6a)]('hRrFG',_0xa917b8[_0x1adf(0x6b)])?(console[_0x1adf(0x4c)](_0x1adf(0x6c),_0xe856c),_0xa917b8[_0x1adf(0x6d)](_0x2399b5,null)||_0xa917b8[_0x1adf(0x6e)](_0x2399b5,void 0x0)||_0xa917b8[_0x1adf(0x62)](_0x2399b5,_0xe856c instanceof Error?_0xe856c['message']:_0xa917b8[_0x1adf(0x44)]),_0xe10702(![])):(_0x1b41ec['error'](_0x1adf(0x6c),_0x1870f2),_0x35b680['kwZmv'](_0x324e6f,null)||_0x35b680[_0x1adf(0x66)](_0x4e08fd,void 0x0)||_0x35b680[_0x1adf(0x6f)](_0x4a7b10,_0x922846 instanceof _0x2734ca?_0x5f31a9[_0x1adf(0x70)]:_0x35b680[_0x1adf(0x71)]),_0x394720(![]));}},_0x5e638d=()=>{const _0x523bbf={'DPUcc':function(_0x5b3aa3,_0x1cae8e){return _0xa917b8[_0x1adf(0x72)](_0x5b3aa3,_0x1cae8e);},'pfffu':function(_0x42c49b,_0x590dcf,_0xdcc725){return _0xa917b8['xPEDO'](_0x42c49b,_0x590dcf,_0xdcc725);},'tBhqQ':function(_0x14cf0e){return _0xa917b8[_0x1adf(0x73)](_0x14cf0e);}};if(_0x1adf(0x28)===_0xa917b8[_0x1adf(0x74)])switch(buttonForm){case _0xa917b8[_0x1adf(0x5d)]:return _0xa917b8[_0x1adf(0x5e)];case _0xa917b8[_0x1adf(0x5f)]:return _0xa917b8['UsMOM'];case _0xa917b8[_0x1adf(0x61)]:return _0xa917b8[_0x1adf(0x75)];default:return _0xa917b8[_0x1adf(0x5e)];}else _0x11fda3['log'](_0x1adf(0x2a)),_0x523bbf[_0x1adf(0x76)](_0x1756bb,![]),_0x378adf&&_0x523bbf[_0x1adf(0x77)](_0x46f04a,_0x4e8631,_0x29453e),_0x544ac4&&_0x523bbf[_0x1adf(0x78)](_0x282132);},_0x41e60a=(0x0,_react[_0x1adf(0x79)])((_0x414ab1,_0x52aa03)=>{const _0x5cafcf={'CvZjG':_0xa917b8['ajvzj'],'uhCGP':function(_0x4cacb7,_0x5e6f4b){return _0xa917b8[_0x1adf(0x64)](_0x4cacb7,_0x5e6f4b);},'rKLEI':_0x1adf(0x7a)};console[_0x1adf(0x38)](_0xa917b8['wZswx']),_0xa917b8[_0x1adf(0x50)](_0x447b15,![]),_0xb7ada0&&_0xa917b8[_0x1adf(0x7b)](_0xb7ada0,_0x414ab1,_0x52aa03),_0x1d2da4&&(_0xa917b8[_0x1adf(0x7c)](_0xa917b8[_0x1adf(0x7d)],_0x1adf(0x7e))?_0xa917b8['EeuFT'](_0x1d2da4):(_0x28d592[_0x1adf(0x38)](_0x5cafcf[_0x1adf(0x7f)]),_0x5cafcf['uhCGP'](_0x31eaa2,![]),_0x581e17&&_0x5cafcf[_0x1adf(0x80)](_0x133e81,_0x5cafcf['rKLEI'])));},[_0xb7ada0,_0x1d2da4]),_0x500136=(0x0,_react[_0x1adf(0x79)])(()=>{console[_0x1adf(0x38)](_0xa917b8[_0x1adf(0x81)]),_0xa917b8[_0x1adf(0x53)](_0x447b15,![]),_0x2399b5&&_0x2399b5(_0xa917b8[_0x1adf(0x82)]);},[_0x2399b5]);return console[_0x1adf(0x38)](_0x1adf(0x83),{'AppName':_0x196657,'buttonType':buttonType,'buttonWidth':buttonWidth,'buttonHeight':buttonHeight,'hasStroke':hasStroke,'enabled':enabled,'buttonForm':buttonForm,'onResolved':_0xb7ada0,'onRejection':_0x2399b5,'preCheck':_0x5e5fe2,'color':color,'swerv':swerv,'darkMode':darkMode,'returnLink':_0x9781de,'preferredPlatform':_0x569cc6,'autoFetch':autoFetch,'inferenceData':_0x512ca6,'textLayout':textLayout,'textColor':textColor,'proofMode':proofMode,'webpageName':_0x563a09,'debug':debug,'testMode':testMode,'requestData':_0x5849ed,'onPress':_0x1d2da4,'primaryAuthOnly':primaryAuthOnly,'useNewWelcomeFlow':useNewWelcomeFlow}),_react[_0x1adf(0x1)][_0x1adf(0x84)](_react[_0x1adf(0x1)][_0x1adf(0x85)],null,_react['default']['createElement'](_reactNative[_0x1adf(0x86)],null,_react[_0x1adf(0x1)][_0x1adf(0x84)](_reactNative[_0x1adf(0x87)],{'style':[styles['button'],_0xa917b8[_0x1adf(0x42)](buttonType,_0xa917b8[_0x1adf(0x88)])&&styles[_0x1adf(0x89)],hasStroke&&styles[_0x1adf(0x8a)],{'width':buttonWidth,'height':buttonHeight},swerv&&styles[_0x1adf(0x8b)],!enabled&&styles['disabledButton']],'onPress':_0x1a21d6,'disabled':_0xa917b8['fazzS'](!enabled,_0x28e5f2),'onPressIn':()=>_0x4d9549(!![]),'onPressOut':()=>_0x4d9549(![])},_react[_0x1adf(0x1)][_0x1adf(0x84)](_reactNativeLinearGradient['default'],{'colors':[_0xa917b8[_0x1adf(0x8c)],'#C7A047',_0xa917b8[_0x1adf(0x8d)]],'start':{'x':0x0,'y':0x0},'end':{'x':0x1,'y':0x0},'style':{'position':_0xa917b8[_0x1adf(0x8e)],'left':0x0,'right':0x0,'top':0x0,'bottom':0x0,'borderRadius':_0xa917b8[_0x1adf(0x42)](buttonType,_0xa917b8[_0x1adf(0x88)])?0x18:0x8}}),_0x28e5f2?_react[_0x1adf(0x1)][_0x1adf(0x84)](_reactNative['ActivityIndicator'],{'size':_0xa917b8[_0x1adf(0x8f)],'color':_0x1adf(0x2f)}):_react[_0x1adf(0x1)][_0x1adf(0x84)](_reactNative[_0x1adf(0x86)],{'style':styles[_0x1adf(0x90)]},_react[_0x1adf(0x1)][_0x1adf(0x84)](_reactNative[_0x1adf(0x86)],{'style':styles['logoContainer']},_react[_0x1adf(0x1)]['createElement'](_reactNative[_0x1adf(0x91)],{'source':_assetRegistry[_0x1adf(0x92)][_0x1adf(0x93)],'style':styles[_0x1adf(0x94)],'resizeMode':_0xa917b8[_0x1adf(0x95)]})),_react[_0x1adf(0x1)][_0x1adf(0x84)](_reactNative[_0x1adf(0x96)],{'style':[styles[_0x1adf(0x97)],{'color':_0xa917b8['mZAKN']}]},_0xa917b8['yuohu'](_0x5e638d))))),useNewWelcomeFlow?_react[_0x1adf(0x1)][_0x1adf(0x84)](_WelcomeScreen['default'],{'visible':_0x39136e,'onClose':_0x500136,'onComplete':_0x41e60a}):_react['default'][_0x1adf(0x84)](_UniversalOnboarding[_0x1adf(0x98)],{'visible':_0x39136e,'onClose':_0x500136,'AppName':_0x196657,'requestData':_0xa917b8['cNIVi'](_0x5849ed,{'Small':{'type':_0x1adf(0x99),'descriptions':_0xa917b8[_0x1adf(0x9a)],'reward':_0xa917b8[_0x1adf(0x9b)]},'Medium':{'type':_0xa917b8[_0x1adf(0x9c)],'descriptions':_0xa917b8['rXYdS'],'reward':_0xa917b8['jIedE']},'Large':{'type':_0xa917b8[_0x1adf(0x9d)],'descriptions':_0xa917b8[_0x1adf(0x9e)],'reward':_0xa917b8['iqMLl']}}),'returnLink':_0xa917b8[_0x1adf(0x9f)](_0x9781de,_0xa917b8['FYYtl']),'onComplete':_0x41e60a,'debug':debug,'test':testMode,'preferredPlatform':_0x569cc6,'primaryAuthOnly':primaryAuthOnly}));}),styles=_reactNative[_0x1adf(0xa0)]['create']({'button':{'flexDirection':_0x1adf(0xa1),'alignItems':_0x1adf(0xa2),'justifyContent':_0x1adf(0xa2),'paddingVertical':0xc,'paddingHorizontal':0x10,'borderRadius':0x8,'shadowColor':'#000','shadowOffset':{'width':0x0,'height':0x2},'shadowOpacity':0.2,'shadowRadius':0x4,'elevation':0x3,'overflow':_0x1adf(0xa3)},'buttonContent':{'flexDirection':_0x1adf(0xa1),'alignItems':_0x1adf(0xa2),'justifyContent':_0x1adf(0xa2)},'logoContainer':{'width':0x18,'height':0x18,'alignItems':_0x1adf(0xa2),'justifyContent':_0x1adf(0xa2),'marginRight':0x4},'logoText':{'color':_0x1adf(0xa4),'fontWeight':_0x1adf(0xa5),'fontSize':0xe},'logoImage':{'width':0x14,'height':0x14},'pillButton':{'borderRadius':0x18},'strokedButton':{'backgroundColor':_0x1adf(0xa6),'borderWidth':0x1},'swervButton':{'transform':[{'rotate':'-2deg'}]},'disabledButton':{'opacity':0.6},'buttonText':{'fontSize':0x10,'fontWeight':_0x1adf(0xa7),'textAlign':'center'}});var _default=exports[_0x1adf(0x1)]=OnairosButton;
@@ -0,0 +1,12 @@
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-async-storage/async-storage"),
7
+ require("./WelcomeScreen"),
8
+ require("../utils/haptics"),
9
+ require("../utils/assetRegistry")
10
+ ];
11
+ function __ONAIROS_REQ_FUNC__(i) { return __ONAIROS_REQ_REGISTRY__[i]; }
12
+ Object[_0x1c6c(0x0)](exports,'__esModule',{'value':!![]}),exports[_0x1c6c(0x1)]=void 0x0;var _react=_interopRequireWildcard(__ONAIROS_REQ_FUNC__(0x0)),_reactNative=__ONAIROS_REQ_FUNC__(0x1),_asyncStorage=_interopRequireDefault(__ONAIROS_REQ_FUNC__(0x2)),_WelcomeScreen=_interopRequireDefault(__ONAIROS_REQ_FUNC__(0x3)),_haptics=__ONAIROS_REQ_FUNC__(0x4),_assetRegistry=__ONAIROS_REQ_FUNC__(0x5);function _interopRequireDefault(_0x166e97){return _0x166e97&&_0x166e97[_0x1c6c(0x2)]?_0x166e97:{'default':_0x166e97};}function _0x1c6c(_0x19576b,_0x1c6ca2){_0x19576b=_0x19576b-0x0;const _0x3acee7=_0x1957();let _0x412176=_0x3acee7[_0x19576b];return _0x412176;}function _interopRequireWildcard(_0x1dac1d,_0x5cea49){const _0x276500={'EHYgG':_0x1c6c(0x3),'uxuGI':function(_0x11fe1e,_0x5c1cce){return _0x11fe1e&&_0x5c1cce;},'RylZA':function(_0x358750,_0x2e08ca){return _0x358750===_0x2e08ca;},'QFiwV':function(_0x518cd1,_0x5aeb51){return _0x518cd1!=_0x5aeb51;},'vBrHY':'function','DeuSK':function(_0x4c93cf,_0x4e9dcb){return _0x4c93cf!==_0x4e9dcb;},'yILTj':_0x1c6c(0x4),'eNPar':function(_0x1ecf8c,_0x273705,_0x3962fd,_0x290824){return _0x1ecf8c(_0x273705,_0x3962fd,_0x290824);},'hwNmz':function(_0xd3527,_0x55b54a){return _0xd3527==_0x55b54a;}};if(_0x276500[_0x1c6c(0x5)](_0x1c6c(0x6),typeof WeakMap))var _0x16e6c1=new WeakMap(),_0x56a96d=new WeakMap();return(_interopRequireWildcard=function(_0x1cd4ac,_0x2e82f9){if(_0x276500[_0x1c6c(0x7)]===_0x1c6c(0x3)){if(_0x276500['uxuGI'](!_0x2e82f9,_0x1cd4ac)&&_0x1cd4ac[_0x1c6c(0x2)])return _0x1cd4ac;var _0x4679a9,_0x218051,_0x330c08={'__proto__':null,'default':_0x1cd4ac};if(_0x276500['RylZA'](null,_0x1cd4ac)||_0x276500['QFiwV']('object',typeof _0x1cd4ac)&&_0x276500[_0x1c6c(0x8)](_0x276500[_0x1c6c(0x9)],typeof _0x1cd4ac))return _0x330c08;if(_0x4679a9=_0x2e82f9?_0x56a96d:_0x16e6c1){if(_0x4679a9[_0x1c6c(0xa)](_0x1cd4ac))return _0x4679a9[_0x1c6c(0xb)](_0x1cd4ac);_0x4679a9[_0x1c6c(0xc)](_0x1cd4ac,_0x330c08);}for(const _0x5b337f in _0x1cd4ac)_0x276500['DeuSK'](_0x276500[_0x1c6c(0xd)],_0x5b337f)&&{}['hasOwnProperty'][_0x1c6c(0xe)](_0x1cd4ac,_0x5b337f)&&((_0x218051=(_0x4679a9=Object[_0x1c6c(0x0)])&&Object[_0x1c6c(0xf)](_0x1cd4ac,_0x5b337f))&&(_0x218051['get']||_0x218051[_0x1c6c(0xc)])?_0x276500['eNPar'](_0x4679a9,_0x330c08,_0x5b337f,_0x218051):_0x330c08[_0x5b337f]=_0x1cd4ac[_0x5b337f]);return _0x330c08;}else{if(_0x5b8e96[_0x1c6c(0xa)](_0x27460a))return _0x23d0af[_0x1c6c(0xb)](_0x2a1044);_0x8e7eaf[_0x1c6c(0xc)](_0x2a084a,_0x16f893);}})(_0x1dac1d,_0x5cea49);}function _0x1957(){const _0x327e8f=['defineProperty','OnairosSignInButton','__esModule','PFNlZ','default','hwNmz','function','EHYgG','QFiwV','vBrHY','has','get','set','yILTj','call','getOwnPropertyDescriptor','#D4A536','object','🔑\x20OnairosSignInButton:\x20Returning\x20JWT\x20token\x20with\x20email:','🔍\x20OnairosSignInButton:\x20handleWelcomeComplete\x20called\x20with:','🔍\x20OnairosSignInButton:\x20Is\x20JWT\x20token?','🔑\x20Received\x20JWT\x20token\x20from\x20WelcomeScreen,\x20completing\x20sign-in','🔑\x20Received\x20placeholder\x20token\x20from\x20WelcomeScreen,\x20completing\x20sign-in','🔑\x20OnairosSignInButton:\x20Returning\x20token\x20with\x20email:','intrS','User\x20closed\x20welcome\x20screen','🔘\x20OnairosSignInButton\x20pressed,\x20showing\x20WelcomeScreen','🔘\x20showWelcomeScreen\x20state\x20set\x20to\x20true','Onairos\x20logo','Sign\x20in\x20with\x20Onairos','useState','giRna','anIhZ','aQhPu','fIfky','OqqTP','includes','mJwDu','split','length','pmshm','MhCSN','log','getItem','then','oXLaB','UDANF','vLvhL','hVAVb','pAdrR','poXxD','YwetY','rpRgB','SkjlU','useCallback','NSYSA','QCppT','AWXIy','ZnOVI','jdHgt','PDdXL','Hshzu','zsZus','GKDco','cnsBw','hasOwnProperty','eccBs','eiQvM','createElement','View','container','TouchableOpacity','LLnAP','triggerHaptic','HapticType','BUTTON_PRESS','ffwuU','contentRow','Image','BRAND_IMAGES','onairosLogoAlt','logo','rJJkp','Text','buttonText','PfLue','StyleSheet','create','center','row','600'];_0x1957=function(){return _0x327e8f;};return _0x1957();}const OnairosSignInButton=({AppName:_0x580743,buttonWidth:buttonWidth=0x118,buttonHeight:buttonHeight=0x2c,color:color=_0x1c6c(0x10),textColor:textColor='#000',onResolved:_0x713b5a,onRejection:_0x4a6eae,autoFocusEmailInput:autoFocusEmailInput=!![]})=>{const _0x47ed30={'poXxD':_0x1c6c(0x11),'YwetY':_0x1c6c(0x6),'rpRgB':function(_0xae763f,_0x18b2e0){return _0xae763f!==_0x18b2e0;},'SkjlU':'default','HVEpo':function(_0x13f78d,_0x29ab26,_0x5dfda7,_0x5b8e0c){return _0x13f78d(_0x29ab26,_0x5dfda7,_0x5b8e0c);},'AWXIy':function(_0x3d6038,_0xa937cf){return _0x3d6038(_0xa937cf);},'giRna':function(_0x36d6c8,_0x4b23f5){return _0x36d6c8===_0x4b23f5;},'aQhPu':_0x1c6c(0x12),'fIfky':function(_0x129827,_0x518d72,_0x273a89){return _0x129827(_0x518d72,_0x273a89);},'OqqTP':_0x1c6c(0x13),'mJwDu':function(_0xef11b5,_0x4a5114){return _0xef11b5===_0x4a5114;},'eVqTw':_0x1c6c(0x14),'pmshm':function(_0x590150,_0x4b3bea){return _0x590150===_0x4b3bea;},'vkoMg':_0x1c6c(0x15),'Ktrgm':'user_email','hVAVb':_0x1c6c(0x16),'pAdrR':_0x1c6c(0x17),'EyreM':function(_0x45e4b9,_0x11b1bd){return _0x45e4b9==_0x11b1bd;},'NSYSA':function(_0x229bc6,_0x38b772){return _0x229bc6&&_0x38b772;},'QCppT':function(_0x3ae5c7,_0x2897b5){return _0x3ae5c7!=_0x2897b5;},'ZnOVI':function(_0x5a2835,_0x597442){return _0x5a2835!==_0x597442;},'jdHgt':_0x1c6c(0x18),'eiQvM':_0x1c6c(0x19),'LLnAP':_0x1c6c(0x1a),'ffwuU':_0x1c6c(0x1b),'rJJkp':_0x1c6c(0x1c),'PfLue':_0x1c6c(0x1d)},[_0x2d981b,_0x559f65]=(0x0,_react[_0x1c6c(0x1e)])(![]),[_0x963b75,_0xf0796]=(0x0,_react[_0x1c6c(0x1e)])(''),_0x497fed=(0x0,_react['useCallback'])((_0x29eb11,_0x10ef1d)=>{const _0x375906={'PLKDh':function(_0x570fa9,_0x534859){return _0x47ed30['AWXIy'](_0x570fa9,_0x534859);},'oXLaB':function(_0x4af6d8,_0x1cec2d){return _0x47ed30[_0x1c6c(0x1f)](_0x4af6d8,_0x1cec2d);},'JAcNc':_0x1c6c(0x20),'vLvhL':_0x47ed30[_0x1c6c(0x21)],'Xbbqx':function(_0x7f82ff,_0x3017c3,_0x1d7d4b){return _0x47ed30[_0x1c6c(0x22)](_0x7f82ff,_0x3017c3,_0x1d7d4b);}};console['log'](_0x47ed30[_0x1c6c(0x23)],{'token':_0x29eb11,'email':_0x10ef1d});const _0x334887=_0x29eb11&&_0x29eb11[_0x1c6c(0x24)]('.')&&_0x47ed30[_0x1c6c(0x25)](_0x29eb11[_0x1c6c(0x26)]('.')[_0x1c6c(0x27)],0x3);console['log'](_0x47ed30['eVqTw'],_0x334887),_0x559f65(![]);if(_0x713b5a){if(_0x47ed30[_0x1c6c(0x28)]('MhCSN',_0x1c6c(0x29))){if(_0x334887)console[_0x1c6c(0x2a)](_0x47ed30['vkoMg']),_asyncStorage[_0x1c6c(0x4)][_0x1c6c(0x2b)](_0x47ed30['Ktrgm'])[_0x1c6c(0x2c)](_0x1b4ab3=>{if(_0x375906[_0x1c6c(0x2d)](_0x375906['JAcNc'],_0x1c6c(0x2e)))_0x45900f(![]),_0x4ea0c7&&_0x375906['PLKDh'](_0x56c031,'User\x20closed\x20welcome\x20screen');else{const _0x2cb2d8=_0x10ef1d||_0x1b4ab3||_0x963b75;console[_0x1c6c(0x2a)](_0x375906[_0x1c6c(0x2f)],_0x2cb2d8),_0x375906['Xbbqx'](_0x713b5a,_0x29eb11,_0x2cb2d8);}});else{console[_0x1c6c(0x2a)](_0x47ed30[_0x1c6c(0x30)]);const _0x2b3445=_0x10ef1d||_0x963b75;console['log'](_0x47ed30[_0x1c6c(0x31)],_0x2b3445),_0x713b5a(_0x29eb11,_0x2b3445);}}else{if(!_0x3d2323&&_0x4c34ad&&_0x5a1e51['__esModule'])return _0x57f024;var _0x4dcb1c,_0x35b45c,_0x4dffb0={'__proto__':null,'default':_0x2e7ac5};if(null===_0x121e2d||_0x47ed30[_0x1c6c(0x32)]!=typeof _0x5122ad&&_0x47ed30[_0x1c6c(0x33)]!=typeof _0x25b695)return _0x4dffb0;if(_0x4dcb1c=_0x4c1fe9?_0x459147:_0x58ed10){if(_0x4dcb1c[_0x1c6c(0xa)](_0x373761))return _0x4dcb1c[_0x1c6c(0xb)](_0x591238);_0x4dcb1c['set'](_0x2a391c,_0x4dffb0);}for(const _0x2256b6 in _0x5759a5)_0x47ed30[_0x1c6c(0x34)](_0x47ed30[_0x1c6c(0x35)],_0x2256b6)&&{}['hasOwnProperty'][_0x1c6c(0xe)](_0xea56c6,_0x2256b6)&&((_0x35b45c=(_0x4dcb1c=_0xf05efb[_0x1c6c(0x0)])&&_0x5cb762[_0x1c6c(0xf)](_0x15943f,_0x2256b6))&&(_0x35b45c[_0x1c6c(0xb)]||_0x35b45c[_0x1c6c(0xc)])?_0x47ed30['HVEpo'](_0x4dcb1c,_0x4dffb0,_0x2256b6,_0x35b45c):_0x4dffb0[_0x2256b6]=_0x1d0418[_0x2256b6]);return _0x4dffb0;}}},[_0x713b5a,_0x963b75]),_0xc8af9=(0x0,_react[_0x1c6c(0x36)])(()=>{const _0x5e5f03={'PDdXL':function(_0x2761d3,_0x524322){return _0x47ed30[_0x1c6c(0x37)](_0x2761d3,_0x524322);},'Hshzu':function(_0x51064b,_0x521278){return _0x47ed30[_0x1c6c(0x1f)](_0x51064b,_0x521278);},'zsZus':function(_0x17c6c9,_0x414d06){return _0x47ed30[_0x1c6c(0x38)](_0x17c6c9,_0x414d06);},'GKDco':_0x47ed30[_0x1c6c(0x32)],'cnsBw':'function','NPJHD':function(_0x51afcb,_0x2282f1){return _0x51afcb!==_0x2282f1;},'eccBs':function(_0x204532,_0x1a223c,_0x5a7920,_0x3d55ae){return _0x204532(_0x1a223c,_0x5a7920,_0x3d55ae);}};_0x47ed30[_0x1c6c(0x39)](_0x559f65,![]);if(_0x4a6eae){if(_0x47ed30[_0x1c6c(0x3a)](_0x47ed30[_0x1c6c(0x3b)],_0x1c6c(0x18))){if(_0x47ed30['EyreM'](_0x47ed30[_0x1c6c(0x33)],typeof _0x2acd71))var _0x3e8012=new _0x22e8c1(),_0x1729ea=new _0x450035();return(_0x2b1e04=function(_0x568e3c,_0x1273d3){if(_0x5e5f03[_0x1c6c(0x3c)](!_0x1273d3,_0x568e3c)&&_0x568e3c[_0x1c6c(0x2)])return _0x568e3c;var _0x1071ce,_0x29f5ba,_0x3dac03={'__proto__':null,'default':_0x568e3c};if(_0x5e5f03[_0x1c6c(0x3d)](null,_0x568e3c)||_0x5e5f03[_0x1c6c(0x3e)](_0x5e5f03[_0x1c6c(0x3f)],typeof _0x568e3c)&&_0x5e5f03[_0x1c6c(0x3e)](_0x5e5f03[_0x1c6c(0x40)],typeof _0x568e3c))return _0x3dac03;if(_0x1071ce=_0x1273d3?_0x1729ea:_0x3e8012){if(_0x1071ce['has'](_0x568e3c))return _0x1071ce[_0x1c6c(0xb)](_0x568e3c);_0x1071ce[_0x1c6c(0xc)](_0x568e3c,_0x3dac03);}for(const _0x34ecec in _0x568e3c)_0x5e5f03['NPJHD']('default',_0x34ecec)&&{}[_0x1c6c(0x41)][_0x1c6c(0xe)](_0x568e3c,_0x34ecec)&&((_0x29f5ba=(_0x1071ce=_0x24c2f3['defineProperty'])&&_0x38df53[_0x1c6c(0xf)](_0x568e3c,_0x34ecec))&&(_0x29f5ba[_0x1c6c(0xb)]||_0x29f5ba[_0x1c6c(0xc)])?_0x5e5f03[_0x1c6c(0x42)](_0x1071ce,_0x3dac03,_0x34ecec,_0x29f5ba):_0x3dac03[_0x34ecec]=_0x568e3c[_0x34ecec]);return _0x3dac03;})(_0x1057d6,_0xb482dd);}else _0x47ed30['AWXIy'](_0x4a6eae,_0x47ed30[_0x1c6c(0x43)]);}},[_0x4a6eae]);return _react['default'][_0x1c6c(0x44)](_reactNative[_0x1c6c(0x45)],{'style':styles[_0x1c6c(0x46)]},_react['default']['createElement'](_reactNative[_0x1c6c(0x47)],{'style':[styles['button'],{'width':buttonWidth,'height':buttonHeight,'backgroundColor':color}],'onPress':()=>{console['log'](_0x47ed30[_0x1c6c(0x48)]),(0x0,_haptics[_0x1c6c(0x49)])(_haptics[_0x1c6c(0x4a)][_0x1c6c(0x4b)]),_0x47ed30[_0x1c6c(0x39)](_0x559f65,!![]),console[_0x1c6c(0x2a)](_0x47ed30[_0x1c6c(0x4c)]);},'activeOpacity':0.85},_react[_0x1c6c(0x4)][_0x1c6c(0x44)](_reactNative[_0x1c6c(0x45)],{'style':styles[_0x1c6c(0x4d)]},_react[_0x1c6c(0x4)]['createElement'](_reactNative[_0x1c6c(0x4e)],{'source':_assetRegistry[_0x1c6c(0x4f)][_0x1c6c(0x50)],'style':styles[_0x1c6c(0x51)],'resizeMode':'contain','accessibilityLabel':_0x47ed30[_0x1c6c(0x52)]}),_react[_0x1c6c(0x4)][_0x1c6c(0x44)](_reactNative[_0x1c6c(0x53)],{'style':[styles[_0x1c6c(0x54)],{'color':textColor}]},_0x47ed30[_0x1c6c(0x55)]))),_react[_0x1c6c(0x4)][_0x1c6c(0x44)](_WelcomeScreen[_0x1c6c(0x4)],{'visible':_0x2d981b,'onClose':_0xc8af9,'onComplete':_0x497fed}));};exports[_0x1c6c(0x1)]=OnairosSignInButton;const styles=_reactNative[_0x1c6c(0x56)][_0x1c6c(0x57)]({'button':{'borderRadius':0x18,'justifyContent':_0x1c6c(0x58),'alignItems':_0x1c6c(0x58),'shadowColor':'#000','shadowOffset':{'width':0x0,'height':0x2},'shadowOpacity':0.1,'shadowRadius':0x4,'elevation':0x2,'marginVertical':0x8},'contentRow':{'flexDirection':_0x1c6c(0x59),'alignItems':_0x1c6c(0x58),'justifyContent':_0x1c6c(0x58)},'logo':{'width':0x1a,'height':0x1a,'marginRight':0xa},'buttonText':{'fontSize':0x10,'fontWeight':_0x1c6c(0x5a),'textAlign':_0x1c6c(0x58)},'container':{}});