@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.
- package/lib/commonjs/api/index.js +219 -9
- package/lib/commonjs/assets/icons/spotify.png +0 -0
- package/lib/commonjs/assets/images/spotify.png +0 -0
- package/lib/commonjs/components/BodyText.js +27 -9
- package/lib/commonjs/components/BrandMark.js +111 -10
- package/lib/commonjs/components/CodeInput.js +116 -9
- package/lib/commonjs/components/EmailInput.js +30 -8
- package/lib/commonjs/components/GoogleButton.js +56 -9
- package/lib/commonjs/components/HeadingGroup.js +43 -9
- package/lib/commonjs/components/LLMDataInputModal.js +664 -14
- package/lib/commonjs/components/ModalHeader.js +99 -9
- package/lib/commonjs/components/ModalSheet.js +47 -9
- package/lib/commonjs/components/Onairos.js +380 -14
- package/lib/commonjs/components/OnairosButton.js +313 -13
- package/lib/commonjs/components/OnairosSignInButton.js +130 -12
- package/lib/commonjs/components/Overlay.js +465 -13
- package/lib/commonjs/components/PersonaImage.js +137 -10
- package/lib/commonjs/components/PersonaLoadingScreen.js +318 -12
- package/lib/commonjs/components/PersonalizationConsentScreen.js +467 -13
- package/lib/commonjs/components/PinCreationScreen.js +403 -12
- package/lib/commonjs/components/PinInput.js +464 -9
- package/lib/commonjs/components/PlatformConnectorsStep.js +1311 -23
- package/lib/commonjs/components/PlatformList.js +137 -10
- package/lib/commonjs/components/PlatformToggle.js +180 -9
- package/lib/commonjs/components/PrimaryButton.js +180 -10
- package/lib/commonjs/components/SignInMatchAnimation.js +197 -9
- package/lib/commonjs/components/SignInStep.js +345 -12
- package/lib/commonjs/components/UniversalOnboarding.js +2780 -30
- package/lib/commonjs/components/VerificationStep.js +176 -11
- package/lib/commonjs/components/WelcomeScreen.js +461 -22
- package/lib/commonjs/components/icons/Basicproficon.js +37 -8
- package/lib/commonjs/components/icons/Basicprofile.js +21 -8
- package/lib/commonjs/components/icons/Checkbox.js +21 -8
- package/lib/commonjs/components/icons/Checkmark.js +27 -8
- package/lib/commonjs/components/icons/Contentanalysis.js +21 -8
- package/lib/commonjs/components/icons/Contenticon.js +39 -8
- package/lib/commonjs/components/icons/EnochE.js +41 -8
- package/lib/commonjs/components/icons/Personalityicon.js +30 -8
- package/lib/commonjs/components/icons/Personalityprofile.js +21 -8
- package/lib/commonjs/components/icons/Personalitytraits.js +21 -8
- package/lib/commonjs/components/icons/Userpreferences.js +21 -8
- package/lib/commonjs/components/icons/index.js +84 -17
- package/lib/commonjs/components/onboarding/OAuthWebView.js +1754 -18
- package/lib/commonjs/components/onboarding/OnboardingHeader.js +74 -10
- package/lib/commonjs/components/onboarding/PinInput.js +283 -10
- package/lib/commonjs/components/onboarding/PlatformConnector.js +249 -11
- package/lib/commonjs/config/PLATFORM_APIS.md +849 -0
- package/lib/commonjs/config/api.js +56 -7
- package/lib/commonjs/constants/index.js +120 -7
- package/lib/commonjs/context/AuthContext.js +345 -10
- package/lib/commonjs/hooks/useConnectedAccounts.js +111 -9
- package/lib/commonjs/hooks/useConnections.js +102 -8
- package/lib/commonjs/hooks/useCredentials.js +178 -10
- package/lib/commonjs/hooks/useUserConnections.js +148 -10
- package/lib/commonjs/index.js +439 -34
- package/lib/commonjs/services/apiClient.js +298 -8
- package/lib/commonjs/services/biometricPinService.js +180 -8
- package/lib/commonjs/services/chatGPTConversationExtractor.js +155 -8
- package/lib/commonjs/services/chatGPTConversationService.js +275 -9
- package/lib/commonjs/services/claudeConversationExtractor.js +103 -8
- package/lib/commonjs/services/claudeConversationService.js +158 -9
- package/lib/commonjs/services/connectedAccountsService.js +310 -10
- package/lib/commonjs/services/googleAuthService.js +252 -11
- package/lib/commonjs/services/hingeDataExtractor.js +105 -8
- package/lib/commonjs/services/hingeDataService.js +150 -9
- package/lib/commonjs/services/imageCompressionService.js +260 -7
- package/lib/commonjs/services/instagramDataExtractor.js +126 -8
- package/lib/commonjs/services/instagramDataService.js +163 -9
- package/lib/commonjs/services/jwtStorageService.js +276 -7
- package/lib/commonjs/services/linkedinDOMExtractor.js +245 -7
- package/lib/commonjs/services/linkedinProfileService.js +222 -9
- package/lib/commonjs/services/linkedinScrapingService.js +230 -8
- package/lib/commonjs/services/llmDataStorage.js +294 -8
- package/lib/commonjs/services/mobileTrainingService.js +186 -8
- package/lib/commonjs/services/netflixDataExtractor.js +120 -8
- package/lib/commonjs/services/netflixDataService.js +198 -9
- package/lib/commonjs/services/pinEncryptionService.js +84 -8
- package/lib/commonjs/services/pinStorageUtils.js +105 -7
- package/lib/commonjs/services/platformAuthService.js +1484 -12
- package/lib/commonjs/services/sephoraDataExtractor.js +140 -8
- package/lib/commonjs/services/sephoraDataService.js +200 -9
- package/lib/commonjs/services/spotifyDataExtractor.js +148 -8
- package/lib/commonjs/services/spotifyDataService.js +241 -9
- package/lib/commonjs/services/storageService.js +404 -8
- package/lib/commonjs/services/telegramDataExtractor.js +115 -8
- package/lib/commonjs/services/telegramDataService.js +499 -9
- package/lib/commonjs/services/trainingApiHelpers.js +73 -7
- package/lib/commonjs/services/userConnectionsService.js +340 -10
- package/lib/commonjs/services/youtubeMigrationService.js +416 -10
- package/lib/commonjs/theme/index.js +250 -7
- package/lib/commonjs/types/ambient.d.js +2 -1
- package/lib/commonjs/types/declarations.d.js +2 -1
- package/lib/commonjs/types/index.js +6 -1
- package/lib/commonjs/types/node-fix.d.js +2 -1
- package/lib/commonjs/types/node-override.d.js +2 -1
- package/lib/commonjs/types/opacity.d.js +2 -1
- package/lib/commonjs/types.js +14 -1
- package/lib/commonjs/utils/Portal.js +98 -8
- package/lib/commonjs/utils/api.js +130 -9
- package/lib/commonjs/utils/assetRegistry.js +210 -35
- package/lib/commonjs/utils/auth.js +112 -9
- package/lib/commonjs/utils/connectorTests.js +613 -29
- package/lib/commonjs/utils/crypto.js +62 -8
- package/lib/commonjs/utils/debugHelper.js +64 -1
- package/lib/commonjs/utils/encryption.js +76 -7
- package/lib/commonjs/utils/eventUtils.js +288 -1
- package/lib/commonjs/utils/haptics.js +66 -9
- package/lib/commonjs/utils/imagePreloader.js +6 -1
- package/lib/commonjs/utils/networkDiagnostics.js +226 -8
- package/lib/commonjs/utils/onairosApi.js +350 -9
- package/lib/commonjs/utils/programmaticFlow.js +117 -9
- package/lib/commonjs/utils/retryHelper.js +220 -1
- package/lib/commonjs/utils/secureStorage.js +349 -10
- package/lib/commonjs/utils/webviewScripts/chatgpt.js +551 -1
- package/lib/commonjs/utils/webviewScripts/claude.js +376 -1
- package/lib/commonjs/utils/webviewScripts/hinge.js +411 -1
- package/lib/commonjs/utils/webviewScripts/index.js +698 -15
- package/lib/commonjs/utils/webviewScripts/instagram.js +454 -1
- package/lib/commonjs/utils/webviewScripts/linkedin.js +880 -1
- package/lib/commonjs/utils/webviewScripts/netflix.js +382 -1
- package/lib/commonjs/utils/webviewScripts/sephora.js +516 -1
- package/lib/commonjs/utils/webviewScripts/spotify.js +419 -1
- package/lib/commonjs/utils/webviewScripts/telegram.js +678 -1
- package/lib/module/api/index.js +211 -1
- package/lib/module/assets/icons/spotify.png +0 -0
- package/lib/module/assets/images/spotify.png +0 -0
- package/lib/module/components/BodyText.js +20 -1
- package/lib/module/components/BrandMark.js +104 -1
- package/lib/module/components/CodeInput.js +109 -1
- package/lib/module/components/EmailInput.js +23 -1
- package/lib/module/components/GoogleButton.js +49 -1
- package/lib/module/components/HeadingGroup.js +36 -1
- package/lib/module/components/LLMDataInputModal.js +656 -7
- package/lib/module/components/ModalHeader.js +92 -1
- package/lib/module/components/ModalSheet.js +39 -1
- package/lib/module/components/Onairos.js +373 -1
- package/lib/module/components/OnairosButton.js +305 -1
- package/lib/module/components/OnairosSignInButton.js +121 -1
- package/lib/module/components/Overlay.js +456 -1
- package/lib/module/components/PersonaImage.js +129 -1
- package/lib/module/components/PersonaLoadingScreen.js +310 -1
- package/lib/module/components/PersonalizationConsentScreen.js +460 -1
- package/lib/module/components/PinCreationScreen.js +396 -1
- package/lib/module/components/PinInput.js +456 -1
- package/lib/module/components/PlatformConnectorsStep.js +1302 -6
- package/lib/module/components/PlatformList.js +129 -1
- package/lib/module/components/PlatformToggle.js +173 -1
- package/lib/module/components/PrimaryButton.js +172 -1
- package/lib/module/components/SignInMatchAnimation.js +189 -1
- package/lib/module/components/SignInStep.js +338 -1
- package/lib/module/components/UniversalOnboarding.js +2770 -1
- package/lib/module/components/VerificationStep.js +168 -1
- package/lib/module/components/WelcomeScreen.js +453 -1
- package/lib/module/components/icons/Basicproficon.js +30 -1
- package/lib/module/components/icons/Basicprofile.js +14 -1
- package/lib/module/components/icons/Checkbox.js +14 -1
- package/lib/module/components/icons/Checkmark.js +20 -1
- package/lib/module/components/icons/Contentanalysis.js +14 -1
- package/lib/module/components/icons/Contenticon.js +32 -1
- package/lib/module/components/icons/EnochE.js +34 -1
- package/lib/module/components/icons/Personalityicon.js +23 -1
- package/lib/module/components/icons/Personalityprofile.js +14 -1
- package/lib/module/components/icons/Personalitytraits.js +14 -1
- package/lib/module/components/icons/Userpreferences.js +14 -1
- package/lib/module/components/icons/index.js +13 -1
- package/lib/module/components/onboarding/OAuthWebView.js +1746 -1
- package/lib/module/components/onboarding/OnboardingHeader.js +66 -1
- package/lib/module/components/onboarding/PinInput.js +274 -1
- package/lib/module/components/onboarding/PlatformConnector.js +240 -1
- package/lib/module/config/PLATFORM_APIS.md +849 -0
- package/lib/module/config/api.js +47 -1
- package/lib/module/constants/index.js +114 -1
- package/lib/module/context/AuthContext.js +335 -1
- package/lib/module/hooks/useConnectedAccounts.js +106 -1
- package/lib/module/hooks/useConnections.js +95 -1
- package/lib/module/hooks/useCredentials.js +171 -6
- package/lib/module/hooks/useUserConnections.js +140 -1
- package/lib/module/index.js +172 -1
- package/lib/module/services/apiClient.js +295 -1
- package/lib/module/services/biometricPinService.js +169 -1
- package/lib/module/services/chatGPTConversationExtractor.js +149 -1
- package/lib/module/services/chatGPTConversationService.js +268 -1
- package/lib/module/services/claudeConversationExtractor.js +97 -1
- package/lib/module/services/claudeConversationService.js +151 -1
- package/lib/module/services/connectedAccountsService.js +293 -1
- package/lib/module/services/googleAuthService.js +241 -1
- package/lib/module/services/hingeDataExtractor.js +99 -1
- package/lib/module/services/hingeDataService.js +143 -1
- package/lib/module/services/imageCompressionService.js +250 -1
- package/lib/module/services/instagramDataExtractor.js +120 -1
- package/lib/module/services/instagramDataService.js +156 -1
- package/lib/module/services/jwtStorageService.js +257 -1
- package/lib/module/services/linkedinDOMExtractor.js +234 -1
- package/lib/module/services/linkedinProfileService.js +210 -1
- package/lib/module/services/linkedinScrapingService.js +219 -1
- package/lib/module/services/llmDataStorage.js +277 -1
- package/lib/module/services/mobileTrainingService.js +173 -1
- package/lib/module/services/netflixDataExtractor.js +114 -1
- package/lib/module/services/netflixDataService.js +191 -1
- package/lib/module/services/pinEncryptionService.js +74 -6
- package/lib/module/services/pinStorageUtils.js +93 -1
- package/lib/module/services/platformAuthService.js +1461 -1
- package/lib/module/services/sephoraDataExtractor.js +134 -1
- package/lib/module/services/sephoraDataService.js +193 -1
- package/lib/module/services/spotifyDataExtractor.js +142 -1
- package/lib/module/services/spotifyDataService.js +234 -1
- package/lib/module/services/storageService.js +383 -1
- package/lib/module/services/telegramDataExtractor.js +109 -1
- package/lib/module/services/telegramDataService.js +493 -1
- package/lib/module/services/trainingApiHelpers.js +67 -1
- package/lib/module/services/userConnectionsService.js +329 -1
- package/lib/module/services/youtubeMigrationService.js +405 -1
- package/lib/module/theme/index.js +245 -1
- package/lib/module/types.js +10 -1
- package/lib/module/utils/Portal.js +90 -1
- package/lib/module/utils/api.js +118 -1
- package/lib/module/utils/assetRegistry.js +200 -34
- package/lib/module/utils/auth.js +100 -1
- package/lib/module/utils/connectorTests.js +600 -27
- package/lib/module/utils/crypto.js +54 -1
- package/lib/module/utils/debugHelper.js +54 -1
- package/lib/module/utils/encryption.js +67 -1
- package/lib/module/utils/eventUtils.js +270 -1
- package/lib/module/utils/haptics.js +59 -8
- package/lib/module/utils/imagePreloader.js +3 -1
- package/lib/module/utils/networkDiagnostics.js +217 -1
- package/lib/module/utils/onairosApi.js +333 -1
- package/lib/module/utils/programmaticFlow.js +111 -1
- package/lib/module/utils/retryHelper.js +211 -1
- package/lib/module/utils/secureStorage.js +330 -6
- package/lib/module/utils/webviewScripts/chatgpt.js +545 -1
- package/lib/module/utils/webviewScripts/claude.js +370 -1
- package/lib/module/utils/webviewScripts/hinge.js +405 -1
- package/lib/module/utils/webviewScripts/index.js +434 -1
- package/lib/module/utils/webviewScripts/instagram.js +448 -1
- package/lib/module/utils/webviewScripts/linkedin.js +874 -1
- package/lib/module/utils/webviewScripts/netflix.js +376 -1
- package/lib/module/utils/webviewScripts/sephora.js +510 -1
- package/lib/module/utils/webviewScripts/spotify.js +413 -1
- package/lib/module/utils/webviewScripts/telegram.js +672 -1
- package/package.json +2 -2
|
@@ -1,11 +1,249 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
function _0x59d0(_0x9e01c2,_0x59d065){_0x9e01c2=_0x9e01c2-0x0;const _0x4be5e5=_0x9e01();let _0x274d45=_0x4be5e5[_0x9e01c2];return _0x274d45;}Object['defineProperty'](exports,_0x59d0(0x0),{'value':!![]}),exports['PlatformConnector']=void 0x0;var _react=_interopRequireWildcard(__ONAIROS_REQ_FUNC__(0x0)),_reactNative=__ONAIROS_REQ_FUNC__(0x1),_MaterialIcons=_interopRequireDefault(__ONAIROS_REQ_FUNC__(0x2)),_constants=__ONAIROS_REQ_FUNC__(0x3),_OAuthWebView=__ONAIROS_REQ_FUNC__(0x4);function _interopRequireDefault(_0x245484){return _0x245484&&_0x245484[_0x59d0(0x0)]?_0x245484:{'default':_0x245484};}function _interopRequireWildcard(_0x5840d9,_0x168c02){const _0x3e598c={'biFTo':function(_0x1f7768,_0x461706){return _0x1f7768!=_0x461706;},'Qxvij':function(_0x19d0fd,_0x4d6577){return _0x19d0fd!=_0x4d6577;},'IUMVd':function(_0x5ef99f,_0x476d29){return _0x5ef99f!==_0x476d29;},'sojXX':_0x59d0(0x1),'lSOeb':function(_0x4281c8,_0x50f551){return _0x4281c8&&_0x50f551;},'hFfJH':function(_0x589070,_0x1f6ad3){return _0x589070===_0x1f6ad3;},'RWcWn':_0x59d0(0x2)};if(_0x3e598c['RWcWn']==typeof WeakMap)var _0x17a1a6=new WeakMap(),_0x59b2c1=new WeakMap();return(_interopRequireWildcard=function(_0x2e76b6,_0x7af221){const _0x35c6a4={'gksSo':function(_0x1ea39b,_0x45552b){return _0x1ea39b&&_0x45552b;},'rQTtl':function(_0x262021,_0x285ce3){return _0x3e598c['biFTo'](_0x262021,_0x285ce3);},'ykRzf':function(_0x311cbc,_0x3d9fe5){return _0x3e598c['Qxvij'](_0x311cbc,_0x3d9fe5);},'UCGlG':function(_0x1c0a71,_0x316777,_0xfb90d6,_0x1bf30b){return _0x1c0a71(_0x316777,_0xfb90d6,_0x1bf30b);}};if(_0x3e598c[_0x59d0(0x3)](_0x3e598c[_0x59d0(0x4)],_0x59d0(0x5))){if(_0x3e598c[_0x59d0(0x6)](!_0x7af221,_0x2e76b6)&&_0x2e76b6[_0x59d0(0x0)])return _0x2e76b6;var _0x21c746,_0x584093,_0x49dfa3={'__proto__':null,'default':_0x2e76b6};if(_0x3e598c[_0x59d0(0x7)](null,_0x2e76b6)||_0x3e598c[_0x59d0(0x8)]('object',typeof _0x2e76b6)&&_0x3e598c[_0x59d0(0x9)](_0x3e598c[_0x59d0(0xa)],typeof _0x2e76b6))return _0x49dfa3;if(_0x21c746=_0x7af221?_0x59b2c1:_0x17a1a6){if(_0x21c746['has'](_0x2e76b6))return _0x21c746[_0x59d0(0xb)](_0x2e76b6);_0x21c746['set'](_0x2e76b6,_0x49dfa3);}for(const _0x40dbec in _0x2e76b6)_0x3e598c[_0x59d0(0x3)](_0x59d0(0xc),_0x40dbec)&&{}['hasOwnProperty'][_0x59d0(0xd)](_0x2e76b6,_0x40dbec)&&((_0x584093=(_0x21c746=Object[_0x59d0(0xe)])&&Object[_0x59d0(0xf)](_0x2e76b6,_0x40dbec))&&(_0x584093['get']||_0x584093[_0x59d0(0x10)])?_0x21c746(_0x49dfa3,_0x40dbec,_0x584093):_0x49dfa3[_0x40dbec]=_0x2e76b6[_0x40dbec]);return _0x49dfa3;}else{const _0x3284af={'vkeuz':function(_0x3e8c4e,_0x3faa50){return _0x35c6a4[_0x59d0(0x11)](_0x3e8c4e,_0x3faa50);},'DCQUu':function(_0x37623e,_0x490824){return _0x37623e===_0x490824;},'ECpqW':function(_0x2c537b,_0x5cf389){return _0x35c6a4[_0x59d0(0x12)](_0x2c537b,_0x5cf389);},'BUfGN':_0x59d0(0x13),'TmLFP':function(_0x3a7c9d,_0x302f0a){return _0x35c6a4[_0x59d0(0x14)](_0x3a7c9d,_0x302f0a);},'XBVcp':'function','oPItG':function(_0x2154bf,_0x5310f6){return _0x2154bf!==_0x5310f6;},'DKxYJ':_0x59d0(0xc),'IlqZC':function(_0x31f0c7,_0x156dac,_0x5b9957,_0x121d6f){return _0x35c6a4[_0x59d0(0x15)](_0x31f0c7,_0x156dac,_0x5b9957,_0x121d6f);}};if(_0x59d0(0x2)==typeof _0x2e0677)var _0x502805=new _0x46f5e9(),_0x466215=new _0x4b537f();return(_0x2cdc09=function(_0x5cddf2,_0x1c1591){if(_0x3284af[_0x59d0(0x16)](!_0x1c1591,_0x5cddf2)&&_0x5cddf2[_0x59d0(0x0)])return _0x5cddf2;var _0x587443,_0x2f3962,_0x4c7149={'__proto__':null,'default':_0x5cddf2};if(_0x3284af[_0x59d0(0x17)](null,_0x5cddf2)||_0x3284af[_0x59d0(0x18)](_0x3284af[_0x59d0(0x19)],typeof _0x5cddf2)&&_0x3284af[_0x59d0(0x1a)](_0x3284af[_0x59d0(0x1b)],typeof _0x5cddf2))return _0x4c7149;if(_0x587443=_0x1c1591?_0x466215:_0x502805){if(_0x587443['has'](_0x5cddf2))return _0x587443[_0x59d0(0xb)](_0x5cddf2);_0x587443[_0x59d0(0x10)](_0x5cddf2,_0x4c7149);}for(const _0x3a94d5 in _0x5cddf2)_0x3284af[_0x59d0(0x1c)](_0x3284af[_0x59d0(0x1d)],_0x3a94d5)&&{}[_0x59d0(0x1e)][_0x59d0(0xd)](_0x5cddf2,_0x3a94d5)&&((_0x2f3962=(_0x587443=_0x12c7ed[_0x59d0(0xe)])&&_0x3e9bca['getOwnPropertyDescriptor'](_0x5cddf2,_0x3a94d5))&&(_0x2f3962[_0x59d0(0xb)]||_0x2f3962[_0x59d0(0x10)])?_0x3284af[_0x59d0(0x1f)](_0x587443,_0x4c7149,_0x3a94d5,_0x2f3962):_0x4c7149[_0x3a94d5]=_0x5cddf2[_0x3a94d5]);return _0x4c7149;})(_0x364b00,_0x2fb3dd);}})(_0x5840d9,_0x168c02);}const PLATFORMS={'instagram':{'name':_0x59d0(0x20),'icon':_0x59d0(0x21),'color':_0x59d0(0x22),'description':_0x59d0(0x23)},'youtube':{'name':_0x59d0(0x24),'icon':_0x59d0(0x25),'color':_0x59d0(0x26),'description':_0x59d0(0x27)},'pinterest':{'name':_0x59d0(0x28),'icon':_0x59d0(0x29),'color':_0x59d0(0x2a),'description':'Connect\x20to\x20enhance\x20Pinterest\x20board\x20recommendations'},'reddit':{'name':_0x59d0(0x2b),'icon':_0x59d0(0x2c),'color':_0x59d0(0x2d),'description':_0x59d0(0x2e)}},PlatformConnector=({connections:_0xfeaf64,onConnect:_0x31e16b,onDisconnect:_0x3c6b8b,isLoading:_0x205ffb,canProceed:_0x2b1524,onProceed:_0x11bb7d})=>{const _0x5bd699={'Tojfq':function(_0x339a4b,_0x16092b){return _0x339a4b!==_0x16092b;},'Nwpal':'Hudfd','vBkqY':_0x59d0(0x2f),'jpVZw':function(_0x386f41,_0x3c75aa){return _0x386f41(_0x3c75aa);},'ssZsf':function(_0x3fd23a,_0x4dd74d){return _0x3fd23a(_0x4dd74d);},'Bxmps':_0x59d0(0x30),'UIZxe':function(_0x1ab7a8,_0x45cf9d){return _0x1ab7a8(_0x45cf9d);},'uwavi':function(_0x2dcc42,_0x479ae0){return _0x2dcc42===_0x479ae0;},'WTSgB':_0x59d0(0x31),'ZzwmA':_0x59d0(0x32),'yUHlO':function(_0x30a5fb){return _0x30a5fb();},'YNPRc':function(_0x3dab45,_0x376ace){return _0x3dab45!==_0x376ace;},'vJyCz':_0x59d0(0x33),'wspza':_0x59d0(0x34),'eWVPQ':_0x59d0(0x35),'MbyXg':_0x59d0(0x36),'Nsdzn':function(_0x469587,_0x185b2c){return _0x469587===_0x185b2c;},'PHDLF':'#fff','HFVVB':'small','dCNmU':_0x59d0(0x37),'tqAaD':_0x59d0(0x38),'WcVJU':_0x59d0(0x39),'AwgXO':_0x59d0(0x3a),'EflgM':function(_0x4345d4){return _0x4345d4();},'GDSYO':'Connect\x20Your\x20Platforms','XarTr':_0x59d0(0x3b),'NbBvs':function(_0x27c8d1){return _0x27c8d1();},'tFsxH':_0x59d0(0x3c),'tvmCZ':_0x59d0(0x3d),'xdOjK':_0x59d0(0x3e),'sCwam':_0x59d0(0x3f)},[_0x537aea,_0x267fdb]=(0x0,_react['useState'])(null),_0x7b28d5=async _0x5c17d3=>{_0x5bd699['Tojfq'](_0x5bd699[_0x59d0(0x40)],_0x5bd699[_0x59d0(0x41)])?_0x5bd699[_0x59d0(0x42)](_0x267fdb,_0x5c17d3):_0x81a634(null);},_0x287925=()=>{const _0x24c73b={'mMvmJ':function(_0x1b953c,_0x3598d6){return _0x5bd699[_0x59d0(0x43)](_0x1b953c,_0x3598d6);}};_0x5bd699[_0x59d0(0x44)]!==_0x5bd699['Bxmps']?_0x24c73b[_0x59d0(0x45)](_0x1bd1c8,null):_0x5bd699[_0x59d0(0x46)](_0x267fdb,null);},_0x4125b1=()=>{_0x5bd699[_0x59d0(0x42)](_0x267fdb,null);},_0xdd2bf5=async _0x33d06c=>{await _0x5bd699[_0x59d0(0x42)](_0x3c6b8b,_0x33d06c);},_0x3e8142=_0x5528a0=>{if(_0x5bd699[_0x59d0(0x47)](_0x5bd699[_0x59d0(0x48)],_0x5bd699[_0x59d0(0x49)]))return _0x3641a4['values'](_0x2bc99f)[_0x59d0(0x4a)](_0x504078)[_0x59d0(0x4b)];else{const _0x115b42=_0x5528a0;return _0xfeaf64[_0x115b42]?!![]:![];}},_0x2b0b32=()=>{if(_0x5bd699['YNPRc'](_0x5bd699[_0x59d0(0x4c)],_0x5bd699[_0x59d0(0x4d)]))return Object[_0x59d0(0x4e)](_0xfeaf64)['filter'](Boolean)[_0x59d0(0x4b)];else _0x33a0ba[_0x59d0(0x4f)](_0x59d0(0x50)+_0x4d1f78+':\x20'+_0xefaa43),_0x5bd699['yUHlO'](_0x55c465);};return _react[_0x59d0(0xc)][_0x59d0(0x51)](_reactNative[_0x59d0(0x52)],{'style':styles[_0x59d0(0x53)]},_react[_0x59d0(0xc)][_0x59d0(0x51)](_reactNative[_0x59d0(0x54)],{'style':styles[_0x59d0(0x55)]},_0x5bd699['GDSYO']),_react['default'][_0x59d0(0x51)](_reactNative[_0x59d0(0x54)],{'style':styles[_0x59d0(0x56)]},_0x5bd699[_0x59d0(0x57)]),_react[_0x59d0(0xc)][_0x59d0(0x51)](_reactNative['ScrollView'],{'style':styles[_0x59d0(0x58)]},Object[_0x59d0(0x59)](PLATFORMS)[_0x59d0(0x5a)](_0x5cef40=>{if(_0x5bd699[_0x59d0(0x47)](_0x5bd699[_0x59d0(0x5b)],_0x5bd699[_0x59d0(0x5c)]))_0x58c38f(_0x2289c0);else{var _0x485853;const _0x93d567=PLATFORMS[_0x5cef40],_0x418dab=_0x3e8142(_0x5cef40),_0x5015c3=_0x418dab?_0x5bd699[_0x59d0(0x5d)](_0x485853=_0xfeaf64[_0x5cef40],null)||_0x485853===void 0x0?void 0x0:_0x485853[_0x59d0(0x5e)]:null;return _react[_0x59d0(0xc)][_0x59d0(0x51)](_reactNative[_0x59d0(0x52)],{'key':_0x5cef40,'style':styles[_0x59d0(0x5f)]},_react[_0x59d0(0xc)][_0x59d0(0x51)](_reactNative[_0x59d0(0x52)],{'style':styles[_0x59d0(0x60)]},_react['default'][_0x59d0(0x51)](_reactNative[_0x59d0(0x52)],{'style':[styles[_0x59d0(0x61)],{'backgroundColor':_0x93d567[_0x59d0(0x62)]}]},_react[_0x59d0(0xc)][_0x59d0(0x51)](_MaterialIcons[_0x59d0(0xc)],{'name':_0x93d567[_0x59d0(0x63)],'size':0x18,'color':_0x5bd699[_0x59d0(0x64)]})),_react[_0x59d0(0xc)]['createElement'](_reactNative[_0x59d0(0x52)],{'style':styles[_0x59d0(0x65)]},_react[_0x59d0(0xc)][_0x59d0(0x51)](_reactNative['Text'],{'style':styles[_0x59d0(0x66)]},_0x93d567['name']),_react['default']['createElement'](_reactNative['Text'],{'style':styles[_0x59d0(0x67)]},_0x418dab?'Connected\x20as\x20'+_0x5015c3:_0x93d567['description']))),_react[_0x59d0(0xc)][_0x59d0(0x51)](_reactNative[_0x59d0(0x68)],{'style':[styles['platformButton'],_0x418dab?styles[_0x59d0(0x69)]:styles[_0x59d0(0x6a)]],'onPress':()=>_0x418dab?_0xdd2bf5(_0x5cef40):_0x7b28d5(_0x5cef40),'disabled':_0x205ffb},_0x205ffb?_react[_0x59d0(0xc)]['createElement'](_reactNative[_0x59d0(0x6b)],{'size':_0x5bd699['HFVVB'],'color':_0x5bd699[_0x59d0(0x64)]}):_react[_0x59d0(0xc)]['createElement'](_reactNative[_0x59d0(0x54)],{'style':styles[_0x59d0(0x6c)]},_0x418dab?_0x5bd699[_0x59d0(0x6d)]:_0x5bd699['tqAaD'])));}})),_react['default'][_0x59d0(0x51)](_reactNative['View'],{'style':styles[_0x59d0(0x6e)]},_react[_0x59d0(0xc)][_0x59d0(0x51)](_reactNative['Text'],{'style':styles[_0x59d0(0x6f)]},_0x5bd699['NbBvs'](_0x2b0b32),_0x5bd699[_0x59d0(0x70)],Object[_0x59d0(0x59)](PLATFORMS)[_0x59d0(0x4b)],_0x5bd699[_0x59d0(0x71)]),_react['default'][_0x59d0(0x51)](_reactNative[_0x59d0(0x68)],{'style':[styles['proceedButton'],_0x2b1524?styles[_0x59d0(0x72)]:styles[_0x59d0(0x73)]],'onPress':_0x11bb7d,'disabled':!_0x2b1524},_react[_0x59d0(0xc)][_0x59d0(0x51)](_reactNative[_0x59d0(0x54)],{'style':[styles[_0x59d0(0x74)],_0x2b1524?styles[_0x59d0(0x75)]:styles[_0x59d0(0x76)]]},_0x5bd699[_0x59d0(0x77)]),_react[_0x59d0(0xc)]['createElement'](_MaterialIcons['default'],{'name':_0x5bd699[_0x59d0(0x78)],'size':0x14,'color':_0x2b1524?_0x5bd699[_0x59d0(0x64)]:_0x59d0(0x79)}))),_0x537aea&&_react[_0x59d0(0xc)]['createElement'](_OAuthWebView[_0x59d0(0x7a)],{'url':_0x59d0(0x7b)+_0x537aea,'platform':_0x537aea,'onComplete':_0x287925,'onClose':_0x4125b1,'onSuccess':_0x390feb=>{if(_0x5bd699[_0x59d0(0x7c)]===_0x5bd699[_0x59d0(0x7d)])return _0x451603&&_0x42b242[_0x59d0(0x0)]?_0x596301:{'default':_0x49ae7d};else console[_0x59d0(0x4f)](_0x59d0(0x50)+_0x537aea+':\x20'+_0x390feb),_0x5bd699[_0x59d0(0x7e)](_0x287925);}}));};exports[_0x59d0(0x7f)]=PlatformConnector;const styles=_reactNative['StyleSheet'][_0x59d0(0x80)]({'container':{'flex':0x1,'padding':0x10},'title':{'fontSize':0x18,'fontWeight':_0x59d0(0x81),'marginBottom':0x8,'color':'#000'},'subtitle':{'fontSize':0x10,'color':_0x59d0(0x82),'marginBottom':0x18},'platformList':{'flex':0x1},'platformItem':{'flexDirection':_0x59d0(0x83),'alignItems':_0x59d0(0x84),'marginBottom':0x10,'padding':0xc,'backgroundColor':_0x59d0(0x85),'borderRadius':0xc,'borderWidth':0x1,'borderColor':_0x59d0(0x86)},'platformInfo':{'flex':0x1,'flexDirection':'row','alignItems':_0x59d0(0x84)},'platformIcon':{'width':0x28,'height':0x28,'borderRadius':0x14,'justifyContent':_0x59d0(0x84),'alignItems':_0x59d0(0x84),'marginRight':0xc},'platformText':{'flex':0x1},'platformName':{'fontSize':0x10,'fontWeight':_0x59d0(0x87),'marginBottom':0x4,'color':'#000'},'platformDescription':{'fontSize':0xe,'color':'#666'},'platformButton':{'paddingHorizontal':0x10,'paddingVertical':0x8,'borderRadius':0x14,'justifyContent':'center','alignItems':_0x59d0(0x84),'minWidth':0x64},'connectButton':{'backgroundColor':_constants[_0x59d0(0x88)][_0x59d0(0x89)]},'disconnectButton':{'backgroundColor':_0x59d0(0x8a)},'buttonText':{'color':_0x59d0(0x8b),'fontWeight':_0x59d0(0x87)},'footer':{'flexDirection':_0x59d0(0x83),'alignItems':'center','justifyContent':_0x59d0(0x8c),'paddingTop':0x10,'borderTopWidth':0x1,'borderTopColor':'#eee','marginTop':0x10},'connectionStatus':{'fontSize':0xe,'color':_0x59d0(0x82)},'proceedButton':{'flexDirection':_0x59d0(0x83),'alignItems':_0x59d0(0x84),'paddingHorizontal':0x10,'paddingVertical':0xa,'borderRadius':0x18},'proceedActive':{'backgroundColor':_constants[_0x59d0(0x88)][_0x59d0(0x89)]},'proceedInactive':{'backgroundColor':_0x59d0(0x86)},'proceedText':{'fontWeight':_0x59d0(0x87),'marginRight':0x8},'proceedTextActive':{'color':_0x59d0(0x8b)},'proceedTextInactive':{'color':'#999'}});function _0x9e01(){const _0x35e224=['__esModule','xfqSn','function','IUMVd','sojXX','jPExK','lSOeb','hFfJH','Qxvij','biFTo','RWcWn','get','default','call','defineProperty','getOwnPropertyDescriptor','set','gksSo','rQTtl','object','ykRzf','UCGlG','vkeuz','DCQUu','ECpqW','BUfGN','TmLFP','XBVcp','oPItG','DKxYJ','hasOwnProperty','IlqZC','Instagram','photo-camera','#E1306C','Connect\x20to\x20share\x20and\x20analyze\x20your\x20Instagram\x20content','YouTube','smart-display','#FF0000','Connect\x20for\x20YouTube\x20video\x20recommendations\x20and\x20analysis','Pinterest','push-pin','#E60023','Reddit','forum','#FF4500','Connect\x20to\x20personalize\x20Reddit\x20content\x20insights','BabQr','KidQA','oKVrW','IhQwM','zwanP','fKNtF','BpgjQ','MWDjc','Disconnect','Connect','ZtXXf','hXyNf','Connect\x20at\x20least\x202\x20platforms\x20to\x20create\x20your\x20Onairos\x20account','\x20of\x20','\x20platforms\x20connected','Continue','arrow-forward','Nwpal','vBkqY','jpVZw','ssZsf','Bxmps','mMvmJ','UIZxe','uwavi','WTSgB','ZzwmA','filter','length','vJyCz','wspza','values','log','Received\x20authorization\x20code\x20for\x20','createElement','View','container','Text','title','subtitle','XarTr','platformList','keys','map','eWVPQ','MbyXg','Nsdzn','userName','platformItem','platformInfo','platformIcon','color','icon','PHDLF','platformText','platformName','platformDescription','TouchableOpacity','disconnectButton','connectButton','ActivityIndicator','buttonText','dCNmU','footer','connectionStatus','tFsxH','tvmCZ','proceedActive','proceedInactive','proceedText','proceedTextActive','proceedTextInactive','xdOjK','sCwam','#999','OAuthWebView','https://oauth.example.com/','WcVJU','AwgXO','EflgM','PlatformConnector','create','bold','#666','row','center','#f8f8f8','#eee','600','COLORS','primary','#f44336','#fff','space-between'];_0x9e01=function(){return _0x35e224;};return _0x9e01();}
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.PlatformConnector = void 0;
|
|
7
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _MaterialIcons = _interopRequireDefault(require("react-native-vector-icons/MaterialIcons"));
|
|
10
|
+
var _constants = require("../../constants");
|
|
11
|
+
var _OAuthWebView = require("./OAuthWebView");
|
|
12
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
14
|
+
// Platform definitions
|
|
15
|
+
const PLATFORMS = {
|
|
16
|
+
instagram: {
|
|
17
|
+
name: 'Instagram',
|
|
18
|
+
icon: 'photo-camera',
|
|
19
|
+
color: '#E1306C',
|
|
20
|
+
description: 'Connect to share and analyze your Instagram content'
|
|
21
|
+
},
|
|
22
|
+
youtube: {
|
|
23
|
+
name: 'YouTube',
|
|
24
|
+
icon: 'smart-display',
|
|
25
|
+
color: '#FF0000',
|
|
26
|
+
description: 'Connect for YouTube video recommendations and analysis'
|
|
27
|
+
},
|
|
28
|
+
pinterest: {
|
|
29
|
+
name: 'Pinterest',
|
|
30
|
+
icon: 'push-pin',
|
|
31
|
+
color: '#E60023',
|
|
32
|
+
description: 'Connect to enhance Pinterest board recommendations'
|
|
33
|
+
},
|
|
34
|
+
reddit: {
|
|
35
|
+
name: 'Reddit',
|
|
36
|
+
icon: 'forum',
|
|
37
|
+
color: '#FF4500',
|
|
38
|
+
description: 'Connect to personalize Reddit content insights'
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
const PlatformConnector = ({
|
|
42
|
+
connections,
|
|
43
|
+
onConnect,
|
|
44
|
+
onDisconnect,
|
|
45
|
+
isLoading,
|
|
46
|
+
canProceed,
|
|
47
|
+
onProceed
|
|
48
|
+
}) => {
|
|
49
|
+
const [activeWebview, setActiveWebview] = (0, _react.useState)(null);
|
|
50
|
+
const handleConnectPress = async platform => {
|
|
51
|
+
setActiveWebview(platform);
|
|
52
|
+
};
|
|
53
|
+
const handleWebViewComplete = () => {
|
|
54
|
+
setActiveWebview(null);
|
|
55
|
+
};
|
|
56
|
+
const handleWebViewClose = () => {
|
|
57
|
+
setActiveWebview(null);
|
|
58
|
+
};
|
|
59
|
+
const handleDisconnectPress = async platform => {
|
|
60
|
+
await onDisconnect(platform);
|
|
61
|
+
};
|
|
62
|
+
const getPlatformStatus = platform => {
|
|
63
|
+
const platformKey = platform;
|
|
64
|
+
return connections[platformKey] ? true : false;
|
|
65
|
+
};
|
|
66
|
+
const getConnectedCount = () => {
|
|
67
|
+
return Object.values(connections).filter(Boolean).length;
|
|
68
|
+
};
|
|
69
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
70
|
+
style: styles.container
|
|
71
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
72
|
+
style: styles.title
|
|
73
|
+
}, "Connect Your Platforms"), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
74
|
+
style: styles.subtitle
|
|
75
|
+
}, "Connect at least 2 platforms to create your Onairos account"), /*#__PURE__*/_react.default.createElement(_reactNative.ScrollView, {
|
|
76
|
+
style: styles.platformList
|
|
77
|
+
}, Object.keys(PLATFORMS).map(platform => {
|
|
78
|
+
var _connections;
|
|
79
|
+
const platformInfo = PLATFORMS[platform];
|
|
80
|
+
const isConnected = getPlatformStatus(platform);
|
|
81
|
+
const userName = isConnected ? (_connections = connections[platform]) === null || _connections === void 0 ? void 0 : _connections.userName : null;
|
|
82
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
83
|
+
key: platform,
|
|
84
|
+
style: styles.platformItem
|
|
85
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
86
|
+
style: styles.platformInfo
|
|
87
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
88
|
+
style: [styles.platformIcon, {
|
|
89
|
+
backgroundColor: platformInfo.color
|
|
90
|
+
}]
|
|
91
|
+
}, /*#__PURE__*/_react.default.createElement(_MaterialIcons.default, {
|
|
92
|
+
name: platformInfo.icon,
|
|
93
|
+
size: 24,
|
|
94
|
+
color: "#fff"
|
|
95
|
+
})), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
96
|
+
style: styles.platformText
|
|
97
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
98
|
+
style: styles.platformName
|
|
99
|
+
}, platformInfo.name), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
100
|
+
style: styles.platformDescription
|
|
101
|
+
}, isConnected ? `Connected as ${userName}` : platformInfo.description))), /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
|
|
102
|
+
style: [styles.platformButton, isConnected ? styles.disconnectButton : styles.connectButton],
|
|
103
|
+
onPress: () => isConnected ? handleDisconnectPress(platform) : handleConnectPress(platform),
|
|
104
|
+
disabled: isLoading
|
|
105
|
+
}, isLoading ? /*#__PURE__*/_react.default.createElement(_reactNative.ActivityIndicator, {
|
|
106
|
+
size: "small",
|
|
107
|
+
color: "#fff"
|
|
108
|
+
}) : /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
109
|
+
style: styles.buttonText
|
|
110
|
+
}, isConnected ? 'Disconnect' : 'Connect')));
|
|
111
|
+
})), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
112
|
+
style: styles.footer
|
|
113
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
114
|
+
style: styles.connectionStatus
|
|
115
|
+
}, getConnectedCount(), " of ", Object.keys(PLATFORMS).length, " platforms connected"), /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
|
|
116
|
+
style: [styles.proceedButton, canProceed ? styles.proceedActive : styles.proceedInactive],
|
|
117
|
+
onPress: onProceed,
|
|
118
|
+
disabled: !canProceed
|
|
119
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
120
|
+
style: [styles.proceedText, canProceed ? styles.proceedTextActive : styles.proceedTextInactive]
|
|
121
|
+
}, "Continue"), /*#__PURE__*/_react.default.createElement(_MaterialIcons.default, {
|
|
122
|
+
name: "arrow-forward",
|
|
123
|
+
size: 20,
|
|
124
|
+
color: canProceed ? '#fff' : '#999'
|
|
125
|
+
}))), activeWebview && /*#__PURE__*/_react.default.createElement(_OAuthWebView.OAuthWebView, {
|
|
126
|
+
url: `https://oauth.example.com/${activeWebview}` // This would be replaced with actual OAuth URL
|
|
127
|
+
,
|
|
128
|
+
platform: activeWebview,
|
|
129
|
+
onComplete: handleWebViewComplete,
|
|
130
|
+
onClose: handleWebViewClose,
|
|
131
|
+
onSuccess: code => {
|
|
132
|
+
console.log(`Received authorization code for ${activeWebview}: ${code}`);
|
|
133
|
+
// In a real implementation, we'd pass this code to our API service
|
|
134
|
+
handleWebViewComplete();
|
|
135
|
+
}
|
|
136
|
+
}));
|
|
137
|
+
};
|
|
138
|
+
exports.PlatformConnector = PlatformConnector;
|
|
139
|
+
const styles = _reactNative.StyleSheet.create({
|
|
140
|
+
container: {
|
|
141
|
+
flex: 1,
|
|
142
|
+
padding: 16
|
|
143
|
+
},
|
|
144
|
+
title: {
|
|
145
|
+
fontSize: 24,
|
|
146
|
+
fontWeight: 'bold',
|
|
147
|
+
marginBottom: 8,
|
|
148
|
+
color: '#000'
|
|
149
|
+
},
|
|
150
|
+
subtitle: {
|
|
151
|
+
fontSize: 16,
|
|
152
|
+
color: '#666',
|
|
153
|
+
marginBottom: 24
|
|
154
|
+
},
|
|
155
|
+
platformList: {
|
|
156
|
+
flex: 1
|
|
157
|
+
},
|
|
158
|
+
platformItem: {
|
|
159
|
+
flexDirection: 'row',
|
|
160
|
+
alignItems: 'center',
|
|
161
|
+
marginBottom: 16,
|
|
162
|
+
padding: 12,
|
|
163
|
+
backgroundColor: '#f8f8f8',
|
|
164
|
+
borderRadius: 12,
|
|
165
|
+
borderWidth: 1,
|
|
166
|
+
borderColor: '#eee'
|
|
167
|
+
},
|
|
168
|
+
platformInfo: {
|
|
169
|
+
flex: 1,
|
|
170
|
+
flexDirection: 'row',
|
|
171
|
+
alignItems: 'center'
|
|
172
|
+
},
|
|
173
|
+
platformIcon: {
|
|
174
|
+
width: 40,
|
|
175
|
+
height: 40,
|
|
176
|
+
borderRadius: 20,
|
|
177
|
+
justifyContent: 'center',
|
|
178
|
+
alignItems: 'center',
|
|
179
|
+
marginRight: 12
|
|
180
|
+
},
|
|
181
|
+
platformText: {
|
|
182
|
+
flex: 1
|
|
183
|
+
},
|
|
184
|
+
platformName: {
|
|
185
|
+
fontSize: 16,
|
|
186
|
+
fontWeight: '600',
|
|
187
|
+
marginBottom: 4,
|
|
188
|
+
color: '#000'
|
|
189
|
+
},
|
|
190
|
+
platformDescription: {
|
|
191
|
+
fontSize: 14,
|
|
192
|
+
color: '#666'
|
|
193
|
+
},
|
|
194
|
+
platformButton: {
|
|
195
|
+
paddingHorizontal: 16,
|
|
196
|
+
paddingVertical: 8,
|
|
197
|
+
borderRadius: 20,
|
|
198
|
+
justifyContent: 'center',
|
|
199
|
+
alignItems: 'center',
|
|
200
|
+
minWidth: 100
|
|
201
|
+
},
|
|
202
|
+
connectButton: {
|
|
203
|
+
backgroundColor: _constants.COLORS.primary
|
|
204
|
+
},
|
|
205
|
+
disconnectButton: {
|
|
206
|
+
backgroundColor: '#f44336'
|
|
207
|
+
},
|
|
208
|
+
buttonText: {
|
|
209
|
+
color: '#fff',
|
|
210
|
+
fontWeight: '600'
|
|
211
|
+
},
|
|
212
|
+
footer: {
|
|
213
|
+
flexDirection: 'row',
|
|
214
|
+
alignItems: 'center',
|
|
215
|
+
justifyContent: 'space-between',
|
|
216
|
+
paddingTop: 16,
|
|
217
|
+
borderTopWidth: 1,
|
|
218
|
+
borderTopColor: '#eee',
|
|
219
|
+
marginTop: 16
|
|
220
|
+
},
|
|
221
|
+
connectionStatus: {
|
|
222
|
+
fontSize: 14,
|
|
223
|
+
color: '#666'
|
|
224
|
+
},
|
|
225
|
+
proceedButton: {
|
|
226
|
+
flexDirection: 'row',
|
|
227
|
+
alignItems: 'center',
|
|
228
|
+
paddingHorizontal: 16,
|
|
229
|
+
paddingVertical: 10,
|
|
230
|
+
borderRadius: 24
|
|
231
|
+
},
|
|
232
|
+
proceedActive: {
|
|
233
|
+
backgroundColor: _constants.COLORS.primary
|
|
234
|
+
},
|
|
235
|
+
proceedInactive: {
|
|
236
|
+
backgroundColor: '#eee'
|
|
237
|
+
},
|
|
238
|
+
proceedText: {
|
|
239
|
+
fontWeight: '600',
|
|
240
|
+
marginRight: 8
|
|
241
|
+
},
|
|
242
|
+
proceedTextActive: {
|
|
243
|
+
color: '#fff'
|
|
244
|
+
},
|
|
245
|
+
proceedTextInactive: {
|
|
246
|
+
color: '#999'
|
|
247
|
+
}
|
|
248
|
+
});
|
|
249
|
+
//# sourceMappingURL=PlatformConnector.js.map
|