@onairos/react-native 3.7.1 → 3.7.3

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 (241) hide show
  1. package/lib/commonjs/api/index.js +219 -9
  2. package/lib/commonjs/assets/icons/spotify.png +0 -0
  3. package/lib/commonjs/assets/images/spotify.png +0 -0
  4. package/lib/commonjs/components/BodyText.js +27 -9
  5. package/lib/commonjs/components/BrandMark.js +111 -10
  6. package/lib/commonjs/components/CodeInput.js +116 -9
  7. package/lib/commonjs/components/EmailInput.js +30 -8
  8. package/lib/commonjs/components/GoogleButton.js +56 -9
  9. package/lib/commonjs/components/HeadingGroup.js +43 -9
  10. package/lib/commonjs/components/LLMDataInputModal.js +664 -14
  11. package/lib/commonjs/components/ModalHeader.js +99 -9
  12. package/lib/commonjs/components/ModalSheet.js +47 -9
  13. package/lib/commonjs/components/Onairos.js +380 -14
  14. package/lib/commonjs/components/OnairosButton.js +313 -13
  15. package/lib/commonjs/components/OnairosSignInButton.js +130 -12
  16. package/lib/commonjs/components/Overlay.js +465 -13
  17. package/lib/commonjs/components/PersonaImage.js +137 -10
  18. package/lib/commonjs/components/PersonaLoadingScreen.js +318 -12
  19. package/lib/commonjs/components/PersonalizationConsentScreen.js +467 -13
  20. package/lib/commonjs/components/PinCreationScreen.js +403 -12
  21. package/lib/commonjs/components/PinInput.js +464 -9
  22. package/lib/commonjs/components/PlatformConnectorsStep.js +1311 -23
  23. package/lib/commonjs/components/PlatformList.js +137 -10
  24. package/lib/commonjs/components/PlatformToggle.js +180 -9
  25. package/lib/commonjs/components/PrimaryButton.js +180 -10
  26. package/lib/commonjs/components/SignInMatchAnimation.js +197 -9
  27. package/lib/commonjs/components/SignInStep.js +345 -12
  28. package/lib/commonjs/components/UniversalOnboarding.js +2780 -30
  29. package/lib/commonjs/components/VerificationStep.js +176 -11
  30. package/lib/commonjs/components/WelcomeScreen.js +461 -22
  31. package/lib/commonjs/components/icons/Basicproficon.js +37 -8
  32. package/lib/commonjs/components/icons/Basicprofile.js +21 -8
  33. package/lib/commonjs/components/icons/Checkbox.js +21 -8
  34. package/lib/commonjs/components/icons/Checkmark.js +27 -8
  35. package/lib/commonjs/components/icons/Contentanalysis.js +21 -8
  36. package/lib/commonjs/components/icons/Contenticon.js +39 -8
  37. package/lib/commonjs/components/icons/EnochE.js +41 -8
  38. package/lib/commonjs/components/icons/Personalityicon.js +30 -8
  39. package/lib/commonjs/components/icons/Personalityprofile.js +21 -8
  40. package/lib/commonjs/components/icons/Personalitytraits.js +21 -8
  41. package/lib/commonjs/components/icons/Userpreferences.js +21 -8
  42. package/lib/commonjs/components/icons/index.js +84 -17
  43. package/lib/commonjs/components/onboarding/OAuthWebView.js +1754 -18
  44. package/lib/commonjs/components/onboarding/OnboardingHeader.js +74 -10
  45. package/lib/commonjs/components/onboarding/PinInput.js +283 -10
  46. package/lib/commonjs/components/onboarding/PlatformConnector.js +249 -11
  47. package/lib/commonjs/config/PLATFORM_APIS.md +849 -0
  48. package/lib/commonjs/config/api.js +56 -7
  49. package/lib/commonjs/constants/index.js +120 -7
  50. package/lib/commonjs/context/AuthContext.js +345 -10
  51. package/lib/commonjs/hooks/useConnectedAccounts.js +111 -9
  52. package/lib/commonjs/hooks/useConnections.js +102 -8
  53. package/lib/commonjs/hooks/useCredentials.js +178 -10
  54. package/lib/commonjs/hooks/useUserConnections.js +148 -10
  55. package/lib/commonjs/index.js +439 -34
  56. package/lib/commonjs/services/apiClient.js +298 -8
  57. package/lib/commonjs/services/biometricPinService.js +180 -8
  58. package/lib/commonjs/services/chatGPTConversationExtractor.js +155 -8
  59. package/lib/commonjs/services/chatGPTConversationService.js +275 -9
  60. package/lib/commonjs/services/claudeConversationExtractor.js +103 -8
  61. package/lib/commonjs/services/claudeConversationService.js +158 -9
  62. package/lib/commonjs/services/connectedAccountsService.js +310 -10
  63. package/lib/commonjs/services/googleAuthService.js +252 -11
  64. package/lib/commonjs/services/hingeDataExtractor.js +105 -8
  65. package/lib/commonjs/services/hingeDataService.js +150 -9
  66. package/lib/commonjs/services/imageCompressionService.js +260 -7
  67. package/lib/commonjs/services/instagramDataExtractor.js +126 -8
  68. package/lib/commonjs/services/instagramDataService.js +163 -9
  69. package/lib/commonjs/services/jwtStorageService.js +276 -7
  70. package/lib/commonjs/services/linkedinDOMExtractor.js +245 -7
  71. package/lib/commonjs/services/linkedinProfileService.js +222 -9
  72. package/lib/commonjs/services/linkedinScrapingService.js +230 -8
  73. package/lib/commonjs/services/llmDataStorage.js +294 -8
  74. package/lib/commonjs/services/mobileTrainingService.js +186 -8
  75. package/lib/commonjs/services/netflixDataExtractor.js +120 -8
  76. package/lib/commonjs/services/netflixDataService.js +198 -9
  77. package/lib/commonjs/services/pinEncryptionService.js +84 -8
  78. package/lib/commonjs/services/pinStorageUtils.js +105 -7
  79. package/lib/commonjs/services/platformAuthService.js +1484 -12
  80. package/lib/commonjs/services/sephoraDataExtractor.js +140 -8
  81. package/lib/commonjs/services/sephoraDataService.js +200 -9
  82. package/lib/commonjs/services/spotifyDataExtractor.js +148 -8
  83. package/lib/commonjs/services/spotifyDataService.js +241 -9
  84. package/lib/commonjs/services/storageService.js +404 -8
  85. package/lib/commonjs/services/telegramDataExtractor.js +115 -8
  86. package/lib/commonjs/services/telegramDataService.js +499 -9
  87. package/lib/commonjs/services/trainingApiHelpers.js +73 -7
  88. package/lib/commonjs/services/userConnectionsService.js +340 -10
  89. package/lib/commonjs/services/youtubeMigrationService.js +416 -10
  90. package/lib/commonjs/theme/index.js +250 -7
  91. package/lib/commonjs/types/ambient.d.js +2 -1
  92. package/lib/commonjs/types/declarations.d.js +2 -1
  93. package/lib/commonjs/types/index.js +6 -1
  94. package/lib/commonjs/types/node-fix.d.js +2 -1
  95. package/lib/commonjs/types/node-override.d.js +2 -1
  96. package/lib/commonjs/types/opacity.d.js +2 -1
  97. package/lib/commonjs/types.js +14 -1
  98. package/lib/commonjs/utils/Portal.js +98 -8
  99. package/lib/commonjs/utils/api.js +130 -9
  100. package/lib/commonjs/utils/assetRegistry.js +210 -35
  101. package/lib/commonjs/utils/auth.js +112 -9
  102. package/lib/commonjs/utils/connectorTests.js +613 -29
  103. package/lib/commonjs/utils/crypto.js +62 -8
  104. package/lib/commonjs/utils/debugHelper.js +64 -1
  105. package/lib/commonjs/utils/encryption.js +76 -7
  106. package/lib/commonjs/utils/eventUtils.js +288 -1
  107. package/lib/commonjs/utils/haptics.js +66 -9
  108. package/lib/commonjs/utils/imagePreloader.js +6 -1
  109. package/lib/commonjs/utils/networkDiagnostics.js +226 -8
  110. package/lib/commonjs/utils/onairosApi.js +350 -9
  111. package/lib/commonjs/utils/programmaticFlow.js +117 -9
  112. package/lib/commonjs/utils/retryHelper.js +220 -1
  113. package/lib/commonjs/utils/secureStorage.js +349 -10
  114. package/lib/commonjs/utils/webviewScripts/chatgpt.js +551 -1
  115. package/lib/commonjs/utils/webviewScripts/claude.js +376 -1
  116. package/lib/commonjs/utils/webviewScripts/hinge.js +411 -1
  117. package/lib/commonjs/utils/webviewScripts/index.js +698 -15
  118. package/lib/commonjs/utils/webviewScripts/instagram.js +454 -1
  119. package/lib/commonjs/utils/webviewScripts/linkedin.js +880 -1
  120. package/lib/commonjs/utils/webviewScripts/netflix.js +382 -1
  121. package/lib/commonjs/utils/webviewScripts/sephora.js +516 -1
  122. package/lib/commonjs/utils/webviewScripts/spotify.js +419 -1
  123. package/lib/commonjs/utils/webviewScripts/telegram.js +678 -1
  124. package/lib/module/api/index.js +211 -1
  125. package/lib/module/assets/icons/spotify.png +0 -0
  126. package/lib/module/assets/images/spotify.png +0 -0
  127. package/lib/module/components/BodyText.js +20 -1
  128. package/lib/module/components/BrandMark.js +104 -1
  129. package/lib/module/components/CodeInput.js +109 -1
  130. package/lib/module/components/EmailInput.js +23 -1
  131. package/lib/module/components/GoogleButton.js +49 -1
  132. package/lib/module/components/HeadingGroup.js +36 -1
  133. package/lib/module/components/LLMDataInputModal.js +656 -7
  134. package/lib/module/components/ModalHeader.js +92 -1
  135. package/lib/module/components/ModalSheet.js +39 -1
  136. package/lib/module/components/Onairos.js +373 -1
  137. package/lib/module/components/OnairosButton.js +305 -1
  138. package/lib/module/components/OnairosSignInButton.js +121 -1
  139. package/lib/module/components/Overlay.js +456 -1
  140. package/lib/module/components/PersonaImage.js +129 -1
  141. package/lib/module/components/PersonaLoadingScreen.js +310 -1
  142. package/lib/module/components/PersonalizationConsentScreen.js +460 -1
  143. package/lib/module/components/PinCreationScreen.js +396 -1
  144. package/lib/module/components/PinInput.js +456 -1
  145. package/lib/module/components/PlatformConnectorsStep.js +1302 -6
  146. package/lib/module/components/PlatformList.js +129 -1
  147. package/lib/module/components/PlatformToggle.js +173 -1
  148. package/lib/module/components/PrimaryButton.js +172 -1
  149. package/lib/module/components/SignInMatchAnimation.js +189 -1
  150. package/lib/module/components/SignInStep.js +338 -1
  151. package/lib/module/components/UniversalOnboarding.js +2770 -1
  152. package/lib/module/components/VerificationStep.js +168 -1
  153. package/lib/module/components/WelcomeScreen.js +453 -1
  154. package/lib/module/components/icons/Basicproficon.js +30 -1
  155. package/lib/module/components/icons/Basicprofile.js +14 -1
  156. package/lib/module/components/icons/Checkbox.js +14 -1
  157. package/lib/module/components/icons/Checkmark.js +20 -1
  158. package/lib/module/components/icons/Contentanalysis.js +14 -1
  159. package/lib/module/components/icons/Contenticon.js +32 -1
  160. package/lib/module/components/icons/EnochE.js +34 -1
  161. package/lib/module/components/icons/Personalityicon.js +23 -1
  162. package/lib/module/components/icons/Personalityprofile.js +14 -1
  163. package/lib/module/components/icons/Personalitytraits.js +14 -1
  164. package/lib/module/components/icons/Userpreferences.js +14 -1
  165. package/lib/module/components/icons/index.js +13 -1
  166. package/lib/module/components/onboarding/OAuthWebView.js +1746 -1
  167. package/lib/module/components/onboarding/OnboardingHeader.js +66 -1
  168. package/lib/module/components/onboarding/PinInput.js +274 -1
  169. package/lib/module/components/onboarding/PlatformConnector.js +240 -1
  170. package/lib/module/config/PLATFORM_APIS.md +849 -0
  171. package/lib/module/config/api.js +47 -1
  172. package/lib/module/constants/index.js +114 -1
  173. package/lib/module/context/AuthContext.js +335 -1
  174. package/lib/module/hooks/useConnectedAccounts.js +106 -1
  175. package/lib/module/hooks/useConnections.js +95 -1
  176. package/lib/module/hooks/useCredentials.js +171 -6
  177. package/lib/module/hooks/useUserConnections.js +140 -1
  178. package/lib/module/index.js +172 -1
  179. package/lib/module/services/apiClient.js +295 -1
  180. package/lib/module/services/biometricPinService.js +169 -1
  181. package/lib/module/services/chatGPTConversationExtractor.js +149 -1
  182. package/lib/module/services/chatGPTConversationService.js +268 -1
  183. package/lib/module/services/claudeConversationExtractor.js +97 -1
  184. package/lib/module/services/claudeConversationService.js +151 -1
  185. package/lib/module/services/connectedAccountsService.js +293 -1
  186. package/lib/module/services/googleAuthService.js +241 -1
  187. package/lib/module/services/hingeDataExtractor.js +99 -1
  188. package/lib/module/services/hingeDataService.js +143 -1
  189. package/lib/module/services/imageCompressionService.js +250 -1
  190. package/lib/module/services/instagramDataExtractor.js +120 -1
  191. package/lib/module/services/instagramDataService.js +156 -1
  192. package/lib/module/services/jwtStorageService.js +257 -1
  193. package/lib/module/services/linkedinDOMExtractor.js +234 -1
  194. package/lib/module/services/linkedinProfileService.js +210 -1
  195. package/lib/module/services/linkedinScrapingService.js +219 -1
  196. package/lib/module/services/llmDataStorage.js +277 -1
  197. package/lib/module/services/mobileTrainingService.js +173 -1
  198. package/lib/module/services/netflixDataExtractor.js +114 -1
  199. package/lib/module/services/netflixDataService.js +191 -1
  200. package/lib/module/services/pinEncryptionService.js +74 -6
  201. package/lib/module/services/pinStorageUtils.js +93 -1
  202. package/lib/module/services/platformAuthService.js +1461 -1
  203. package/lib/module/services/sephoraDataExtractor.js +134 -1
  204. package/lib/module/services/sephoraDataService.js +193 -1
  205. package/lib/module/services/spotifyDataExtractor.js +142 -1
  206. package/lib/module/services/spotifyDataService.js +234 -1
  207. package/lib/module/services/storageService.js +383 -1
  208. package/lib/module/services/telegramDataExtractor.js +109 -1
  209. package/lib/module/services/telegramDataService.js +493 -1
  210. package/lib/module/services/trainingApiHelpers.js +67 -1
  211. package/lib/module/services/userConnectionsService.js +329 -1
  212. package/lib/module/services/youtubeMigrationService.js +405 -1
  213. package/lib/module/theme/index.js +245 -1
  214. package/lib/module/types.js +10 -1
  215. package/lib/module/utils/Portal.js +90 -1
  216. package/lib/module/utils/api.js +118 -1
  217. package/lib/module/utils/assetRegistry.js +200 -34
  218. package/lib/module/utils/auth.js +100 -1
  219. package/lib/module/utils/connectorTests.js +600 -27
  220. package/lib/module/utils/crypto.js +54 -1
  221. package/lib/module/utils/debugHelper.js +54 -1
  222. package/lib/module/utils/encryption.js +67 -1
  223. package/lib/module/utils/eventUtils.js +270 -1
  224. package/lib/module/utils/haptics.js +59 -8
  225. package/lib/module/utils/imagePreloader.js +3 -1
  226. package/lib/module/utils/networkDiagnostics.js +217 -1
  227. package/lib/module/utils/onairosApi.js +333 -1
  228. package/lib/module/utils/programmaticFlow.js +111 -1
  229. package/lib/module/utils/retryHelper.js +211 -1
  230. package/lib/module/utils/secureStorage.js +330 -6
  231. package/lib/module/utils/webviewScripts/chatgpt.js +545 -1
  232. package/lib/module/utils/webviewScripts/claude.js +370 -1
  233. package/lib/module/utils/webviewScripts/hinge.js +405 -1
  234. package/lib/module/utils/webviewScripts/index.js +434 -1
  235. package/lib/module/utils/webviewScripts/instagram.js +448 -1
  236. package/lib/module/utils/webviewScripts/linkedin.js +874 -1
  237. package/lib/module/utils/webviewScripts/netflix.js +376 -1
  238. package/lib/module/utils/webviewScripts/sephora.js +510 -1
  239. package/lib/module/utils/webviewScripts/spotify.js +413 -1
  240. package/lib/module/utils/webviewScripts/telegram.js +672 -1
  241. package/package.json +2 -2
