@onairos/react-native 3.7.2 → 3.7.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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 +120 -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 +113 -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,129 @@
1
- import React from'react';import{View,Text,StyleSheet,TouchableOpacity,ActivityIndicator}from'react-native';import _0x152f05 from'react-native-vector-icons/MaterialIcons';function _0x3d83(_0x1520ec,_0x3d83ff){_0x1520ec=_0x1520ec-0x0;const _0x2f15f6=_0x1520();let _0x2a40c8=_0x2f15f6[_0x1520ec];return _0x2a40c8;}import{COLORS,PLATFORMS}from'../constants';export const PlatformList=({connections:_0x53b893,onToggle:_0x138a1f,isLoading:_0x45b456,canProceed:_0x50fd4c,onProceed:_0xfcaf65})=>{const _0x2a0996={'nLqIw':_0x3d83(0x0),'VjZXP':_0x3d83(0x1),'QFrjQ':'Connect\x20your\x20platforms','jnmfR':function(_0x3ed1fc,_0x180874){return _0x3ed1fc||_0x180874;}},_0x322700=(_0x217ea1,_0x64371a)=>{const _0x433924=PLATFORMS[_0x217ea1];if(!_0x433924)return null;return React[_0x3d83(0x2)](View,{'key':_0x217ea1,'style':styles[_0x3d83(0x3)]},React[_0x3d83(0x2)](View,{'style':styles['platformHeader']},React[_0x3d83(0x2)](_0x152f05,{'name':_0x433924['icon'],'size':0x18,'color':_0x433924[_0x3d83(0x4)]}),React['createElement'](Text,{'style':styles[_0x3d83(0x5)]},_0x433924['name'])),_0x433924['description']&&React[_0x3d83(0x2)](Text,{'style':styles[_0x3d83(0x6)]},_0x433924['description']),React[_0x3d83(0x2)](TouchableOpacity,{'style':[styles['connectButton'],_0x64371a?styles[_0x3d83(0x7)]:styles[_0x3d83(0x8)]],'onPress':()=>_0x138a1f(_0x217ea1,!_0x64371a),'disabled':_0x45b456},_0x45b456?React[_0x3d83(0x2)](ActivityIndicator,{'color':_0x2a0996[_0x3d83(0x9)]}):React[_0x3d83(0x2)](Text,{'style':styles[_0x3d83(0xa)]},_0x64371a?_0x2a0996[_0x3d83(0xb)]:_0x3d83(0xc))));};return React[_0x3d83(0x2)](View,{'style':styles[_0x3d83(0xd)]},React[_0x3d83(0x2)](Text,{'style':styles[_0x3d83(0xe)]},_0x2a0996[_0x3d83(0xf)]),React['createElement'](Text,{'style':styles['subtitle']},_0x3d83(0x10)),React['createElement'](View,{'style':styles[_0x3d83(0x11)]},Object[_0x3d83(0x12)](_0x53b893)[_0x3d83(0x13)](([_0x51c292,_0x4be086])=>_0x322700(_0x51c292,!!_0x4be086))),React['createElement'](TouchableOpacity,{'style':[styles['proceedButton'],!_0x50fd4c&&styles[_0x3d83(0x14)]],'onPress':_0xfcaf65,'disabled':_0x2a0996[_0x3d83(0x15)](!_0x50fd4c,_0x45b456)},React['createElement'](Text,{'style':styles[_0x3d83(0x16)]},_0x3d83(0x17))));};function _0x1520(){const _0x4420d1=['#fff','Disconnect','createElement','platformContainer','color','platformName','platformDescription','connectedButton','disconnectedButton','nLqIw','buttonText','VjZXP','Connect','container','title','QFrjQ','Connect\x20at\x20least\x202\x20platforms\x20to\x20proceed','platformsList','entries','map','disabledButton','jnmfR','proceedButtonText','Proceed','create','text','secondary','border','row','600','primary','center','success'];_0x1520=function(){return _0x4420d1;};return _0x1520();}const styles=StyleSheet[_0x3d83(0x18)]({'container':{'flex':0x1,'padding':0x10},'title':{'fontSize':0x14,'fontWeight':'600','marginBottom':0x8,'color':COLORS[_0x3d83(0x19)]['primary']},'subtitle':{'fontSize':0xe,'color':COLORS['text'][_0x3d83(0x1a)],'marginBottom':0x18},'platformsList':{'flex':0x1},'platformContainer':{'backgroundColor':_0x3d83(0x0),'borderRadius':0xc,'padding':0x10,'marginBottom':0x10,'borderWidth':0x1,'borderColor':COLORS[_0x3d83(0x1b)]},'platformHeader':{'flexDirection':_0x3d83(0x1c),'alignItems':'center','marginBottom':0x8},'platformName':{'fontSize':0x10,'fontWeight':_0x3d83(0x1d),'marginLeft':0xc,'color':COLORS['text'][_0x3d83(0x1e)]},'platformDescription':{'fontSize':0xe,'color':COLORS[_0x3d83(0x19)][_0x3d83(0x1a)],'marginBottom':0x10},'connectButton':{'paddingVertical':0x8,'paddingHorizontal':0x10,'borderRadius':0x8,'alignItems':_0x3d83(0x1f)},'connectedButton':{'backgroundColor':COLORS[_0x3d83(0x20)]},'disconnectedButton':{'backgroundColor':COLORS[_0x3d83(0x1e)]},'buttonText':{'color':_0x3d83(0x0),'fontWeight':_0x3d83(0x1d)},'proceedButton':{'backgroundColor':COLORS[_0x3d83(0x1e)],'paddingVertical':0x10,'borderRadius':0xc,'alignItems':_0x3d83(0x1f),'marginTop':0x10},'disabledButton':{'opacity':0.5},'proceedButtonText':{'color':'#fff','fontSize':0x10,'fontWeight':_0x3d83(0x1d)}});
1
+ import React from 'react';
2
+ import { View, Text, StyleSheet, TouchableOpacity, ActivityIndicator } from 'react-native';
3
+ import Icon from 'react-native-vector-icons/MaterialIcons';
4
+ import { COLORS, PLATFORMS } from '../constants';
5
+ export const PlatformList = ({
6
+ connections,
7
+ onToggle,
8
+ isLoading,
9
+ canProceed,
10
+ onProceed
11
+ }) => {
12
+ const renderPlatformItem = (platform, isConnected) => {
13
+ const platformConfig = PLATFORMS[platform];
14
+ if (!platformConfig) return null;
15
+ return /*#__PURE__*/React.createElement(View, {
16
+ key: platform,
17
+ style: styles.platformContainer
18
+ }, /*#__PURE__*/React.createElement(View, {
19
+ style: styles.platformHeader
20
+ }, /*#__PURE__*/React.createElement(Icon, {
21
+ name: platformConfig.icon,
22
+ size: 24,
23
+ color: platformConfig.color
24
+ }), /*#__PURE__*/React.createElement(Text, {
25
+ style: styles.platformName
26
+ }, platformConfig.name)), platformConfig.description && /*#__PURE__*/React.createElement(Text, {
27
+ style: styles.platformDescription
28
+ }, platformConfig.description), /*#__PURE__*/React.createElement(TouchableOpacity, {
29
+ style: [styles.connectButton, isConnected ? styles.connectedButton : styles.disconnectedButton],
30
+ onPress: () => onToggle(platform, !isConnected),
31
+ disabled: isLoading
32
+ }, isLoading ? /*#__PURE__*/React.createElement(ActivityIndicator, {
33
+ color: "#fff"
34
+ }) : /*#__PURE__*/React.createElement(Text, {
35
+ style: styles.buttonText
36
+ }, isConnected ? 'Disconnect' : 'Connect')));
37
+ };
38
+ return /*#__PURE__*/React.createElement(View, {
39
+ style: styles.container
40
+ }, /*#__PURE__*/React.createElement(Text, {
41
+ style: styles.title
42
+ }, "Connect your platforms"), /*#__PURE__*/React.createElement(Text, {
43
+ style: styles.subtitle
44
+ }, "Connect at least 2 platforms to proceed"), /*#__PURE__*/React.createElement(View, {
45
+ style: styles.platformsList
46
+ }, Object.entries(connections).map(([platform, status]) => renderPlatformItem(platform, !!status))), /*#__PURE__*/React.createElement(TouchableOpacity, {
47
+ style: [styles.proceedButton, !canProceed && styles.disabledButton],
48
+ onPress: onProceed,
49
+ disabled: !canProceed || isLoading
50
+ }, /*#__PURE__*/React.createElement(Text, {
51
+ style: styles.proceedButtonText
52
+ }, "Proceed")));
53
+ };
54
+ const styles = StyleSheet.create({
55
+ container: {
56
+ flex: 1,
57
+ padding: 16
58
+ },
59
+ title: {
60
+ fontSize: 20,
61
+ fontWeight: '600',
62
+ marginBottom: 8,
63
+ color: COLORS.text.primary
64
+ },
65
+ subtitle: {
66
+ fontSize: 14,
67
+ color: COLORS.text.secondary,
68
+ marginBottom: 24
69
+ },
70
+ platformsList: {
71
+ flex: 1
72
+ },
73
+ platformContainer: {
74
+ backgroundColor: '#fff',
75
+ borderRadius: 12,
76
+ padding: 16,
77
+ marginBottom: 16,
78
+ borderWidth: 1,
79
+ borderColor: COLORS.border
80
+ },
81
+ platformHeader: {
82
+ flexDirection: 'row',
83
+ alignItems: 'center',
84
+ marginBottom: 8
85
+ },
86
+ platformName: {
87
+ fontSize: 16,
88
+ fontWeight: '600',
89
+ marginLeft: 12,
90
+ color: COLORS.text.primary
91
+ },
92
+ platformDescription: {
93
+ fontSize: 14,
94
+ color: COLORS.text.secondary,
95
+ marginBottom: 16
96
+ },
97
+ connectButton: {
98
+ paddingVertical: 8,
99
+ paddingHorizontal: 16,
100
+ borderRadius: 8,
101
+ alignItems: 'center'
102
+ },
103
+ connectedButton: {
104
+ backgroundColor: COLORS.success
105
+ },
106
+ disconnectedButton: {
107
+ backgroundColor: COLORS.primary
108
+ },
109
+ buttonText: {
110
+ color: '#fff',
111
+ fontWeight: '600'
112
+ },
113
+ proceedButton: {
114
+ backgroundColor: COLORS.primary,
115
+ paddingVertical: 16,
116
+ borderRadius: 12,
117
+ alignItems: 'center',
118
+ marginTop: 16
119
+ },
120
+ disabledButton: {
121
+ opacity: 0.5
122
+ },
123
+ proceedButtonText: {
124
+ color: '#fff',
125
+ fontSize: 16,
126
+ fontWeight: '600'
127
+ }
128
+ });
129
+ //# sourceMappingURL=PlatformList.js.map
@@ -1 +1,173 @@
1
- import React from'react';function _0x53b1(_0x487f21,_0x53b12a){_0x487f21=_0x487f21-0x0;const _0x48c7c5=_0x487f();let _0x406512=_0x48c7c5[_0x487f21];return _0x406512;}import{View,Text,TouchableOpacity,Image,StyleSheet,Switch,Platform}from'react-native';import{COLORS}from'../theme';const PlatformToggle=({platform:_0x214e43,isEnabled:_0x11a04e,onToggle:_0x281311,compact:compact=![],isLast:isLast=![],fullWidth:fullWidth=![],customIconSize:_0x25f0b3,onLongPress:_0x1dc44f,onPressOut:_0x24ec81})=>{const _0xb42be9={'Gqott':function(_0x303997,_0x3ecc76,_0x2ff049){return _0x303997(_0x3ecc76,_0x2ff049);},'jjlyu':function(_0x4f9248,_0x3ab3f2){return _0x4f9248-_0x3ab3f2;},'RPqlZ':function(_0x65d743,_0x13d585){return _0x65d743-_0x13d585;},'eSGNc':_0x53b1(0x0),'YhalC':function(_0x495c80,_0x453fed){return _0x495c80===_0x453fed;},'eudZJ':'ios','HpRhe':_0x53b1(0x1)},_0x16727e=()=>{_0xb42be9['Gqott'](_0x281311,_0x214e43['id'],!_0x11a04e);},_0x3e7a46=fullWidth?styles[_0x53b1(0x2)]:compact?styles[_0x53b1(0x3)]:styles[_0x53b1(0x4)];return React[_0x53b1(0x5)](TouchableOpacity,{'style':[_0x3e7a46,!isLast&&compact&&styles[_0x53b1(0x6)]],'onLongPress':_0x1dc44f,'onPressOut':_0x24ec81,'activeOpacity':_0x1dc44f?0.7:0x1,'disabled':!_0x1dc44f},React[_0x53b1(0x5)](View,{'style':styles[_0x53b1(0x7)]},React['createElement'](View,{'style':styles[_0x53b1(0x8)]},React['createElement'](Image,{'source':_0x214e43[_0x53b1(0x9)],'style':_0x25f0b3?{'width':_0x25f0b3,'height':_0x25f0b3,'marginRight':_0xb42be9[_0x53b1(0xa)](0xc,_0xb42be9[_0x53b1(0xb)](_0x25f0b3,0x1c))}:fullWidth?styles[_0x53b1(0xc)]:compact?styles[_0x53b1(0xc)]:styles[_0x53b1(0x9)],'resizeMode':_0x53b1(0xd)}),React['createElement'](View,{'style':styles['textContent']},React[_0x53b1(0x5)](Text,{'style':fullWidth?styles[_0x53b1(0xe)]:compact?styles[_0x53b1(0xe)]:styles[_0x53b1(0xf)]},_0x214e43[_0x53b1(0x10)]))),React[_0x53b1(0x5)](Switch,{'value':_0x11a04e,'onValueChange':_0x16727e,'trackColor':{'false':_0xb42be9[_0x53b1(0x11)],'true':_0x53b1(0x12)},'thumbColor':_0xb42be9['YhalC'](Platform['OS'],_0xb42be9[_0x53b1(0x13)])?undefined:_0x11a04e?_0xb42be9['HpRhe']:_0x53b1(0x1),'ios_backgroundColor':_0xb42be9[_0x53b1(0x11)],'style':compact?styles[_0x53b1(0x14)]:undefined})),fullWidth&&React[_0x53b1(0x5)](View,{'style':styles[_0x53b1(0x15)]},React[_0x53b1(0x5)](Text,{'style':styles[_0x53b1(0x16)]},_0x214e43['description'])),!fullWidth&&React['createElement'](Text,{'style':compact?styles['compactDescription']:styles[_0x53b1(0x17)]},_0x214e43['description']));},styles=StyleSheet[_0x53b1(0x18)]({'container':{'flexDirection':_0x53b1(0x19),'alignItems':_0x53b1(0x1a),'justifyContent':'space-between','paddingVertical':0x10,'paddingHorizontal':0x10,'backgroundColor':COLORS[_0x53b1(0x1b)],'borderRadius':0xc,'marginBottom':0xc,'borderWidth':0x1,'borderColor':_0x53b1(0x0)},'compactContainer':{'flexDirection':_0x53b1(0x19),'alignItems':'center','justifyContent':_0x53b1(0x1c),'paddingVertical':0x10,'paddingHorizontal':0x10,'backgroundColor':COLORS[_0x53b1(0x1b)]},'fullWidthContainer':{'flexDirection':'column','paddingVertical':0x8,'paddingHorizontal':0x2,'backgroundColor':COLORS[_0x53b1(0x1b)],'marginBottom':0x4,'marginHorizontal':0x0},'topRow':{'flexDirection':_0x53b1(0x19),'alignItems':'center','justifyContent':_0x53b1(0x1c),'marginBottom':0x4},'descriptionBox':{'backgroundColor':_0x53b1(0x1d),'borderRadius':0x8,'paddingVertical':0x8,'paddingHorizontal':0x4,'marginTop':0x2},'borderBottom':{'borderBottomWidth':0x1,'borderBottomColor':'#E5E5E5'},'leftContent':{'flexDirection':_0x53b1(0x19),'alignItems':_0x53b1(0x1a),'flex':0x1},'icon':{'width':0x20,'height':0x20,'marginRight':0xc},'compactIcon':{'width':0x1c,'height':0x1c,'marginRight':0xc},'textContent':{'flex':0x1},'platformName':{'fontSize':0x10,'fontFamily':_0x53b1(0x1e),'fontWeight':_0x53b1(0x1f),'color':COLORS['grey800'],'marginBottom':0x2},'compactPlatformName':{'fontSize':0x10,'fontFamily':_0x53b1(0x1e),'fontWeight':'600','color':COLORS[_0x53b1(0x20)],'marginBottom':0x2},'description':{'fontSize':0xe,'fontFamily':_0x53b1(0x1e),'fontWeight':_0x53b1(0x21),'color':COLORS[_0x53b1(0x22)],'lineHeight':0x14},'compactDescription':{'fontSize':0xc,'fontFamily':_0x53b1(0x1e),'fontWeight':_0x53b1(0x21),'color':COLORS[_0x53b1(0x22)],'lineHeight':0x10},'fullWidthDescription':{'fontSize':0xd,'fontFamily':_0x53b1(0x1e),'fontWeight':_0x53b1(0x21),'color':COLORS[_0x53b1(0x22)],'lineHeight':0x12},'compactSwitch':{'transform':[{'scaleX':0.9},{'scaleY':0.9}]}});function _0x487f(){const _0x219b4c=['#E5E5E5','#FFFFFF','fullWidthContainer','compactContainer','container','createElement','borderBottom','topRow','leftContent','icon','jjlyu','RPqlZ','compactIcon','contain','compactPlatformName','platformName','name','eSGNc','#4CD964','eudZJ','compactSwitch','descriptionBox','fullWidthDescription','description','create','row','center','surface','space-between','#F5F5F5','Inter','600','grey800','400','grey600'];_0x487f=function(){return _0x219b4c;};return _0x487f();}export default PlatformToggle;
1
+ import React from 'react';
2
+ import { View, Text, TouchableOpacity, Image, StyleSheet, Switch, Platform } from 'react-native';
3
+ import { COLORS } from '../theme';
4
+ const PlatformToggle = ({
5
+ platform,
6
+ isEnabled,
7
+ onToggle,
8
+ compact = false,
9
+ isLast = false,
10
+ fullWidth = false,
11
+ customIconSize,
12
+ onLongPress,
13
+ onPressOut
14
+ }) => {
15
+ const handleToggle = () => {
16
+ onToggle(platform.id, !isEnabled);
17
+ };
18
+ const containerStyle = fullWidth ? styles.fullWidthContainer : compact ? styles.compactContainer : styles.container;
19
+ return /*#__PURE__*/React.createElement(TouchableOpacity, {
20
+ style: [containerStyle, !isLast && compact && styles.borderBottom],
21
+ onLongPress: onLongPress,
22
+ onPressOut: onPressOut,
23
+ activeOpacity: onLongPress ? 0.7 : 1.0,
24
+ disabled: !onLongPress
25
+ }, /*#__PURE__*/React.createElement(View, {
26
+ style: styles.topRow
27
+ }, /*#__PURE__*/React.createElement(View, {
28
+ style: styles.leftContent
29
+ }, /*#__PURE__*/React.createElement(Image, {
30
+ source: platform.icon,
31
+ style: customIconSize ? {
32
+ width: customIconSize,
33
+ height: customIconSize,
34
+ marginRight: 12 - (customIconSize - 28) // Reduce margin more to align text properly
35
+ } : fullWidth ? styles.compactIcon : compact ? styles.compactIcon : styles.icon,
36
+ resizeMode: "contain"
37
+ }), /*#__PURE__*/React.createElement(View, {
38
+ style: styles.textContent
39
+ }, /*#__PURE__*/React.createElement(Text, {
40
+ style: fullWidth ? styles.compactPlatformName : compact ? styles.compactPlatformName : styles.platformName
41
+ }, platform.name))), /*#__PURE__*/React.createElement(Switch, {
42
+ value: isEnabled,
43
+ onValueChange: handleToggle,
44
+ trackColor: {
45
+ false: '#E5E5E5',
46
+ true: '#4CD964' // Green when enabled
47
+ },
48
+ thumbColor: Platform.OS === 'ios' ? undefined : isEnabled ? '#FFFFFF' : '#FFFFFF',
49
+ ios_backgroundColor: "#E5E5E5",
50
+ style: compact ? styles.compactSwitch : undefined
51
+ })), fullWidth && /*#__PURE__*/React.createElement(View, {
52
+ style: styles.descriptionBox
53
+ }, /*#__PURE__*/React.createElement(Text, {
54
+ style: styles.fullWidthDescription
55
+ }, platform.description)), !fullWidth && /*#__PURE__*/React.createElement(Text, {
56
+ style: compact ? styles.compactDescription : styles.description
57
+ }, platform.description));
58
+ };
59
+ const styles = StyleSheet.create({
60
+ container: {
61
+ flexDirection: 'row',
62
+ alignItems: 'center',
63
+ justifyContent: 'space-between',
64
+ paddingVertical: 16,
65
+ paddingHorizontal: 16,
66
+ backgroundColor: COLORS.surface,
67
+ borderRadius: 12,
68
+ marginBottom: 12,
69
+ borderWidth: 1,
70
+ borderColor: '#E5E5E5'
71
+ },
72
+ compactContainer: {
73
+ flexDirection: 'row',
74
+ alignItems: 'center',
75
+ justifyContent: 'space-between',
76
+ paddingVertical: 16,
77
+ paddingHorizontal: 16,
78
+ backgroundColor: COLORS.surface
79
+ },
80
+ fullWidthContainer: {
81
+ flexDirection: 'column',
82
+ // Changed to column to stack rows
83
+ paddingVertical: 8,
84
+ // Reduced from 16 to bring platforms closer
85
+ paddingHorizontal: 2,
86
+ // Much closer to edges
87
+ backgroundColor: COLORS.surface,
88
+ marginBottom: 4,
89
+ // Reduced from 12 to bring platforms closer
90
+ marginHorizontal: 0 // Ensure it spans full width
91
+ },
92
+ topRow: {
93
+ flexDirection: 'row',
94
+ alignItems: 'center',
95
+ justifyContent: 'space-between',
96
+ marginBottom: 4 // Reduced space between icon row and description box
97
+ },
98
+ descriptionBox: {
99
+ backgroundColor: '#F5F5F5',
100
+ borderRadius: 8,
101
+ paddingVertical: 8,
102
+ // Reduced from 10 to make description box smaller
103
+ paddingHorizontal: 4,
104
+ // Much closer to edges
105
+ marginTop: 2 // Reduced from 4 to bring closer to icon row
106
+ },
107
+ borderBottom: {
108
+ borderBottomWidth: 1,
109
+ borderBottomColor: '#E5E5E5'
110
+ },
111
+ leftContent: {
112
+ flexDirection: 'row',
113
+ alignItems: 'center',
114
+ flex: 1
115
+ },
116
+ icon: {
117
+ width: 32,
118
+ height: 32,
119
+ marginRight: 12
120
+ },
121
+ compactIcon: {
122
+ width: 28,
123
+ height: 28,
124
+ marginRight: 12
125
+ },
126
+ textContent: {
127
+ flex: 1
128
+ },
129
+ platformName: {
130
+ fontSize: 16,
131
+ fontFamily: 'Inter',
132
+ fontWeight: '600',
133
+ color: COLORS.grey800,
134
+ marginBottom: 2
135
+ },
136
+ compactPlatformName: {
137
+ fontSize: 16,
138
+ fontFamily: 'Inter',
139
+ fontWeight: '600',
140
+ color: COLORS.grey800,
141
+ marginBottom: 2
142
+ },
143
+ description: {
144
+ fontSize: 14,
145
+ fontFamily: 'Inter',
146
+ fontWeight: '400',
147
+ color: COLORS.grey600,
148
+ lineHeight: 20
149
+ },
150
+ compactDescription: {
151
+ fontSize: 12,
152
+ fontFamily: 'Inter',
153
+ fontWeight: '400',
154
+ color: COLORS.grey600,
155
+ lineHeight: 16
156
+ },
157
+ fullWidthDescription: {
158
+ fontSize: 13,
159
+ fontFamily: 'Inter',
160
+ fontWeight: '400',
161
+ color: COLORS.grey600,
162
+ lineHeight: 18
163
+ },
164
+ compactSwitch: {
165
+ transform: [{
166
+ scaleX: 0.9
167
+ }, {
168
+ scaleY: 0.9
169
+ }]
170
+ }
171
+ });
172
+ export default PlatformToggle;
173
+ //# sourceMappingURL=PlatformToggle.js.map
@@ -1 +1,172 @@
1
- import React,{useState}from'react';import{View,Text,TouchableOpacity,StyleSheet,ActivityIndicator}from'react-native';import _0x2b228b from'react-native-linear-gradient';function _0x3fcc(_0x5c663c,_0x3fccbc){_0x5c663c=_0x5c663c-0x0;const _0x53c4f8=_0x5c66();let _0x2dcd6d=_0x53c4f8[_0x5c663c];return _0x2dcd6d;}function _0x5c66(){const _0x4b0173=['JiEcF','createElement','iconCircleGradientStart','iconCircleGradientEnd','absoluteFill','iconContent','arrowText','Get\x20Started','outerPill','outerShadow','button','btnGradStart','btnGradEnd','textContainer','btnLabel','MSXIP','label','create','btnBorder','hidden','relative','#000000','absoluteFillObject','rgba(0,0,0,0.1)','center','transparent','absolute','Inter','600'];_0x5c66=function(){return _0x4b0173;};return _0x5c66();}import{COLORS}from'../theme';const IconCircle=({size:size=0x28,children:_0x5adaf3})=>{const _0x1f81c7={'JiEcF':function(_0x49f031,_0x45dde0){return _0x49f031/_0x45dde0;},'OxQDB':function(_0x143213,_0x483ead){return _0x143213/_0x483ead;}};return React['createElement'](View,{'style':[styles['iconCircle'],{'width':size,'height':size,'borderRadius':_0x1f81c7[_0x3fcc(0x0)](size,0x2)}]},React[_0x3fcc(0x1)](_0x2b228b,{'colors':[COLORS[_0x3fcc(0x2)],COLORS[_0x3fcc(0x3)]],'style':[StyleSheet[_0x3fcc(0x4)],{'borderRadius':_0x1f81c7['OxQDB'](size,0x2)}],'start':{'x':0x0,'y':0x0},'end':{'x':0x0,'y':0x1}}),React[_0x3fcc(0x1)](View,{'style':styles[_0x3fcc(0x5)]},_0x5adaf3||React['createElement'](Text,{'style':styles[_0x3fcc(0x6)]},'→')));},PrimaryButton=({label:label=_0x3fcc(0x7),onPress:_0x242170,iconRight:_0x4c3388,loading:loading=![],disabled:disabled=![],testID:_0x5050c1,style:_0x200f47,textStyle:_0x5d15be})=>{const _0x3411b2={'iiMVf':function(_0x477302,_0x1ea7da){return _0x477302(_0x1ea7da);},'MSXIP':'small'},[_0xfb2e5c,_0x151ac1]=_0x3411b2['iiMVf'](useState,![]),_0x476e09=()=>_0x151ac1(!![]),_0x331bec=()=>_0x151ac1(![]);return React[_0x3fcc(0x1)](TouchableOpacity,{'style':[styles[_0x3fcc(0x8)],!disabled&&styles[_0x3fcc(0x9)],disabled&&styles['disabled'],_0x200f47],'onPress':_0x242170,'onPressIn':_0x476e09,'onPressOut':_0x331bec,'disabled':disabled||loading,'activeOpacity':0x1,'testID':_0x5050c1,'accessibilityLabel':label,'accessibilityRole':_0x3fcc(0xa)},React[_0x3fcc(0x1)](_0x2b228b,{'colors':[COLORS[_0x3fcc(0xb)],COLORS[_0x3fcc(0xc)]],'style':styles['baseGradient'],'start':{'x':0x0,'y':0x0},'end':{'x':0x0,'y':0x1}}),_0xfb2e5c&&React[_0x3fcc(0x1)](View,{'style':styles['pressedOverlay']}),React['createElement'](View,{'style':styles[_0x3fcc(0xd)]},loading?React[_0x3fcc(0x1)](ActivityIndicator,{'color':COLORS[_0x3fcc(0xe)],'size':_0x3411b2[_0x3fcc(0xf)]}):React[_0x3fcc(0x1)](Text,{'style':[styles[_0x3fcc(0x10)],_0x5d15be]},label)),React[_0x3fcc(0x1)](View,{'style':styles['iconPosition']},!loading&&(_0x4c3388||React[_0x3fcc(0x1)](IconCircle,null))));},styles=StyleSheet[_0x3fcc(0x11)]({'outerPill':{'height':0x30,'borderRadius':0x64,'borderWidth':0x1,'borderColor':COLORS[_0x3fcc(0x12)],'overflow':_0x3fcc(0x13),'width':'100%','position':_0x3fcc(0x14)},'outerShadow':{'shadowColor':_0x3fcc(0x15),'shadowOffset':{'width':0x14,'height':0x1e},'shadowOpacity':0.1,'shadowRadius':0x28,'elevation':0x8},'disabled':{'opacity':0.65,'shadowOpacity':0x0,'elevation':0x0},'baseGradient':{...StyleSheet[_0x3fcc(0x16)],'borderRadius':0x64},'pressedOverlay':{...StyleSheet[_0x3fcc(0x16)],'backgroundColor':_0x3fcc(0x17),'borderRadius':0x64},'textContainer':{'position':'absolute','left':0x0,'right':0x0,'top':0x0,'bottom':0x0,'justifyContent':_0x3fcc(0x18),'alignItems':_0x3fcc(0x18),'backgroundColor':_0x3fcc(0x19)},'iconPosition':{'position':_0x3fcc(0x1a),'right':0x4,'top':0x4,'bottom':0x4,'width':0x28,'justifyContent':_0x3fcc(0x18),'alignItems':_0x3fcc(0x18),'backgroundColor':_0x3fcc(0x19)},'label':{'fontFamily':_0x3fcc(0x1b),'fontWeight':_0x3fcc(0x1c),'fontSize':0x10,'color':COLORS[_0x3fcc(0xe)],'textAlign':'center','backgroundColor':_0x3fcc(0x19)},'iconCircle':{'justifyContent':_0x3fcc(0x18),'alignItems':'center','borderWidth':0x1,'borderColor':'rgba(0,0,0,0.25)'},'iconContent':{'justifyContent':_0x3fcc(0x18),'alignItems':_0x3fcc(0x18),'backgroundColor':_0x3fcc(0x19)},'arrowText':{'fontSize':0x14,'color':COLORS[_0x3fcc(0xe)],'fontWeight':'600','opacity':0.95,'backgroundColor':'transparent'}});export{IconCircle};export{PrimaryButton};export default PrimaryButton;
1
+ import React, { useState } from 'react';
2
+ import { View, Text, TouchableOpacity, StyleSheet, ActivityIndicator } from 'react-native';
3
+ import LinearGradient from 'react-native-linear-gradient';
4
+ import { COLORS } from '../theme';
5
+ const IconCircle = ({
6
+ size = 40,
7
+ children
8
+ }) => {
9
+ return /*#__PURE__*/React.createElement(View, {
10
+ style: [styles.iconCircle, {
11
+ width: size,
12
+ height: size,
13
+ borderRadius: size / 2
14
+ }]
15
+ }, /*#__PURE__*/React.createElement(LinearGradient, {
16
+ colors: [COLORS.iconCircleGradientStart, COLORS.iconCircleGradientEnd],
17
+ style: [StyleSheet.absoluteFill, {
18
+ borderRadius: size / 2
19
+ }],
20
+ start: {
21
+ x: 0,
22
+ y: 0
23
+ },
24
+ end: {
25
+ x: 0,
26
+ y: 1
27
+ }
28
+ }), /*#__PURE__*/React.createElement(View, {
29
+ style: styles.iconContent
30
+ }, children || /*#__PURE__*/React.createElement(Text, {
31
+ style: styles.arrowText
32
+ }, "\u2192")));
33
+ };
34
+ const PrimaryButton = ({
35
+ label = "Get Started",
36
+ onPress,
37
+ iconRight,
38
+ loading = false,
39
+ disabled = false,
40
+ testID,
41
+ style,
42
+ textStyle
43
+ }) => {
44
+ const [pressed, setPressed] = useState(false);
45
+ const handlePressIn = () => setPressed(true);
46
+ const handlePressOut = () => setPressed(false);
47
+ return /*#__PURE__*/React.createElement(TouchableOpacity, {
48
+ style: [styles.outerPill, !disabled && styles.outerShadow, disabled && styles.disabled, style],
49
+ onPress: onPress,
50
+ onPressIn: handlePressIn,
51
+ onPressOut: handlePressOut,
52
+ disabled: disabled || loading,
53
+ activeOpacity: 1,
54
+ testID: testID,
55
+ accessibilityLabel: label,
56
+ accessibilityRole: "button"
57
+ }, /*#__PURE__*/React.createElement(LinearGradient, {
58
+ colors: [COLORS.btnGradStart, COLORS.btnGradEnd],
59
+ style: styles.baseGradient,
60
+ start: {
61
+ x: 0,
62
+ y: 0
63
+ },
64
+ end: {
65
+ x: 0,
66
+ y: 1
67
+ }
68
+ }), pressed && /*#__PURE__*/React.createElement(View, {
69
+ style: styles.pressedOverlay
70
+ }), /*#__PURE__*/React.createElement(View, {
71
+ style: styles.textContainer
72
+ }, loading ? /*#__PURE__*/React.createElement(ActivityIndicator, {
73
+ color: COLORS.btnLabel,
74
+ size: "small"
75
+ }) : /*#__PURE__*/React.createElement(Text, {
76
+ style: [styles.label, textStyle]
77
+ }, label)), /*#__PURE__*/React.createElement(View, {
78
+ style: styles.iconPosition
79
+ }, !loading && (iconRight || /*#__PURE__*/React.createElement(IconCircle, null))));
80
+ };
81
+ const styles = StyleSheet.create({
82
+ // Outer pill container - owns all backgrounds, border, shadow
83
+ outerPill: {
84
+ height: 48,
85
+ borderRadius: 100,
86
+ borderWidth: 1,
87
+ borderColor: COLORS.btnBorder,
88
+ // ≈20% black
89
+ overflow: 'hidden',
90
+ width: '100%',
91
+ position: 'relative'
92
+ },
93
+ outerShadow: {
94
+ // Outer shadow: 20px 30px 40px rgba(0,0,0,0.10)
95
+ shadowColor: '#000000',
96
+ shadowOffset: {
97
+ width: 20,
98
+ height: 30
99
+ },
100
+ shadowOpacity: 0.10,
101
+ shadowRadius: 40,
102
+ elevation: 8
103
+ },
104
+ disabled: {
105
+ opacity: 0.65,
106
+ shadowOpacity: 0,
107
+ elevation: 0
108
+ },
109
+ // Single base gradient - fills entire button
110
+ baseGradient: {
111
+ ...StyleSheet.absoluteFillObject,
112
+ borderRadius: 100
113
+ },
114
+ pressedOverlay: {
115
+ ...StyleSheet.absoluteFillObject,
116
+ backgroundColor: 'rgba(0,0,0,0.1)',
117
+ borderRadius: 100
118
+ },
119
+ // Absolutely centered text container
120
+ textContainer: {
121
+ position: 'absolute',
122
+ left: 0,
123
+ right: 0,
124
+ top: 0,
125
+ bottom: 0,
126
+ justifyContent: 'center',
127
+ alignItems: 'center',
128
+ backgroundColor: 'transparent'
129
+ },
130
+ // Fixed icon position on right
131
+ iconPosition: {
132
+ position: 'absolute',
133
+ right: 4,
134
+ top: 4,
135
+ bottom: 4,
136
+ width: 40,
137
+ justifyContent: 'center',
138
+ alignItems: 'center',
139
+ backgroundColor: 'transparent'
140
+ },
141
+ label: {
142
+ fontFamily: 'Inter',
143
+ fontWeight: '600',
144
+ fontSize: 16,
145
+ color: COLORS.btnLabel,
146
+ textAlign: 'center',
147
+ backgroundColor: 'transparent' // Must be transparent
148
+ },
149
+ // IconCircle styles - ONLY child with background
150
+ iconCircle: {
151
+ justifyContent: 'center',
152
+ alignItems: 'center',
153
+ borderWidth: 1,
154
+ borderColor: 'rgba(0,0,0,0.25)'
155
+ },
156
+ iconContent: {
157
+ justifyContent: 'center',
158
+ alignItems: 'center',
159
+ backgroundColor: 'transparent'
160
+ },
161
+ arrowText: {
162
+ fontSize: 20,
163
+ color: COLORS.btnLabel,
164
+ fontWeight: '600',
165
+ opacity: 0.95,
166
+ backgroundColor: 'transparent'
167
+ }
168
+ });
169
+ export { IconCircle };
170
+ export { PrimaryButton };
171
+ export default PrimaryButton;
172
+ //# sourceMappingURL=PrimaryButton.js.map