@onairos/react-native 3.7.2 → 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 (237) hide show
  1. package/lib/commonjs/api/index.js +219 -9
  2. package/lib/commonjs/components/BodyText.js +27 -9
  3. package/lib/commonjs/components/BrandMark.js +111 -10
  4. package/lib/commonjs/components/CodeInput.js +116 -9
  5. package/lib/commonjs/components/EmailInput.js +30 -8
  6. package/lib/commonjs/components/GoogleButton.js +56 -9
  7. package/lib/commonjs/components/HeadingGroup.js +43 -9
  8. package/lib/commonjs/components/LLMDataInputModal.js +664 -14
  9. package/lib/commonjs/components/ModalHeader.js +99 -9
  10. package/lib/commonjs/components/ModalSheet.js +47 -9
  11. package/lib/commonjs/components/Onairos.js +380 -14
  12. package/lib/commonjs/components/OnairosButton.js +313 -13
  13. package/lib/commonjs/components/OnairosSignInButton.js +130 -12
  14. package/lib/commonjs/components/Overlay.js +465 -13
  15. package/lib/commonjs/components/PersonaImage.js +137 -10
  16. package/lib/commonjs/components/PersonaLoadingScreen.js +318 -12
  17. package/lib/commonjs/components/PersonalizationConsentScreen.js +467 -13
  18. package/lib/commonjs/components/PinCreationScreen.js +403 -12
  19. package/lib/commonjs/components/PinInput.js +464 -9
  20. package/lib/commonjs/components/PlatformConnectorsStep.js +1311 -23
  21. package/lib/commonjs/components/PlatformList.js +137 -10
  22. package/lib/commonjs/components/PlatformToggle.js +180 -9
  23. package/lib/commonjs/components/PrimaryButton.js +180 -10
  24. package/lib/commonjs/components/SignInMatchAnimation.js +197 -9
  25. package/lib/commonjs/components/SignInStep.js +345 -12
  26. package/lib/commonjs/components/UniversalOnboarding.js +2780 -30
  27. package/lib/commonjs/components/VerificationStep.js +176 -11
  28. package/lib/commonjs/components/WelcomeScreen.js +461 -22
  29. package/lib/commonjs/components/icons/Basicproficon.js +37 -8
  30. package/lib/commonjs/components/icons/Basicprofile.js +21 -8
  31. package/lib/commonjs/components/icons/Checkbox.js +21 -8
  32. package/lib/commonjs/components/icons/Checkmark.js +27 -8
  33. package/lib/commonjs/components/icons/Contentanalysis.js +21 -8
  34. package/lib/commonjs/components/icons/Contenticon.js +39 -8
  35. package/lib/commonjs/components/icons/EnochE.js +41 -8
  36. package/lib/commonjs/components/icons/Personalityicon.js +30 -8
  37. package/lib/commonjs/components/icons/Personalityprofile.js +21 -8
  38. package/lib/commonjs/components/icons/Personalitytraits.js +21 -8
  39. package/lib/commonjs/components/icons/Userpreferences.js +21 -8
  40. package/lib/commonjs/components/icons/index.js +84 -17
  41. package/lib/commonjs/components/onboarding/OAuthWebView.js +1754 -18
  42. package/lib/commonjs/components/onboarding/OnboardingHeader.js +74 -10
  43. package/lib/commonjs/components/onboarding/PinInput.js +283 -10
  44. package/lib/commonjs/components/onboarding/PlatformConnector.js +249 -11
  45. package/lib/commonjs/config/PLATFORM_APIS.md +849 -0
  46. package/lib/commonjs/config/api.js +56 -7
  47. package/lib/commonjs/constants/index.js +120 -7
  48. package/lib/commonjs/context/AuthContext.js +345 -10
  49. package/lib/commonjs/hooks/useConnectedAccounts.js +111 -9
  50. package/lib/commonjs/hooks/useConnections.js +102 -8
  51. package/lib/commonjs/hooks/useCredentials.js +178 -10
  52. package/lib/commonjs/hooks/useUserConnections.js +148 -10
  53. package/lib/commonjs/index.js +439 -34
  54. package/lib/commonjs/services/apiClient.js +298 -8
  55. package/lib/commonjs/services/biometricPinService.js +180 -8
  56. package/lib/commonjs/services/chatGPTConversationExtractor.js +155 -8
  57. package/lib/commonjs/services/chatGPTConversationService.js +275 -9
  58. package/lib/commonjs/services/claudeConversationExtractor.js +103 -8
  59. package/lib/commonjs/services/claudeConversationService.js +158 -9
  60. package/lib/commonjs/services/connectedAccountsService.js +310 -10
  61. package/lib/commonjs/services/googleAuthService.js +252 -11
  62. package/lib/commonjs/services/hingeDataExtractor.js +105 -8
  63. package/lib/commonjs/services/hingeDataService.js +150 -9
  64. package/lib/commonjs/services/imageCompressionService.js +260 -7
  65. package/lib/commonjs/services/instagramDataExtractor.js +126 -8
  66. package/lib/commonjs/services/instagramDataService.js +163 -9
  67. package/lib/commonjs/services/jwtStorageService.js +276 -7
  68. package/lib/commonjs/services/linkedinDOMExtractor.js +245 -7
  69. package/lib/commonjs/services/linkedinProfileService.js +222 -9
  70. package/lib/commonjs/services/linkedinScrapingService.js +230 -8
  71. package/lib/commonjs/services/llmDataStorage.js +294 -8
  72. package/lib/commonjs/services/mobileTrainingService.js +186 -8
  73. package/lib/commonjs/services/netflixDataExtractor.js +120 -8
  74. package/lib/commonjs/services/netflixDataService.js +198 -9
  75. package/lib/commonjs/services/pinEncryptionService.js +84 -8
  76. package/lib/commonjs/services/pinStorageUtils.js +105 -7
  77. package/lib/commonjs/services/platformAuthService.js +1484 -12
  78. package/lib/commonjs/services/sephoraDataExtractor.js +140 -8
  79. package/lib/commonjs/services/sephoraDataService.js +200 -9
  80. package/lib/commonjs/services/spotifyDataExtractor.js +148 -8
  81. package/lib/commonjs/services/spotifyDataService.js +241 -9
  82. package/lib/commonjs/services/storageService.js +404 -8
  83. package/lib/commonjs/services/telegramDataExtractor.js +115 -8
  84. package/lib/commonjs/services/telegramDataService.js +499 -9
  85. package/lib/commonjs/services/trainingApiHelpers.js +73 -7
  86. package/lib/commonjs/services/userConnectionsService.js +340 -10
  87. package/lib/commonjs/services/youtubeMigrationService.js +416 -10
  88. package/lib/commonjs/theme/index.js +250 -7
  89. package/lib/commonjs/types/ambient.d.js +2 -1
  90. package/lib/commonjs/types/declarations.d.js +2 -1
  91. package/lib/commonjs/types/index.js +6 -1
  92. package/lib/commonjs/types/node-fix.d.js +2 -1
  93. package/lib/commonjs/types/node-override.d.js +2 -1
  94. package/lib/commonjs/types/opacity.d.js +2 -1
  95. package/lib/commonjs/types.js +14 -1
  96. package/lib/commonjs/utils/Portal.js +98 -8
  97. package/lib/commonjs/utils/api.js +130 -9
  98. package/lib/commonjs/utils/assetRegistry.js +210 -35
  99. package/lib/commonjs/utils/auth.js +112 -9
  100. package/lib/commonjs/utils/connectorTests.js +613 -29
  101. package/lib/commonjs/utils/crypto.js +62 -8
  102. package/lib/commonjs/utils/debugHelper.js +64 -1
  103. package/lib/commonjs/utils/encryption.js +76 -7
  104. package/lib/commonjs/utils/eventUtils.js +288 -1
  105. package/lib/commonjs/utils/haptics.js +66 -9
  106. package/lib/commonjs/utils/imagePreloader.js +6 -1
  107. package/lib/commonjs/utils/networkDiagnostics.js +226 -8
  108. package/lib/commonjs/utils/onairosApi.js +350 -9
  109. package/lib/commonjs/utils/programmaticFlow.js +117 -9
  110. package/lib/commonjs/utils/retryHelper.js +220 -1
  111. package/lib/commonjs/utils/secureStorage.js +349 -10
  112. package/lib/commonjs/utils/webviewScripts/chatgpt.js +551 -1
  113. package/lib/commonjs/utils/webviewScripts/claude.js +376 -1
  114. package/lib/commonjs/utils/webviewScripts/hinge.js +411 -1
  115. package/lib/commonjs/utils/webviewScripts/index.js +698 -15
  116. package/lib/commonjs/utils/webviewScripts/instagram.js +454 -1
  117. package/lib/commonjs/utils/webviewScripts/linkedin.js +880 -1
  118. package/lib/commonjs/utils/webviewScripts/netflix.js +382 -1
  119. package/lib/commonjs/utils/webviewScripts/sephora.js +516 -1
  120. package/lib/commonjs/utils/webviewScripts/spotify.js +419 -1
  121. package/lib/commonjs/utils/webviewScripts/telegram.js +678 -1
  122. package/lib/module/api/index.js +211 -1
  123. package/lib/module/components/BodyText.js +20 -1
  124. package/lib/module/components/BrandMark.js +104 -1
  125. package/lib/module/components/CodeInput.js +109 -1
  126. package/lib/module/components/EmailInput.js +23 -1
  127. package/lib/module/components/GoogleButton.js +49 -1
  128. package/lib/module/components/HeadingGroup.js +36 -1
  129. package/lib/module/components/LLMDataInputModal.js +656 -7
  130. package/lib/module/components/ModalHeader.js +92 -1
  131. package/lib/module/components/ModalSheet.js +39 -1
  132. package/lib/module/components/Onairos.js +373 -1
  133. package/lib/module/components/OnairosButton.js +305 -1
  134. package/lib/module/components/OnairosSignInButton.js +121 -1
  135. package/lib/module/components/Overlay.js +456 -1
  136. package/lib/module/components/PersonaImage.js +129 -1
  137. package/lib/module/components/PersonaLoadingScreen.js +310 -1
  138. package/lib/module/components/PersonalizationConsentScreen.js +460 -1
  139. package/lib/module/components/PinCreationScreen.js +396 -1
  140. package/lib/module/components/PinInput.js +456 -1
  141. package/lib/module/components/PlatformConnectorsStep.js +1302 -6
  142. package/lib/module/components/PlatformList.js +129 -1
  143. package/lib/module/components/PlatformToggle.js +173 -1
  144. package/lib/module/components/PrimaryButton.js +172 -1
  145. package/lib/module/components/SignInMatchAnimation.js +189 -1
  146. package/lib/module/components/SignInStep.js +338 -1
  147. package/lib/module/components/UniversalOnboarding.js +2770 -1
  148. package/lib/module/components/VerificationStep.js +168 -1
  149. package/lib/module/components/WelcomeScreen.js +453 -1
  150. package/lib/module/components/icons/Basicproficon.js +30 -1
  151. package/lib/module/components/icons/Basicprofile.js +14 -1
  152. package/lib/module/components/icons/Checkbox.js +14 -1
  153. package/lib/module/components/icons/Checkmark.js +20 -1
  154. package/lib/module/components/icons/Contentanalysis.js +14 -1
  155. package/lib/module/components/icons/Contenticon.js +32 -1
  156. package/lib/module/components/icons/EnochE.js +34 -1
  157. package/lib/module/components/icons/Personalityicon.js +23 -1
  158. package/lib/module/components/icons/Personalityprofile.js +14 -1
  159. package/lib/module/components/icons/Personalitytraits.js +14 -1
  160. package/lib/module/components/icons/Userpreferences.js +14 -1
  161. package/lib/module/components/icons/index.js +13 -1
  162. package/lib/module/components/onboarding/OAuthWebView.js +1746 -1
  163. package/lib/module/components/onboarding/OnboardingHeader.js +66 -1
  164. package/lib/module/components/onboarding/PinInput.js +274 -1
  165. package/lib/module/components/onboarding/PlatformConnector.js +240 -1
  166. package/lib/module/config/PLATFORM_APIS.md +849 -0
  167. package/lib/module/config/api.js +47 -1
  168. package/lib/module/constants/index.js +114 -1
  169. package/lib/module/context/AuthContext.js +335 -1
  170. package/lib/module/hooks/useConnectedAccounts.js +106 -1
  171. package/lib/module/hooks/useConnections.js +95 -1
  172. package/lib/module/hooks/useCredentials.js +171 -6
  173. package/lib/module/hooks/useUserConnections.js +140 -1
  174. package/lib/module/index.js +172 -1
  175. package/lib/module/services/apiClient.js +295 -1
  176. package/lib/module/services/biometricPinService.js +169 -1
  177. package/lib/module/services/chatGPTConversationExtractor.js +149 -1
  178. package/lib/module/services/chatGPTConversationService.js +268 -1
  179. package/lib/module/services/claudeConversationExtractor.js +97 -1
  180. package/lib/module/services/claudeConversationService.js +151 -1
  181. package/lib/module/services/connectedAccountsService.js +293 -1
  182. package/lib/module/services/googleAuthService.js +241 -1
  183. package/lib/module/services/hingeDataExtractor.js +99 -1
  184. package/lib/module/services/hingeDataService.js +143 -1
  185. package/lib/module/services/imageCompressionService.js +250 -1
  186. package/lib/module/services/instagramDataExtractor.js +120 -1
  187. package/lib/module/services/instagramDataService.js +156 -1
  188. package/lib/module/services/jwtStorageService.js +257 -1
  189. package/lib/module/services/linkedinDOMExtractor.js +234 -1
  190. package/lib/module/services/linkedinProfileService.js +210 -1
  191. package/lib/module/services/linkedinScrapingService.js +219 -1
  192. package/lib/module/services/llmDataStorage.js +277 -1
  193. package/lib/module/services/mobileTrainingService.js +173 -1
  194. package/lib/module/services/netflixDataExtractor.js +114 -1
  195. package/lib/module/services/netflixDataService.js +191 -1
  196. package/lib/module/services/pinEncryptionService.js +74 -6
  197. package/lib/module/services/pinStorageUtils.js +93 -1
  198. package/lib/module/services/platformAuthService.js +1461 -1
  199. package/lib/module/services/sephoraDataExtractor.js +134 -1
  200. package/lib/module/services/sephoraDataService.js +193 -1
  201. package/lib/module/services/spotifyDataExtractor.js +142 -1
  202. package/lib/module/services/spotifyDataService.js +234 -1
  203. package/lib/module/services/storageService.js +383 -1
  204. package/lib/module/services/telegramDataExtractor.js +109 -1
  205. package/lib/module/services/telegramDataService.js +493 -1
  206. package/lib/module/services/trainingApiHelpers.js +67 -1
  207. package/lib/module/services/userConnectionsService.js +329 -1
  208. package/lib/module/services/youtubeMigrationService.js +405 -1
  209. package/lib/module/theme/index.js +245 -1
  210. package/lib/module/types.js +10 -1
  211. package/lib/module/utils/Portal.js +90 -1
  212. package/lib/module/utils/api.js +118 -1
  213. package/lib/module/utils/assetRegistry.js +200 -34
  214. package/lib/module/utils/auth.js +100 -1
  215. package/lib/module/utils/connectorTests.js +600 -27
  216. package/lib/module/utils/crypto.js +54 -1
  217. package/lib/module/utils/debugHelper.js +54 -1
  218. package/lib/module/utils/encryption.js +67 -1
  219. package/lib/module/utils/eventUtils.js +270 -1
  220. package/lib/module/utils/haptics.js +59 -8
  221. package/lib/module/utils/imagePreloader.js +3 -1
  222. package/lib/module/utils/networkDiagnostics.js +217 -1
  223. package/lib/module/utils/onairosApi.js +333 -1
  224. package/lib/module/utils/programmaticFlow.js +111 -1
  225. package/lib/module/utils/retryHelper.js +211 -1
  226. package/lib/module/utils/secureStorage.js +330 -6
  227. package/lib/module/utils/webviewScripts/chatgpt.js +545 -1
  228. package/lib/module/utils/webviewScripts/claude.js +370 -1
  229. package/lib/module/utils/webviewScripts/hinge.js +405 -1
  230. package/lib/module/utils/webviewScripts/index.js +434 -1
  231. package/lib/module/utils/webviewScripts/instagram.js +448 -1
  232. package/lib/module/utils/webviewScripts/linkedin.js +874 -1
  233. package/lib/module/utils/webviewScripts/netflix.js +376 -1
  234. package/lib/module/utils/webviewScripts/sephora.js +510 -1
  235. package/lib/module/utils/webviewScripts/spotify.js +413 -1
  236. package/lib/module/utils/webviewScripts/telegram.js +672 -1
  237. package/package.json +2 -2