@@ -1,7 +1,250 @@
1
- 'use strict';
2
- // Onairos SDK - Asset Registry (auto-generated)
3
- var __ONAIROS_REQ_REGISTRY__ = [
4
- require("react-native")
5
- ];
6
- function __ONAIROS_REQ_FUNC__(i) { return __ONAIROS_REQ_REGISTRY__[i]; }
7
- function _0x2791(_0x3a4fa5,_0x2791b9){_0x3a4fa5=_0x3a4fa5-0x0;const _0x3ff6af=_0x3a4f();let _0x41a943=_0x3ff6af[_0x3a4fa5];return _0x41a943;}Object[_0x2791(0x0)](exports,_0x2791(0x1),{'value':!![]}),exports['default']=exports[_0x2791(0x2)]=exports[_0x2791(0x3)]=exports['SHADOWS']=exports['FONTS']=exports[_0x2791(0x4)]=exports['BORDER_RADIUS']=void 0x0;function _0x3a4f(){const _0x30bb81=['defineProperty','__esModule','TEXT_STYLES','SPACING','COLORS','#FAFAFA','#9CA3AF','#62646C','#1F242F','#17181C','rgba(0,0,0,0.20)','rgba(0,0,0,0.10)','rgba(0,0,0,0.06)','#FFFFFF','#0A090E','#E9B104','#FFDF33','#121212','#1C2526','#B0B0B0','#808080','#FFD700','rgba(255,\x20255,\x20255,\x200.1)','#4BB543','#FF3B30','#FF9500','#5AC8FA','transparent','rgba(0,\x200,\x200,\x200.7)','FONTS','Platform','ios','IBM\x20Plex\x20Sans','Inter','System','Roboto','Georgia','serif','300','500','700','SHADOWS','primary','btnInnerShadow','btnShadowOuter','families','sizes','lineHeights','kicker','grey500','ibmPlexSansBold','weights','welcomeTitle','grey800','inter','regular','grey600','semibold','buttonLabel','btnLabel','default'];_0x3a4f=function(){return _0x30bb81;};return _0x3a4f();}var _reactNative=__ONAIROS_REQ_FUNC__(0x0);const COLORS=exports[_0x2791(0x4)]={'surface':_0x2791(0x5),'grey300':'#D1D5DB','grey400':_0x2791(0x6),'grey500':'#86888E','grey600':_0x2791(0x7),'grey700':'#374151','grey800':_0x2791(0x8),'btnGradStart':'#29292B','btnGradEnd':_0x2791(0x9),'btnBorder':_0x2791(0xa),'btnShadowOuter':_0x2791(0xb),'btnInnerShadow':_0x2791(0xc),'btnLabel':_0x2791(0xd),'iconCircleGradientStart':_0x2791(0xe),'iconCircleGradientEnd':'#17171B','primary':'#FFD700','primaryDark':_0x2791(0xf),'primaryLight':_0x2791(0x10),'background':{'dark':'#000000','medium':_0x2791(0x11),'light':_0x2791(0x12)},'text':{'primary':_0x2791(0xd),'secondary':_0x2791(0x13),'tertiary':_0x2791(0x14),'gold':_0x2791(0x15)},'ui':{'cardBackground':'rgba(255,\x20255,\x20255,\x200.1)','divider':_0x2791(0x16),'inputBackground':'rgba(255,\x20255,\x20255,\x200.1)','buttonBackground':_0x2791(0x16)},'status':{'success':_0x2791(0x17),'error':_0x2791(0x18),'warning':_0x2791(0x19),'info':_0x2791(0x1a)},'transparent':_0x2791(0x1b),'overlay':_0x2791(0x1c)},FONTS=exports[_0x2791(0x1d)]={'families':{'ibmPlexSans':_reactNative[_0x2791(0x1e)]['OS']===_0x2791(0x1f)?_0x2791(0x20):_0x2791(0x20),'ibmPlexSansBold':_reactNative[_0x2791(0x1e)]['OS']===_0x2791(0x1f)?_0x2791(0x20):'IBM\x20Plex\x20Sans','inter':_reactNative[_0x2791(0x1e)]['OS']==='ios'?_0x2791(0x21):'Inter-Regular','base':_reactNative['Platform']['OS']===_0x2791(0x1f)?_0x2791(0x22):_0x2791(0x23),'serif':_reactNative[_0x2791(0x1e)]['OS']===_0x2791(0x1f)?_0x2791(0x24):_0x2791(0x25)},'weights':{'light':_0x2791(0x26),'regular':'400','medium':_0x2791(0x27),'semibold':'600','bold':_0x2791(0x28)},'sizes':{'xs':0xc,'sm':0xe,'md':0x10,'lg':0x12,'xl':0x14,'xxl':0x18,'xxxl':0x1c,'title':0x20,'large':0x2a,'kicker':0x12,'welcomeTitle':0x30,'body':0x10,'buttonLabel':0x10},'lineHeights':{'kicker':0x14,'welcomeTitle':0x36,'body':0x18,'sm':0x10,'md':0x14,'lg':0x18,'xl':0x1c},'letterSpacing':{'kicker':-0.24,'tight':-0.5,'normal':0x0,'wide':0.5}},SPACING=exports[_0x2791(0x3)]={'xs':0x4,'sm':0x8,'md':0x10,'lg':0x18,'xl':0x20,'xxl':0x30,'xxxl':0x40,'modalTopPadding':0x76,'modalHorizontal':0x18},BORDER_RADIUS=exports['BORDER_RADIUS']={'xs':0x4,'sm':0x8,'md':0x10,'lg':0x18,'xl':0x20,'pill':0x64,'circle':0x3e7,'modalTop':0x18,'buttonPill':0x64},SHADOWS=exports[_0x2791(0x29)]={'small':{'shadowColor':COLORS[_0x2791(0x2a)],'shadowOffset':{'width':0x0,'height':0x2},'shadowOpacity':0.3,'shadowRadius':0x4,'elevation':0x3},'medium':{'shadowColor':COLORS[_0x2791(0x2a)],'shadowOffset':{'width':0x0,'height':0x4},'shadowOpacity':0.5,'shadowRadius':0x8,'elevation':0x5},'large':{'shadowColor':COLORS[_0x2791(0x2a)],'shadowOffset':{'width':0x0,'height':0x6},'shadowOpacity':0.8,'shadowRadius':0x10,'elevation':0x8},'button':{'inner':{'shadowColor':COLORS[_0x2791(0x2b)],'shadowOffset':{'width':0x0,'height':-0x24},'shadowOpacity':0x1,'shadowRadius':21.1},'outer':{'shadowColor':COLORS[_0x2791(0x2c)],'shadowOffset':{'width':0x14,'height':0x1e},'shadowOpacity':0x1,'shadowRadius':0x28,'elevation':0x8}},'brandMark':{'shadowColor':'#000000','shadowOffset':{'width':0x0,'height':0x4},'shadowOpacity':0.1,'shadowRadius':0x8,'elevation':0x4}},TEXT_STYLES=exports[_0x2791(0x2)]={'kicker':{'fontFamily':FONTS[_0x2791(0x2d)]['ibmPlexSansBold'],'fontWeight':FONTS['weights']['bold'],'fontSize':FONTS[_0x2791(0x2e)]['kicker'],'lineHeight':FONTS[_0x2791(0x2f)][_0x2791(0x30)],'letterSpacing':FONTS['letterSpacing']['kicker'],'color':COLORS[_0x2791(0x31)]},'welcomeTitle':{'fontFamily':FONTS['families'][_0x2791(0x32)],'fontWeight':FONTS[_0x2791(0x33)]['bold'],'fontSize':FONTS[_0x2791(0x2e)]['welcomeTitle'],'lineHeight':FONTS['lineHeights'][_0x2791(0x34)],'color':COLORS[_0x2791(0x35)]},'body':{'fontFamily':FONTS[_0x2791(0x2d)][_0x2791(0x36)],'fontWeight':FONTS[_0x2791(0x33)][_0x2791(0x37)],'fontSize':FONTS['sizes']['body'],'lineHeight':FONTS[_0x2791(0x2f)]['body'],'textAlign':'center','color':COLORS[_0x2791(0x38)]},'buttonLabel':{'fontFamily':FONTS['families'][_0x2791(0x36)],'fontWeight':FONTS[_0x2791(0x33)][_0x2791(0x39)],'fontSize':FONTS[_0x2791(0x2e)][_0x2791(0x3a)],'color':COLORS[_0x2791(0x3b)]}};var _default=exports[_0x2791(0x3c)]={'COLORS':COLORS,'FONTS':FONTS,'SPACING':SPACING,'BORDER_RADIUS':BORDER_RADIUS,'SHADOWS':SHADOWS,'TEXT_STYLES':TEXT_STYLES};
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = exports.TEXT_STYLES = exports.SPACING = exports.SHADOWS = exports.FONTS = exports.COLORS = exports.BORDER_RADIUS = void 0;
7
+ var _reactNative = require("react-native");
8
+ // Color Tokens as specified in the design brief
9
+ const COLORS = exports.COLORS = {
10
+ // Welcome Screen Specific Colors
11
+ surface: '#FAFAFA',
12
+ grey300: '#D1D5DB',
13
+ grey400: '#9CA3AF',
14
+ grey500: '#86888E',
15
+ grey600: '#62646C',
16
+ grey700: '#374151',
17
+ grey800: '#1F242F',
18
+ // PrimaryButton exact tokens
19
+ btnGradStart: '#29292B',
20
+ btnGradEnd: '#17181C',
21
+ btnBorder: 'rgba(0,0,0,0.20)',
22
+ btnShadowOuter: 'rgba(0,0,0,0.10)',
23
+ btnInnerShadow: 'rgba(0,0,0,0.06)',
24
+ btnLabel: '#FFFFFF',
25
+ iconCircleGradientStart: '#0A090E',
26
+ iconCircleGradientEnd: '#17171B',
27
+ // Legacy colors (preserved for backward compatibility)
28
+ primary: '#FFD700',
29
+ primaryDark: '#E9B104',
30
+ primaryLight: '#FFDF33',
31
+ background: {
32
+ dark: '#000000',
33
+ medium: '#121212',
34
+ light: '#1C2526'
35
+ },
36
+ text: {
37
+ primary: '#FFFFFF',
38
+ secondary: '#B0B0B0',
39
+ tertiary: '#808080',
40
+ gold: '#FFD700'
41
+ },
42
+ ui: {
43
+ cardBackground: 'rgba(255, 255, 255, 0.1)',
44
+ divider: 'rgba(255, 255, 255, 0.1)',
45
+ inputBackground: 'rgba(255, 255, 255, 0.1)',
46
+ buttonBackground: 'rgba(255, 255, 255, 0.1)'
47
+ },
48
+ status: {
49
+ success: '#4BB543',
50
+ error: '#FF3B30',
51
+ warning: '#FF9500',
52
+ info: '#5AC8FA'
53
+ },
54
+ transparent: 'transparent',
55
+ overlay: 'rgba(0, 0, 0, 0.7)'
56
+ };
57
+
58
+ // Typography - Font families and weights as specified
59
+ const FONTS = exports.FONTS = {
60
+ families: {
61
+ ibmPlexSans: _reactNative.Platform.OS === 'ios' ? 'IBM Plex Sans' : 'IBM Plex Sans',
62
+ ibmPlexSansBold: _reactNative.Platform.OS === 'ios' ? 'IBM Plex Sans' : 'IBM Plex Sans',
63
+ inter: _reactNative.Platform.OS === 'ios' ? 'Inter' : 'Inter-Regular',
64
+ // Legacy families
65
+ base: _reactNative.Platform.OS === 'ios' ? 'System' : 'Roboto',
66
+ serif: _reactNative.Platform.OS === 'ios' ? 'Georgia' : 'serif'
67
+ },
68
+ weights: {
69
+ light: '300',
70
+ regular: '400',
71
+ medium: '500',
72
+ semibold: '600',
73
+ bold: '700'
74
+ },
75
+ sizes: {
76
+ xs: 12,
77
+ sm: 14,
78
+ md: 16,
79
+ lg: 18,
80
+ xl: 20,
81
+ xxl: 24,
82
+ xxxl: 28,
83
+ title: 32,
84
+ large: 42,
85
+ // Welcome screen specific sizes
86
+ kicker: 18,
87
+ welcomeTitle: 48,
88
+ body: 16,
89
+ buttonLabel: 16
90
+ },
91
+ lineHeights: {
92
+ // Welcome screen specific line heights
93
+ kicker: 20,
94
+ // 111%
95
+ welcomeTitle: 54,
96
+ // 112.5%
97
+ body: 24,
98
+ // 150%
99
+ // Legacy line heights
100
+ sm: 16,
101
+ md: 20,
102
+ lg: 24,
103
+ xl: 28
104
+ },
105
+ letterSpacing: {
106
+ kicker: -0.24,
107
+ tight: -0.5,
108
+ normal: 0,
109
+ wide: 0.5
110
+ }
111
+ };
112
+
113
+ // Spacing tokens
114
+ const SPACING = exports.SPACING = {
115
+ xs: 4,
116
+ sm: 8,
117
+ md: 16,
118
+ lg: 24,
119
+ xl: 32,
120
+ xxl: 48,
121
+ xxxl: 64,
122
+ // Welcome screen specific spacing
123
+ modalTopPadding: 118,
124
+ modalHorizontal: 24
125
+ };
126
+
127
+ // Border radius tokens
128
+ const BORDER_RADIUS = exports.BORDER_RADIUS = {
129
+ xs: 4,
130
+ sm: 8,
131
+ md: 16,
132
+ lg: 24,
133
+ xl: 32,
134
+ pill: 100,
135
+ circle: 999,
136
+ // Welcome screen specific radii
137
+ modalTop: 24,
138
+ buttonPill: 100
139
+ };
140
+
141
+ // Shadow tokens
142
+ const SHADOWS = exports.SHADOWS = {
143
+ small: {
144
+ shadowColor: COLORS.primary,
145
+ shadowOffset: {
146
+ width: 0,
147
+ height: 2
148
+ },
149
+ shadowOpacity: 0.3,
150
+ shadowRadius: 4,
151
+ elevation: 3
152
+ },
153
+ medium: {
154
+ shadowColor: COLORS.primary,
155
+ shadowOffset: {
156
+ width: 0,
157
+ height: 4
158
+ },
159
+ shadowOpacity: 0.5,
160
+ shadowRadius: 8,
161
+ elevation: 5
162
+ },
163
+ large: {
164
+ shadowColor: COLORS.primary,
165
+ shadowOffset: {
166
+ width: 0,
167
+ height: 6
168
+ },
169
+ shadowOpacity: 0.8,
170
+ shadowRadius: 16,
171
+ elevation: 8
172
+ },
173
+ // Welcome screen specific shadows
174
+ button: {
175
+ // Inner shadow (simulated via overlay)
176
+ inner: {
177
+ shadowColor: COLORS.btnInnerShadow,
178
+ shadowOffset: {
179
+ width: 0,
180
+ height: -36
181
+ },
182
+ shadowOpacity: 1,
183
+ shadowRadius: 21.1
184
+ },
185
+ // Outer shadow
186
+ outer: {
187
+ shadowColor: COLORS.btnShadowOuter,
188
+ shadowOffset: {
189
+ width: 20,
190
+ height: 30
191
+ },
192
+ shadowOpacity: 1,
193
+ shadowRadius: 40,
194
+ elevation: 8
195
+ }
196
+ },
197
+ brandMark: {
198
+ shadowColor: '#000000',
199
+ shadowOffset: {
200
+ width: 0,
201
+ height: 4
202
+ },
203
+ shadowOpacity: 0.1,
204
+ shadowRadius: 8,
205
+ elevation: 4
206
+ }
207
+ };
208
+
209
+ // Typography style objects for easy use
210
+ const TEXT_STYLES = exports.TEXT_STYLES = {
211
+ // Welcome screen typography
212
+ kicker: {
213
+ fontFamily: FONTS.families.ibmPlexSansBold,
214
+ fontWeight: FONTS.weights.bold,
215
+ fontSize: FONTS.sizes.kicker,
216
+ lineHeight: FONTS.lineHeights.kicker,
217
+ letterSpacing: FONTS.letterSpacing.kicker,
218
+ color: COLORS.grey500
219
+ },
220
+ welcomeTitle: {
221
+ fontFamily: FONTS.families.ibmPlexSansBold,
222
+ fontWeight: FONTS.weights.bold,
223
+ fontSize: FONTS.sizes.welcomeTitle,
224
+ lineHeight: FONTS.lineHeights.welcomeTitle,
225
+ color: COLORS.grey800
226
+ },
227
+ body: {
228
+ fontFamily: FONTS.families.inter,
229
+ fontWeight: FONTS.weights.regular,
230
+ fontSize: FONTS.sizes.body,
231
+ lineHeight: FONTS.lineHeights.body,
232
+ textAlign: 'center',
233
+ color: COLORS.grey600
234
+ },
235
+ buttonLabel: {
236
+ fontFamily: FONTS.families.inter,
237
+ fontWeight: FONTS.weights.semibold,
238
+ fontSize: FONTS.sizes.buttonLabel,
239
+ color: COLORS.btnLabel
240
+ }
241
+ };
242
+ var _default = exports.default = {
243
+ COLORS,
244
+ FONTS,
245
+ SPACING,
246
+ BORDER_RADIUS,
247
+ SHADOWS,
248
+ TEXT_STYLES
249
+ };
250
+ //# sourceMappingURL=index.js.map
@@ -1 +1,2 @@
1
- 'use strict';
1
+ "use strict";
2
+ //# sourceMappingURL=ambient.d.js.map
@@ -1 +1,2 @@
1
- 'use strict';
1
+ "use strict";
2
+ //# sourceMappingURL=declarations.d.js.map
@@ -1 +1,6 @@
1
- 'use strict';function _0x551c(){var _0x203b56=['__esModule'];_0x551c=function(){return _0x203b56;};return _0x551c();}function _0x2922(_0x551c2d,_0x2922fc){_0x551c2d=_0x551c2d-0x0;var _0x49455c=_0x551c();var _0x27ebe0=_0x49455c[_0x551c2d];return _0x27ebe0;}Object['defineProperty'](exports,_0x2922(0x0),{'value':!![]});
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ //# sourceMappingURL=index.js.map
@@ -1 +1,2 @@
1
- 'use strict';
1
+ "use strict";
2
+ //# sourceMappingURL=node-fix.d.js.map
@@ -1 +1,2 @@
1
- 'use strict';
1
+ "use strict";
2
+ //# sourceMappingURL=node-override.d.js.map
@@ -1 +1,2 @@
1
- 'use strict';
1
+ "use strict";
2
+ //# sourceMappingURL=opacity.d.js.map
@@ -1 +1,14 @@
1
- 'use strict';function _0x73ac(){const _0x13bce6=['defineProperty','__esModule','ApiKeyType','invalid','developer','ADMIN','admin','INVALID','tOJgh'];_0x73ac=function(){return _0x13bce6;};return _0x73ac();}function _0x4170(_0x73acc,_0x41706b){_0x73acc=_0x73acc-0x0;const _0x1d6c30=_0x73ac();let _0x23e386=_0x1d6c30[_0x73acc];return _0x23e386;}Object[_0x4170(0x0)](exports,_0x4170(0x1),{'value':!![]}),exports[_0x4170(0x2)]=void 0x0;let ApiKeyType=exports[_0x4170(0x2)]=function(_0x2b416c){const _0x3bc624={'VxdLs':'DEVELOPER','tOJgh':_0x4170(0x3)};return _0x2b416c[_0x3bc624['VxdLs']]=_0x4170(0x4),_0x2b416c[_0x4170(0x5)]=_0x4170(0x6),_0x2b416c[_0x4170(0x7)]=_0x3bc624[_0x4170(0x8)],_0x2b416c;}({});
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.ApiKeyType = void 0;
7
+ // API key types
8
+ let ApiKeyType = exports.ApiKeyType = /*#__PURE__*/function (ApiKeyType) {
9
+ ApiKeyType["DEVELOPER"] = "developer";
10
+ ApiKeyType["ADMIN"] = "admin";
11
+ ApiKeyType["INVALID"] = "invalid";
12
+ return ApiKeyType;
13
+ }({}); // ... rest of the existing types ...
14
+ //# sourceMappingURL=types.js.map
@@ -1,8 +1,98 @@
1
- 'use strict';
2
- // Onairos SDK - Asset Registry (auto-generated)
3
- var __ONAIROS_REQ_REGISTRY__ = [
4
- require("react"),
5
- require("react-native")
6
- ];
7
- function __ONAIROS_REQ_FUNC__(i) { return __ONAIROS_REQ_REGISTRY__[i]; }
8
- Object[_0x2223(0x0)](exports,_0x2223(0x1),{'value':!![]}),exports['PortalHost']=exports[_0x2223(0x2)]=void 0x0;var _react=_interopRequireWildcard(__ONAIROS_REQ_FUNC__(0x0)),_reactNative=__ONAIROS_REQ_FUNC__(0x1);function _0x2223(_0x24e4bd,_0x222323){_0x24e4bd=_0x24e4bd-0x0;const _0x1676f2=_0x24e4();let _0x56076c=_0x1676f2[_0x24e4bd];return _0x56076c;}function _interopRequireWildcard(_0x27f705,_0x4c89b5){const _0x5c59e6={'hIHOJ':function(_0x3c4f5e,_0x26709d){return _0x3c4f5e&&_0x26709d;},'LySBH':function(_0x461751,_0x5333a7){return _0x461751===_0x5333a7;},'gJsFG':function(_0x3515fe,_0x590e4b){return _0x3515fe!=_0x590e4b;},'CnEUV':_0x2223(0x3),'plQkK':function(_0x4a1ae3,_0xc6d777){return _0x4a1ae3!=_0xc6d777;},'jMbhW':'function','cXKzV':function(_0x174754,_0x4e26d8){return _0x174754!==_0x4e26d8;},'wTIYE':function(_0x355acb,_0x2d1ccb,_0x353f67,_0xfc17e9){return _0x355acb(_0x2d1ccb,_0x353f67,_0xfc17e9);},'PvtsS':function(_0x36eefc,_0x1df6c0){return _0x36eefc==_0x1df6c0;}};if(_0x5c59e6[_0x2223(0x4)](_0x2223(0x5),typeof WeakMap))var _0xdabb69=new WeakMap(),_0x124b47=new WeakMap();return(_interopRequireWildcard=function(_0x28e77f,_0x4d0199){if(_0x5c59e6[_0x2223(0x6)](!_0x4d0199,_0x28e77f)&&_0x28e77f[_0x2223(0x1)])return _0x28e77f;var _0x36f349,_0x3e51a5,_0x43ffd0={'__proto__':null,'default':_0x28e77f};if(_0x5c59e6[_0x2223(0x7)](null,_0x28e77f)||_0x5c59e6[_0x2223(0x8)](_0x5c59e6['CnEUV'],typeof _0x28e77f)&&_0x5c59e6[_0x2223(0x9)](_0x5c59e6[_0x2223(0xa)],typeof _0x28e77f))return _0x43ffd0;if(_0x36f349=_0x4d0199?_0x124b47:_0xdabb69){if(_0x36f349[_0x2223(0xb)](_0x28e77f))return _0x36f349[_0x2223(0xc)](_0x28e77f);_0x36f349[_0x2223(0xd)](_0x28e77f,_0x43ffd0);}for(const _0x3abebc in _0x28e77f)_0x5c59e6['cXKzV'](_0x2223(0xe),_0x3abebc)&&{}['hasOwnProperty'][_0x2223(0xf)](_0x28e77f,_0x3abebc)&&((_0x3e51a5=(_0x36f349=Object[_0x2223(0x0)])&&Object[_0x2223(0x10)](_0x28e77f,_0x3abebc))&&(_0x3e51a5[_0x2223(0xc)]||_0x3e51a5['set'])?_0x5c59e6['wTIYE'](_0x36f349,_0x43ffd0,_0x3abebc,_0x3e51a5):_0x43ffd0[_0x3abebc]=_0x28e77f[_0x3abebc]);return _0x43ffd0;})(_0x27f705,_0x4c89b5);}function _0x24e4(){const _0x447bfa=['defineProperty','__esModule','Portal','object','PvtsS','function','hIHOJ','LySBH','gJsFG','plQkK','jMbhW','has','get','set','default','call','getOwnPropertyDescriptor','KnPmI','FOSlT','EFWDj','useState','uiLef','DRYeZ','kvoxv','Dkjnx','msrVg','RKvPg','seTxW','ENvNN','RHIlJ','GmNbf','ksnaL','xiclr','hIWxi','AKmMy','qfukQ','hasOwnProperty','zToix','zDcUo','Ikmlf','dpuFx','tXZSD','gFmSV','BXbVj','RAYHj','Provider','map','createElement','View','PortalHost','YFFZz','RkzwK','useContext','useEffect','UqaSM','SnOxG','cXvoq','qRCne','sAZct','LKuyZ','OuMPJ','yAtSd','NXKRQ','CjrRM','zpQDH'];_0x24e4=function(){return _0x447bfa;};return _0x24e4();}const portalRefs={};let portalId=0x0;const PortalContext=_react[_0x2223(0xe)]['createContext']({'mount':()=>0x0,'update':()=>{},'unmount':()=>{}}),PortalHost=({children:_0x4c9aad})=>{const _0xd2b718={'cAoAj':function(_0x20dd6d,_0x2255f3){return _0x20dd6d&&_0x2255f3;},'kvoxv':function(_0x37f8d6,_0x1da26d){return _0x37f8d6===_0x1da26d;},'uiLef':function(_0x2966d4,_0x37f1d2){return _0x2966d4!==_0x37f1d2;},'DRYeZ':function(_0x1994a0,_0x4e50d0,_0x403bd9,_0x41304d){return _0x1994a0(_0x4e50d0,_0x403bd9,_0x41304d);},'Dkjnx':_0x2223(0x11),'msrVg':function(_0x2bd717,_0x797bab){return _0x2bd717(_0x797bab);},'hwEID':function(_0x1e030e,_0x19a4e5){return _0x1e030e(_0x19a4e5);},'yOjBV':function(_0x1966e7,_0x2566b7){return _0x1966e7===_0x2566b7;},'Hhiwq':_0x2223(0x12),'Ikmlf':function(_0x2cea5e,_0x21d538){return _0x2cea5e!==_0x21d538;},'RAYHj':function(_0x330633,_0x4d55ab,_0x3a66b2){return _0x330633(_0x4d55ab,_0x3a66b2);},'zDcUo':function(_0x48094c,_0x2c2e6f){return _0x48094c(_0x2c2e6f);},'dpuFx':_0x2223(0x13),'tXZSD':'AuKZW'},[_0x1ac568,_0x5a384f]=(0x0,_react[_0x2223(0x14)])({}),_0x464b65=_0x563c35=>{const _0x5ab602={'RKvPg':function(_0x482ff9,_0x31112a){return _0xd2b718['cAoAj'](_0x482ff9,_0x31112a);},'seTxW':function(_0xd36de6,_0x1228de){return _0xd2b718['kvoxv'](_0xd36de6,_0x1228de);},'Msivx':_0x2223(0x3),'ENvNN':function(_0x18a16d,_0x53f9e5){return _0xd2b718[_0x2223(0x15)](_0x18a16d,_0x53f9e5);},'RHIlJ':'default','ggHxd':function(_0x4aa673,_0x1fb9af,_0x5bc2ea,_0xacb880){return _0xd2b718[_0x2223(0x16)](_0x4aa673,_0x1fb9af,_0x5bc2ea,_0xacb880);},'GmNbf':'function'};if(_0xd2b718[_0x2223(0x17)](_0xd2b718[_0x2223(0x18)],_0xd2b718[_0x2223(0x18)])){const _0x1d43a8=++portalId;return _0xd2b718[_0x2223(0x19)](_0x5a384f,_0x12c19a=>({..._0x12c19a,[_0x1d43a8]:_0x563c35})),_0x1d43a8;}else{const _0x29317b={'ksnaL':function(_0xd337c8,_0x4247c2){return _0x5ab602[_0x2223(0x1a)](_0xd337c8,_0x4247c2);},'xiclr':function(_0x5713ca,_0x426468){return _0x5ab602[_0x2223(0x1b)](_0x5713ca,_0x426468);},'hIWxi':function(_0x1571df,_0x21d994){return _0x1571df!=_0x21d994;},'PVteN':_0x5ab602['Msivx'],'AKmMy':_0x2223(0x5),'qfukQ':function(_0x3ce91f,_0x1afbd7){return _0x5ab602[_0x2223(0x1c)](_0x3ce91f,_0x1afbd7);},'oWbfE':_0x5ab602[_0x2223(0x1d)],'zToix':function(_0x3562b7,_0x2d348d,_0x4f4268,_0x1757bc){return _0x5ab602['ggHxd'](_0x3562b7,_0x2d348d,_0x4f4268,_0x1757bc);}};if(_0x5ab602[_0x2223(0x1e)]==typeof _0x1b25e8)var _0x1cbf9c=new _0x341ca2(),_0x3c605f=new _0x4cdb86();return(_0x43493b=function(_0x4b3573,_0x1e4cfe){if(_0x29317b[_0x2223(0x1f)](!_0x1e4cfe,_0x4b3573)&&_0x4b3573['__esModule'])return _0x4b3573;var _0x894374,_0x21eb34,_0x7c32ab={'__proto__':null,'default':_0x4b3573};if(_0x29317b[_0x2223(0x20)](null,_0x4b3573)||_0x29317b[_0x2223(0x21)](_0x29317b['PVteN'],typeof _0x4b3573)&&_0x29317b[_0x2223(0x21)](_0x29317b[_0x2223(0x22)],typeof _0x4b3573))return _0x7c32ab;if(_0x894374=_0x1e4cfe?_0x3c605f:_0x1cbf9c){if(_0x894374['has'](_0x4b3573))return _0x894374['get'](_0x4b3573);_0x894374[_0x2223(0xd)](_0x4b3573,_0x7c32ab);}for(const _0x241959 in _0x4b3573)_0x29317b[_0x2223(0x23)](_0x29317b['oWbfE'],_0x241959)&&{}[_0x2223(0x24)][_0x2223(0xf)](_0x4b3573,_0x241959)&&((_0x21eb34=(_0x894374=_0x483833[_0x2223(0x0)])&&_0x2c6d5c[_0x2223(0x10)](_0x4b3573,_0x241959))&&(_0x21eb34['get']||_0x21eb34[_0x2223(0xd)])?_0x29317b[_0x2223(0x25)](_0x894374,_0x7c32ab,_0x241959,_0x21eb34):_0x7c32ab[_0x241959]=_0x4b3573[_0x241959]);return _0x7c32ab;})(_0x5a4fac,_0x5a056d);}},_0x369f99=(_0x1cf2d0,_0x10aee2)=>{_0xd2b718['hwEID'](_0x5a384f,_0x345cf5=>({..._0x345cf5,[_0x1cf2d0]:_0x10aee2}));},_0x7bf832=_0x52fe5d=>{const _0x29e7d4={'BXbVj':function(_0xd9ea52,_0x2df474){return _0xd2b718[_0x2223(0x26)](_0xd9ea52,_0x2df474);}};_0xd2b718[_0x2223(0x27)](_0xd2b718[_0x2223(0x28)],_0xd2b718[_0x2223(0x29)])?_0x5a384f(_0x40856c=>{if(_0xd2b718['yOjBV'](_0xd2b718['Hhiwq'],_0x2223(0x2a)))_0x29e7d4[_0x2223(0x2b)](_0x388461,_0x2c71c4=>{const _0x1c1a64={..._0x2c71c4};return delete _0x1c1a64[_0x4e3fd1],_0x1c1a64;});else{const _0xef64cd={..._0x40856c};return delete _0xef64cd[_0x52fe5d],_0xef64cd;}}):_0xd2b718[_0x2223(0x27)](_0x5ca1c7,null)&&_0xd2b718[_0x2223(0x2c)](_0x2d36a2,_0x98fe27,_0x5dde5e);};return _react['default']['createElement'](PortalContext[_0x2223(0x2d)],{'value':{'mount':_0x464b65,'update':_0x369f99,'unmount':_0x7bf832}},_0x4c9aad,Object['keys'](_0x1ac568)[_0x2223(0x2e)](_0x262ad6=>_react[_0x2223(0xe)][_0x2223(0x2f)](_reactNative[_0x2223(0x30)],{'key':_0x262ad6,'style':{'position':'absolute','top':0x0,'left':0x0,'right':0x0,'bottom':0x0,'zIndex':0x270f}},_0x1ac568[Number(_0x262ad6)])));};exports[_0x2223(0x31)]=PortalHost;const Portal=({children:_0x5c64fb})=>{const _0x155ded={'UqaSM':function(_0x5a91ae,_0x853001){return _0x5a91ae!=_0x853001;},'SnOxG':_0x2223(0x3),'cXvoq':_0x2223(0x5),'qRCne':function(_0x29a2c1,_0x790f22){return _0x29a2c1===_0x790f22;},'sAZct':_0x2223(0x32),'uQFCt':_0x2223(0x33),'zpQDH':function(_0x226285,_0x3794a3){return _0x226285(_0x3794a3);}},{mount:_0x1a4dea,update:_0x199710,unmount:_0x2b483e}=_react[_0x2223(0xe)][_0x2223(0x34)](PortalContext),[_0x447686,_0x93f1ea]=(0x0,_react[_0x2223(0x14)])(null);return(0x0,_react[_0x2223(0x35)])(()=>{const _0x3522d8={'LKuyZ':function(_0x429500,_0x3b6c6c){return _0x155ded[_0x2223(0x36)](_0x429500,_0x3b6c6c);},'OuMPJ':_0x155ded[_0x2223(0x37)],'yAtSd':function(_0x453722,_0x3abdb6){return _0x453722!=_0x3abdb6;},'NXKRQ':_0x155ded[_0x2223(0x38)],'CjrRM':function(_0x7a6e08,_0x26f406,_0xa5b049,_0x2e9915){return _0x7a6e08(_0x26f406,_0xa5b049,_0x2e9915);}};if(_0x155ded[_0x2223(0x39)](_0x155ded[_0x2223(0x3a)],_0x155ded['uQFCt'])){if(!_0x3087f9&&_0x48e634&&_0x54ef87[_0x2223(0x1)])return _0x5546e6;var _0x57a0bd,_0x3d20f9,_0x246178={'__proto__':null,'default':_0x428c3f};if(null===_0x29a83b||_0x3522d8[_0x2223(0x3b)](_0x3522d8[_0x2223(0x3c)],typeof _0x527127)&&_0x3522d8[_0x2223(0x3d)](_0x3522d8[_0x2223(0x3e)],typeof _0x116261))return _0x246178;if(_0x57a0bd=_0x3eaa50?_0x188a69:_0x129f99){if(_0x57a0bd[_0x2223(0xb)](_0x400199))return _0x57a0bd[_0x2223(0xc)](_0x414543);_0x57a0bd['set'](_0x2339bd,_0x246178);}for(const _0x5e2968 in _0xe0642b)_0x2223(0xe)!==_0x5e2968&&{}[_0x2223(0x24)][_0x2223(0xf)](_0x24cce6,_0x5e2968)&&((_0x3d20f9=(_0x57a0bd=_0x585d29[_0x2223(0x0)])&&_0xb5d880['getOwnPropertyDescriptor'](_0x5a3853,_0x5e2968))&&(_0x3d20f9[_0x2223(0xc)]||_0x3d20f9['set'])?_0x3522d8[_0x2223(0x3f)](_0x57a0bd,_0x246178,_0x5e2968,_0x3d20f9):_0x246178[_0x5e2968]=_0x1bfc5f[_0x5e2968]);return _0x246178;}else{const _0x47ac48=_0x155ded[_0x2223(0x40)](_0x1a4dea,_0x5c64fb);return _0x155ded[_0x2223(0x40)](_0x93f1ea,_0x47ac48),()=>{if(_0x447686)_0x2b483e(_0x447686);};}},[]),(0x0,_react[_0x2223(0x35)])(()=>{_0x447686!==null&&_0x199710(_0x447686,_0x5c64fb);},[_0x5c64fb,_0x447686]),null;};exports['Portal']=Portal;
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.PortalHost = exports.Portal = void 0;
7
+ var _react = _interopRequireWildcard(require("react"));
8
+ var _reactNative = require("react-native");
9
+ 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); }
10
+ // Store for portal instances
11
+ const portalRefs = {};
12
+ let portalId = 0;
13
+
14
+ // Context to pass portal host state
15
+ const PortalContext = /*#__PURE__*/_react.default.createContext({
16
+ mount: () => 0,
17
+ update: () => {},
18
+ unmount: () => {}
19
+ });
20
+
21
+ /**
22
+ * Portal Host component - place this at the root of your app
23
+ */
24
+ const PortalHost = ({
25
+ children
26
+ }) => {
27
+ const [portals, setPortals] = (0, _react.useState)({});
28
+ const mount = children => {
29
+ const key = ++portalId;
30
+ setPortals(state => ({
31
+ ...state,
32
+ [key]: children
33
+ }));
34
+ return key;
35
+ };
36
+ const update = (key, children) => {
37
+ setPortals(state => ({
38
+ ...state,
39
+ [key]: children
40
+ }));
41
+ };
42
+ const unmount = key => {
43
+ setPortals(state => {
44
+ const newState = {
45
+ ...state
46
+ };
47
+ delete newState[key];
48
+ return newState;
49
+ });
50
+ };
51
+ return /*#__PURE__*/_react.default.createElement(PortalContext.Provider, {
52
+ value: {
53
+ mount,
54
+ update,
55
+ unmount
56
+ }
57
+ }, children, Object.keys(portals).map(key => /*#__PURE__*/_react.default.createElement(_reactNative.View, {
58
+ key: key,
59
+ style: {
60
+ position: 'absolute',
61
+ top: 0,
62
+ left: 0,
63
+ right: 0,
64
+ bottom: 0,
65
+ zIndex: 9999
66
+ }
67
+ }, portals[Number(key)])));
68
+ };
69
+
70
+ /**
71
+ * Portal component - renders children into the PortalHost
72
+ */
73
+ exports.PortalHost = PortalHost;
74
+ const Portal = ({
75
+ children
76
+ }) => {
77
+ const {
78
+ mount,
79
+ update,
80
+ unmount
81
+ } = _react.default.useContext(PortalContext);
82
+ const [portalId, setPortalId] = (0, _react.useState)(null);
83
+ (0, _react.useEffect)(() => {
84
+ const id = mount(children);
85
+ setPortalId(id);
86
+ return () => {
87
+ if (portalId) unmount(portalId);
88
+ };
89
+ }, []);
90
+ (0, _react.useEffect)(() => {
91
+ if (portalId !== null) {
92
+ update(portalId, children);
93
+ }
94
+ }, [children, portalId]);
95
+ return null;
96
+ };
97
+ exports.Portal = Portal;
98
+ //# sourceMappingURL=Portal.js.map
@@ -1,9 +1,130 @@
1
- 'use strict';
2
- // Onairos SDK - Asset Registry (auto-generated)
3
- var __ONAIROS_REQ_REGISTRY__ = [
4
- require("axios"),
5
- require("@react-native-async-storage/async-storage"),
6
- require("../config/api")
7
- ];
8
- function __ONAIROS_REQ_FUNC__(i) { return __ONAIROS_REQ_REGISTRY__[i]; }
9
- Object[_0x4f98(0x0)](exports,_0x4f98(0x1),{'value':!![]}),exports['validateDomain']=exports[_0x4f98(0x2)]=exports['fetchAccountInfo']=exports[_0x4f98(0x3)]=exports[_0x4f98(0x4)]=void 0x0;var _axios=_interopRequireDefault(__ONAIROS_REQ_FUNC__(0x0)),_asyncStorage=_interopRequireDefault(__ONAIROS_REQ_FUNC__(0x1)),_api=__ONAIROS_REQ_FUNC__(0x2);function _interopRequireDefault(_0x47ef09){return _0x47ef09&&_0x47ef09['__esModule']?_0x47ef09:{'default':_0x47ef09};}function _0x1254(){const _0x16e363=['defineProperty','__esModule','getApiUrl','createApiInstance','createAccount','BASE_URL','default','getItem','create','Bearer\x20','Error\x20validating\x20domain:','ciLxP','NpHUx','/valid/validate-domain','OKXpa','tgeVT','error','gzqSF','post','validateDomain','/getAccountInfo/email','/getAccountInfo','OeEKo','aQsfp','data','Error\x20fetching\x20account\x20info:','fetchAccountInfo','Error\x20getting\x20API\x20URL:','HMTEY','othent','Scwtt','UpdMr','/createAccount','Hcilw','vLHEH','zHfrr','Error\x20creating\x20account:'];_0x1254=function(){return _0x16e363;};return _0x1254();}const API_URL=_api['API_CONFIG'][_0x4f98(0x5)],createApiInstance=async()=>{const _0xb0370e={'UCeyJ':'onairosToken'},_0x238455=await _asyncStorage[_0x4f98(0x6)][_0x4f98(0x7)](_0xb0370e['UCeyJ']);return _axios[_0x4f98(0x6)][_0x4f98(0x8)]({'baseURL':API_URL,'headers':{'Content-Type':'application/json',..._0x238455?{'Authorization':_0x4f98(0x9)+_0x238455}:{}}});};function _0x4f98(_0x125499,_0x4f983c){_0x125499=_0x125499-0x0;const _0x1c51c6=_0x1254();let _0x39f416=_0x1c51c6[_0x125499];return _0x39f416;}exports[_0x4f98(0x3)]=createApiInstance;const validateDomain=async()=>{const _0x6865ae={'gzqSF':_0x4f98(0xa),'OKXpa':_0x4f98(0xb),'tgeVT':_0x4f98(0xc),'rRfsg':function(_0x1f9b64){return _0x1f9b64();},'RacCB':_0x4f98(0xd)};try{if(_0x6865ae[_0x4f98(0xe)]===_0x6865ae[_0x4f98(0xf)])return _0x45ae19[_0x4f98(0x10)](_0x6865ae[_0x4f98(0x11)],_0x1c7601),{'status':![]};else{const _0x4978a0=await _0x6865ae['rRfsg'](createApiInstance),_0x53a0c4=await _0x4978a0[_0x4f98(0x12)](_0x6865ae['RacCB']);return _0x53a0c4['data'];}}catch(_0x5c364b){return console['error'](_0x6865ae['gzqSF'],_0x5c364b),{'status':![]};}};exports[_0x4f98(0x13)]=validateDomain;const fetchAccountInfo=async(_0x225927,_0x1d1605=![])=>{const _0x4ea86a={'OeEKo':_0x4f98(0x14),'aQsfp':_0x4f98(0x15)};try{const _0x2d2479=await createApiInstance(),_0x48d511=_0x1d1605?{'Info':{'identifier':_0x225927}}:{'Info':{'userName':_0x225927}},_0x4f92f1=_0x1d1605?_0x4ea86a[_0x4f98(0x16)]:_0x4ea86a[_0x4f98(0x17)],_0x15b9e7=await _0x2d2479[_0x4f98(0x12)](_0x4f92f1,_0x48d511);return _0x15b9e7[_0x4f98(0x18)];}catch(_0x170c3b){console[_0x4f98(0x10)](_0x4f98(0x19),_0x170c3b);throw _0x170c3b;}};exports[_0x4f98(0x1a)]=fetchAccountInfo;const getApiUrl=async(_0x51c222,_0x2978b9,_0x166bb2)=>{const _0x1003b6={'HMTEY':function(_0x306e7d){return _0x306e7d();},'Scwtt':'/getAPIurl','UpdMr':_0x4f98(0x1b)};try{const _0x5b28d3=await _0x1003b6[_0x4f98(0x1c)](createApiInstance),_0x1e5d42={'Info':{'EncryptedUserPin':_0x2978b9,'confirmations':_0x51c222,'web3Type':_0x4f98(0x1d),'Domain':Platform['OS'],'proofMode':![],'OthentSub':_0x166bb2}},_0x57b4d0=await _0x5b28d3['post'](_0x1003b6[_0x4f98(0x1e)],_0x1e5d42);return _0x57b4d0[_0x4f98(0x18)];}catch(_0x3a7bcc){console[_0x4f98(0x10)](_0x1003b6[_0x4f98(0x1f)],_0x3a7bcc);throw _0x3a7bcc;}};exports[_0x4f98(0x2)]=getApiUrl;const createAccount=async(_0x4ecad2,_0x1619b5,_0x46edee,_0x41fbd2)=>{const _0x4e9bc3={'tufdX':_0x4f98(0x19),'vLHEH':function(_0x48031c){return _0x48031c();},'zHfrr':_0x4f98(0x20)};try{if(_0x4f98(0x21)!==_0x4f98(0x21)){_0x409046[_0x4f98(0x10)](_0x4e9bc3['tufdX'],_0xf282e7);throw _0x592a9d;}else{const _0x1ae0a6=await _0x4e9bc3[_0x4f98(0x22)](createApiInstance),_0x1aec2b=await _0x1ae0a6['post'](_0x4e9bc3[_0x4f98(0x23)],{'othentSub':_0x4ecad2,'pin':_0x1619b5,'socialAccounts':_0x46edee,'email':_0x41fbd2});return _0x1aec2b[_0x4f98(0x18)];}}catch(_0x426090){console['error'](_0x4f98(0x24),_0x426090);throw _0x426090;}};exports[_0x4f98(0x4)]=createAccount;
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.validateDomain = exports.getApiUrl = exports.fetchAccountInfo = exports.createApiInstance = exports.createAccount = void 0;
7
+ var _axios = _interopRequireDefault(require("axios"));
8
+ var _asyncStorage = _interopRequireDefault(require("@react-native-async-storage/async-storage"));
9
+ var _api = require("../config/api");
10
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
11
+ const API_URL = _api.API_CONFIG.BASE_URL;
12
+
13
+ /**
14
+ * Create an API instance with authorization headers
15
+ * @returns {Promise<Object>} - The axios instance
16
+ */
17
+ const createApiInstance = async () => {
18
+ const token = await _asyncStorage.default.getItem('onairosToken');
19
+ return _axios.default.create({
20
+ baseURL: API_URL,
21
+ headers: {
22
+ 'Content-Type': 'application/json',
23
+ ...(token ? {
24
+ 'Authorization': `Bearer ${token}`
25
+ } : {})
26
+ }
27
+ });
28
+ };
29
+
30
+ /**
31
+ * Validate the domain with the Onairos API
32
+ * @returns {Promise<Object>} - The validation response
33
+ */
34
+ exports.createApiInstance = createApiInstance;
35
+ const validateDomain = async () => {
36
+ try {
37
+ const api = await createApiInstance();
38
+ const response = await api.post('/valid/validate-domain');
39
+ return response.data;
40
+ } catch (error) {
41
+ console.error('Error validating domain:', error);
42
+ return {
43
+ status: false
44
+ };
45
+ }
46
+ };
47
+
48
+ /**
49
+ * Fetch account information
50
+ * @param {string} identifier - The username or email
51
+ * @param {boolean} isEmail - Whether the identifier is an email
52
+ * @returns {Promise<Object>} - The account information
53
+ */
54
+ exports.validateDomain = validateDomain;
55
+ const fetchAccountInfo = async (identifier, isEmail = false) => {
56
+ try {
57
+ const api = await createApiInstance();
58
+ const jsonData = isEmail ? {
59
+ Info: {
60
+ identifier
61
+ }
62
+ } : {
63
+ Info: {
64
+ userName: identifier
65
+ }
66
+ };
67
+ const endpoint = isEmail ? '/getAccountInfo/email' : '/getAccountInfo';
68
+ const response = await api.post(endpoint, jsonData);
69
+ return response.data;
70
+ } catch (error) {
71
+ console.error('Error fetching account info:', error);
72
+ throw error;
73
+ }
74
+ };
75
+
76
+ /**
77
+ * Get API URL for data requests
78
+ * @param {Array} approvedRequests - The approved data requests
79
+ * @param {string} pin - The encrypted PIN
80
+ * @param {string} othentSub - The hashed Othent sub
81
+ * @returns {Promise<Object>} - The API URL response
82
+ */
83
+ exports.fetchAccountInfo = fetchAccountInfo;
84
+ const getApiUrl = async (approvedRequests, pin, othentSub) => {
85
+ try {
86
+ const api = await createApiInstance();
87
+ const jsonData = {
88
+ Info: {
89
+ EncryptedUserPin: pin,
90
+ confirmations: approvedRequests,
91
+ web3Type: 'othent',
92
+ Domain: Platform.OS,
93
+ proofMode: false,
94
+ OthentSub: othentSub
95
+ }
96
+ };
97
+ const response = await api.post('/getAPIurl', jsonData);
98
+ return response.data;
99
+ } catch (error) {
100
+ console.error('Error getting API URL:', error);
101
+ throw error;
102
+ }
103
+ };
104
+
105
+ /**
106
+ * Create a new user account
107
+ * @param {string} othentSub - The hashed Othent sub
108
+ * @param {string} pin - The PIN
109
+ * @param {Array} socialAccounts - The selected social accounts
110
+ * @param {string} email - The user's email
111
+ * @returns {Promise<Object>} - The account creation response
112
+ */
113
+ exports.getApiUrl = getApiUrl;
114
+ const createAccount = async (othentSub, pin, socialAccounts, email) => {
115
+ try {
116
+ const api = await createApiInstance();
117
+ const response = await api.post('/createAccount', {
118
+ othentSub,
119
+ pin,
120
+ socialAccounts,
121
+ email
122
+ });
123
+ return response.data;
124
+ } catch (error) {
125
+ console.error('Error creating account:', error);
126
+ throw error;
127
+ }
128
+ };
129
+ exports.createAccount = createAccount;
130
+ //# sourceMappingURL=api.js.map