@onairos/react-native 3.7.2 → 3.7.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/api/index.js +219 -9
- 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/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
|
-
Object[_0x2fe2(0x0)](exports,'__esModule',{'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(_0x4cd6ea){return _0x4cd6ea&&_0x4cd6ea['__esModule']?_0x4cd6ea:{'default':_0x4cd6ea};}function _interopRequireWildcard(_0x21785d,_0x575e57){const _0x1e19ab={'cyHsJ':function(_0x12552b,_0x11a24a){return _0x12552b(_0x11a24a);},'BiJTG':function(_0x438459,_0x459478){return _0x438459!==_0x459478;},'JaMqX':_0x2fe2(0x1),'uFYiF':function(_0x168485,_0x968b15){return _0x168485&&_0x968b15;},'gILJj':function(_0x5c33d9,_0x4fc1be){return _0x5c33d9===_0x4fc1be;},'hWuHX':function(_0x44d647,_0x3f174d){return _0x44d647!=_0x3f174d;},'UnMSd':_0x2fe2(0x2),'mUiBB':function(_0x3fa272,_0x14d618){return _0x3fa272!=_0x14d618;},'GxpcS':function(_0x1043de,_0x5180ad){return _0x1043de!==_0x5180ad;},'CoQci':'default','JkbpD':function(_0x44c0dc,_0x243caf,_0x4c5c9e,_0x2d195e){return _0x44c0dc(_0x243caf,_0x4c5c9e,_0x2d195e);},'ysmBv':function(_0x416266,_0x34ca84){return _0x416266==_0x34ca84;},'URzCG':_0x2fe2(0x3)};if(_0x1e19ab['ysmBv'](_0x1e19ab[_0x2fe2(0x4)],typeof WeakMap))var _0x265641=new WeakMap(),_0x569d93=new WeakMap();return(_interopRequireWildcard=function(_0x219f38,_0x4458a8){if(_0x1e19ab[_0x2fe2(0x5)](_0x1e19ab['JaMqX'],_0x2fe2(0x1)))_0x1e19ab[_0x2fe2(0x6)](_0x41b45e,null);else{if(_0x1e19ab[_0x2fe2(0x7)](!_0x4458a8,_0x219f38)&&_0x219f38['__esModule'])return _0x219f38;var _0x1115b0,_0x497d4a,_0x63bab3={'__proto__':null,'default':_0x219f38};if(_0x1e19ab['gILJj'](null,_0x219f38)||_0x1e19ab[_0x2fe2(0x8)](_0x1e19ab[_0x2fe2(0x9)],typeof _0x219f38)&&_0x1e19ab[_0x2fe2(0xa)](_0x2fe2(0x3),typeof _0x219f38))return _0x63bab3;if(_0x1115b0=_0x4458a8?_0x569d93:_0x265641){if(_0x1115b0[_0x2fe2(0xb)](_0x219f38))return _0x1115b0['get'](_0x219f38);_0x1115b0[_0x2fe2(0xc)](_0x219f38,_0x63bab3);}for(const _0x5650cf in _0x219f38)_0x1e19ab['GxpcS'](_0x1e19ab['CoQci'],_0x5650cf)&&{}[_0x2fe2(0xd)]['call'](_0x219f38,_0x5650cf)&&((_0x497d4a=(_0x1115b0=Object[_0x2fe2(0x0)])&&Object[_0x2fe2(0xe)](_0x219f38,_0x5650cf))&&(_0x497d4a[_0x2fe2(0xf)]||_0x497d4a[_0x2fe2(0xc)])?_0x1e19ab[_0x2fe2(0x10)](_0x1115b0,_0x63bab3,_0x5650cf,_0x497d4a):_0x63bab3[_0x5650cf]=_0x219f38[_0x5650cf]);return _0x63bab3;}})(_0x21785d,_0x575e57);}function _0x2f14(){const _0x5bb4f1=['defineProperty','bWdqi','object','function','URzCG','BiJTG','cyHsJ','uFYiF','hWuHX','UnMSd','mUiBB','has','set','hasOwnProperty','getOwnPropertyDescriptor','get','JkbpD','Instagram','photo-camera','#E1306C','YouTube','smart-display','Connect\x20for\x20YouTube\x20video\x20recommendations\x20and\x20analysis','Pinterest','push-pin','#E60023','Connect\x20to\x20enhance\x20Pinterest\x20board\x20recommendations','Reddit','forum','#FF4500','Connect\x20to\x20personalize\x20Reddit\x20content\x20insights','YoPoZ','small','Connect','#fff','Disconnect','Connect\x20at\x20least\x202\x20platforms\x20to\x20create\x20your\x20Onairos\x20account','\x20of\x20','\x20platforms\x20connected','Continue','arrow-forward','ndpuC','lcQRP','ItkcB','bBYaQ','UNznO','yORfG','pzmHM','qrAhb','yHGLc','userName','default','createElement','platformItem','View','platformIcon','color','icon','htYJJ','platformText','Text','platformName','platformDescription','platformButton','disconnectButton','connectButton','buttonText','RbpBj','PkyUm','pusxe','XYmwX','AzgGp','length','container','Connect\x20Your\x20Platforms','subtitle','MFqqt','ScrollView','keys','map','AwAGv','fXgHy','OswBJ','platformInfo','sFuyL','name','Connected\x20as\x20','TouchableOpacity','ActivityIndicator','PINAS','footer','connectionStatus','uJFTt','hllif','moDpV','proceedButton','proceedActive','proceedText','proceedTextActive','hoaSF','log','Received\x20authorization\x20code\x20for\x20','IvTbC','PlatformConnector','create','bold','#666','#eee','center','600','#000','COLORS','primary','row','space-between','#999'];_0x2f14=function(){return _0x5bb4f1;};return _0x2f14();}const PLATFORMS={'instagram':{'name':_0x2fe2(0x11),'icon':_0x2fe2(0x12),'color':_0x2fe2(0x13),'description':'Connect\x20to\x20share\x20and\x20analyze\x20your\x20Instagram\x20content'},'youtube':{'name':_0x2fe2(0x14),'icon':_0x2fe2(0x15),'color':'#FF0000','description':_0x2fe2(0x16)},'pinterest':{'name':_0x2fe2(0x17),'icon':_0x2fe2(0x18),'color':_0x2fe2(0x19),'description':_0x2fe2(0x1a)},'reddit':{'name':_0x2fe2(0x1b),'icon':_0x2fe2(0x1c),'color':_0x2fe2(0x1d),'description':_0x2fe2(0x1e)}},PlatformConnector=({connections:_0x136c73,onConnect:_0x4e3fea,onDisconnect:_0x25cde4,isLoading:_0x420ca2,canProceed:_0xea6607,onProceed:_0x102922})=>{const _0x601641={'ndpuC':_0x2fe2(0x1f),'lcQRP':function(_0x589982,_0x58b6c9){return _0x589982(_0x58b6c9);},'ItkcB':_0x2fe2(0x20),'bBYaQ':_0x2fe2(0x21),'UNznO':function(_0x193da0,_0x5073d9){return _0x193da0!==_0x5073d9;},'pusxe':function(_0xafc5bb,_0x12fb26){return _0xafc5bb!==_0x12fb26;},'AzgGp':'XYmwX','AwAGv':function(_0x368607,_0x4af381){return _0x368607(_0x4af381);},'fXgHy':function(_0x19a12d,_0x5adb72){return _0x19a12d===_0x5adb72;},'OswBJ':function(_0x25e7f2,_0x137cb8){return _0x25e7f2===_0x137cb8;},'sFuyL':_0x2fe2(0x22),'PINAS':_0x2fe2(0x23),'IvTbC':function(_0x55447d){return _0x55447d();},'MFqqt':_0x2fe2(0x24),'uJFTt':function(_0x4002a9){return _0x4002a9();},'hllif':_0x2fe2(0x25),'moDpV':_0x2fe2(0x26),'hoaSF':_0x2fe2(0x27),'SUrOo':_0x2fe2(0x28),'JUgKM':'#999'},[_0x2ea4d7,_0x9f82d]=(0x0,_react['useState'])(null),_0x2b6463=async _0x5b77fd=>{if(_0x601641['ndpuC']===_0x601641[_0x2fe2(0x29)])_0x601641[_0x2fe2(0x2a)](_0x9f82d,_0x5b77fd);else{if(_0xb94bd0[_0x2fe2(0xb)](_0x159e9a))return _0x162003[_0x2fe2(0xf)](_0x2fd416);_0x5c48c3['set'](_0x26e1a7,_0xc6d957);}},_0x2911d4=()=>{const _0x4bd734={'qrAhb':function(_0x4b364c,_0x5ac8c1){return _0x601641[_0x2fe2(0x2a)](_0x4b364c,_0x5ac8c1);},'yHGLc':function(_0x47b11d,_0x486d54){return _0x47b11d===_0x486d54;},'htYJJ':_0x2fe2(0x22),'gfgAk':_0x601641[_0x2fe2(0x2b)],'RbpBj':_0x2fe2(0x23),'PkyUm':_0x601641[_0x2fe2(0x2c)]};if(_0x601641[_0x2fe2(0x2d)](_0x2fe2(0x2e),_0x2fe2(0x2f)))_0x9f82d(null);else{var _0x4e0922;const _0x43c12f=_0x4d66b7[_0x339216],_0xe0cb9e=_0x4bd734[_0x2fe2(0x30)](_0x21c3a1,_0x3b2128),_0x25dc9c=_0xe0cb9e?_0x4bd734[_0x2fe2(0x31)](_0x4e0922=_0x10ddf1[_0x461bd1],null)||_0x4e0922===void 0x0?void 0x0:_0x4e0922[_0x2fe2(0x32)]:null;return _0x5affcb[_0x2fe2(0x33)][_0x2fe2(0x34)](_0x47289f['View'],{'key':_0x2085bc,'style':_0x203df4[_0x2fe2(0x35)]},_0x473b44['default'][_0x2fe2(0x34)](_0x2dbb6c[_0x2fe2(0x36)],{'style':_0x32cde2['platformInfo']},_0x2f369f[_0x2fe2(0x33)][_0x2fe2(0x34)](_0x3c5fe9[_0x2fe2(0x36)],{'style':[_0x321889[_0x2fe2(0x37)],{'backgroundColor':_0x43c12f[_0x2fe2(0x38)]}]},_0x2a3888[_0x2fe2(0x33)][_0x2fe2(0x34)](_0x55fd0b[_0x2fe2(0x33)],{'name':_0x43c12f[_0x2fe2(0x39)],'size':0x18,'color':_0x4bd734[_0x2fe2(0x3a)]})),_0xa45f10['default'][_0x2fe2(0x34)](_0x3cd010[_0x2fe2(0x36)],{'style':_0x41d700[_0x2fe2(0x3b)]},_0x514c8d[_0x2fe2(0x33)][_0x2fe2(0x34)](_0x3ebfdf[_0x2fe2(0x3c)],{'style':_0x1d3771[_0x2fe2(0x3d)]},_0x43c12f['name']),_0x4b17bc[_0x2fe2(0x33)][_0x2fe2(0x34)](_0x4239ac[_0x2fe2(0x3c)],{'style':_0x116777[_0x2fe2(0x3e)]},_0xe0cb9e?'Connected\x20as\x20'+_0x25dc9c:_0x43c12f['description']))),_0x138f66[_0x2fe2(0x33)]['createElement'](_0x571688['TouchableOpacity'],{'style':[_0x201be3[_0x2fe2(0x3f)],_0xe0cb9e?_0x1854b3[_0x2fe2(0x40)]:_0x4ff0a1[_0x2fe2(0x41)]],'onPress':()=>_0xe0cb9e?_0x32bc03(_0x142743):_0x37fc57(_0x42dde9),'disabled':_0x5cc04a},_0x43b879?_0x1f4029[_0x2fe2(0x33)][_0x2fe2(0x34)](_0x20933a['ActivityIndicator'],{'size':_0x4bd734['gfgAk'],'color':_0x4bd734[_0x2fe2(0x3a)]}):_0x528ef1[_0x2fe2(0x33)][_0x2fe2(0x34)](_0x53d9ad['Text'],{'style':_0xdcad09[_0x2fe2(0x42)]},_0xe0cb9e?_0x4bd734[_0x2fe2(0x43)]:_0x4bd734[_0x2fe2(0x44)])));}},_0x2c8d24=()=>{_0x601641[_0x2fe2(0x2a)](_0x9f82d,null);},_0x31a999=async _0x196c40=>{if(_0x601641[_0x2fe2(0x45)](_0x2fe2(0x46),_0x601641[_0x2fe2(0x47)])){const _0x225520=_0x2ff351;return _0x3095b8[_0x225520]?!![]:![];}else await _0x25cde4(_0x196c40);},_0x4f28dd=_0x3be217=>{const _0x42905c=_0x3be217;return _0x136c73[_0x42905c]?!![]:![];},_0x16f823=()=>{return Object['values'](_0x136c73)['filter'](Boolean)[_0x2fe2(0x48)];};return _react['default']['createElement'](_reactNative[_0x2fe2(0x36)],{'style':styles[_0x2fe2(0x49)]},_react[_0x2fe2(0x33)][_0x2fe2(0x34)](_reactNative[_0x2fe2(0x3c)],{'style':styles['title']},_0x2fe2(0x4a)),_react[_0x2fe2(0x33)][_0x2fe2(0x34)](_reactNative['Text'],{'style':styles[_0x2fe2(0x4b)]},_0x601641[_0x2fe2(0x4c)]),_react[_0x2fe2(0x33)][_0x2fe2(0x34)](_reactNative[_0x2fe2(0x4d)],{'style':styles['platformList']},Object[_0x2fe2(0x4e)](PLATFORMS)[_0x2fe2(0x4f)](_0x1d281c=>{var _0x420a9c;const _0x1a14c2=PLATFORMS[_0x1d281c],_0x298488=_0x601641[_0x2fe2(0x50)](_0x4f28dd,_0x1d281c),_0x3e8c2b=_0x298488?_0x601641[_0x2fe2(0x51)](_0x420a9c=_0x136c73[_0x1d281c],null)||_0x601641[_0x2fe2(0x52)](_0x420a9c,void 0x0)?void 0x0:_0x420a9c[_0x2fe2(0x32)]:null;return _react['default'][_0x2fe2(0x34)](_reactNative[_0x2fe2(0x36)],{'key':_0x1d281c,'style':styles['platformItem']},_react[_0x2fe2(0x33)][_0x2fe2(0x34)](_reactNative[_0x2fe2(0x36)],{'style':styles[_0x2fe2(0x53)]},_react[_0x2fe2(0x33)]['createElement'](_reactNative['View'],{'style':[styles[_0x2fe2(0x37)],{'backgroundColor':_0x1a14c2[_0x2fe2(0x38)]}]},_react['default'][_0x2fe2(0x34)](_MaterialIcons[_0x2fe2(0x33)],{'name':_0x1a14c2[_0x2fe2(0x39)],'size':0x18,'color':_0x601641[_0x2fe2(0x54)]})),_react[_0x2fe2(0x33)][_0x2fe2(0x34)](_reactNative[_0x2fe2(0x36)],{'style':styles[_0x2fe2(0x3b)]},_react[_0x2fe2(0x33)]['createElement'](_reactNative[_0x2fe2(0x3c)],{'style':styles[_0x2fe2(0x3d)]},_0x1a14c2[_0x2fe2(0x55)]),_react['default'][_0x2fe2(0x34)](_reactNative[_0x2fe2(0x3c)],{'style':styles[_0x2fe2(0x3e)]},_0x298488?_0x2fe2(0x56)+_0x3e8c2b:_0x1a14c2['description']))),_react[_0x2fe2(0x33)][_0x2fe2(0x34)](_reactNative[_0x2fe2(0x57)],{'style':[styles['platformButton'],_0x298488?styles[_0x2fe2(0x40)]:styles[_0x2fe2(0x41)]],'onPress':()=>_0x298488?_0x31a999(_0x1d281c):_0x2b6463(_0x1d281c),'disabled':_0x420ca2},_0x420ca2?_react[_0x2fe2(0x33)][_0x2fe2(0x34)](_reactNative[_0x2fe2(0x58)],{'size':_0x601641[_0x2fe2(0x2b)],'color':_0x601641[_0x2fe2(0x54)]}):_react[_0x2fe2(0x33)][_0x2fe2(0x34)](_reactNative[_0x2fe2(0x3c)],{'style':styles[_0x2fe2(0x42)]},_0x298488?_0x601641[_0x2fe2(0x59)]:_0x601641[_0x2fe2(0x2c)])));})),_react['default']['createElement'](_reactNative['View'],{'style':styles[_0x2fe2(0x5a)]},_react[_0x2fe2(0x33)][_0x2fe2(0x34)](_reactNative[_0x2fe2(0x3c)],{'style':styles[_0x2fe2(0x5b)]},_0x601641[_0x2fe2(0x5c)](_0x16f823),_0x601641[_0x2fe2(0x5d)],Object[_0x2fe2(0x4e)](PLATFORMS)[_0x2fe2(0x48)],_0x601641[_0x2fe2(0x5e)]),_react[_0x2fe2(0x33)][_0x2fe2(0x34)](_reactNative[_0x2fe2(0x57)],{'style':[styles[_0x2fe2(0x5f)],_0xea6607?styles[_0x2fe2(0x60)]:styles['proceedInactive']],'onPress':_0x102922,'disabled':!_0xea6607},_react[_0x2fe2(0x33)][_0x2fe2(0x34)](_reactNative['Text'],{'style':[styles[_0x2fe2(0x61)],_0xea6607?styles[_0x2fe2(0x62)]:styles['proceedTextInactive']]},_0x601641[_0x2fe2(0x63)]),_react[_0x2fe2(0x33)][_0x2fe2(0x34)](_MaterialIcons[_0x2fe2(0x33)],{'name':_0x601641['SUrOo'],'size':0x14,'color':_0xea6607?_0x601641[_0x2fe2(0x54)]:_0x601641['JUgKM']}))),_0x2ea4d7&&_react['default'][_0x2fe2(0x34)](_OAuthWebView['OAuthWebView'],{'url':'https://oauth.example.com/'+_0x2ea4d7,'platform':_0x2ea4d7,'onComplete':_0x2911d4,'onClose':_0x2c8d24,'onSuccess':_0x129896=>{console[_0x2fe2(0x64)](_0x2fe2(0x65)+_0x2ea4d7+':\x20'+_0x129896),_0x601641[_0x2fe2(0x66)](_0x2911d4);}}));};function _0x2fe2(_0x2f1457,_0x2fe239){_0x2f1457=_0x2f1457-0x0;const _0x4144da=_0x2f14();let _0x5bca5d=_0x4144da[_0x2f1457];return _0x5bca5d;}exports[_0x2fe2(0x67)]=PlatformConnector;const styles=_reactNative['StyleSheet'][_0x2fe2(0x68)]({'container':{'flex':0x1,'padding':0x10},'title':{'fontSize':0x18,'fontWeight':_0x2fe2(0x69),'marginBottom':0x8,'color':'#000'},'subtitle':{'fontSize':0x10,'color':_0x2fe2(0x6a),'marginBottom':0x18},'platformList':{'flex':0x1},'platformItem':{'flexDirection':'row','alignItems':'center','marginBottom':0x10,'padding':0xc,'backgroundColor':'#f8f8f8','borderRadius':0xc,'borderWidth':0x1,'borderColor':_0x2fe2(0x6b)},'platformInfo':{'flex':0x1,'flexDirection':'row','alignItems':_0x2fe2(0x6c)},'platformIcon':{'width':0x28,'height':0x28,'borderRadius':0x14,'justifyContent':_0x2fe2(0x6c),'alignItems':_0x2fe2(0x6c),'marginRight':0xc},'platformText':{'flex':0x1},'platformName':{'fontSize':0x10,'fontWeight':_0x2fe2(0x6d),'marginBottom':0x4,'color':_0x2fe2(0x6e)},'platformDescription':{'fontSize':0xe,'color':_0x2fe2(0x6a)},'platformButton':{'paddingHorizontal':0x10,'paddingVertical':0x8,'borderRadius':0x14,'justifyContent':_0x2fe2(0x6c),'alignItems':'center','minWidth':0x64},'connectButton':{'backgroundColor':_constants[_0x2fe2(0x6f)][_0x2fe2(0x70)]},'disconnectButton':{'backgroundColor':'#f44336'},'buttonText':{'color':_0x2fe2(0x22),'fontWeight':_0x2fe2(0x6d)},'footer':{'flexDirection':_0x2fe2(0x71),'alignItems':_0x2fe2(0x6c),'justifyContent':_0x2fe2(0x72),'paddingTop':0x10,'borderTopWidth':0x1,'borderTopColor':_0x2fe2(0x6b),'marginTop':0x10},'connectionStatus':{'fontSize':0xe,'color':_0x2fe2(0x6a)},'proceedButton':{'flexDirection':_0x2fe2(0x71),'alignItems':_0x2fe2(0x6c),'paddingHorizontal':0x10,'paddingVertical':0xa,'borderRadius':0x18},'proceedActive':{'backgroundColor':_constants[_0x2fe2(0x6f)][_0x2fe2(0x70)]},'proceedInactive':{'backgroundColor':'#eee'},'proceedText':{'fontWeight':_0x2fe2(0x6d),'marginRight':0x8},'proceedTextActive':{'color':_0x2fe2(0x22)},'proceedTextInactive':{'color':_0x2fe2(0x73)}});
|
|
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
|