@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,129 @@
1
- import React from'react';import{View,Text,StyleSheet,TouchableOpacity,ActivityIndicator}from'react-native';import _0x4fa966 from'react-native-vector-icons/MaterialIcons';import{COLORS,PLATFORMS}from'../constants';function _0x3bd0(){const _0xbd2f1f=['#fff','Disconnect','Connect\x20your\x20platforms','Connect\x20at\x20least\x202\x20platforms\x20to\x20proceed','Proceed','createElement','platformHeader','icon','color','platformName','description','platformDescription','connectButton','disconnectedButton','mxear','MBWEt','title','bpMsG','subtitle','RmVUN','entries','map','proceedButton','disabledButton','Zwixl','proceedButtonText','600','text','primary','border','row','center','secondary','success'];_0x3bd0=function(){return _0xbd2f1f;};return _0x3bd0();}function _0x5a75(_0x3bd0cd,_0x5a7584){_0x3bd0cd=_0x3bd0cd-0x0;const _0x37276e=_0x3bd0();let _0x579fe2=_0x37276e[_0x3bd0cd];return _0x579fe2;}export const PlatformList=({connections:_0x278c4e,onToggle:_0x5a13b7,isLoading:_0x422314,canProceed:_0x10fe75,onProceed:_0x2df526})=>{const _0x72c6f3={'ayaDJ':_0x5a75(0x0),'mxear':_0x5a75(0x1),'MBWEt':'Connect','bpMsG':_0x5a75(0x2),'RmVUN':_0x5a75(0x3),'Zwixl':function(_0x19cff7,_0x31ab05){return _0x19cff7||_0x31ab05;},'kKieJ':_0x5a75(0x4)},_0x2cd820=(_0x1daf72,_0x1978d3)=>{const _0x422ebf=PLATFORMS[_0x1daf72];if(!_0x422ebf)return null;return React[_0x5a75(0x5)](View,{'key':_0x1daf72,'style':styles['platformContainer']},React['createElement'](View,{'style':styles[_0x5a75(0x6)]},React[_0x5a75(0x5)](_0x4fa966,{'name':_0x422ebf[_0x5a75(0x7)],'size':0x18,'color':_0x422ebf[_0x5a75(0x8)]}),React[_0x5a75(0x5)](Text,{'style':styles[_0x5a75(0x9)]},_0x422ebf['name'])),_0x422ebf[_0x5a75(0xa)]&&React['createElement'](Text,{'style':styles[_0x5a75(0xb)]},_0x422ebf[_0x5a75(0xa)]),React[_0x5a75(0x5)](TouchableOpacity,{'style':[styles[_0x5a75(0xc)],_0x1978d3?styles['connectedButton']:styles[_0x5a75(0xd)]],'onPress':()=>_0x5a13b7(_0x1daf72,!_0x1978d3),'disabled':_0x422314},_0x422314?React[_0x5a75(0x5)](ActivityIndicator,{'color':_0x72c6f3['ayaDJ']}):React[_0x5a75(0x5)](Text,{'style':styles['buttonText']},_0x1978d3?_0x72c6f3[_0x5a75(0xe)]:_0x72c6f3[_0x5a75(0xf)])));};return React['createElement'](View,{'style':styles['container']},React[_0x5a75(0x5)](Text,{'style':styles[_0x5a75(0x10)]},_0x72c6f3[_0x5a75(0x11)]),React[_0x5a75(0x5)](Text,{'style':styles[_0x5a75(0x12)]},_0x72c6f3[_0x5a75(0x13)]),React[_0x5a75(0x5)](View,{'style':styles['platformsList']},Object[_0x5a75(0x14)](_0x278c4e)[_0x5a75(0x15)](([_0xd10a06,_0x3ebee8])=>_0x2cd820(_0xd10a06,!!_0x3ebee8))),React[_0x5a75(0x5)](TouchableOpacity,{'style':[styles[_0x5a75(0x16)],!_0x10fe75&&styles[_0x5a75(0x17)]],'onPress':_0x2df526,'disabled':_0x72c6f3[_0x5a75(0x18)](!_0x10fe75,_0x422314)},React[_0x5a75(0x5)](Text,{'style':styles[_0x5a75(0x19)]},_0x72c6f3['kKieJ'])));};const styles=StyleSheet['create']({'container':{'flex':0x1,'padding':0x10},'title':{'fontSize':0x14,'fontWeight':_0x5a75(0x1a),'marginBottom':0x8,'color':COLORS[_0x5a75(0x1b)][_0x5a75(0x1c)]},'subtitle':{'fontSize':0xe,'color':COLORS[_0x5a75(0x1b)]['secondary'],'marginBottom':0x18},'platformsList':{'flex':0x1},'platformContainer':{'backgroundColor':'#fff','borderRadius':0xc,'padding':0x10,'marginBottom':0x10,'borderWidth':0x1,'borderColor':COLORS[_0x5a75(0x1d)]},'platformHeader':{'flexDirection':_0x5a75(0x1e),'alignItems':_0x5a75(0x1f),'marginBottom':0x8},'platformName':{'fontSize':0x10,'fontWeight':_0x5a75(0x1a),'marginLeft':0xc,'color':COLORS[_0x5a75(0x1b)]['primary']},'platformDescription':{'fontSize':0xe,'color':COLORS[_0x5a75(0x1b)][_0x5a75(0x20)],'marginBottom':0x10},'connectButton':{'paddingVertical':0x8,'paddingHorizontal':0x10,'borderRadius':0x8,'alignItems':_0x5a75(0x1f)},'connectedButton':{'backgroundColor':COLORS[_0x5a75(0x21)]},'disconnectedButton':{'backgroundColor':COLORS[_0x5a75(0x1c)]},'buttonText':{'color':_0x5a75(0x0),'fontWeight':_0x5a75(0x1a)},'proceedButton':{'backgroundColor':COLORS[_0x5a75(0x1c)],'paddingVertical':0x10,'borderRadius':0xc,'alignItems':_0x5a75(0x1f),'marginTop':0x10},'disabledButton':{'opacity':0.5},'proceedButtonText':{'color':_0x5a75(0x0),'fontSize':0x10,'fontWeight':_0x5a75(0x1a)}});
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
- function _0x4672(_0x5cc5f5,_0x4672bc){_0x5cc5f5=_0x5cc5f5-0x0;const _0x219119=_0x5cc5();let _0x2a7f93=_0x219119[_0x5cc5f5];return _0x2a7f93;}import React from'react';import{View,Text,TouchableOpacity,Image,StyleSheet,Switch,Platform}from'react-native';function _0x5cc5(){const _0x2d1c36=['contain','#E5E5E5','ios','#FFFFFF','FJelA','fullWidthContainer','container','createElement','VDrVx','leftContent','compactIcon','kzYBb','textContent','compactPlatformName','name','FtuKI','awIRh','oJAQR','cmAiZ','fullWidthDescription','description','compactDescription','create','center','space-between','surface','row','#F5F5F5','Inter','grey800','600','400','grey600'];_0x5cc5=function(){return _0x2d1c36;};return _0x5cc5();}import{COLORS}from'../theme';const PlatformToggle=({platform:_0x3c5d8c,isEnabled:_0x1387af,onToggle:_0x20ae44,compact:compact=![],isLast:isLast=![],fullWidth:fullWidth=![],customIconSize:_0x53d981,onLongPress:_0x2b4798,onPressOut:_0x297e57})=>{const _0x82bb55={'FJelA':function(_0x354794,_0x426168,_0x5f146b){return _0x354794(_0x426168,_0x5f146b);},'VDrVx':function(_0x3e206e,_0x218915){return _0x3e206e&&_0x218915;},'GIxGl':function(_0x2b4b12,_0xf4dc7e){return _0x2b4b12-_0xf4dc7e;},'kzYBb':_0x4672(0x0),'FtuKI':_0x4672(0x1),'awIRh':function(_0x2d06d6,_0x1f37d2){return _0x2d06d6===_0x1f37d2;},'oJAQR':_0x4672(0x2),'cmAiZ':_0x4672(0x3)},_0xd5539d=()=>{_0x82bb55[_0x4672(0x4)](_0x20ae44,_0x3c5d8c['id'],!_0x1387af);},_0x4ffba8=fullWidth?styles[_0x4672(0x5)]:compact?styles['compactContainer']:styles[_0x4672(0x6)];return React[_0x4672(0x7)](TouchableOpacity,{'style':[_0x4ffba8,_0x82bb55[_0x4672(0x8)](!isLast,compact)&&styles['borderBottom']],'onLongPress':_0x2b4798,'onPressOut':_0x297e57,'activeOpacity':_0x2b4798?0.7:0x1,'disabled':!_0x2b4798},React[_0x4672(0x7)](View,{'style':styles['topRow']},React[_0x4672(0x7)](View,{'style':styles[_0x4672(0x9)]},React[_0x4672(0x7)](Image,{'source':_0x3c5d8c['icon'],'style':_0x53d981?{'width':_0x53d981,'height':_0x53d981,'marginRight':_0x82bb55['GIxGl'](0xc,_0x53d981-0x1c)}:fullWidth?styles[_0x4672(0xa)]:compact?styles[_0x4672(0xa)]:styles['icon'],'resizeMode':_0x82bb55[_0x4672(0xb)]}),React[_0x4672(0x7)](View,{'style':styles[_0x4672(0xc)]},React['createElement'](Text,{'style':fullWidth?styles[_0x4672(0xd)]:compact?styles['compactPlatformName']:styles['platformName']},_0x3c5d8c[_0x4672(0xe)]))),React[_0x4672(0x7)](Switch,{'value':_0x1387af,'onValueChange':_0xd5539d,'trackColor':{'false':_0x82bb55[_0x4672(0xf)],'true':'#4CD964'},'thumbColor':_0x82bb55[_0x4672(0x10)](Platform['OS'],_0x82bb55[_0x4672(0x11)])?undefined:_0x1387af?_0x82bb55[_0x4672(0x12)]:_0x82bb55[_0x4672(0x12)],'ios_backgroundColor':_0x82bb55['FtuKI'],'style':compact?styles['compactSwitch']:undefined})),fullWidth&&React['createElement'](View,{'style':styles['descriptionBox']},React[_0x4672(0x7)](Text,{'style':styles[_0x4672(0x13)]},_0x3c5d8c[_0x4672(0x14)])),!fullWidth&&React[_0x4672(0x7)](Text,{'style':compact?styles[_0x4672(0x15)]:styles[_0x4672(0x14)]},_0x3c5d8c[_0x4672(0x14)]));},styles=StyleSheet[_0x4672(0x16)]({'container':{'flexDirection':'row','alignItems':_0x4672(0x17),'justifyContent':_0x4672(0x18),'paddingVertical':0x10,'paddingHorizontal':0x10,'backgroundColor':COLORS[_0x4672(0x19)],'borderRadius':0xc,'marginBottom':0xc,'borderWidth':0x1,'borderColor':_0x4672(0x1)},'compactContainer':{'flexDirection':_0x4672(0x1a),'alignItems':'center','justifyContent':_0x4672(0x18),'paddingVertical':0x10,'paddingHorizontal':0x10,'backgroundColor':COLORS['surface']},'fullWidthContainer':{'flexDirection':'column','paddingVertical':0x8,'paddingHorizontal':0x2,'backgroundColor':COLORS[_0x4672(0x19)],'marginBottom':0x4,'marginHorizontal':0x0},'topRow':{'flexDirection':_0x4672(0x1a),'alignItems':'center','justifyContent':'space-between','marginBottom':0x4},'descriptionBox':{'backgroundColor':_0x4672(0x1b),'borderRadius':0x8,'paddingVertical':0x8,'paddingHorizontal':0x4,'marginTop':0x2},'borderBottom':{'borderBottomWidth':0x1,'borderBottomColor':_0x4672(0x1)},'leftContent':{'flexDirection':_0x4672(0x1a),'alignItems':_0x4672(0x17),'flex':0x1},'icon':{'width':0x20,'height':0x20,'marginRight':0xc},'compactIcon':{'width':0x1c,'height':0x1c,'marginRight':0xc},'textContent':{'flex':0x1},'platformName':{'fontSize':0x10,'fontFamily':_0x4672(0x1c),'fontWeight':'600','color':COLORS[_0x4672(0x1d)],'marginBottom':0x2},'compactPlatformName':{'fontSize':0x10,'fontFamily':'Inter','fontWeight':_0x4672(0x1e),'color':COLORS[_0x4672(0x1d)],'marginBottom':0x2},'description':{'fontSize':0xe,'fontFamily':_0x4672(0x1c),'fontWeight':_0x4672(0x1f),'color':COLORS['grey600'],'lineHeight':0x14},'compactDescription':{'fontSize':0xc,'fontFamily':'Inter','fontWeight':_0x4672(0x1f),'color':COLORS[_0x4672(0x20)],'lineHeight':0x10},'fullWidthDescription':{'fontSize':0xd,'fontFamily':'Inter','fontWeight':_0x4672(0x1f),'color':COLORS[_0x4672(0x20)],'lineHeight':0x12},'compactSwitch':{'transform':[{'scaleX':0.9},{'scaleY':0.9}]}});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';function _0x83fc(_0x1d004a,_0x83fc34){_0x1d004a=_0x1d004a-0x0;const _0x3e0092=_0x1d00();let _0x446d02=_0x3e0092[_0x1d004a];return _0x446d02;}import _0x38fb2d from'react-native-linear-gradient';import{COLORS}from'../theme';const IconCircle=({size:size=0x28,children:_0x1bc2ab})=>{return React[_0x83fc(0x0)](View,{'style':[styles[_0x83fc(0x1)],{'width':size,'height':size,'borderRadius':size/0x2}]},React[_0x83fc(0x0)](_0x38fb2d,{'colors':[COLORS[_0x83fc(0x2)],COLORS['iconCircleGradientEnd']],'style':[StyleSheet['absoluteFill'],{'borderRadius':size/0x2}],'start':{'x':0x0,'y':0x0},'end':{'x':0x0,'y':0x1}}),React[_0x83fc(0x0)](View,{'style':styles['iconContent']},_0x1bc2ab||React[_0x83fc(0x0)](Text,{'style':styles[_0x83fc(0x3)]},'→')));},PrimaryButton=({label:label=_0x83fc(0x4),onPress:_0x2d0955,iconRight:_0x152d6e,loading:loading=![],disabled:disabled=![],testID:_0x3e3572,style:_0x43474a,textStyle:_0x403419})=>{const _0x6b929b={'dzQBo':function(_0x30e51e,_0x15b8d4){return _0x30e51e(_0x15b8d4);},'tZIHm':function(_0x3a9af0,_0x5ba9dc){return _0x3a9af0||_0x5ba9dc;},'oMAne':'button','TSvcq':_0x83fc(0x5)},[_0x5ec1d6,_0x541a51]=_0x6b929b[_0x83fc(0x6)](useState,![]),_0x1786e2=()=>_0x541a51(!![]),_0x40b97f=()=>_0x541a51(![]);return React[_0x83fc(0x0)](TouchableOpacity,{'style':[styles['outerPill'],!disabled&&styles[_0x83fc(0x7)],disabled&&styles['disabled'],_0x43474a],'onPress':_0x2d0955,'onPressIn':_0x1786e2,'onPressOut':_0x40b97f,'disabled':_0x6b929b['tZIHm'](disabled,loading),'activeOpacity':0x1,'testID':_0x3e3572,'accessibilityLabel':label,'accessibilityRole':_0x6b929b['oMAne']},React[_0x83fc(0x0)](_0x38fb2d,{'colors':[COLORS[_0x83fc(0x8)],COLORS[_0x83fc(0x9)]],'style':styles[_0x83fc(0xa)],'start':{'x':0x0,'y':0x0},'end':{'x':0x0,'y':0x1}}),_0x5ec1d6&&React[_0x83fc(0x0)](View,{'style':styles['pressedOverlay']}),React['createElement'](View,{'style':styles['textContainer']},loading?React[_0x83fc(0x0)](ActivityIndicator,{'color':COLORS[_0x83fc(0xb)],'size':_0x6b929b[_0x83fc(0xc)]}):React[_0x83fc(0x0)](Text,{'style':[styles['label'],_0x403419]},label)),React[_0x83fc(0x0)](View,{'style':styles[_0x83fc(0xd)]},!loading&&(_0x152d6e||React[_0x83fc(0x0)](IconCircle,null))));},styles=StyleSheet[_0x83fc(0xe)]({'outerPill':{'height':0x30,'borderRadius':0x64,'borderWidth':0x1,'borderColor':COLORS[_0x83fc(0xf)],'overflow':_0x83fc(0x10),'width':_0x83fc(0x11),'position':_0x83fc(0x12)},'outerShadow':{'shadowColor':_0x83fc(0x13),'shadowOffset':{'width':0x14,'height':0x1e},'shadowOpacity':0.1,'shadowRadius':0x28,'elevation':0x8},'disabled':{'opacity':0.65,'shadowOpacity':0x0,'elevation':0x0},'baseGradient':{...StyleSheet['absoluteFillObject'],'borderRadius':0x64},'pressedOverlay':{...StyleSheet['absoluteFillObject'],'backgroundColor':_0x83fc(0x14),'borderRadius':0x64},'textContainer':{'position':_0x83fc(0x15),'left':0x0,'right':0x0,'top':0x0,'bottom':0x0,'justifyContent':_0x83fc(0x16),'alignItems':_0x83fc(0x16),'backgroundColor':_0x83fc(0x17)},'iconPosition':{'position':_0x83fc(0x15),'right':0x4,'top':0x4,'bottom':0x4,'width':0x28,'justifyContent':_0x83fc(0x16),'alignItems':_0x83fc(0x16),'backgroundColor':_0x83fc(0x17)},'label':{'fontFamily':_0x83fc(0x18),'fontWeight':_0x83fc(0x19),'fontSize':0x10,'color':COLORS['btnLabel'],'textAlign':_0x83fc(0x16),'backgroundColor':_0x83fc(0x17)},'iconCircle':{'justifyContent':_0x83fc(0x16),'alignItems':'center','borderWidth':0x1,'borderColor':_0x83fc(0x1a)},'iconContent':{'justifyContent':_0x83fc(0x16),'alignItems':'center','backgroundColor':_0x83fc(0x17)},'arrowText':{'fontSize':0x14,'color':COLORS['btnLabel'],'fontWeight':_0x83fc(0x19),'opacity':0.95,'backgroundColor':_0x83fc(0x17)}});export{IconCircle};function _0x1d00(){const _0x52b5c3=['createElement','iconCircle','iconCircleGradientStart','arrowText','Get\x20Started','small','dzQBo','outerShadow','btnGradStart','btnGradEnd','baseGradient','btnLabel','TSvcq','iconPosition','create','btnBorder','hidden','100%','relative','#000000','rgba(0,0,0,0.1)','absolute','center','transparent','Inter','600','rgba(0,0,0,0.25)'];_0x1d00=function(){return _0x52b5c3;};return _0x1d00();}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