@@ -1 +1,245 @@
1
- import{Platform}from'react-native';export const COLORS={'surface':'#FAFAFA','grey300':_0x5714(0x0),'grey400':_0x5714(0x1),'grey500':_0x5714(0x2),'grey600':_0x5714(0x3),'grey700':_0x5714(0x4),'grey800':_0x5714(0x5),'btnGradStart':_0x5714(0x6),'btnGradEnd':_0x5714(0x7),'btnBorder':'rgba(0,0,0,0.20)','btnShadowOuter':'rgba(0,0,0,0.10)','btnInnerShadow':_0x5714(0x8),'btnLabel':'#FFFFFF','iconCircleGradientStart':_0x5714(0x9),'iconCircleGradientEnd':'#17171B','primary':_0x5714(0xa),'primaryDark':_0x5714(0xb),'primaryLight':_0x5714(0xc),'background':{'dark':_0x5714(0xd),'medium':_0x5714(0xe),'light':_0x5714(0xf)},'text':{'primary':'#FFFFFF','secondary':_0x5714(0x10),'tertiary':_0x5714(0x11),'gold':_0x5714(0xa)},'ui':{'cardBackground':_0x5714(0x12),'divider':_0x5714(0x12),'inputBackground':_0x5714(0x12),'buttonBackground':_0x5714(0x12)},'status':{'success':_0x5714(0x13),'error':_0x5714(0x14),'warning':_0x5714(0x15),'info':'#5AC8FA'},'transparent':_0x5714(0x16),'overlay':_0x5714(0x17)};export const FONTS={'families':{'ibmPlexSans':Platform['OS']==='ios'?_0x5714(0x18):_0x5714(0x18),'ibmPlexSansBold':Platform['OS']===_0x5714(0x19)?_0x5714(0x18):_0x5714(0x18),'inter':Platform['OS']===_0x5714(0x19)?_0x5714(0x1a):_0x5714(0x1b),'base':Platform['OS']==='ios'?_0x5714(0x1c):_0x5714(0x1d),'serif':Platform['OS']==='ios'?_0x5714(0x1e):'serif'},'weights':{'light':_0x5714(0x1f),'regular':_0x5714(0x20),'medium':_0x5714(0x21),'semibold':_0x5714(0x22),'bold':_0x5714(0x23)},'sizes':{'xs':0xc,'sm':0xe,'md':0x10,'lg':0x12,'xl':0x14,'xxl':0x18,'xxxl':0x1c,'title':0x20,'large':0x2a,'kicker':0x12,'welcomeTitle':0x30,'body':0x10,'buttonLabel':0x10},'lineHeights':{'kicker':0x14,'welcomeTitle':0x36,'body':0x18,'sm':0x10,'md':0x14,'lg':0x18,'xl':0x1c},'letterSpacing':{'kicker':-0.24,'tight':-0.5,'normal':0x0,'wide':0.5}};export const SPACING={'xs':0x4,'sm':0x8,'md':0x10,'lg':0x18,'xl':0x20,'xxl':0x30,'xxxl':0x40,'modalTopPadding':0x76,'modalHorizontal':0x18};export const BORDER_RADIUS={'xs':0x4,'sm':0x8,'md':0x10,'lg':0x18,'xl':0x20,'pill':0x64,'circle':0x3e7,'modalTop':0x18,'buttonPill':0x64};function _0x5714(_0x2b0398,_0x571461){_0x2b0398=_0x2b0398-0x0;const _0x440947=_0x2b03();let _0x5da55f=_0x440947[_0x2b0398];return _0x5da55f;}export const SHADOWS={'small':{'shadowColor':COLORS[_0x5714(0x24)],'shadowOffset':{'width':0x0,'height':0x2},'shadowOpacity':0.3,'shadowRadius':0x4,'elevation':0x3},'medium':{'shadowColor':COLORS[_0x5714(0x24)],'shadowOffset':{'width':0x0,'height':0x4},'shadowOpacity':0.5,'shadowRadius':0x8,'elevation':0x5},'large':{'shadowColor':COLORS[_0x5714(0x24)],'shadowOffset':{'width':0x0,'height':0x6},'shadowOpacity':0.8,'shadowRadius':0x10,'elevation':0x8},'button':{'inner':{'shadowColor':COLORS['btnInnerShadow'],'shadowOffset':{'width':0x0,'height':-0x24},'shadowOpacity':0x1,'shadowRadius':21.1},'outer':{'shadowColor':COLORS['btnShadowOuter'],'shadowOffset':{'width':0x14,'height':0x1e},'shadowOpacity':0x1,'shadowRadius':0x28,'elevation':0x8}},'brandMark':{'shadowColor':_0x5714(0xd),'shadowOffset':{'width':0x0,'height':0x4},'shadowOpacity':0.1,'shadowRadius':0x8,'elevation':0x4}};export const TEXT_STYLES={'kicker':{'fontFamily':FONTS['families'][_0x5714(0x25)],'fontWeight':FONTS[_0x5714(0x26)][_0x5714(0x27)],'fontSize':FONTS[_0x5714(0x28)]['kicker'],'lineHeight':FONTS[_0x5714(0x29)]['kicker'],'letterSpacing':FONTS[_0x5714(0x2a)]['kicker'],'color':COLORS['grey500']},'welcomeTitle':{'fontFamily':FONTS[_0x5714(0x2b)][_0x5714(0x25)],'fontWeight':FONTS[_0x5714(0x26)][_0x5714(0x27)],'fontSize':FONTS[_0x5714(0x28)][_0x5714(0x2c)],'lineHeight':FONTS[_0x5714(0x29)][_0x5714(0x2c)],'color':COLORS['grey800']},'body':{'fontFamily':FONTS[_0x5714(0x2b)]['inter'],'fontWeight':FONTS[_0x5714(0x26)]['regular'],'fontSize':FONTS[_0x5714(0x28)][_0x5714(0x2d)],'lineHeight':FONTS['lineHeights']['body'],'textAlign':_0x5714(0x2e),'color':COLORS[_0x5714(0x2f)]},'buttonLabel':{'fontFamily':FONTS[_0x5714(0x2b)]['inter'],'fontWeight':FONTS[_0x5714(0x26)][_0x5714(0x30)],'fontSize':FONTS[_0x5714(0x28)]['buttonLabel'],'color':COLORS[_0x5714(0x31)]}};function _0x2b03(){const _0x67840f=['#D1D5DB','#9CA3AF','#86888E','#62646C','#374151','#1F242F','#29292B','#17181C','rgba(0,0,0,0.06)','#0A090E','#FFD700','#E9B104','#FFDF33','#000000','#121212','#1C2526','#B0B0B0','#808080','rgba(255,\x20255,\x20255,\x200.1)','#4BB543','#FF3B30','#FF9500','transparent','rgba(0,\x200,\x200,\x200.7)','IBM\x20Plex\x20Sans','ios','Inter','Inter-Regular','System','Roboto','Georgia','300','400','500','600','700','primary','ibmPlexSansBold','weights','bold','sizes','lineHeights','letterSpacing','families','welcomeTitle','body','center','grey600','semibold','btnLabel'];_0x2b03=function(){return _0x67840f;};return _0x2b03();}export default{'COLORS':COLORS,'FONTS':FONTS,'SPACING':SPACING,'BORDER_RADIUS':BORDER_RADIUS,'SHADOWS':SHADOWS,'TEXT_STYLES':TEXT_STYLES};
1
+ import { Platform } from 'react-native';
2
+
3
+ // Color Tokens as specified in the design brief
4
+ export const COLORS = {
5
+ // Welcome Screen Specific Colors
6
+ surface: '#FAFAFA',
7
+ grey300: '#D1D5DB',
8
+ grey400: '#9CA3AF',
9
+ grey500: '#86888E',
10
+ grey600: '#62646C',
11
+ grey700: '#374151',
12
+ grey800: '#1F242F',
13
+ // PrimaryButton exact tokens
14
+ btnGradStart: '#29292B',
15
+ btnGradEnd: '#17181C',
16
+ btnBorder: 'rgba(0,0,0,0.20)',
17
+ btnShadowOuter: 'rgba(0,0,0,0.10)',
18
+ btnInnerShadow: 'rgba(0,0,0,0.06)',
19
+ btnLabel: '#FFFFFF',
20
+ iconCircleGradientStart: '#0A090E',
21
+ iconCircleGradientEnd: '#17171B',
22
+ // Legacy colors (preserved for backward compatibility)
23
+ primary: '#FFD700',
24
+ primaryDark: '#E9B104',
25
+ primaryLight: '#FFDF33',
26
+ background: {
27
+ dark: '#000000',
28
+ medium: '#121212',
29
+ light: '#1C2526'
30
+ },
31
+ text: {
32
+ primary: '#FFFFFF',
33
+ secondary: '#B0B0B0',
34
+ tertiary: '#808080',
35
+ gold: '#FFD700'
36
+ },
37
+ ui: {
38
+ cardBackground: 'rgba(255, 255, 255, 0.1)',
39
+ divider: 'rgba(255, 255, 255, 0.1)',
40
+ inputBackground: 'rgba(255, 255, 255, 0.1)',
41
+ buttonBackground: 'rgba(255, 255, 255, 0.1)'
42
+ },
43
+ status: {
44
+ success: '#4BB543',
45
+ error: '#FF3B30',
46
+ warning: '#FF9500',
47
+ info: '#5AC8FA'
48
+ },
49
+ transparent: 'transparent',
50
+ overlay: 'rgba(0, 0, 0, 0.7)'
51
+ };
52
+
53
+ // Typography - Font families and weights as specified
54
+ export const FONTS = {
55
+ families: {
56
+ ibmPlexSans: Platform.OS === 'ios' ? 'IBM Plex Sans' : 'IBM Plex Sans',
57
+ ibmPlexSansBold: Platform.OS === 'ios' ? 'IBM Plex Sans' : 'IBM Plex Sans',
58
+ inter: Platform.OS === 'ios' ? 'Inter' : 'Inter-Regular',
59
+ // Legacy families
60
+ base: Platform.OS === 'ios' ? 'System' : 'Roboto',
61
+ serif: Platform.OS === 'ios' ? 'Georgia' : 'serif'
62
+ },
63
+ weights: {
64
+ light: '300',
65
+ regular: '400',
66
+ medium: '500',
67
+ semibold: '600',
68
+ bold: '700'
69
+ },
70
+ sizes: {
71
+ xs: 12,
72
+ sm: 14,
73
+ md: 16,
74
+ lg: 18,
75
+ xl: 20,
76
+ xxl: 24,
77
+ xxxl: 28,
78
+ title: 32,
79
+ large: 42,
80
+ // Welcome screen specific sizes
81
+ kicker: 18,
82
+ welcomeTitle: 48,
83
+ body: 16,
84
+ buttonLabel: 16
85
+ },
86
+ lineHeights: {
87
+ // Welcome screen specific line heights
88
+ kicker: 20,
89
+ // 111%
90
+ welcomeTitle: 54,
91
+ // 112.5%
92
+ body: 24,
93
+ // 150%
94
+ // Legacy line heights
95
+ sm: 16,
96
+ md: 20,
97
+ lg: 24,
98
+ xl: 28
99
+ },
100
+ letterSpacing: {
101
+ kicker: -0.24,
102
+ tight: -0.5,
103
+ normal: 0,
104
+ wide: 0.5
105
+ }
106
+ };
107
+
108
+ // Spacing tokens
109
+ export const SPACING = {
110
+ xs: 4,
111
+ sm: 8,
112
+ md: 16,
113
+ lg: 24,
114
+ xl: 32,
115
+ xxl: 48,
116
+ xxxl: 64,
117
+ // Welcome screen specific spacing
118
+ modalTopPadding: 118,
119
+ modalHorizontal: 24
120
+ };
121
+
122
+ // Border radius tokens
123
+ export const BORDER_RADIUS = {
124
+ xs: 4,
125
+ sm: 8,
126
+ md: 16,
127
+ lg: 24,
128
+ xl: 32,
129
+ pill: 100,
130
+ circle: 999,
131
+ // Welcome screen specific radii
132
+ modalTop: 24,
133
+ buttonPill: 100
134
+ };
135
+
136
+ // Shadow tokens
137
+ export const SHADOWS = {
138
+ small: {
139
+ shadowColor: COLORS.primary,
140
+ shadowOffset: {
141
+ width: 0,
142
+ height: 2
143
+ },
144
+ shadowOpacity: 0.3,
145
+ shadowRadius: 4,
146
+ elevation: 3
147
+ },
148
+ medium: {
149
+ shadowColor: COLORS.primary,
150
+ shadowOffset: {
151
+ width: 0,
152
+ height: 4
153
+ },
154
+ shadowOpacity: 0.5,
155
+ shadowRadius: 8,
156
+ elevation: 5
157
+ },
158
+ large: {
159
+ shadowColor: COLORS.primary,
160
+ shadowOffset: {
161
+ width: 0,
162
+ height: 6
163
+ },
164
+ shadowOpacity: 0.8,
165
+ shadowRadius: 16,
166
+ elevation: 8
167
+ },
168
+ // Welcome screen specific shadows
169
+ button: {
170
+ // Inner shadow (simulated via overlay)
171
+ inner: {
172
+ shadowColor: COLORS.btnInnerShadow,
173
+ shadowOffset: {
174
+ width: 0,
175
+ height: -36
176
+ },
177
+ shadowOpacity: 1,
178
+ shadowRadius: 21.1
179
+ },
180
+ // Outer shadow
181
+ outer: {
182
+ shadowColor: COLORS.btnShadowOuter,
183
+ shadowOffset: {
184
+ width: 20,
185
+ height: 30
186
+ },
187
+ shadowOpacity: 1,
188
+ shadowRadius: 40,
189
+ elevation: 8
190
+ }
191
+ },
192
+ brandMark: {
193
+ shadowColor: '#000000',
194
+ shadowOffset: {
195
+ width: 0,
196
+ height: 4
197
+ },
198
+ shadowOpacity: 0.1,
199
+ shadowRadius: 8,
200
+ elevation: 4
201
+ }
202
+ };
203
+
204
+ // Typography style objects for easy use
205
+ export const TEXT_STYLES = {
206
+ // Welcome screen typography
207
+ kicker: {
208
+ fontFamily: FONTS.families.ibmPlexSansBold,
209
+ fontWeight: FONTS.weights.bold,
210
+ fontSize: FONTS.sizes.kicker,
211
+ lineHeight: FONTS.lineHeights.kicker,
212
+ letterSpacing: FONTS.letterSpacing.kicker,
213
+ color: COLORS.grey500
214
+ },
215
+ welcomeTitle: {
216
+ fontFamily: FONTS.families.ibmPlexSansBold,
217
+ fontWeight: FONTS.weights.bold,
218
+ fontSize: FONTS.sizes.welcomeTitle,
219
+ lineHeight: FONTS.lineHeights.welcomeTitle,
220
+ color: COLORS.grey800
221
+ },
222
+ body: {
223
+ fontFamily: FONTS.families.inter,
224
+ fontWeight: FONTS.weights.regular,
225
+ fontSize: FONTS.sizes.body,
226
+ lineHeight: FONTS.lineHeights.body,
227
+ textAlign: 'center',
228
+ color: COLORS.grey600
229
+ },
230
+ buttonLabel: {
231
+ fontFamily: FONTS.families.inter,
232
+ fontWeight: FONTS.weights.semibold,
233
+ fontSize: FONTS.sizes.buttonLabel,
234
+ color: COLORS.btnLabel
235
+ }
236
+ };
237
+ export default {
238
+ COLORS,
239
+ FONTS,
240
+ SPACING,
241
+ BORDER_RADIUS,
242
+ SHADOWS,
243
+ TEXT_STYLES
244
+ };
245
+ //# sourceMappingURL=index.js.map
@@ -1 +1,10 @@
1
- function _0x446a(_0x5eb13f,_0x446a79){_0x5eb13f=_0x5eb13f-0x0;const _0x476303=_0x5eb1();let _0x14fa6f=_0x476303[_0x5eb13f];return _0x14fa6f;}export let ApiKeyType=function(_0x2687c0){const _0x47d4b1={'QNZta':'DEVELOPER','ocBZX':_0x446a(0x0),'qwyBG':_0x446a(0x1),'hEFVJ':'INVALID','MIHqP':_0x446a(0x2)};return _0x2687c0[_0x47d4b1['QNZta']]='developer',_0x2687c0[_0x47d4b1[_0x446a(0x3)]]=_0x47d4b1[_0x446a(0x4)],_0x2687c0[_0x47d4b1[_0x446a(0x5)]]=_0x47d4b1[_0x446a(0x6)],_0x2687c0;}({});function _0x5eb1(){const _0x9a4e5d=['ADMIN','admin','invalid','ocBZX','qwyBG','hEFVJ','MIHqP'];_0x5eb1=function(){return _0x9a4e5d;};return _0x5eb1();}
1
+ // API key types
2
+ export let ApiKeyType = /*#__PURE__*/function (ApiKeyType) {
3
+ ApiKeyType["DEVELOPER"] = "developer";
4
+ ApiKeyType["ADMIN"] = "admin";
5
+ ApiKeyType["INVALID"] = "invalid";
6
+ return ApiKeyType;
7
+ }({});
8
+
9
+ // ... rest of the existing types ...
10
+ //# sourceMappingURL=types.js.map
@@ -1 +1,90 @@
1
- function _0x8680(_0x2cc7ef,_0x8680bd){_0x2cc7ef=_0x2cc7ef-0x0;const _0x3f9345=_0x2cc7();let _0x4206a6=_0x3f9345[_0x2cc7ef];return _0x4206a6;}import React,{useEffect,useState}from'react';import{View}from'react-native';const portalRefs={};let portalId=0x0;const PortalContext=React['createContext']({'mount':()=>0x0,'update':()=>{},'unmount':()=>{}});export const PortalHost=({children:_0x315331})=>{const _0xac6063={'ctOxp':function(_0x269b88,_0x53afe4){return _0x269b88(_0x53afe4);},'WWaIb':function(_0x4341ac,_0x4a4f49){return _0x4341ac(_0x4a4f49);}},[_0x1c8d8a,_0x43117f]=_0xac6063[_0x8680(0x0)](useState,{}),_0x344cae=_0x443be1=>{const _0x42ba55=++portalId;return _0xac6063[_0x8680(0x1)](_0x43117f,_0x111588=>({..._0x111588,[_0x42ba55]:_0x443be1})),_0x42ba55;},_0xa52434=(_0x2db2aa,_0xe8f2c8)=>{_0xac6063['ctOxp'](_0x43117f,_0x52ddbc=>({..._0x52ddbc,[_0x2db2aa]:_0xe8f2c8}));},_0x44b8ba=_0x212c58=>{_0xac6063[_0x8680(0x1)](_0x43117f,_0x493267=>{const _0x409f4e={..._0x493267};return delete _0x409f4e[_0x212c58],_0x409f4e;});};return React[_0x8680(0x2)](PortalContext[_0x8680(0x3)],{'value':{'mount':_0x344cae,'update':_0xa52434,'unmount':_0x44b8ba}},_0x315331,Object['keys'](_0x1c8d8a)[_0x8680(0x4)](_0x2b1352=>React[_0x8680(0x2)](View,{'key':_0x2b1352,'style':{'position':_0x8680(0x5),'top':0x0,'left':0x0,'right':0x0,'bottom':0x0,'zIndex':0x270f}},_0x1c8d8a[Number(_0x2b1352)])));};function _0x2cc7(){const _0x4b3529=['WWaIb','ctOxp','createElement','Provider','map','absolute','useContext','MOxya','wdfwh','HGTaF','uhQRi','hhjYM','CrUjk','rtcZp','wQCUQ','KTZPO','GbIdx','eFqpj','UByyj'];_0x2cc7=function(){return _0x4b3529;};return _0x2cc7();}export const Portal=({children:_0x1f03f1})=>{const _0x230261={'grKfP':'HGTaF','wdfwh':function(_0x25da16,_0x4aa257){return _0x25da16(_0x4aa257);},'rtcZp':function(_0x201efc,_0x227ae5){return _0x201efc(_0x227ae5);},'wQCUQ':function(_0x1b84ad,_0x375819){return _0x1b84ad===_0x375819;},'GbIdx':function(_0x4a8cb6,_0x1ca2b2){return _0x4a8cb6!==_0x1ca2b2;},'eFqpj':function(_0x1c4b1a,_0x2bc0ee,_0x470968){return _0x1c4b1a(_0x2bc0ee,_0x470968);},'MOxya':function(_0x32c82c,_0x2dbfb3,_0x2129cd){return _0x32c82c(_0x2dbfb3,_0x2129cd);},'CrUjk':function(_0x262a20,_0x4f85d4,_0x9cc464){return _0x262a20(_0x4f85d4,_0x9cc464);}},{mount:_0x208513,update:_0x44fe7a,unmount:_0x19221a}=React[_0x8680(0x6)](PortalContext),[_0x3d603c,_0x21e6aa]=useState(null);return _0x230261[_0x8680(0x7)](useEffect,()=>{const _0x3d5ec9={'uhQRi':_0x230261['grKfP']},_0x5438b1=_0x230261[_0x8680(0x8)](_0x208513,_0x1f03f1);return _0x21e6aa(_0x5438b1),()=>{const _0x5e3a00={'hhjYM':function(_0x3ec6fa,_0x5eed54){return _0x3ec6fa(_0x5eed54);}};if(_0x8680(0x9)===_0x3d5ec9[_0x8680(0xa)]){if(_0x3d603c)_0x19221a(_0x3d603c);}else{const _0x4accad=_0x5e3a00[_0x8680(0xb)](_0x1707db,_0x452319);return _0x5e3a00['hhjYM'](_0x38b27a,_0x4accad),()=>{if(_0x4a95c7)_0x5e3a00[_0x8680(0xb)](_0x486d58,_0x2eb3f5);};}};},[]),_0x230261[_0x8680(0xc)](useEffect,()=>{const _0x28f772={'UByyj':function(_0x589327,_0x2995a7){return _0x230261[_0x8680(0xd)](_0x589327,_0x2995a7);}};_0x230261[_0x8680(0xe)](_0x8680(0xf),_0x8680(0xf))?_0x230261[_0x8680(0x10)](_0x3d603c,null)&&_0x230261[_0x8680(0x11)](_0x44fe7a,_0x3d603c,_0x1f03f1):_0x28f772[_0x8680(0x12)](_0x2d3afd,_0x3e58cf=>{const _0x12459d={..._0x3e58cf};return delete _0x12459d[_0x20c579],_0x12459d;});},[_0x1f03f1,_0x3d603c]),null;};
1
+ import React, { useEffect, useState } from 'react';
2
+ import { View } from 'react-native';
3
+
4
+ // Store for portal instances
5
+ const portalRefs = {};
6
+ let portalId = 0;
7
+
8
+ // Context to pass portal host state
9
+ const PortalContext = /*#__PURE__*/React.createContext({
10
+ mount: () => 0,
11
+ update: () => {},
12
+ unmount: () => {}
13
+ });
14
+
15
+ /**
16
+ * Portal Host component - place this at the root of your app
17
+ */
18
+ export const PortalHost = ({
19
+ children
20
+ }) => {
21
+ const [portals, setPortals] = useState({});
22
+ const mount = children => {
23
+ const key = ++portalId;
24
+ setPortals(state => ({
25
+ ...state,
26
+ [key]: children
27
+ }));
28
+ return key;
29
+ };
30
+ const update = (key, children) => {
31
+ setPortals(state => ({
32
+ ...state,
33
+ [key]: children
34
+ }));
35
+ };
36
+ const unmount = key => {
37
+ setPortals(state => {
38
+ const newState = {
39
+ ...state
40
+ };
41
+ delete newState[key];
42
+ return newState;
43
+ });
44
+ };
45
+ return /*#__PURE__*/React.createElement(PortalContext.Provider, {
46
+ value: {
47
+ mount,
48
+ update,
49
+ unmount
50
+ }
51
+ }, children, Object.keys(portals).map(key => /*#__PURE__*/React.createElement(View, {
52
+ key: key,
53
+ style: {
54
+ position: 'absolute',
55
+ top: 0,
56
+ left: 0,
57
+ right: 0,
58
+ bottom: 0,
59
+ zIndex: 9999
60
+ }
61
+ }, portals[Number(key)])));
62
+ };
63
+
64
+ /**
65
+ * Portal component - renders children into the PortalHost
66
+ */
67
+ export const Portal = ({
68
+ children
69
+ }) => {
70
+ const {
71
+ mount,
72
+ update,
73
+ unmount
74
+ } = React.useContext(PortalContext);
75
+ const [portalId, setPortalId] = useState(null);
76
+ useEffect(() => {
77
+ const id = mount(children);
78
+ setPortalId(id);
79
+ return () => {
80
+ if (portalId) unmount(portalId);
81
+ };
82
+ }, []);
83
+ useEffect(() => {
84
+ if (portalId !== null) {
85
+ update(portalId, children);
86
+ }
87
+ }, [children, portalId]);
88
+ return null;
89
+ };
90
+ //# sourceMappingURL=Portal.js.map
@@ -1 +1,118 @@
1
- function _0x19d1(_0xef52ed,_0x19d128){_0xef52ed=_0xef52ed-0x0;const _0x17f980=_0xef52();let _0x3a630a=_0x17f980[_0xef52ed];return _0x3a630a;}import axios from'axios';import AsyncStorage from'@react-native-async-storage/async-storage';function _0xef52(){const _0x2f3a00=['BASE_URL','onairosToken','create','Bearer\x20','/valid/validate-domain','post','data','error','nKoIt','/getAccountInfo','wAVCP','othent','/getAPIurl','Aqkcl','HTYrv','kStmw','ElLvq','/createAccount','giQdc','iVbCv','RYKhj'];_0xef52=function(){return _0x2f3a00;};return _0xef52();}import{API_CONFIG}from'../config/api';const API_URL=API_CONFIG[_0x19d1(0x0)];export const createApiInstance=async()=>{const _0x28fdda={'xLJnj':_0x19d1(0x1)},_0x3b164c=await AsyncStorage['getItem'](_0x28fdda['xLJnj']);return axios[_0x19d1(0x2)]({'baseURL':API_URL,'headers':{'Content-Type':'application/json',..._0x3b164c?{'Authorization':_0x19d1(0x3)+_0x3b164c}:{}}});};export const validateDomain=async()=>{const _0x558ad2={'sAsEG':_0x19d1(0x4),'nKoIt':'Error\x20validating\x20domain:'};try{const _0x44ba3e=await createApiInstance(),_0x18eea1=await _0x44ba3e[_0x19d1(0x5)](_0x558ad2['sAsEG']);return _0x18eea1[_0x19d1(0x6)];}catch(_0x32fbfa){return console[_0x19d1(0x7)](_0x558ad2[_0x19d1(0x8)],_0x32fbfa),{'status':![]};}};export const fetchAccountInfo=async(_0x51fce3,_0x272f90=![])=>{const _0x550ae5={'ItEif':function(_0x1f67f8){return _0x1f67f8();},'wAVCP':_0x19d1(0x9)};try{const _0x5b0377=await _0x550ae5['ItEif'](createApiInstance),_0x124c28=_0x272f90?{'Info':{'identifier':_0x51fce3}}:{'Info':{'userName':_0x51fce3}},_0x5e84dd=_0x272f90?'/getAccountInfo/email':_0x550ae5[_0x19d1(0xa)],_0x230848=await _0x5b0377[_0x19d1(0x5)](_0x5e84dd,_0x124c28);return _0x230848[_0x19d1(0x6)];}catch(_0x56062e){console['error']('Error\x20fetching\x20account\x20info:',_0x56062e);throw _0x56062e;}};export const getApiUrl=async(_0x5608f1,_0x26fbc7,_0x316878)=>{const _0x2eedbd={'Aqkcl':function(_0x510acb){return _0x510acb();},'HTYrv':_0x19d1(0xb),'kStmw':_0x19d1(0xc),'ElLvq':'Error\x20getting\x20API\x20URL:'};try{const _0xa562df=await _0x2eedbd[_0x19d1(0xd)](createApiInstance),_0x5b9666={'Info':{'EncryptedUserPin':_0x26fbc7,'confirmations':_0x5608f1,'web3Type':_0x2eedbd[_0x19d1(0xe)],'Domain':Platform['OS'],'proofMode':![],'OthentSub':_0x316878}},_0x2c23b2=await _0xa562df[_0x19d1(0x5)](_0x2eedbd[_0x19d1(0xf)],_0x5b9666);return _0x2c23b2[_0x19d1(0x6)];}catch(_0x30bfdb){console[_0x19d1(0x7)](_0x2eedbd[_0x19d1(0x10)],_0x30bfdb);throw _0x30bfdb;}};export const createAccount=async(_0x262fbc,_0x23bab6,_0xf897a4,_0x25ef27)=>{const _0x175124={'giQdc':function(_0x33ae3b){return _0x33ae3b();},'iVbCv':_0x19d1(0x11),'RYKhj':'Error\x20creating\x20account:'};try{const _0xb78343=await _0x175124[_0x19d1(0x12)](createApiInstance),_0x3338ac=await _0xb78343[_0x19d1(0x5)](_0x175124[_0x19d1(0x13)],{'othentSub':_0x262fbc,'pin':_0x23bab6,'socialAccounts':_0xf897a4,'email':_0x25ef27});return _0x3338ac[_0x19d1(0x6)];}catch(_0x19532a){console[_0x19d1(0x7)](_0x175124[_0x19d1(0x14)],_0x19532a);throw _0x19532a;}};
1
+ import axios from 'axios';
2
+ import AsyncStorage from '@react-native-async-storage/async-storage';
3
+ import { API_CONFIG } from '../config/api';
4
+ const API_URL = API_CONFIG.BASE_URL;
5
+
6
+ /**
7
+ * Create an API instance with authorization headers
8
+ * @returns {Promise<Object>} - The axios instance
9
+ */
10
+ export const createApiInstance = async () => {
11
+ const token = await AsyncStorage.getItem('onairosToken');
12
+ return axios.create({
13
+ baseURL: API_URL,
14
+ headers: {
15
+ 'Content-Type': 'application/json',
16
+ ...(token ? {
17
+ 'Authorization': `Bearer ${token}`
18
+ } : {})
19
+ }
20
+ });
21
+ };
22
+
23
+ /**
24
+ * Validate the domain with the Onairos API
25
+ * @returns {Promise<Object>} - The validation response
26
+ */
27
+ export const validateDomain = async () => {
28
+ try {
29
+ const api = await createApiInstance();
30
+ const response = await api.post('/valid/validate-domain');
31
+ return response.data;
32
+ } catch (error) {
33
+ console.error('Error validating domain:', error);
34
+ return {
35
+ status: false
36
+ };
37
+ }
38
+ };
39
+
40
+ /**
41
+ * Fetch account information
42
+ * @param {string} identifier - The username or email
43
+ * @param {boolean} isEmail - Whether the identifier is an email
44
+ * @returns {Promise<Object>} - The account information
45
+ */
46
+ export const fetchAccountInfo = async (identifier, isEmail = false) => {
47
+ try {
48
+ const api = await createApiInstance();
49
+ const jsonData = isEmail ? {
50
+ Info: {
51
+ identifier
52
+ }
53
+ } : {
54
+ Info: {
55
+ userName: identifier
56
+ }
57
+ };
58
+ const endpoint = isEmail ? '/getAccountInfo/email' : '/getAccountInfo';
59
+ const response = await api.post(endpoint, jsonData);
60
+ return response.data;
61
+ } catch (error) {
62
+ console.error('Error fetching account info:', error);
63
+ throw error;
64
+ }
65
+ };
66
+
67
+ /**
68
+ * Get API URL for data requests
69
+ * @param {Array} approvedRequests - The approved data requests
70
+ * @param {string} pin - The encrypted PIN
71
+ * @param {string} othentSub - The hashed Othent sub
72
+ * @returns {Promise<Object>} - The API URL response
73
+ */
74
+ export const getApiUrl = async (approvedRequests, pin, othentSub) => {
75
+ try {
76
+ const api = await createApiInstance();
77
+ const jsonData = {
78
+ Info: {
79
+ EncryptedUserPin: pin,
80
+ confirmations: approvedRequests,
81
+ web3Type: 'othent',
82
+ Domain: Platform.OS,
83
+ proofMode: false,
84
+ OthentSub: othentSub
85
+ }
86
+ };
87
+ const response = await api.post('/getAPIurl', jsonData);
88
+ return response.data;
89
+ } catch (error) {
90
+ console.error('Error getting API URL:', error);
91
+ throw error;
92
+ }
93
+ };
94
+
95
+ /**
96
+ * Create a new user account
97
+ * @param {string} othentSub - The hashed Othent sub
98
+ * @param {string} pin - The PIN
99
+ * @param {Array} socialAccounts - The selected social accounts
100
+ * @param {string} email - The user's email
101
+ * @returns {Promise<Object>} - The account creation response
102
+ */
103
+ export const createAccount = async (othentSub, pin, socialAccounts, email) => {
104
+ try {
105
+ const api = await createApiInstance();
106
+ const response = await api.post('/createAccount', {
107
+ othentSub,
108
+ pin,
109
+ socialAccounts,
110
+ email
111
+ });
112
+ return response.data;
113
+ } catch (error) {
114
+ console.error('Error creating account:', error);
115
+ throw error;
116
+ }
117
+ };
118
+ //# sourceMappingURL=api.js.map