@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 +1,310 @@
|
|
|
1
|
-
import React,{useEffect,useRef,useState}from'react';import{View,Text,StyleSheet,Animated}from'react-native';import _0xcbc87d from'lottie-react-native';import{COLORS}from'../theme';import{triggerHaptic,HapticType}from'../utils/haptics';import{ANIMATIONS}from'../utils/assetRegistry';function _0x43b3(){const _0x22a818=['Keeping\x20your\x20data\x20private','Trying\x20to\x20understand\x20your\x20mind','Finalizing\x20your\x20unique\x20persona','Almost\x20done','Complete!','NdMuP','floor','pAord','rKHol','STabQ','NoghB','bZXDn','short','medium','nwVgK','VyUTD','100%','Value','SgUuR','current','BMJeI','OIggJ','QFKWv','aJbBE','omFNc','BksUF','aTXee','loop','sequence','timing','HqrXx','pqRLK','xdqOT','pRWEI','start','rVRLp','yDTNd','MxumM','luAif','dDLZd','setValue','bIiBH','jizom','PWdEe','nJwst','zHDtG','push','max','min','sort','dAbOV','gWKUE','long','xRltG','DWZhZ','CWqXb','WEoMe','oJOHy','yYINJ','WtquC','OjJFU','MgPdY','PQZPE','kVUXo','minProgress','WImWG','ZtCtQ','SUCCESS','Algyo','text','progress','LhILv','YixAH','length','hZSQH','message','forEach','createElement','content','lottieContainer','lottieAnimation','vyUnU','textContainer','loadingText','dotsContainer','Text','dot','progressContainer','progressTrack','progressFill','interpolate','create','surface','center','row','IBM\x20Plex\x20Sans','600','grey800','#E5E5E5'];_0x43b3=function(){return _0x22a818;};return _0x43b3();}function _0x53da(_0x43b3bf,_0x53da25){_0x43b3bf=_0x43b3bf-0x0;const _0x3cb316=_0x43b3();let _0xaebb77=_0x3cb316[_0x43b3bf];return _0xaebb77;}const STATUS_MESSAGES=[{'text':_0x53da(0x0),'minProgress':0x0,'maxProgress':0x19},{'text':_0x53da(0x1),'minProgress':0x14,'maxProgress':0x2d},{'text':'You\x27re\x20more\x20interesting\x20than\x20I\x20expected','minProgress':0x28,'maxProgress':0x41},{'text':_0x53da(0x2),'minProgress':0x3c,'maxProgress':0x55},{'text':_0x53da(0x3),'minProgress':0x50,'maxProgress':0x5f},{'text':_0x53da(0x4),'minProgress':0x64,'maxProgress':0x64}],randomInRange=(_0x1df15e,_0x59a288)=>{const _0xe5f652={'IDOjy':function(_0x13a6ff,_0x576bfb){return _0x13a6ff*_0x576bfb;},'NdMuP':function(_0x14f71f,_0x856acf){return _0x14f71f-_0x856acf;}};return _0xe5f652['IDOjy'](Math['random'](),_0xe5f652[_0x53da(0x5)](_0x59a288,_0x1df15e))+_0x1df15e;},randomIntInRange=(_0x4be08a,_0x1a40d5)=>{const _0x12a294={'pAord':function(_0x4f1eb8,_0x54dfea){return _0x4f1eb8+_0x54dfea;}};return Math[_0x53da(0x6)](randomInRange(_0x4be08a,_0x12a294[_0x53da(0x7)](_0x1a40d5,0x1)));},PersonaLoadingScreen=({visible:_0xd9ff18,onComplete:_0x47657c})=>{const _0x1d447d={'omFNc':function(_0x6467f9,_0x5c58c2){return _0x6467f9===_0x5c58c2;},'BksUF':function(_0x7c1ea0,_0xcb36ad,_0x1194d2){return _0x7c1ea0(_0xcb36ad,_0x1194d2);},'aTXee':_0x53da(0x8),'HqrXx':function(_0x3ce06f,_0x279047,_0x28b89a){return _0x3ce06f(_0x279047,_0x28b89a);},'rVRLp':function(_0x3dbb29,_0x1efb08,_0x14b23e){return _0x3dbb29(_0x1efb08,_0x14b23e);},'MgPdY':'CNvvq','PQZPE':_0x53da(0x9),'WImWG':_0x53da(0xa),'dprnM':_0x53da(0xb),'luAif':function(_0x551081,_0x2871d5){return _0x551081<_0x2871d5;},'dDLZd':function(_0x5dc081,_0x131f77){return _0x5dc081>=_0x131f77;},'SgUuR':function(_0x234776,_0x43a684){return _0x234776(_0x43a684);},'QFKWv':function(_0x29cb55,_0x3962f6){return _0x29cb55(_0x3962f6);},'OIggJ':_0x53da(0x0),'bIiBH':function(_0x665122,_0x30c5c1){return _0x665122-_0x30c5c1;},'jizom':function(_0x4ac6e2,_0x156c3d){return _0x4ac6e2+_0x156c3d;},'PWdEe':function(_0x325bd3,_0x205702){return _0x325bd3/_0x205702;},'nJwst':function(_0x3b55a8,_0x23fce5){return _0x3b55a8+_0x23fce5;},'zHDtG':function(_0x1a985a,_0x243cf1){return _0x1a985a*_0x243cf1;},'dAbOV':_0x53da(0xc),'gWKUE':_0x53da(0xd),'xRltG':function(_0x7c64a6,_0x3268d6){return _0x7c64a6===_0x3268d6;},'DWZhZ':function(_0x65c8a0,_0x230ead){return _0x65c8a0===_0x230ead;},'WEoMe':function(_0x2721fc,_0x45f819,_0x54f557){return _0x2721fc(_0x45f819,_0x54f557);},'oJOHy':function(_0x4f2804,_0x5ddaea){return _0x4f2804===_0x5ddaea;},'yYINJ':function(_0x272fc6,_0x3be838){return _0x272fc6!==_0x3be838;},'KwkJq':_0x53da(0xe),'WtquC':_0x53da(0xf),'OjJFU':function(_0x2708aa,_0x2d6752){return _0x2708aa/_0x2d6752;},'LhILv':function(_0x37e5d2,_0x5d8525){return _0x37e5d2<=_0x5d8525;},'BMJeI':function(_0x31aacd,_0x462f49){return _0x31aacd(_0x462f49);},'aJbBE':function(_0x185a39,_0x5af9c7,_0x135706){return _0x185a39(_0x5af9c7,_0x135706);},'MxumM':function(_0x564c68,_0x81d9d,_0x277130){return _0x564c68(_0x81d9d,_0x277130);},'vyUnU':'contain','RfYuY':_0x53da(0x10)},_0x5c71e0=_0x1d447d['SgUuR'](useRef,new Animated[(_0x53da(0x11))](0x0))['current'],_0xa5a780=_0x1d447d[_0x53da(0x12)](useRef,new Animated[(_0x53da(0x11))](0.3))[_0x53da(0x13)],_0x480dd9=_0x1d447d[_0x53da(0x12)](useRef,new Animated[(_0x53da(0x11))](0.3))[_0x53da(0x13)],_0x3f4e14=_0x1d447d['SgUuR'](useRef,new Animated[(_0x53da(0x11))](0.3))['current'],[_0x4c5297,_0x36e507]=_0x1d447d[_0x53da(0x14)](useState,0x0),[_0x5e9823,_0x5849b4]=useState(_0x1d447d[_0x53da(0x15)]),_0xfee607=_0x1d447d[_0x53da(0x16)](useRef,[]);_0x1d447d[_0x53da(0x17)](useEffect,()=>{const _0xc0a824={'pqRLK':function(_0x1ef9ba,_0x4d7e95){return _0x1d447d[_0x53da(0x18)](_0x1ef9ba,_0x4d7e95);},'xdqOT':'OUQTo','yDTNd':function(_0x2ff424,_0x171f79,_0x568c41){return _0x1d447d[_0x53da(0x19)](_0x2ff424,_0x171f79,_0x568c41);},'WbgrL':function(_0x26e343,_0x44897b,_0xb13b5c){return _0x1d447d[_0x53da(0x19)](_0x26e343,_0x44897b,_0xb13b5c);}};if(_0x53da(0x8)!==_0x1d447d[_0x53da(0x1a)])return Animated[_0x53da(0x1b)](Animated[_0x53da(0x1c)]([Animated[_0x53da(0x1d)](_0x2126db,{'toValue':0x1,'duration':0x258,'useNativeDriver':!![]}),Animated['timing'](_0x1914c6,{'toValue':0.3,'duration':0x258,'useNativeDriver':!![]})]),{'iterations':-0x1});else{if(!_0xd9ff18)return;const _0x815d6f=(_0x3120f4,_0x36d7cb)=>{return Animated[_0x53da(0x1b)](Animated[_0x53da(0x1c)]([Animated[_0x53da(0x1d)](_0x3120f4,{'toValue':0x1,'duration':0x258,'useNativeDriver':!![]}),Animated[_0x53da(0x1d)](_0x3120f4,{'toValue':0.3,'duration':0x258,'useNativeDriver':!![]})]),{'iterations':-0x1});};_0x1d447d[_0x53da(0x1e)](setTimeout,()=>{_0xc0a824[_0x53da(0x1f)](_0xc0a824[_0x53da(0x20)],_0x53da(0x21))?_0x1a644c=_0x53140f(0xfa,0x1f4):_0x815d6f(_0xa5a780,0x0)[_0x53da(0x22)]();},0x12c),_0x1d447d[_0x53da(0x23)](setTimeout,()=>{_0xc0a824[_0x53da(0x24)](_0x815d6f,_0x480dd9,0xc8)[_0x53da(0x22)]();},0x1f4),_0x1d447d[_0x53da(0x19)](setTimeout,()=>{_0xc0a824['WbgrL'](_0x815d6f,_0x3f4e14,0x190)[_0x53da(0x22)]();},0x2bc);}},[_0xd9ff18,_0xa5a780,_0x480dd9,_0x3f4e14]),_0x1d447d[_0x53da(0x25)](useEffect,()=>{const _0x41ac97={'ZtCtQ':function(_0x549ae6,_0x3f55d3){return _0x549ae6(_0x3f55d3);},'Algyo':function(_0x30ebb7){return _0x30ebb7();},'YixAH':function(_0xf9e12c,_0x26f0c9){return _0x1d447d[_0x53da(0x26)](_0xf9e12c,_0x26f0c9);},'kIhnr':function(_0x9af11a,_0x563370){return _0x1d447d[_0x53da(0x27)](_0x9af11a,_0x563370);},'hZSQH':function(_0x3cda11,_0x278402){return _0x1d447d['SgUuR'](_0x3cda11,_0x278402);},'UAVJT':function(_0xe96e9e,_0x4270c9,_0x11dc04){return _0x1d447d[_0x53da(0x23)](_0xe96e9e,_0x4270c9,_0x11dc04);}};if(!_0xd9ff18){_0xfee607[_0x53da(0x13)]['forEach'](_0x3ec2b5=>clearTimeout(_0x3ec2b5)),_0xfee607[_0x53da(0x13)]=[];return;}_0x1d447d['SgUuR'](_0x36e507,0x0),_0x1d447d[_0x53da(0x16)](_0x5849b4,_0x1d447d[_0x53da(0x15)]),_0x5c71e0[_0x53da(0x28)](0x0);const _0xc41aec=_0x1d447d[_0x53da(0x19)](randomInRange,0x1b58,0x2ee0),_0x16fef5=_0x1d447d[_0x53da(0x1e)](randomIntInRange,0x5,0x8),_0x13dbe9=[0x0];for(let _0x52b58e=0x0;_0x1d447d[_0x53da(0x26)](_0x52b58e,_0x16fef5-0x1);_0x52b58e++){const _0x141446=_0x1d447d[_0x53da(0x29)](_0x1d447d[_0x53da(0x2a)](_0x52b58e,0x1)*_0x1d447d[_0x53da(0x2b)](0x64,_0x16fef5),0xa),_0xba6a49=_0x1d447d[_0x53da(0x2c)](_0x1d447d[_0x53da(0x2d)](_0x1d447d['nJwst'](_0x52b58e,0x1),_0x1d447d[_0x53da(0x2b)](0x64,_0x16fef5)),0xa);_0x13dbe9[_0x53da(0x2e)](_0x1d447d[_0x53da(0x1e)](randomIntInRange,Math[_0x53da(0x2f)](0xa,_0x141446),Math[_0x53da(0x30)](0x5a,_0xba6a49)));}_0x13dbe9['push'](0x64),_0x13dbe9[_0x53da(0x31)]((_0x2f9491,_0x29ab4a)=>_0x2f9491-_0x29ab4a);const _0x39a3eb=[_0x1d447d[_0x53da(0x32)],_0x1d447d[_0x53da(0x33)],_0x53da(0x34)],_0x3ffb7a=[];let _0x16261f=0x0;for(let _0xa276b2=0x0;_0xa276b2<_0x16fef5;_0xa276b2++){const _0x26e07f=_0x39a3eb[_0x1d447d[_0x53da(0x1e)](randomIntInRange,0x0,0x2)];let _0x507e6a;if(_0x1d447d[_0x53da(0x35)](_0x26e07f,_0x1d447d[_0x53da(0x32)]))_0x1d447d[_0x53da(0x36)](_0x53da(0x37),'IYZzy')?_0x50931e(_0x521d97,0xc8)[_0x53da(0x22)]():_0x507e6a=_0x1d447d[_0x53da(0x38)](randomInRange,0xfa,0x1f4);else _0x1d447d[_0x53da(0x39)](_0x26e07f,_0x1d447d[_0x53da(0x33)])?_0x507e6a=_0x1d447d[_0x53da(0x19)](randomInRange,0x1f4,0x320):_0x1d447d[_0x53da(0x3a)](_0x1d447d['KwkJq'],_0x1d447d[_0x53da(0x3b)])?_0x507e6a=_0x1d447d['WEoMe'](randomInRange,0x320,0x4b0):_0xf05773(_0x469ca3,0x190)[_0x53da(0x22)]();_0x3ffb7a[_0x53da(0x2e)](_0x507e6a),_0x16261f+=_0x507e6a;}const _0x131c1a=0x190,_0x39b9de=_0x16fef5*_0x131c1a,_0x17f0c9=_0x1d447d[_0x53da(0x29)](_0xc41aec,_0x39b9de),_0x40e387=_0x1d447d[_0x53da(0x3c)](_0x17f0c9,_0x16261f),_0x43b95f=_0x3ffb7a['map'](_0x42f6fa=>_0x42f6fa*_0x40e387),_0x9cfd28=[];STATUS_MESSAGES['forEach'](_0x345935=>{const _0x843310={'kVUXo':function(_0x4ed9a8,_0x3ec261,_0x39776c){return _0x1d447d['HqrXx'](_0x4ed9a8,_0x3ec261,_0x39776c);}};if(_0x1d447d[_0x53da(0x18)](_0x1d447d[_0x53da(0x3d)],_0x1d447d[_0x53da(0x3e)]))_0x843310[_0x53da(0x3f)](_0x586809,_0x4934b9,0x0)[_0x53da(0x22)]();else{if(_0x1d447d[_0x53da(0x18)](_0x345935[_0x53da(0x40)],0x64))_0x1d447d[_0x53da(0x41)]!==_0x1d447d['dprnM']?_0x9cfd28[_0x53da(0x2e)]({'progress':0x64,'message':_0x345935['text']}):(_0x41ac97[_0x53da(0x42)](_0x27640c,_0x2a8356[_0x53da(0x43)]),_0x41ac97[_0x53da(0x44)](_0x4f1bcf));else{const _0x35696b=randomInRange(_0x345935['minProgress'],_0x345935['maxProgress']);_0x9cfd28[_0x53da(0x2e)]({'progress':_0x35696b,'message':_0x345935[_0x53da(0x45)]});}}}),_0x9cfd28[_0x53da(0x31)]((_0x1c6cc7,_0x54a2ea)=>_0x1c6cc7[_0x53da(0x46)]-_0x54a2ea[_0x53da(0x46)]);let _0x260e78=0x0,_0x594fd1=0x0;for(let _0x4389ba=0x1;_0x1d447d[_0x53da(0x47)](_0x4389ba,_0x16fef5);_0x4389ba++){const _0x2b0b56=_0x13dbe9[_0x4389ba],_0x1e2e6e=_0x43b95f[_0x1d447d[_0x53da(0x29)](_0x4389ba,0x1)];_0x260e78+=_0x1e2e6e;const _0x9e6e12=_0x1d447d[_0x53da(0x38)](setTimeout,()=>{while(_0x41ac97[_0x53da(0x48)](_0x594fd1,_0x9cfd28[_0x53da(0x49)])&&_0x41ac97['kIhnr'](_0x2b0b56,_0x9cfd28[_0x594fd1]['progress'])){_0x41ac97[_0x53da(0x4a)](_0x5849b4,_0x9cfd28[_0x594fd1][_0x53da(0x4b)]),_0x594fd1++;}_0x36e507(_0x2b0b56),Animated[_0x53da(0x1d)](_0x5c71e0,{'toValue':_0x2b0b56/0x64,'duration':_0x131c1a,'useNativeDriver':![]})['start'](),_0x2b0b56>=0x64&&_0x41ac97['UAVJT'](setTimeout,()=>{_0x41ac97['ZtCtQ'](triggerHaptic,HapticType[_0x53da(0x43)]),_0x41ac97[_0x53da(0x44)](_0x47657c);},0x1f4);},_0x260e78);_0xfee607[_0x53da(0x13)][_0x53da(0x2e)](_0x9e6e12),_0x260e78+=_0x131c1a;}return()=>{_0xfee607['current'][_0x53da(0x4c)](_0x23a6b1=>clearTimeout(_0x23a6b1)),_0xfee607[_0x53da(0x13)]=[];};},[_0xd9ff18,_0x47657c,_0x5c71e0]);if(!_0xd9ff18)return null;return React[_0x53da(0x4d)](View,{'style':styles['container']},React[_0x53da(0x4d)](View,{'style':styles[_0x53da(0x4e)]},React[_0x53da(0x4d)](View,{'style':styles[_0x53da(0x4f)]},React['createElement'](_0xcbc87d,{'source':ANIMATIONS['loader'],'autoPlay':!![],'loop':!![],'style':styles[_0x53da(0x50)],'resizeMode':_0x1d447d[_0x53da(0x51)]})),React[_0x53da(0x4d)](View,{'style':styles[_0x53da(0x52)]},React['createElement'](Text,{'style':styles[_0x53da(0x53)]},_0x5e9823),React['createElement'](View,{'style':styles[_0x53da(0x54)]},React[_0x53da(0x4d)](Animated[_0x53da(0x55)],{'style':[styles[_0x53da(0x56)],{'opacity':_0xa5a780}]},'.'),React[_0x53da(0x4d)](Animated[_0x53da(0x55)],{'style':[styles['dot'],{'opacity':_0x480dd9}]},'.'),React[_0x53da(0x4d)](Animated[_0x53da(0x55)],{'style':[styles['dot'],{'opacity':_0x3f4e14}]},'.'))),React[_0x53da(0x4d)](View,{'style':styles[_0x53da(0x57)]},React[_0x53da(0x4d)](View,{'style':styles[_0x53da(0x58)]},React['createElement'](Animated['View'],{'style':[styles[_0x53da(0x59)],{'width':_0x5c71e0[_0x53da(0x5a)]({'inputRange':[0x0,0x1],'outputRange':['0%',_0x1d447d['RfYuY']]})}]})))));},styles=StyleSheet[_0x53da(0x5b)]({'container':{'flex':0x1,'backgroundColor':COLORS[_0x53da(0x5c)]},'content':{'flex':0x1,'justifyContent':_0x53da(0x5d),'alignItems':'center','paddingHorizontal':0x18,'marginTop':-0x50},'lottieContainer':{'width':0x168,'height':0x168,'marginBottom':0x20,'alignItems':_0x53da(0x5d),'justifyContent':'center'},'lottieAnimation':{'width':_0x53da(0x10),'height':_0x53da(0x10)},'textContainer':{'flexDirection':_0x53da(0x5e),'alignItems':'center','marginBottom':0x30},'loadingText':{'fontSize':0x18,'fontFamily':_0x53da(0x5f),'fontWeight':_0x53da(0x60),'color':COLORS[_0x53da(0x61)]},'dotsContainer':{'flexDirection':'row','marginLeft':0x4},'dot':{'fontSize':0x18,'fontFamily':_0x53da(0x5f),'fontWeight':'600','color':COLORS[_0x53da(0x61)],'marginLeft':0x2},'progressContainer':{'width':_0x53da(0x10),'maxWidth':0x118},'progressTrack':{'height':0x6,'backgroundColor':_0x53da(0x62),'borderRadius':0x3,'overflow':'hidden'},'progressFill':{'height':'100%','backgroundColor':COLORS['grey800'],'borderRadius':0x3}});export default PersonaLoadingScreen;
|
|
1
|
+
import React, { useEffect, useRef, useState } from 'react';
|
|
2
|
+
import { View, Text, StyleSheet, Animated } from 'react-native';
|
|
3
|
+
import LottieView from 'lottie-react-native';
|
|
4
|
+
import { COLORS } from '../theme';
|
|
5
|
+
import { triggerHaptic, HapticType } from '../utils/haptics';
|
|
6
|
+
import { ANIMATIONS } from '../utils/assetRegistry';
|
|
7
|
+
// Status messages with their progress ranges
|
|
8
|
+
const STATUS_MESSAGES = [{
|
|
9
|
+
text: 'Keeping your data private',
|
|
10
|
+
minProgress: 0,
|
|
11
|
+
maxProgress: 25
|
|
12
|
+
}, {
|
|
13
|
+
text: 'Trying to understand your mind',
|
|
14
|
+
minProgress: 20,
|
|
15
|
+
maxProgress: 45
|
|
16
|
+
}, {
|
|
17
|
+
text: "You're more interesting than I expected",
|
|
18
|
+
minProgress: 40,
|
|
19
|
+
maxProgress: 65
|
|
20
|
+
}, {
|
|
21
|
+
text: 'Finalizing your unique persona',
|
|
22
|
+
minProgress: 60,
|
|
23
|
+
maxProgress: 85
|
|
24
|
+
}, {
|
|
25
|
+
text: 'Almost done',
|
|
26
|
+
minProgress: 80,
|
|
27
|
+
maxProgress: 95
|
|
28
|
+
}, {
|
|
29
|
+
text: 'Complete!',
|
|
30
|
+
minProgress: 100,
|
|
31
|
+
maxProgress: 100
|
|
32
|
+
}];
|
|
33
|
+
|
|
34
|
+
// Helper function to get random number in range
|
|
35
|
+
const randomInRange = (min, max) => {
|
|
36
|
+
return Math.random() * (max - min) + min;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
// Helper function to get random integer in range
|
|
40
|
+
const randomIntInRange = (min, max) => {
|
|
41
|
+
return Math.floor(randomInRange(min, max + 1));
|
|
42
|
+
};
|
|
43
|
+
const PersonaLoadingScreen = ({
|
|
44
|
+
visible,
|
|
45
|
+
onComplete
|
|
46
|
+
}) => {
|
|
47
|
+
const progressValue = useRef(new Animated.Value(0)).current;
|
|
48
|
+
const dotOpacity1 = useRef(new Animated.Value(0.3)).current;
|
|
49
|
+
const dotOpacity2 = useRef(new Animated.Value(0.3)).current;
|
|
50
|
+
const dotOpacity3 = useRef(new Animated.Value(0.3)).current;
|
|
51
|
+
|
|
52
|
+
// Loading state
|
|
53
|
+
const [currentProgress, setCurrentProgress] = useState(0);
|
|
54
|
+
const [currentStatus, setCurrentStatus] = useState('Keeping your data private');
|
|
55
|
+
const loadingTimeoutsRef = useRef([]);
|
|
56
|
+
|
|
57
|
+
// Pulsing dots animation
|
|
58
|
+
useEffect(() => {
|
|
59
|
+
if (!visible) return;
|
|
60
|
+
const createDotAnimation = (opacity, delay) => {
|
|
61
|
+
return Animated.loop(Animated.sequence([Animated.timing(opacity, {
|
|
62
|
+
toValue: 1,
|
|
63
|
+
duration: 600,
|
|
64
|
+
useNativeDriver: true
|
|
65
|
+
}), Animated.timing(opacity, {
|
|
66
|
+
toValue: 0.3,
|
|
67
|
+
duration: 600,
|
|
68
|
+
useNativeDriver: true
|
|
69
|
+
})]), {
|
|
70
|
+
iterations: -1
|
|
71
|
+
});
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
// Start dot animations with staggered delays
|
|
75
|
+
setTimeout(() => {
|
|
76
|
+
createDotAnimation(dotOpacity1, 0).start();
|
|
77
|
+
}, 300);
|
|
78
|
+
setTimeout(() => {
|
|
79
|
+
createDotAnimation(dotOpacity2, 200).start();
|
|
80
|
+
}, 500);
|
|
81
|
+
setTimeout(() => {
|
|
82
|
+
createDotAnimation(dotOpacity3, 400).start();
|
|
83
|
+
}, 700);
|
|
84
|
+
}, [visible, dotOpacity1, dotOpacity2, dotOpacity3]);
|
|
85
|
+
|
|
86
|
+
// Variable loading sequence effect
|
|
87
|
+
useEffect(() => {
|
|
88
|
+
if (!visible) {
|
|
89
|
+
// Clear any existing timeouts
|
|
90
|
+
loadingTimeoutsRef.current.forEach(timeout => clearTimeout(timeout));
|
|
91
|
+
loadingTimeoutsRef.current = [];
|
|
92
|
+
return;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
// Reset state
|
|
96
|
+
setCurrentProgress(0);
|
|
97
|
+
setCurrentStatus('Keeping your data private');
|
|
98
|
+
progressValue.setValue(0);
|
|
99
|
+
|
|
100
|
+
// Generate random loading sequence
|
|
101
|
+
const totalDuration = randomInRange(7000, 12000); // 7-12 seconds
|
|
102
|
+
const numStages = randomIntInRange(5, 8); // 5-8 progress stages
|
|
103
|
+
|
|
104
|
+
// Generate random progress points (excluding 0 and 100)
|
|
105
|
+
const progressPoints = [0];
|
|
106
|
+
for (let i = 0; i < numStages - 1; i++) {
|
|
107
|
+
// Distribute progress points somewhat evenly but with randomness
|
|
108
|
+
const minProgress = (i + 1) * (100 / numStages) - 10;
|
|
109
|
+
const maxProgress = (i + 1) * (100 / numStages) + 10;
|
|
110
|
+
progressPoints.push(randomIntInRange(Math.max(10, minProgress), Math.min(90, maxProgress)));
|
|
111
|
+
}
|
|
112
|
+
progressPoints.push(100);
|
|
113
|
+
progressPoints.sort((a, b) => a - b);
|
|
114
|
+
|
|
115
|
+
// Generate pause durations
|
|
116
|
+
const pauseTypes = ['short', 'medium', 'long'];
|
|
117
|
+
const pauseDurations = [];
|
|
118
|
+
let totalPauseDuration = 0;
|
|
119
|
+
for (let i = 0; i < numStages; i++) {
|
|
120
|
+
const pauseType = pauseTypes[randomIntInRange(0, 2)];
|
|
121
|
+
let duration;
|
|
122
|
+
if (pauseType === 'short') {
|
|
123
|
+
duration = randomInRange(250, 500);
|
|
124
|
+
} else if (pauseType === 'medium') {
|
|
125
|
+
duration = randomInRange(500, 800);
|
|
126
|
+
} else {
|
|
127
|
+
duration = randomInRange(800, 1200);
|
|
128
|
+
}
|
|
129
|
+
pauseDurations.push(duration);
|
|
130
|
+
totalPauseDuration += duration;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
// Adjust animation durations to fit total time budget
|
|
134
|
+
const animationDuration = 400; // Duration for each progress bar animation
|
|
135
|
+
const totalAnimationTime = numStages * animationDuration;
|
|
136
|
+
const availableTime = totalDuration - totalAnimationTime;
|
|
137
|
+
const scaleFactor = availableTime / totalPauseDuration;
|
|
138
|
+
|
|
139
|
+
// Scale all pauses proportionally
|
|
140
|
+
const scaledPauseDurations = pauseDurations.map(d => d * scaleFactor);
|
|
141
|
+
|
|
142
|
+
// Generate status message change points
|
|
143
|
+
const statusChangePoints = [];
|
|
144
|
+
STATUS_MESSAGES.forEach(msg => {
|
|
145
|
+
if (msg.minProgress === 100) {
|
|
146
|
+
statusChangePoints.push({
|
|
147
|
+
progress: 100,
|
|
148
|
+
message: msg.text
|
|
149
|
+
});
|
|
150
|
+
} else {
|
|
151
|
+
const randomProgress = randomInRange(msg.minProgress, msg.maxProgress);
|
|
152
|
+
statusChangePoints.push({
|
|
153
|
+
progress: randomProgress,
|
|
154
|
+
message: msg.text
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
});
|
|
158
|
+
statusChangePoints.sort((a, b) => a.progress - b.progress);
|
|
159
|
+
|
|
160
|
+
// Execute loading sequence
|
|
161
|
+
let cumulativeTime = 0;
|
|
162
|
+
let currentStatusIndex = 0;
|
|
163
|
+
for (let i = 1; i <= numStages; i++) {
|
|
164
|
+
const targetProgress = progressPoints[i];
|
|
165
|
+
const pauseDuration = scaledPauseDurations[i - 1];
|
|
166
|
+
cumulativeTime += pauseDuration;
|
|
167
|
+
|
|
168
|
+
// Schedule progress update
|
|
169
|
+
const timeout = setTimeout(() => {
|
|
170
|
+
// Update status if we've crossed a threshold
|
|
171
|
+
while (currentStatusIndex < statusChangePoints.length && targetProgress >= statusChangePoints[currentStatusIndex].progress) {
|
|
172
|
+
setCurrentStatus(statusChangePoints[currentStatusIndex].message);
|
|
173
|
+
currentStatusIndex++;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
// Update progress
|
|
177
|
+
setCurrentProgress(targetProgress);
|
|
178
|
+
|
|
179
|
+
// Animate progress bar
|
|
180
|
+
Animated.timing(progressValue, {
|
|
181
|
+
toValue: targetProgress / 100,
|
|
182
|
+
duration: animationDuration,
|
|
183
|
+
useNativeDriver: false
|
|
184
|
+
}).start();
|
|
185
|
+
|
|
186
|
+
// Complete when reaching 100%
|
|
187
|
+
if (targetProgress >= 100) {
|
|
188
|
+
setTimeout(() => {
|
|
189
|
+
triggerHaptic(HapticType.SUCCESS);
|
|
190
|
+
onComplete();
|
|
191
|
+
}, 500);
|
|
192
|
+
}
|
|
193
|
+
}, cumulativeTime);
|
|
194
|
+
loadingTimeoutsRef.current.push(timeout);
|
|
195
|
+
cumulativeTime += animationDuration;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
// Cleanup function
|
|
199
|
+
return () => {
|
|
200
|
+
loadingTimeoutsRef.current.forEach(timeout => clearTimeout(timeout));
|
|
201
|
+
loadingTimeoutsRef.current = [];
|
|
202
|
+
};
|
|
203
|
+
}, [visible, onComplete, progressValue]);
|
|
204
|
+
if (!visible) return null;
|
|
205
|
+
return /*#__PURE__*/React.createElement(View, {
|
|
206
|
+
style: styles.container
|
|
207
|
+
}, /*#__PURE__*/React.createElement(View, {
|
|
208
|
+
style: styles.content
|
|
209
|
+
}, /*#__PURE__*/React.createElement(View, {
|
|
210
|
+
style: styles.lottieContainer
|
|
211
|
+
}, /*#__PURE__*/React.createElement(LottieView, {
|
|
212
|
+
source: ANIMATIONS.loader,
|
|
213
|
+
autoPlay: true,
|
|
214
|
+
loop: true,
|
|
215
|
+
style: styles.lottieAnimation,
|
|
216
|
+
resizeMode: "contain"
|
|
217
|
+
})), /*#__PURE__*/React.createElement(View, {
|
|
218
|
+
style: styles.textContainer
|
|
219
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
220
|
+
style: styles.loadingText
|
|
221
|
+
}, currentStatus), /*#__PURE__*/React.createElement(View, {
|
|
222
|
+
style: styles.dotsContainer
|
|
223
|
+
}, /*#__PURE__*/React.createElement(Animated.Text, {
|
|
224
|
+
style: [styles.dot, {
|
|
225
|
+
opacity: dotOpacity1
|
|
226
|
+
}]
|
|
227
|
+
}, "."), /*#__PURE__*/React.createElement(Animated.Text, {
|
|
228
|
+
style: [styles.dot, {
|
|
229
|
+
opacity: dotOpacity2
|
|
230
|
+
}]
|
|
231
|
+
}, "."), /*#__PURE__*/React.createElement(Animated.Text, {
|
|
232
|
+
style: [styles.dot, {
|
|
233
|
+
opacity: dotOpacity3
|
|
234
|
+
}]
|
|
235
|
+
}, "."))), /*#__PURE__*/React.createElement(View, {
|
|
236
|
+
style: styles.progressContainer
|
|
237
|
+
}, /*#__PURE__*/React.createElement(View, {
|
|
238
|
+
style: styles.progressTrack
|
|
239
|
+
}, /*#__PURE__*/React.createElement(Animated.View, {
|
|
240
|
+
style: [styles.progressFill, {
|
|
241
|
+
width: progressValue.interpolate({
|
|
242
|
+
inputRange: [0, 1],
|
|
243
|
+
outputRange: ['0%', '100%']
|
|
244
|
+
})
|
|
245
|
+
}]
|
|
246
|
+
})))));
|
|
247
|
+
};
|
|
248
|
+
const styles = StyleSheet.create({
|
|
249
|
+
container: {
|
|
250
|
+
flex: 1,
|
|
251
|
+
backgroundColor: COLORS.surface
|
|
252
|
+
},
|
|
253
|
+
content: {
|
|
254
|
+
flex: 1,
|
|
255
|
+
justifyContent: 'center',
|
|
256
|
+
alignItems: 'center',
|
|
257
|
+
paddingHorizontal: 24,
|
|
258
|
+
marginTop: -80 // Raise the content up
|
|
259
|
+
},
|
|
260
|
+
lottieContainer: {
|
|
261
|
+
width: 360,
|
|
262
|
+
height: 360,
|
|
263
|
+
marginBottom: 32,
|
|
264
|
+
alignItems: 'center',
|
|
265
|
+
justifyContent: 'center'
|
|
266
|
+
},
|
|
267
|
+
lottieAnimation: {
|
|
268
|
+
width: '100%',
|
|
269
|
+
height: '100%'
|
|
270
|
+
},
|
|
271
|
+
textContainer: {
|
|
272
|
+
flexDirection: 'row',
|
|
273
|
+
alignItems: 'center',
|
|
274
|
+
marginBottom: 48
|
|
275
|
+
},
|
|
276
|
+
loadingText: {
|
|
277
|
+
fontSize: 24,
|
|
278
|
+
fontFamily: 'IBM Plex Sans',
|
|
279
|
+
fontWeight: '600',
|
|
280
|
+
color: COLORS.grey800
|
|
281
|
+
},
|
|
282
|
+
dotsContainer: {
|
|
283
|
+
flexDirection: 'row',
|
|
284
|
+
marginLeft: 4
|
|
285
|
+
},
|
|
286
|
+
dot: {
|
|
287
|
+
fontSize: 24,
|
|
288
|
+
fontFamily: 'IBM Plex Sans',
|
|
289
|
+
fontWeight: '600',
|
|
290
|
+
color: COLORS.grey800,
|
|
291
|
+
marginLeft: 2
|
|
292
|
+
},
|
|
293
|
+
progressContainer: {
|
|
294
|
+
width: '100%',
|
|
295
|
+
maxWidth: 280
|
|
296
|
+
},
|
|
297
|
+
progressTrack: {
|
|
298
|
+
height: 6,
|
|
299
|
+
backgroundColor: '#E5E5E5',
|
|
300
|
+
borderRadius: 3,
|
|
301
|
+
overflow: 'hidden'
|
|
302
|
+
},
|
|
303
|
+
progressFill: {
|
|
304
|
+
height: '100%',
|
|
305
|
+
backgroundColor: COLORS.grey800,
|
|
306
|
+
borderRadius: 3
|
|
307
|
+
}
|
|
308
|
+
});
|
|
309
|
+
export default PersonaLoadingScreen;
|
|
310
|
+
//# sourceMappingURL=PersonaLoadingScreen.js.map
|