@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 +1,245 @@
1
- import{Platform}from'react-native';export const COLORS={'surface':_0x484f(0x0),'grey300':_0x484f(0x1),'grey400':_0x484f(0x2),'grey500':_0x484f(0x3),'grey600':'#62646C','grey700':_0x484f(0x4),'grey800':_0x484f(0x5),'btnGradStart':_0x484f(0x6),'btnGradEnd':'#17181C','btnBorder':_0x484f(0x7),'btnShadowOuter':_0x484f(0x8),'btnInnerShadow':_0x484f(0x9),'btnLabel':'#FFFFFF','iconCircleGradientStart':'#0A090E','iconCircleGradientEnd':_0x484f(0xa),'primary':'#FFD700','primaryDark':'#E9B104','primaryLight':_0x484f(0xb),'background':{'dark':'#000000','medium':'#121212','light':_0x484f(0xc)},'text':{'primary':_0x484f(0xd),'secondary':'#B0B0B0','tertiary':_0x484f(0xe),'gold':_0x484f(0xf)},'ui':{'cardBackground':_0x484f(0x10),'divider':'rgba(255,\x20255,\x20255,\x200.1)','inputBackground':'rgba(255,\x20255,\x20255,\x200.1)','buttonBackground':_0x484f(0x10)},'status':{'success':_0x484f(0x11),'error':'#FF3B30','warning':'#FF9500','info':'#5AC8FA'},'transparent':_0x484f(0x12),'overlay':_0x484f(0x13)};function _0x4faa(){const _0x3bd682=['#FAFAFA','#D1D5DB','#9CA3AF','#86888E','#374151','#1F242F','#29292B','rgba(0,0,0,0.20)','rgba(0,0,0,0.10)','rgba(0,0,0,0.06)','#17171B','#FFDF33','#1C2526','#FFFFFF','#808080','#FFD700','rgba(255,\x20255,\x20255,\x200.1)','#4BB543','transparent','rgba(0,\x200,\x200,\x200.7)','IBM\x20Plex\x20Sans','ios','System','Georgia','serif','300','400','500','700','primary','btnInnerShadow','#000000','families','ibmPlexSansBold','weights','sizes','kicker','letterSpacing','grey500','bold','welcomeTitle','lineHeights','grey800','inter','regular','body','center','grey600','semibold','buttonLabel','btnLabel'];_0x4faa=function(){return _0x3bd682;};return _0x4faa();}export const FONTS={'families':{'ibmPlexSans':Platform['OS']==='ios'?_0x484f(0x14):'IBM\x20Plex\x20Sans','ibmPlexSansBold':Platform['OS']==='ios'?_0x484f(0x14):_0x484f(0x14),'inter':Platform['OS']==='ios'?'Inter':'Inter-Regular','base':Platform['OS']===_0x484f(0x15)?_0x484f(0x16):'Roboto','serif':Platform['OS']===_0x484f(0x15)?_0x484f(0x17):_0x484f(0x18)},'weights':{'light':_0x484f(0x19),'regular':_0x484f(0x1a),'medium':_0x484f(0x1b),'semibold':'600','bold':_0x484f(0x1c)},'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};export const SHADOWS={'small':{'shadowColor':COLORS['primary'],'shadowOffset':{'width':0x0,'height':0x2},'shadowOpacity':0.3,'shadowRadius':0x4,'elevation':0x3},'medium':{'shadowColor':COLORS[_0x484f(0x1d)],'shadowOffset':{'width':0x0,'height':0x4},'shadowOpacity':0.5,'shadowRadius':0x8,'elevation':0x5},'large':{'shadowColor':COLORS[_0x484f(0x1d)],'shadowOffset':{'width':0x0,'height':0x6},'shadowOpacity':0.8,'shadowRadius':0x10,'elevation':0x8},'button':{'inner':{'shadowColor':COLORS[_0x484f(0x1e)],'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':_0x484f(0x1f),'shadowOffset':{'width':0x0,'height':0x4},'shadowOpacity':0.1,'shadowRadius':0x8,'elevation':0x4}};export const TEXT_STYLES={'kicker':{'fontFamily':FONTS[_0x484f(0x20)][_0x484f(0x21)],'fontWeight':FONTS[_0x484f(0x22)]['bold'],'fontSize':FONTS[_0x484f(0x23)][_0x484f(0x24)],'lineHeight':FONTS['lineHeights'][_0x484f(0x24)],'letterSpacing':FONTS[_0x484f(0x25)][_0x484f(0x24)],'color':COLORS[_0x484f(0x26)]},'welcomeTitle':{'fontFamily':FONTS[_0x484f(0x20)]['ibmPlexSansBold'],'fontWeight':FONTS['weights'][_0x484f(0x27)],'fontSize':FONTS[_0x484f(0x23)][_0x484f(0x28)],'lineHeight':FONTS[_0x484f(0x29)][_0x484f(0x28)],'color':COLORS[_0x484f(0x2a)]},'body':{'fontFamily':FONTS[_0x484f(0x20)][_0x484f(0x2b)],'fontWeight':FONTS[_0x484f(0x22)][_0x484f(0x2c)],'fontSize':FONTS['sizes'][_0x484f(0x2d)],'lineHeight':FONTS[_0x484f(0x29)][_0x484f(0x2d)],'textAlign':_0x484f(0x2e),'color':COLORS[_0x484f(0x2f)]},'buttonLabel':{'fontFamily':FONTS[_0x484f(0x20)]['inter'],'fontWeight':FONTS[_0x484f(0x22)][_0x484f(0x30)],'fontSize':FONTS[_0x484f(0x23)][_0x484f(0x31)],'color':COLORS[_0x484f(0x32)]}};function _0x484f(_0x4faaba,_0x484f4a){_0x4faaba=_0x4faaba-0x0;const _0xa6026d=_0x4faa();let _0x3366e9=_0xa6026d[_0x4faaba];return _0x3366e9;}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 _0x1005(_0x3e53e7,_0x1005f4){_0x3e53e7=_0x3e53e7-0x0;const _0x15e82c=_0x3e53();let _0x4a3673=_0x15e82c[_0x3e53e7];return _0x4a3673;}export let ApiKeyType=function(_0x50c644){const _0x208125={'rqrGW':_0x1005(0x0)};return _0x50c644[_0x1005(0x1)]=_0x1005(0x2),_0x50c644[_0x1005(0x3)]=_0x1005(0x4),_0x50c644[_0x1005(0x5)]=_0x208125[_0x1005(0x6)],_0x50c644;}({});function _0x3e53(){const _0x7a852e=['invalid','DEVELOPER','developer','ADMIN','admin','INVALID','rqrGW'];_0x3e53=function(){return _0x7a852e;};return _0x3e53();}
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
- import React,{useEffect,useState}from'react';function _0x368b(){const _0xd6ace=['BqGfC','FaFTw','SWUpM','FqUUi','xWWYi','UQxDy','MDsxV','AOZRF','eintc','afVzD','Provider','createElement','absolute','CFHFj','UuSlc','avvmA','CYhAs','cgNLF','VSMLf','qrlbq'];_0x368b=function(){return _0xd6ace;};return _0x368b();}function _0x2d84(_0x368bb2,_0x2d8484){_0x368bb2=_0x368bb2-0x0;const _0x40306a=_0x368b();let _0x17c380=_0x40306a[_0x368bb2];return _0x17c380;}import{View}from'react-native';const portalRefs={};let portalId=0x0;const PortalContext=React['createContext']({'mount':()=>0x0,'update':()=>{},'unmount':()=>{}});export const PortalHost=({children:_0x3ddddc})=>{const _0xdeeba4={'xWWYi':function(_0x42fb0b,_0xdae4f3){return _0x42fb0b===_0xdae4f3;},'AwgJG':_0x2d84(0x0),'UQxDy':_0x2d84(0x1),'MDsxV':function(_0x2c38ec,_0x34c22b){return _0x2c38ec(_0x34c22b);},'FqUUi':function(_0x1d206c,_0xb062b9){return _0x1d206c(_0xb062b9);},'AOZRF':function(_0x259386,_0x3314d7){return _0x259386!==_0x3314d7;},'eintc':_0x2d84(0x2),'afVzD':'PDDYN'},[_0x1d6e44,_0x5afd8c]=_0xdeeba4[_0x2d84(0x3)](useState,{}),_0x5ece6c=_0x41dde2=>{if(_0xdeeba4[_0x2d84(0x4)](_0xdeeba4['AwgJG'],_0xdeeba4[_0x2d84(0x5)]))_0x4a2036(_0x473c97=>{const _0x3be27a={..._0x473c97};return delete _0x3be27a[_0xda6685],_0x3be27a;});else{const _0x26fccc=++portalId;return _0xdeeba4[_0x2d84(0x6)](_0x5afd8c,_0x55ba13=>({..._0x55ba13,[_0x26fccc]:_0x41dde2})),_0x26fccc;}},_0x5be3c5=(_0x3b0ff3,_0x4ddfa0)=>{if(_0xdeeba4[_0x2d84(0x7)](_0xdeeba4[_0x2d84(0x8)],_0xdeeba4[_0x2d84(0x9)]))_0xdeeba4[_0x2d84(0x3)](_0x5afd8c,_0x6f06c1=>({..._0x6f06c1,[_0x3b0ff3]:_0x4ddfa0}));else{if(_0x567abe)_0xdeeba4[_0x2d84(0x3)](_0x30a6d9,_0x338ddc);}},_0x3829e0=_0x33c2dd=>{_0xdeeba4['FqUUi'](_0x5afd8c,_0x3e0501=>{const _0x3726d3={..._0x3e0501};return delete _0x3726d3[_0x33c2dd],_0x3726d3;});};return React['createElement'](PortalContext[_0x2d84(0xa)],{'value':{'mount':_0x5ece6c,'update':_0x5be3c5,'unmount':_0x3829e0}},_0x3ddddc,Object['keys'](_0x1d6e44)['map'](_0xa2afce=>React[_0x2d84(0xb)](View,{'key':_0xa2afce,'style':{'position':_0x2d84(0xc),'top':0x0,'left':0x0,'right':0x0,'bottom':0x0,'zIndex':0x270f}},_0x1d6e44[Number(_0xa2afce)])));};export const Portal=({children:_0x5369f0})=>{const _0x1353e8={'UuSlc':function(_0x4bdaea,_0x9753bc){return _0x4bdaea(_0x9753bc);},'CYhAs':_0x2d84(0xd),'cgNLF':'XBBwE','VSMLf':function(_0x34fda5,_0x48bf46){return _0x34fda5!==_0x48bf46;},'avvmA':function(_0x3a94b4,_0xb112f3,_0x22cbc0){return _0x3a94b4(_0xb112f3,_0x22cbc0);}},{mount:_0x2cb670,update:_0x3725f5,unmount:_0x280fb1}=React['useContext'](PortalContext),[_0x32d5f2,_0x39f0e7]=_0x1353e8[_0x2d84(0xe)](useState,null);return _0x1353e8[_0x2d84(0xf)](useEffect,()=>{const _0x41c7b2={'VPmMB':function(_0x5bef15,_0x142382){return _0x1353e8['UuSlc'](_0x5bef15,_0x142382);}},_0x3f84b1=_0x2cb670(_0x5369f0);return _0x1353e8['UuSlc'](_0x39f0e7,_0x3f84b1),()=>{if(_0x32d5f2)_0x41c7b2['VPmMB'](_0x280fb1,_0x32d5f2);};},[]),_0x1353e8[_0x2d84(0xf)](useEffect,()=>{const _0x354b70={'qrlbq':function(_0x353c2b,_0x567b94){return _0x1353e8[_0x2d84(0xe)](_0x353c2b,_0x567b94);}};if(_0x1353e8[_0x2d84(0x10)]!==_0x1353e8[_0x2d84(0x11)])_0x1353e8[_0x2d84(0x12)](_0x32d5f2,null)&&_0x3725f5(_0x32d5f2,_0x5369f0);else{const _0x47e1a8=++_0x3f240e;return _0x354b70[_0x2d84(0x13)](_0x1483fd,_0x42eae4=>({..._0x42eae4,[_0x47e1a8]:_0x515591})),_0x47e1a8;}},[_0x5369f0,_0x32d5f2]),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
- import axios from'axios';import AsyncStorage from'@react-native-async-storage/async-storage';import{API_CONFIG}from'../config/api';const API_URL=API_CONFIG[_0x101f(0x0)];export const createApiInstance=async()=>{const _0x4177d3=await AsyncStorage[_0x101f(0x1)](_0x101f(0x2));return axios['create']({'baseURL':API_URL,'headers':{'Content-Type':'application/json',..._0x4177d3?{'Authorization':_0x101f(0x3)+_0x4177d3}:{}}});};function _0x2b1f(){const _0x246fa6=['BASE_URL','getItem','onairosToken','Bearer\x20','/valid/validate-domain','post','FWZoe','data','Error\x20validating\x20domain:','/getAccountInfo/email','/getAccountInfo','Error\x20fetching\x20account\x20info:','VhsNk','plJFL','QneGc','error','rfjrX','YDzoj','ZAouZ','Error\x20creating\x20account:','hhSuD','iUZCF'];_0x2b1f=function(){return _0x246fa6;};return _0x2b1f();}export const validateDomain=async()=>{const _0x4a62a5={'FWZoe':_0x101f(0x4)};try{const _0x4de5f8=await createApiInstance(),_0x5d507f=await _0x4de5f8[_0x101f(0x5)](_0x4a62a5[_0x101f(0x6)]);return _0x5d507f[_0x101f(0x7)];}catch(_0x494951){return console['error'](_0x101f(0x8),_0x494951),{'status':![]};}};export const fetchAccountInfo=async(_0x186830,_0x47abdc=![])=>{const _0xe5f0e2={'VhsNk':function(_0x5a71c6){return _0x5a71c6();},'plJFL':_0x101f(0x9),'QneGc':_0x101f(0xa),'rfjrX':_0x101f(0xb)};try{const _0x10540=await _0xe5f0e2[_0x101f(0xc)](createApiInstance),_0x2bff88=_0x47abdc?{'Info':{'identifier':_0x186830}}:{'Info':{'userName':_0x186830}},_0x147959=_0x47abdc?_0xe5f0e2[_0x101f(0xd)]:_0xe5f0e2[_0x101f(0xe)],_0x3ed5e9=await _0x10540[_0x101f(0x5)](_0x147959,_0x2bff88);return _0x3ed5e9[_0x101f(0x7)];}catch(_0x4fa448){console[_0x101f(0xf)](_0xe5f0e2[_0x101f(0x10)],_0x4fa448);throw _0x4fa448;}};function _0x101f(_0x2b1fcd,_0x101f6a){_0x2b1fcd=_0x2b1fcd-0x0;const _0x16ca12=_0x2b1f();let _0x18af6d=_0x16ca12[_0x2b1fcd];return _0x18af6d;}export const getApiUrl=async(_0x483270,_0x5746f5,_0xffc3bc)=>{const _0xc01111={'WNXId':'othent','YDzoj':'/getAPIurl','ZAouZ':'Error\x20getting\x20API\x20URL:'};try{const _0x5643e5=await createApiInstance(),_0x267e25={'Info':{'EncryptedUserPin':_0x5746f5,'confirmations':_0x483270,'web3Type':_0xc01111['WNXId'],'Domain':Platform['OS'],'proofMode':![],'OthentSub':_0xffc3bc}},_0x399097=await _0x5643e5[_0x101f(0x5)](_0xc01111[_0x101f(0x11)],_0x267e25);return _0x399097[_0x101f(0x7)];}catch(_0x43d5fb){console[_0x101f(0xf)](_0xc01111[_0x101f(0x12)],_0x43d5fb);throw _0x43d5fb;}};export const createAccount=async(_0x1903e5,_0x4f2ea4,_0x4b53bb,_0x4cc7e2)=>{const _0x5e2a5a={'hhSuD':'/createAccount','iUZCF':_0x101f(0x13)};try{const _0x150ae4=await createApiInstance(),_0x2c9b25=await _0x150ae4['post'](_0x5e2a5a[_0x101f(0x14)],{'othentSub':_0x1903e5,'pin':_0x4f2ea4,'socialAccounts':_0x4b53bb,'email':_0x4cc7e2});return _0x2c9b25['data'];}catch(_0x583733){console['error'](_0x5e2a5a[_0x101f(0x15)],_0x583733);throw _0x583733;}};
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