@onairos/react-native 3.7.2 → 3.7.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +120 -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 +113 -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,9 +1,197 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
function _0x4aec(){const _0x1fdfa8=['defineProperty','__esModule','default','function','xnysr','gYfOm','fyDcv','HGcOk','IQpFz','SoxAn','PYAvH','has','get','set','Qiehy','qomAj','EurEm','hasOwnProperty','call','RPJbu','getOwnPropertyDescriptor','HZkPo','Dimensions','window','complete','found','vlbeD','uLiqv','gqfYS','tJojf','searching','none','Finding\x20Your\x20Matches','Searching\x20for\x20potential\x20connections\x20based\x20on\x20your\x20profile...','We\x27ve\x20found\x20','Complete\x20your\x20profile\x20to\x20see\x20who\x20they\x20are.','@...','#f5e7c1','#E9C46A','#DDB957','useState','Animated','useEffect','JUwdX','XLeIs','NImvC','SKJUT','fHHuv','MzPVB','timing','start','Gxoth','KbBOR','xXwQK','gAiuj','MIyzb','hWoLo','kgBim','parallel','FTAZJ','yYChf','EAOme','ZycuQ','Modal','ClKvj','createElement','View','container','QNLzu','Fragment','Text','title','QzXgW','ActivityIndicator','large','loader','HuYWr','XLFRw','matchCircle','matchCount','message','AFnYe','iZGrA','subMessage','Welcome\x20to\x20Enoch!','We\x27ll\x20send\x20match\x20notifications\x20to\x20','split','yhEiw','TouchableOpacity','button','YSkyb','BINVA','waOsk','gradientButton','buttonText','StyleSheet','create','rgba(0,0,0,0.7)','center','600','#333','#555','#777','bold','#FFFFFF','100%'];_0x4aec=function(){return _0x1fdfa8;};return _0x4aec();}Object[_0x53aa(0x0)](exports,_0x53aa(0x1),{'value':!![]}),exports[_0x53aa(0x2)]=void 0x0;var _react=_interopRequireWildcard(__ONAIROS_REQ_FUNC__(0x0)),_reactNative=__ONAIROS_REQ_FUNC__(0x1),_reactNativeLinearGradient=_interopRequireDefault(__ONAIROS_REQ_FUNC__(0x2));function _interopRequireDefault(_0x54d846){return _0x54d846&&_0x54d846[_0x53aa(0x1)]?_0x54d846:{'default':_0x54d846};}function _interopRequireWildcard(_0x2cddf9,_0xd2cd25){const _0x4204a6={'hatOj':function(_0x500cbf,_0x5661ea){return _0x500cbf&&_0x5661ea;},'Qiehy':function(_0x9fb6e6,_0x33e28f){return _0x9fb6e6===_0x33e28f;},'PYAvH':function(_0x8db7d7,_0x45a403){return _0x8db7d7!=_0x45a403;},'qomAj':'object','fyDcv':_0x53aa(0x3),'EurEm':'default','RPJbu':function(_0x3069c3,_0x8ec279,_0x509a76,_0x215700){return _0x3069c3(_0x8ec279,_0x509a76,_0x215700);},'HGcOk':function(_0x49568c,_0x53248){return _0x49568c!==_0x53248;},'IQpFz':'sBvxB','ycwqW':function(_0x2b0471,_0x564c7e){return _0x2b0471&&_0x564c7e;},'SoxAn':function(_0x52e576,_0x46db5a){return _0x52e576===_0x46db5a;},'XGSGy':_0x53aa(0x4),'gNRKN':_0x53aa(0x5),'HZkPo':function(_0x1f72ca,_0x5df373,_0x141bf8,_0x40d68b){return _0x1f72ca(_0x5df373,_0x141bf8,_0x40d68b);}};if(_0x4204a6[_0x53aa(0x6)]==typeof WeakMap)var _0x5cc330=new WeakMap(),_0x35a9ba=new WeakMap();return(_interopRequireWildcard=function(_0x3b19d2,_0x159e6a){if(_0x4204a6[_0x53aa(0x7)](_0x4204a6[_0x53aa(0x8)],'hFjzd')){if(_0x4204a6['ycwqW'](!_0x159e6a,_0x3b19d2)&&_0x3b19d2[_0x53aa(0x1)])return _0x3b19d2;var _0x2be81e,_0x197b40,_0x2acaaf={'__proto__':null,'default':_0x3b19d2};if(_0x4204a6[_0x53aa(0x9)](null,_0x3b19d2)||_0x4204a6['qomAj']!=typeof _0x3b19d2&&_0x4204a6[_0x53aa(0xa)](_0x4204a6[_0x53aa(0x6)],typeof _0x3b19d2))return _0x2acaaf;if(_0x2be81e=_0x159e6a?_0x35a9ba:_0x5cc330){if(_0x4204a6['XGSGy']!==_0x4204a6['gNRKN']){if(_0x2be81e[_0x53aa(0xb)](_0x3b19d2))return _0x2be81e[_0x53aa(0xc)](_0x3b19d2);_0x2be81e[_0x53aa(0xd)](_0x3b19d2,_0x2acaaf);}else{if(_0x4204a6['hatOj'](!_0xb9d915,_0x3618f0)&&_0x127d49[_0x53aa(0x1)])return _0x811904;var _0x38e7c5,_0x5adf12,_0x1ab701={'__proto__':null,'default':_0x31f438};if(_0x4204a6[_0x53aa(0xe)](null,_0x18243e)||_0x4204a6[_0x53aa(0xa)](_0x4204a6[_0x53aa(0xf)],typeof _0x1d4f12)&&_0x4204a6[_0x53aa(0x6)]!=typeof _0x4164dd)return _0x1ab701;if(_0x38e7c5=_0x383adf?_0x3d849e:_0x21da9a){if(_0x38e7c5[_0x53aa(0xb)](_0xdb25a7))return _0x38e7c5[_0x53aa(0xc)](_0x4b4b16);_0x38e7c5['set'](_0x294c71,_0x1ab701);}for(const _0x2340fa in _0x802b0c)_0x4204a6[_0x53aa(0x10)]!==_0x2340fa&&{}[_0x53aa(0x11)][_0x53aa(0x12)](_0x5396aa,_0x2340fa)&&((_0x5adf12=(_0x38e7c5=_0x1e17f0[_0x53aa(0x0)])&&_0x5947ce['getOwnPropertyDescriptor'](_0x1d7e3e,_0x2340fa))&&(_0x5adf12['get']||_0x5adf12['set'])?_0x4204a6[_0x53aa(0x13)](_0x38e7c5,_0x1ab701,_0x2340fa,_0x5adf12):_0x1ab701[_0x2340fa]=_0x3a6eff[_0x2340fa]);return _0x1ab701;}}for(const _0x2c19c0 in _0x3b19d2)_0x4204a6[_0x53aa(0x10)]!==_0x2c19c0&&{}[_0x53aa(0x11)][_0x53aa(0x12)](_0x3b19d2,_0x2c19c0)&&((_0x197b40=(_0x2be81e=Object['defineProperty'])&&Object[_0x53aa(0x14)](_0x3b19d2,_0x2c19c0))&&(_0x197b40[_0x53aa(0xc)]||_0x197b40[_0x53aa(0xd)])?_0x4204a6[_0x53aa(0x15)](_0x2be81e,_0x2acaaf,_0x2c19c0,_0x197b40):_0x2acaaf[_0x2c19c0]=_0x3b19d2[_0x2c19c0]);return _0x2acaaf;}else return _0x22118c&&_0x1d29c4[_0x53aa(0x1)]?_0x50b4a:{'default':_0x35d41b};})(_0x2cddf9,_0xd2cd25);}const {width,height}=_reactNative[_0x53aa(0x16)]['get'](_0x53aa(0x17)),SignInMatchAnimation=({email:_0x4a582f,visible:_0x468a24,onComplete:_0x2d52bc})=>{const _0x497e24={'JUwdX':function(_0x144a0a,_0x539dae){return _0x144a0a(_0x539dae);},'XLeIs':_0x53aa(0x18),'NImvC':function(_0xa6c91b,_0x3d83f8){return _0xa6c91b+_0x3d83f8;},'SKJUT':_0x53aa(0x19),'fHHuv':function(_0x233d77,_0x4f603d){return _0x233d77!==_0x4f603d;},'pLQLk':_0x53aa(0x1a),'MzPVB':_0x53aa(0x1b),'iRPDV':function(_0x12a3c1,_0x35e85c,_0x34a55b){return _0x12a3c1(_0x35e85c,_0x34a55b);},'FTAZJ':_0x53aa(0x1c),'yYChf':function(_0x32b45b){return _0x32b45b();},'lOUau':function(_0xbe067b,_0x3f7f7a){return _0xbe067b===_0x3f7f7a;},'hWoLo':_0x53aa(0x1d),'RZvad':_0x53aa(0x1e),'ClKvj':_0x53aa(0x1f),'QNLzu':function(_0x49fc66,_0x17b905){return _0x49fc66===_0x17b905;},'QzXgW':_0x53aa(0x20),'HuYWr':_0x53aa(0x21),'XLFRw':'Matches\x20Found!','AFnYe':_0x53aa(0x22),'iZGrA':'\x20potential\x20connections\x20for\x20you!','fmWRW':_0x53aa(0x23),'yhEiw':_0x53aa(0x24),'YSkyb':_0x53aa(0x25),'BINVA':_0x53aa(0x26),'waOsk':_0x53aa(0x27)},[_0x1dc8b6,_0x3bc418]=(0x0,_react[_0x53aa(0x28)])(_0x497e24['RZvad']),[_0x5d7524,_0x19b717]=(0x0,_react[_0x53aa(0x28)])(0x0),_0x1aac7a=(0x0,_react[_0x53aa(0x28)])(new _reactNative[(_0x53aa(0x29))]['Value'](0x0))[0x0],_0x1e6245=(0x0,_react[_0x53aa(0x28)])(new _reactNative['Animated']['Value'](0.9))[0x0];(0x0,_react[_0x53aa(0x2a)])(()=>{const _0x5a11e2={'Gxoth':function(_0x35f7d5,_0x2f84dd){return _0x497e24[_0x53aa(0x2b)](_0x35f7d5,_0x2f84dd);},'EBjRw':_0x497e24[_0x53aa(0x2c)],'KbBOR':function(_0x45ea44,_0x1298b3){return _0x497e24[_0x53aa(0x2d)](_0x45ea44,_0x1298b3);},'xXwQK':function(_0x9b3d8c,_0x1573cd){return _0x9b3d8c*_0x1573cd;},'yydtR':_0x497e24[_0x53aa(0x2e)]};if(_0x468a24){if(_0x497e24[_0x53aa(0x2f)](_0x497e24['pLQLk'],_0x497e24[_0x53aa(0x30)]))_reactNative[_0x53aa(0x29)]['parallel']([_reactNative[_0x53aa(0x29)][_0x53aa(0x31)](_0x1aac7a,{'toValue':0x1,'duration':0x258,'useNativeDriver':!![]}),_reactNative['Animated'][_0x53aa(0x31)](_0x1e6245,{'toValue':0x1,'duration':0x258,'useNativeDriver':!![]})])[_0x53aa(0x32)](),_0x497e24['iRPDV'](setTimeout,()=>{const _0x8ae0f8={'rOQHk':function(_0x5ddaeb,_0x3c20cd){return _0x5a11e2[_0x53aa(0x33)](_0x5ddaeb,_0x3c20cd);},'gAiuj':_0x5a11e2['EBjRw']},_0x5414f9=_0x5a11e2[_0x53aa(0x34)](Math['floor'](_0x5a11e2[_0x53aa(0x35)](Math['random'](),0x6)),0x3);_0x19b717(_0x5414f9),_0x5a11e2[_0x53aa(0x33)](_0x3bc418,_0x5a11e2['yydtR']),setTimeout(()=>{_0x8ae0f8['rOQHk'](_0x3bc418,_0x8ae0f8[_0x53aa(0x36)]);},0xbb8);},0x9c4);else{if(_0x35984d[_0x53aa(0xb)](_0x16c5c9))return _0x598b4c[_0x53aa(0xc)](_0x17c78a);_0x1b2b7b['set'](_0x40e16d,_0x1c35e8);}}},[_0x468a24,_0x1aac7a,_0x1e6245]);const _0xa53c90=()=>{const _0x51f603={'kgBim':function(_0x741eb9){return _0x741eb9();},'EAOme':function(_0x873b2,_0x3e57aa){return _0x497e24[_0x53aa(0x2b)](_0x873b2,_0x3e57aa);},'ZycuQ':_0x497e24['XLeIs']};_0x497e24['lOUau'](_0x53aa(0x37),_0x497e24[_0x53aa(0x38)])?_0x51f603[_0x53aa(0x39)](_0x33e882):_reactNative[_0x53aa(0x29)][_0x53aa(0x3a)]([_reactNative[_0x53aa(0x29)][_0x53aa(0x31)](_0x1aac7a,{'toValue':0x0,'duration':0x190,'useNativeDriver':!![]}),_reactNative[_0x53aa(0x29)][_0x53aa(0x31)](_0x1e6245,{'toValue':0.9,'duration':0x190,'useNativeDriver':!![]})])[_0x53aa(0x32)](()=>{_0x497e24[_0x53aa(0x2f)]('tLPYw',_0x497e24[_0x53aa(0x3b)])?_0x497e24[_0x53aa(0x3c)](_0x2d52bc):_0x51f603[_0x53aa(0x3d)](_0x3b934e,_0x51f603[_0x53aa(0x3e)]);});};if(!_0x468a24)return null;return _react['default']['createElement'](_reactNative[_0x53aa(0x3f)],{'visible':_0x468a24,'transparent':!![],'animationType':_0x497e24[_0x53aa(0x40)]},_react[_0x53aa(0x2)][_0x53aa(0x41)](_reactNative[_0x53aa(0x42)],{'style':styles[_0x53aa(0x43)]},_react[_0x53aa(0x2)][_0x53aa(0x41)](_reactNative[_0x53aa(0x29)][_0x53aa(0x42)],{'style':[styles['content'],{'opacity':_0x1aac7a,'transform':[{'scale':_0x1e6245}]}]},_0x497e24[_0x53aa(0x44)](_0x1dc8b6,_0x497e24['RZvad'])&&_react[_0x53aa(0x2)][_0x53aa(0x41)](_react[_0x53aa(0x2)][_0x53aa(0x45)],null,_react['default'][_0x53aa(0x41)](_reactNative[_0x53aa(0x46)],{'style':styles[_0x53aa(0x47)]},_0x497e24[_0x53aa(0x48)]),_react[_0x53aa(0x2)]['createElement'](_reactNative[_0x53aa(0x49)],{'size':_0x53aa(0x4a),'color':_0x53aa(0x26),'style':styles[_0x53aa(0x4b)]}),_react['default'][_0x53aa(0x41)](_reactNative['Text'],{'style':styles['message']},_0x497e24[_0x53aa(0x4c)])),_0x1dc8b6===_0x497e24[_0x53aa(0x2e)]&&_react['default'][_0x53aa(0x41)](_react['default'][_0x53aa(0x45)],null,_react[_0x53aa(0x2)][_0x53aa(0x41)](_reactNative['Text'],{'style':styles['title']},_0x497e24[_0x53aa(0x4d)]),_react[_0x53aa(0x2)]['createElement'](_reactNative[_0x53aa(0x42)],{'style':styles[_0x53aa(0x4e)]},_react['default'][_0x53aa(0x41)](_reactNative['Text'],{'style':styles[_0x53aa(0x4f)]},_0x5d7524)),_react[_0x53aa(0x2)]['createElement'](_reactNative[_0x53aa(0x46)],{'style':styles[_0x53aa(0x50)]},_0x497e24[_0x53aa(0x51)],_0x5d7524,_0x497e24[_0x53aa(0x52)]),_react[_0x53aa(0x2)][_0x53aa(0x41)](_reactNative['Text'],{'style':styles[_0x53aa(0x53)]},_0x497e24['fmWRW'])),_0x497e24[_0x53aa(0x44)](_0x1dc8b6,_0x53aa(0x18))&&_react[_0x53aa(0x2)][_0x53aa(0x41)](_react[_0x53aa(0x2)][_0x53aa(0x45)],null,_react[_0x53aa(0x2)]['createElement'](_reactNative[_0x53aa(0x46)],{'style':styles['title']},_0x53aa(0x54)),_react[_0x53aa(0x2)][_0x53aa(0x41)](_reactNative['Text'],{'style':styles[_0x53aa(0x50)]},_0x53aa(0x55),_0x4a582f[_0x53aa(0x56)]('@')[0x0],_0x497e24[_0x53aa(0x57)]),_react['default'][_0x53aa(0x41)](_reactNative[_0x53aa(0x58)],{'style':styles[_0x53aa(0x59)],'onPress':_0xa53c90},_react[_0x53aa(0x2)][_0x53aa(0x41)](_reactNativeLinearGradient['default'],{'colors':[_0x497e24[_0x53aa(0x5a)],_0x497e24[_0x53aa(0x5b)],_0x497e24[_0x53aa(0x5c)]],'start':{'x':0x0,'y':0x0},'end':{'x':0x1,'y':0x0},'style':styles[_0x53aa(0x5d)]},_react['default'][_0x53aa(0x41)](_reactNative[_0x53aa(0x46)],{'style':styles[_0x53aa(0x5e)]},'Continue')))))));},styles=_reactNative[_0x53aa(0x5f)][_0x53aa(0x60)]({'container':{'flex':0x1,'backgroundColor':_0x53aa(0x61),'justifyContent':_0x53aa(0x62),'alignItems':_0x53aa(0x62)},'content':{'width':width*0.85,'backgroundColor':'#FFFFFF','borderRadius':0x14,'padding':0x18,'alignItems':'center','shadowColor':'#000','shadowOffset':{'width':0x0,'height':0x4},'shadowOpacity':0.3,'shadowRadius':0x8,'elevation':0xa},'title':{'fontSize':0x18,'fontWeight':_0x53aa(0x63),'color':_0x53aa(0x64),'marginBottom':0x14,'textAlign':'center'},'loader':{'marginVertical':0x18},'message':{'fontSize':0x12,'color':_0x53aa(0x65),'textAlign':_0x53aa(0x62),'marginBottom':0x10,'lineHeight':0x18},'subMessage':{'fontSize':0x10,'color':_0x53aa(0x66),'textAlign':_0x53aa(0x62),'marginTop':0x8},'matchCircle':{'width':0x64,'height':0x64,'borderRadius':0x32,'backgroundColor':_0x53aa(0x26),'justifyContent':_0x53aa(0x62),'alignItems':'center','marginVertical':0x14},'matchCount':{'fontSize':0x28,'fontWeight':_0x53aa(0x67),'color':_0x53aa(0x68)},'button':{'width':_0x53aa(0x69),'marginTop':0x18,'borderRadius':0x8,'overflow':'hidden'},'gradientButton':{'paddingVertical':0xe,'alignItems':_0x53aa(0x62),'justifyContent':_0x53aa(0x62)},'buttonText':{'color':_0x53aa(0x64),'fontSize':0x10,'fontWeight':_0x53aa(0x63)}});function _0x53aa(_0x4aec63,_0x53aac8){_0x4aec63=_0x4aec63-0x0;const _0x4e9aea=_0x4aec();let _0x33a01d=_0x4e9aea[_0x4aec63];return _0x33a01d;}var _default=exports[_0x53aa(0x2)]=SignInMatchAnimation;
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _reactNativeLinearGradient = _interopRequireDefault(require("react-native-linear-gradient"));
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
|
+
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); }
|
|
12
|
+
const {
|
|
13
|
+
width,
|
|
14
|
+
height
|
|
15
|
+
} = _reactNative.Dimensions.get('window');
|
|
16
|
+
const SignInMatchAnimation = ({
|
|
17
|
+
email,
|
|
18
|
+
visible,
|
|
19
|
+
onComplete
|
|
20
|
+
}) => {
|
|
21
|
+
const [step, setStep] = (0, _react.useState)('searching');
|
|
22
|
+
const [matchCount, setMatchCount] = (0, _react.useState)(0);
|
|
23
|
+
const fadeAnim = (0, _react.useState)(new _reactNative.Animated.Value(0))[0];
|
|
24
|
+
const scaleAnim = (0, _react.useState)(new _reactNative.Animated.Value(0.9))[0];
|
|
25
|
+
(0, _react.useEffect)(() => {
|
|
26
|
+
if (visible) {
|
|
27
|
+
// Start with fade in animation
|
|
28
|
+
_reactNative.Animated.parallel([_reactNative.Animated.timing(fadeAnim, {
|
|
29
|
+
toValue: 1,
|
|
30
|
+
duration: 600,
|
|
31
|
+
useNativeDriver: true
|
|
32
|
+
}), _reactNative.Animated.timing(scaleAnim, {
|
|
33
|
+
toValue: 1,
|
|
34
|
+
duration: 600,
|
|
35
|
+
useNativeDriver: true
|
|
36
|
+
})]).start();
|
|
37
|
+
|
|
38
|
+
// Simulate search process
|
|
39
|
+
setTimeout(() => {
|
|
40
|
+
// Generate random match count (3-8)
|
|
41
|
+
const randomMatchCount = Math.floor(Math.random() * 6) + 3;
|
|
42
|
+
setMatchCount(randomMatchCount);
|
|
43
|
+
setStep('found');
|
|
44
|
+
|
|
45
|
+
// Auto-proceed to complete after 3 seconds
|
|
46
|
+
setTimeout(() => {
|
|
47
|
+
setStep('complete');
|
|
48
|
+
}, 3000);
|
|
49
|
+
}, 2500);
|
|
50
|
+
}
|
|
51
|
+
}, [visible, fadeAnim, scaleAnim]);
|
|
52
|
+
const handleContinue = () => {
|
|
53
|
+
// Fade out animation before calling onComplete
|
|
54
|
+
_reactNative.Animated.parallel([_reactNative.Animated.timing(fadeAnim, {
|
|
55
|
+
toValue: 0,
|
|
56
|
+
duration: 400,
|
|
57
|
+
useNativeDriver: true
|
|
58
|
+
}), _reactNative.Animated.timing(scaleAnim, {
|
|
59
|
+
toValue: 0.9,
|
|
60
|
+
duration: 400,
|
|
61
|
+
useNativeDriver: true
|
|
62
|
+
})]).start(() => {
|
|
63
|
+
onComplete();
|
|
64
|
+
});
|
|
65
|
+
};
|
|
66
|
+
if (!visible) return null;
|
|
67
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.Modal, {
|
|
68
|
+
visible: visible,
|
|
69
|
+
transparent: true,
|
|
70
|
+
animationType: "none"
|
|
71
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
72
|
+
style: styles.container
|
|
73
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Animated.View, {
|
|
74
|
+
style: [styles.content, {
|
|
75
|
+
opacity: fadeAnim,
|
|
76
|
+
transform: [{
|
|
77
|
+
scale: scaleAnim
|
|
78
|
+
}]
|
|
79
|
+
}]
|
|
80
|
+
}, step === 'searching' && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
81
|
+
style: styles.title
|
|
82
|
+
}, "Finding Your Matches"), /*#__PURE__*/_react.default.createElement(_reactNative.ActivityIndicator, {
|
|
83
|
+
size: "large",
|
|
84
|
+
color: "#E9C46A",
|
|
85
|
+
style: styles.loader
|
|
86
|
+
}), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
87
|
+
style: styles.message
|
|
88
|
+
}, "Searching for potential connections based on your profile...")), step === 'found' && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
89
|
+
style: styles.title
|
|
90
|
+
}, "Matches Found!"), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
91
|
+
style: styles.matchCircle
|
|
92
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
93
|
+
style: styles.matchCount
|
|
94
|
+
}, matchCount)), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
95
|
+
style: styles.message
|
|
96
|
+
}, "We've found ", matchCount, " potential connections for you!"), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
97
|
+
style: styles.subMessage
|
|
98
|
+
}, "Complete your profile to see who they are.")), step === 'complete' && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
99
|
+
style: styles.title
|
|
100
|
+
}, "Welcome to Enoch!"), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
101
|
+
style: styles.message
|
|
102
|
+
}, "We'll send match notifications to ", email.split('@')[0], "@..."), /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
|
|
103
|
+
style: styles.button,
|
|
104
|
+
onPress: handleContinue
|
|
105
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNativeLinearGradient.default, {
|
|
106
|
+
colors: ['#f5e7c1', '#E9C46A', '#DDB957'],
|
|
107
|
+
start: {
|
|
108
|
+
x: 0,
|
|
109
|
+
y: 0
|
|
110
|
+
},
|
|
111
|
+
end: {
|
|
112
|
+
x: 1,
|
|
113
|
+
y: 0
|
|
114
|
+
},
|
|
115
|
+
style: styles.gradientButton
|
|
116
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
117
|
+
style: styles.buttonText
|
|
118
|
+
}, "Continue")))))));
|
|
119
|
+
};
|
|
120
|
+
const styles = _reactNative.StyleSheet.create({
|
|
121
|
+
container: {
|
|
122
|
+
flex: 1,
|
|
123
|
+
backgroundColor: 'rgba(0,0,0,0.7)',
|
|
124
|
+
justifyContent: 'center',
|
|
125
|
+
alignItems: 'center'
|
|
126
|
+
},
|
|
127
|
+
content: {
|
|
128
|
+
width: width * 0.85,
|
|
129
|
+
backgroundColor: '#FFFFFF',
|
|
130
|
+
borderRadius: 20,
|
|
131
|
+
padding: 24,
|
|
132
|
+
alignItems: 'center',
|
|
133
|
+
shadowColor: '#000',
|
|
134
|
+
shadowOffset: {
|
|
135
|
+
width: 0,
|
|
136
|
+
height: 4
|
|
137
|
+
},
|
|
138
|
+
shadowOpacity: 0.3,
|
|
139
|
+
shadowRadius: 8,
|
|
140
|
+
elevation: 10
|
|
141
|
+
},
|
|
142
|
+
title: {
|
|
143
|
+
fontSize: 24,
|
|
144
|
+
fontWeight: '600',
|
|
145
|
+
color: '#333',
|
|
146
|
+
marginBottom: 20,
|
|
147
|
+
textAlign: 'center'
|
|
148
|
+
},
|
|
149
|
+
loader: {
|
|
150
|
+
marginVertical: 24
|
|
151
|
+
},
|
|
152
|
+
message: {
|
|
153
|
+
fontSize: 18,
|
|
154
|
+
color: '#555',
|
|
155
|
+
textAlign: 'center',
|
|
156
|
+
marginBottom: 16,
|
|
157
|
+
lineHeight: 24
|
|
158
|
+
},
|
|
159
|
+
subMessage: {
|
|
160
|
+
fontSize: 16,
|
|
161
|
+
color: '#777',
|
|
162
|
+
textAlign: 'center',
|
|
163
|
+
marginTop: 8
|
|
164
|
+
},
|
|
165
|
+
matchCircle: {
|
|
166
|
+
width: 100,
|
|
167
|
+
height: 100,
|
|
168
|
+
borderRadius: 50,
|
|
169
|
+
backgroundColor: '#E9C46A',
|
|
170
|
+
justifyContent: 'center',
|
|
171
|
+
alignItems: 'center',
|
|
172
|
+
marginVertical: 20
|
|
173
|
+
},
|
|
174
|
+
matchCount: {
|
|
175
|
+
fontSize: 40,
|
|
176
|
+
fontWeight: 'bold',
|
|
177
|
+
color: '#FFFFFF'
|
|
178
|
+
},
|
|
179
|
+
button: {
|
|
180
|
+
width: '100%',
|
|
181
|
+
marginTop: 24,
|
|
182
|
+
borderRadius: 8,
|
|
183
|
+
overflow: 'hidden'
|
|
184
|
+
},
|
|
185
|
+
gradientButton: {
|
|
186
|
+
paddingVertical: 14,
|
|
187
|
+
alignItems: 'center',
|
|
188
|
+
justifyContent: 'center'
|
|
189
|
+
},
|
|
190
|
+
buttonText: {
|
|
191
|
+
color: '#333',
|
|
192
|
+
fontSize: 16,
|
|
193
|
+
fontWeight: '600'
|
|
194
|
+
}
|
|
195
|
+
});
|
|
196
|
+
var _default = exports.default = SignInMatchAnimation;
|
|
197
|
+
//# sourceMappingURL=SignInMatchAnimation.js.map
|
|
@@ -1,12 +1,345 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
Object[_0x5e5f(0x0)](exports,_0x5e5f(0x1),{'value':!![]}),exports[_0x5e5f(0x2)]=exports['SignInStep']=void 0x0;var _react=_interopRequireWildcard(__ONAIROS_REQ_FUNC__(0x0)),_reactNative=__ONAIROS_REQ_FUNC__(0x1),_theme=__ONAIROS_REQ_FUNC__(0x2),_EmailInput=_interopRequireDefault(__ONAIROS_REQ_FUNC__(0x3)),_GoogleButton=_interopRequireDefault(__ONAIROS_REQ_FUNC__(0x4)),_PrimaryButton=_interopRequireDefault(__ONAIROS_REQ_FUNC__(0x5));function _interopRequireDefault(_0x5ec167){return _0x5ec167&&_0x5ec167[_0x5e5f(0x1)]?_0x5ec167:{'default':_0x5ec167};}function _interopRequireWildcard(_0x3bb8ac,_0x447d2b){const _0x5acb14={'oQeIJ':function(_0x4e30ce,_0x17f781){return _0x4e30ce===_0x17f781;},'BVpxy':_0x5e5f(0x3),'BGGOl':'keyboardDidHide','UfMyc':function(_0x4c9db4,_0x4649fd){return _0x4c9db4&&_0x4649fd;},'YoleR':function(_0x2e6fe3,_0x542d92){return _0x2e6fe3===_0x542d92;},'xtTHy':function(_0x2a85aa,_0x531a46){return _0x2a85aa!=_0x531a46;},'KmFFY':_0x5e5f(0x4),'Tjdgs':function(_0x578412,_0xbc136f){return _0x578412!==_0xbc136f;},'VWJLF':_0x5e5f(0x5),'tvSyB':function(_0x413840,_0x34ca17,_0x122e68,_0x123725){return _0x413840(_0x34ca17,_0x122e68,_0x123725);},'rjidr':function(_0x98d7ea,_0x234f98){return _0x98d7ea==_0x234f98;}};if(_0x5acb14[_0x5e5f(0x6)](_0x5acb14[_0x5e5f(0x7)],typeof WeakMap))var _0xdfab83=new WeakMap(),_0x124a38=new WeakMap();return(_interopRequireWildcard=function(_0x1ba15c,_0x1622b3){const _0x52512d={'vJbue':function(_0x2ff023,_0x13a19e){return _0x5acb14[_0x5e5f(0x8)](_0x2ff023,_0x13a19e);},'IMIDP':function(_0x2c00a8,_0x366bff){return _0x5acb14['oQeIJ'](_0x2c00a8,_0x366bff);},'UCrTV':_0x5acb14['BVpxy'],'woKeU':_0x5acb14[_0x5e5f(0x9)]};if(_0x5acb14[_0x5e5f(0xa)](!_0x1622b3,_0x1ba15c)&&_0x1ba15c['__esModule'])return _0x1ba15c;var _0x1a4d81,_0x11c0e7,_0x13d15d={'__proto__':null,'default':_0x1ba15c};if(_0x5acb14[_0x5e5f(0xb)](null,_0x1ba15c)||_0x5acb14[_0x5e5f(0xc)](_0x5e5f(0xd),typeof _0x1ba15c)&&_0x5acb14[_0x5e5f(0x7)]!=typeof _0x1ba15c)return _0x13d15d;if(_0x1a4d81=_0x1622b3?_0x124a38:_0xdfab83){if(_0x5acb14[_0x5e5f(0xe)](_0x5e5f(0xf),_0x5acb14[_0x5e5f(0x10)])){if(_0x1a4d81['has'](_0x1ba15c))return _0x1a4d81[_0x5e5f(0x11)](_0x1ba15c);_0x1a4d81[_0x5e5f(0x12)](_0x1ba15c,_0x13d15d);}else{const _0x1067ca=_0x173e3b[_0x5e5f(0x13)]['addListener'](_0x52512d[_0x5e5f(0x14)],()=>_0x5d22f2(!![])),_0x41d01d=_0x4e0b9b[_0x5e5f(0x13)][_0x5e5f(0x15)](_0x52512d[_0x5e5f(0x16)],()=>_0x1181f2(![]));return()=>{_0x52512d[_0x5e5f(0x17)](_0x41d01d,null)||_0x52512d[_0x5e5f(0x17)](_0x41d01d,void 0x0)||_0x41d01d[_0x5e5f(0x18)](),_0x52512d[_0x5e5f(0x17)](_0x1067ca,null)||_0x52512d['IMIDP'](_0x1067ca,void 0x0)||_0x1067ca[_0x5e5f(0x18)]();};}}for(const _0x1de02f in _0x1ba15c)_0x5e5f(0x2)!==_0x1de02f&&{}[_0x5e5f(0x19)][_0x5e5f(0x1a)](_0x1ba15c,_0x1de02f)&&((_0x11c0e7=(_0x1a4d81=Object[_0x5e5f(0x0)])&&Object[_0x5e5f(0x1b)](_0x1ba15c,_0x1de02f))&&(_0x11c0e7['get']||_0x11c0e7[_0x5e5f(0x12)])?_0x5acb14['tvSyB'](_0x1a4d81,_0x13d15d,_0x1de02f,_0x11c0e7):_0x13d15d[_0x1de02f]=_0x1ba15c[_0x1de02f]);return _0x13d15d;})(_0x3bb8ac,_0x447d2b);}const VALID_TLDS=new Set(['com','org',_0x5e5f(0x1c),_0x5e5f(0x1d),_0x5e5f(0x1e),'mil','int','io','co','ai',_0x5e5f(0x1f),_0x5e5f(0x20),_0x5e5f(0x21),_0x5e5f(0x22),_0x5e5f(0x23),'web','info','biz','me','tv','cc',_0x5e5f(0x24),'uk','us','ca','au','de','fr','it','es','nl','be','ch','at','se','no','dk','fi','jp','cn','kr','in','br','mx','ar','ru','pl','cz','ie','nz','za','sg','hk','tw','pt','gr','tr','il','ae','sa','eg','ng','ke','gh','ph','id','my','th','vn',_0x5e5f(0x25),_0x5e5f(0x26),'co.nz',_0x5e5f(0x27),_0x5e5f(0x28),'co.jp',_0x5e5f(0x29),_0x5e5f(0x2a),_0x5e5f(0x2b),_0x5e5f(0x2c),_0x5e5f(0x2d),_0x5e5f(0x2e),'edu.au']),INVALID_TLDS=new Set([_0x5e5f(0x2f),_0x5e5f(0x30),_0x5e5f(0x31),_0x5e5f(0x32),'cm',_0x5e5f(0x33),_0x5e5f(0x34),'om',_0x5e5f(0x35),_0x5e5f(0x36),_0x5e5f(0x37),'ogr','og',_0x5e5f(0x38),_0x5e5f(0x39),'rg',_0x5e5f(0x3a),'ne',_0x5e5f(0x3b),_0x5e5f(0x3c),_0x5e5f(0x3d),'oi',_0x5e5f(0x3e),_0x5e5f(0x3f),_0x5e5f(0x40),'gmial',_0x5e5f(0x41),_0x5e5f(0x42),_0x5e5f(0x43),_0x5e5f(0x44),_0x5e5f(0x45),'outlokk',_0x5e5f(0x46),_0x5e5f(0x47),_0x5e5f(0x48),_0x5e5f(0x49),_0x5e5f(0x4a),_0x5e5f(0x4b)]),validateEmail=_0x46d5c4=>{const _0x1f9844={'Dqpjg':'\x20Did\x20you\x20mean\x20.org?','DnHMV':function(_0x18d2a0,_0x458b25){return _0x18d2a0&&_0x458b25;},'vKRZa':function(_0x4e9d0d,_0x1c842c){return _0x4e9d0d===_0x1c842c;},'nZXJy':_0x5e5f(0x4),'aSeWQ':function(_0x5b7a45,_0xf26a15){return _0x5b7a45!==_0xf26a15;},'WPyzX':function(_0x59c107,_0x25d57f,_0x2901e8,_0x2b88d1){return _0x59c107(_0x25d57f,_0x2901e8,_0x2b88d1);},'lwsjv':function(_0xf0a6b9,_0x21b9b8){return _0xf0a6b9&&_0x21b9b8;},'qIbkX':function(_0x12acb,_0x257ac8){return _0x12acb!=_0x257ac8;},'Zklic':'object','ygrAh':function(_0x80b96c,_0x331bfd){return _0x80b96c!=_0x331bfd;},'hENSs':_0x5e5f(0x2),'FnFoh':function(_0x36adb4,_0x151b66,_0x1c540b,_0x5ad692){return _0x36adb4(_0x151b66,_0x1c540b,_0x5ad692);},'EZHjG':_0x5e5f(0x4c),'CdXFG':'Please\x20enter\x20a\x20valid\x20email\x20address','bxsbC':function(_0x3e53ca,_0x1fb129){return _0x3e53ca+_0x1fb129;},'ehAen':function(_0x238887,_0x423e50){return _0x238887<_0x423e50;},'MwHai':function(_0x424154,_0xc0a221){return _0x424154-_0xc0a221;},'KoIgn':function(_0x4dd861,_0x5383f4){return _0x4dd861>=_0x5383f4;},'PkjAa':function(_0x2acff1,_0x35593d){return _0x2acff1===_0x35593d;},'mIpOT':'con','ZlZLS':_0x5e5f(0x30),'OLRKE':_0x5e5f(0x31),'SLoVI':_0x5e5f(0x32),'tbgwm':_0x5e5f(0x33),'rHvRe':function(_0x3bc63a,_0x3ed692){return _0x3bc63a===_0x3ed692;},'oXnKZ':'comm','kdpzw':_0x5e5f(0x37),'ZrZYn':_0x5e5f(0x4d),'cVxVg':_0x5e5f(0x4e),'baHJE':'\x20Did\x20you\x20mean\x20.com?','xmdVH':function(_0x12bb7,_0x6d3d02){return _0x12bb7===_0x6d3d02;},'SkxBa':_0x5e5f(0x39),'ZrnfJ':function(_0x1f6f29,_0x434209){return _0x1f6f29===_0x434209;},'eHoUp':function(_0x519619,_0x10229d){return _0x519619===_0x10229d;},'LZjNF':'nett','MNsEA':_0x5e5f(0x4f),'YOICc':'ioo','uRtsQ':function(_0x22e6ce,_0x5ea398){return _0x22e6ce===_0x5ea398;},'bKals':_0x5e5f(0x3f),'bXQOv':_0x5e5f(0x50),'wFUAF':_0x5e5f(0x51),'UedcC':function(_0x2b2a9f,_0x451edd){return _0x2b2a9f<_0x451edd;},'LEuXE':_0x5e5f(0x52),'KkRRJ':'gmail','FDFmB':_0x5e5f(0x53),'cmsts':'yahoo','LubOi':_0x5e5f(0x54),'lEpvd':'hotmail','Rqagz':'aol','KsIJM':_0x5e5f(0x55),'vfmeW':'zoho','mCFAh':_0x5e5f(0x56),'eRFZo':function(_0x2c7ba1,_0x3770af){return _0x2c7ba1!==_0x3770af;},'xsKPw':_0x5e5f(0x57),'LDOvx':_0x5e5f(0x58),'TUIgS':_0x5e5f(0x59),'HIuuQ':_0x5e5f(0x5a),'GBzji':'hotmail.co.uk','Hifgy':_0x5e5f(0x5b),'VhBry':'mQZhK'},_0x541a55=_0x46d5c4[_0x5e5f(0x5c)]()[_0x5e5f(0x5d)](),_0x213668=/^[^\s@]+@[^\s@]+\.[^\s@]+$/;if(!_0x213668['test'](_0x541a55))return _0x1f9844['aSeWQ'](_0x1f9844['EZHjG'],_0x1f9844[_0x5e5f(0x5e)])?_0x23622b&&_0x796ec6[_0x5e5f(0x1)]?_0x19dcd4:{'default':_0x258d9f}:{'isValid':![],'error':_0x1f9844['CdXFG']};const _0x11a00a=_0x541a55[_0x5e5f(0x5f)]('@'),_0x5c5007=_0x541a55[_0x5e5f(0x60)](_0x1f9844[_0x5e5f(0x61)](_0x11a00a,0x1)),_0x39f154=_0x5c5007[_0x5e5f(0x62)]('.');if(_0x1f9844['ehAen'](_0x39f154[_0x5e5f(0x63)],0x2))return{'isValid':![],'error':_0x1f9844[_0x5e5f(0x64)]};const _0x531d5f=_0x39f154[_0x1f9844[_0x5e5f(0x65)](_0x39f154['length'],0x1)],_0x246c22=_0x1f9844[_0x5e5f(0x66)](_0x39f154['length'],0x2)?_0x39f154[_0x1f9844['MwHai'](_0x39f154[_0x5e5f(0x63)],0x2)]+'.'+_0x531d5f:'';if(INVALID_TLDS[_0x5e5f(0x67)](_0x531d5f)){let _0x2e0b04='';if(_0x1f9844['PkjAa'](_0x531d5f,_0x1f9844['mIpOT'])||_0x531d5f===_0x1f9844[_0x5e5f(0x68)]||_0x1f9844[_0x5e5f(0x69)](_0x531d5f,_0x1f9844[_0x5e5f(0x6a)])||_0x1f9844[_0x5e5f(0x69)](_0x531d5f,_0x1f9844[_0x5e5f(0x6b)])||_0x1f9844['PkjAa'](_0x531d5f,_0x1f9844[_0x5e5f(0x6c)])||_0x1f9844[_0x5e5f(0x6d)](_0x531d5f,_0x1f9844['oXnKZ'])||_0x531d5f===_0x5e5f(0x36)||_0x1f9844[_0x5e5f(0x6d)](_0x531d5f,_0x1f9844[_0x5e5f(0x6e)])){if(_0x1f9844[_0x5e5f(0x6f)]===_0x1f9844[_0x5e5f(0x70)])return{'isValid':![],'error':_0x5e5f(0x71)+_0x402077+_0x5e5f(0x72)};else _0x2e0b04=_0x1f9844[_0x5e5f(0x73)];}else{if(_0x1f9844['PkjAa'](_0x531d5f,'ogr')||_0x531d5f==='og'||_0x1f9844[_0x5e5f(0x6d)](_0x531d5f,_0x5e5f(0x38))||_0x1f9844[_0x5e5f(0x74)](_0x531d5f,_0x1f9844[_0x5e5f(0x75)]))_0x2e0b04=_0x1f9844['Dqpjg'];else{if(_0x531d5f===_0x5e5f(0x3a)||_0x1f9844['ZrnfJ'](_0x531d5f,'ne')||_0x1f9844[_0x5e5f(0x76)](_0x531d5f,_0x1f9844[_0x5e5f(0x77)])||_0x531d5f===_0x5e5f(0x3c))_0x2e0b04=_0x1f9844[_0x5e5f(0x78)];else(_0x531d5f==='oi'||_0x531d5f===_0x1f9844[_0x5e5f(0x79)]||_0x1f9844[_0x5e5f(0x7a)](_0x531d5f,_0x1f9844['bKals']))&&(_0x1f9844[_0x5e5f(0x7b)](_0x1f9844[_0x5e5f(0x7c)],_0x5e5f(0x7d))?_0x2e0b04=_0x1f9844[_0x5e5f(0x7e)]:_0x52cef6=_0x1f9844[_0x5e5f(0x7f)]);}}return{'isValid':![],'error':_0x5e5f(0x71)+_0x531d5f+').'+_0x2e0b04};}if(_0x1f9844[_0x5e5f(0x80)](_0x531d5f[_0x5e5f(0x63)],0x2)){if(_0x1f9844[_0x5e5f(0x81)]===_0x1f9844['LEuXE'])return{'isValid':![],'error':_0x1f9844[_0x5e5f(0x64)]};else{if(_0x1f9844[_0x5e5f(0x82)](!_0x51cba3,_0x31be9c)&&_0xcfe856[_0x5e5f(0x1)])return _0xcff333;var _0x38deed,_0x466c6a,_0x5bb425={'__proto__':null,'default':_0x4ba6cb};if(_0x1f9844[_0x5e5f(0x69)](null,_0x24f865)||'object'!=typeof _0x544db1&&_0x1f9844['nZXJy']!=typeof _0x3077d2)return _0x5bb425;if(_0x38deed=_0x325a7f?_0x436f2e:_0x3c9798){if(_0x38deed[_0x5e5f(0x67)](_0x2d702e))return _0x38deed[_0x5e5f(0x11)](_0x1260ea);_0x38deed[_0x5e5f(0x12)](_0x5a0300,_0x5bb425);}for(const _0x4d93e5 in _0x29daa1)_0x1f9844['aSeWQ'](_0x5e5f(0x2),_0x4d93e5)&&{}[_0x5e5f(0x19)]['call'](_0x32acbd,_0x4d93e5)&&((_0x466c6a=(_0x38deed=_0x51cc35[_0x5e5f(0x0)])&&_0x103d20['getOwnPropertyDescriptor'](_0x4afb78,_0x4d93e5))&&(_0x466c6a[_0x5e5f(0x11)]||_0x466c6a[_0x5e5f(0x12)])?_0x1f9844[_0x5e5f(0x83)](_0x38deed,_0x5bb425,_0x4d93e5,_0x466c6a):_0x5bb425[_0x4d93e5]=_0x214138[_0x4d93e5]);return _0x5bb425;}}const _0x1f65d5=VALID_TLDS['has'](_0x531d5f)||VALID_TLDS[_0x5e5f(0x67)](_0x246c22);if(!_0x1f65d5&&_0x531d5f['length']<=0x2)return{'isValid':![],'error':'Invalid\x20email\x20domain\x20(.'+_0x531d5f+_0x5e5f(0x72)};const _0x340f75=_0x39f154[_0x5e5f(0x84)](0x0,-0x1)[_0x5e5f(0x85)]('.'),_0x40b9ab={'gmai':_0x1f9844[_0x5e5f(0x86)],'gmial':_0x1f9844[_0x5e5f(0x86)],'gmil':_0x1f9844[_0x5e5f(0x86)],'gmal':_0x1f9844[_0x5e5f(0x86)],'gamil':_0x5e5f(0x87),'outlok':_0x1f9844['FDFmB'],'outloo':_0x1f9844[_0x5e5f(0x88)],'outlokk':_0x1f9844[_0x5e5f(0x88)],'yahooo':'yahoo','yaho':_0x5e5f(0x89),'yhoo':_0x1f9844['cmsts'],'hotmai':_0x5e5f(0x8a),'hotmal':_0x5e5f(0x8a),'hotmial':_0x5e5f(0x8a),'iclod':_0x5e5f(0x54),'iclould':_0x1f9844[_0x5e5f(0x8b)]};if(_0x40b9ab[_0x340f75])return{'isValid':![],'error':_0x5e5f(0x8c)+_0x40b9ab[_0x340f75]+'.'+_0x531d5f+'?'};const _0x57845f=[_0x1f9844[_0x5e5f(0x86)],_0x1f9844['cmsts'],_0x1f9844[_0x5e5f(0x8d)],_0x1f9844[_0x5e5f(0x88)],_0x1f9844[_0x5e5f(0x8b)],_0x1f9844[_0x5e5f(0x8e)],_0x1f9844[_0x5e5f(0x8f)],_0x1f9844[_0x5e5f(0x90)]],_0x560182={'gmail':_0x1f9844['mCFAh'],'yahoo':_0x1f9844[_0x5e5f(0x91)],'hotmail':_0x1f9844['mCFAh'],'outlook':_0x1f9844[_0x5e5f(0x91)],'icloud':_0x1f9844[_0x5e5f(0x91)],'aol':_0x1f9844[_0x5e5f(0x91)],'protonmail':_0x1f9844['mCFAh'],'zoho':_0x1f9844[_0x5e5f(0x91)]};if(_0x57845f[_0x5e5f(0x92)](_0x340f75)&&_0x1f9844['eRFZo'](_0x531d5f,_0x560182[_0x340f75])){const _0x207280=[_0x5e5f(0x93),_0x1f9844[_0x5e5f(0x94)],_0x1f9844[_0x5e5f(0x95)],_0x1f9844['TUIgS'],_0x1f9844['HIuuQ'],_0x1f9844[_0x5e5f(0x96)],_0x1f9844[_0x5e5f(0x97)]],_0x29af11=_0x340f75+'.'+_0x531d5f;if(!_0x207280[_0x5e5f(0x92)](_0x29af11)){if(_0x1f9844['eRFZo']('KNHOr',_0x1f9844[_0x5e5f(0x98)]))return{'isValid':![],'error':'Did\x20you\x20mean\x20'+_0x340f75+'.'+_0x560182[_0x340f75]+'?'};else{if(_0x1f9844['nZXJy']==typeof _0x174b39)var _0x50aba9=new _0x2aa3f5(),_0x1536e4=new _0x4eaf91();return(_0x4b0759=function(_0x885a06,_0x10716a){if(_0x1f9844[_0x5e5f(0x99)](!_0x10716a,_0x885a06)&&_0x885a06[_0x5e5f(0x1)])return _0x885a06;var _0x5a7887,_0x368335,_0x4227ae={'__proto__':null,'default':_0x885a06};if(null===_0x885a06||_0x1f9844[_0x5e5f(0x9a)](_0x1f9844[_0x5e5f(0x9b)],typeof _0x885a06)&&_0x1f9844['ygrAh'](_0x1f9844[_0x5e5f(0x9c)],typeof _0x885a06))return _0x4227ae;if(_0x5a7887=_0x10716a?_0x1536e4:_0x50aba9){if(_0x5a7887['has'](_0x885a06))return _0x5a7887['get'](_0x885a06);_0x5a7887[_0x5e5f(0x12)](_0x885a06,_0x4227ae);}for(const _0x5fe029 in _0x885a06)_0x1f9844[_0x5e5f(0x7b)](_0x1f9844['hENSs'],_0x5fe029)&&{}[_0x5e5f(0x19)]['call'](_0x885a06,_0x5fe029)&&((_0x368335=(_0x5a7887=_0x1e454a[_0x5e5f(0x0)])&&_0x5cecf0[_0x5e5f(0x1b)](_0x885a06,_0x5fe029))&&(_0x368335[_0x5e5f(0x11)]||_0x368335[_0x5e5f(0x12)])?_0x1f9844['FnFoh'](_0x5a7887,_0x4227ae,_0x5fe029,_0x368335):_0x4227ae[_0x5fe029]=_0x885a06[_0x5fe029]);return _0x4227ae;})(_0x54e75f,_0x5134c1);}}}return{'isValid':!![]};},SignInStep=({onEmailSubmit:_0x7414db,onGoogleSignIn:_0x36aad8,onContinue:_0x1f8bac,loading:loading=![],error:error='',initialEmail:initialEmail=''})=>{const _0x3ffe5f={'IQuEO':_0x5e5f(0x9d),'DAACD':'Please\x20enter\x20a\x20valid\x20email\x20address','mlgOd':function(_0x2e55bb,_0x4eb0fc){return _0x2e55bb(_0x4eb0fc);},'LualS':_0x5e5f(0x9e),'wOute':_0x5e5f(0x9f),'hRNGE':'🔍\x20Reviewer\x20bypass\x20detected\x20in\x20new\x20UI','CVafb':function(_0x3fbc8d,_0xb7c35d){return _0x3fbc8d(_0xb7c35d);},'Jttow':function(_0x356640,_0x419fa0){return _0x356640===_0x419fa0;},'qaBvt':'test','FSzBV':function(_0x2fcaa1,_0xed4dcd){return _0x2fcaa1===_0xed4dcd;},'hbFUG':_0x5e5f(0xa0),'zdrgR':'test@bypass.com','qpHNH':function(_0x3980aa,_0x1ea588){return _0x3980aa!==_0x1ea588;},'WKnja':_0x5e5f(0xa1),'RBvYr':function(_0x56093e,_0x4f5654){return _0x56093e===_0x4f5654;},'RhevI':'ctLmO','LIvJU':_0x5e5f(0xa2),'InLXt':_0x5e5f(0xa3),'YIUCQ':_0x5e5f(0xa4),'ckSTr':function(_0x4383b6,_0x9e501a){return _0x4383b6(_0x9e501a);},'bfuAQ':_0x5e5f(0x3),'LoiUC':_0x5e5f(0xa5),'bHKKD':_0x5e5f(0xa6),'MlrMZ':_0x5e5f(0xa7),'PSSHr':'Sign\x20in\x20or\x20create\x20an\x20account','QThwl':_0x5e5f(0xa8),'auiLq':_0x5e5f(0xa9),'MAYXI':_0x5e5f(0xaa),'BsvfZ':_0x5e5f(0xab)},[_0x57a5d8,_0x1ded7f]=(0x0,_react[_0x5e5f(0xac)])(initialEmail),[_0x325ee8,_0x30b4e0]=(0x0,_react[_0x5e5f(0xac)])(![]),[_0x5096e8,_0x29eb4a]=(0x0,_react[_0x5e5f(0xac)])(''),_0x1036d2=_0x13a51f=>{if(_0x3ffe5f[_0x5e5f(0xad)]===_0x5e5f(0x9d))_0x1ded7f(_0x13a51f),_0x5096e8&&_0x29eb4a('');else return{'isValid':![],'error':_0x5e5f(0x8c)+_0x36cbc2+'.'+_0x5cea2a[_0xcc03f1]+'?'};},_0x77c3cf=()=>{const _0x269381={'CKFQy':_0x3ffe5f[_0x5e5f(0xae)],'kHLIC':'🔍\x20Reviewer\x20bypass\x20detected\x20in\x20new\x20UI','rsrnc':function(_0x43b669,_0x377b91){return _0x3ffe5f[_0x5e5f(0xaf)](_0x43b669,_0x377b91);},'ZpawX':_0x3ffe5f['LualS']};if(_0x57a5d8[_0x5e5f(0x5d)]()[_0x5e5f(0x5c)]()===_0x3ffe5f[_0x5e5f(0xb0)]){console[_0x5e5f(0xb1)](_0x3ffe5f[_0x5e5f(0xb2)]),_0x3ffe5f[_0x5e5f(0xb3)](_0x7414db,_0x3ffe5f[_0x5e5f(0xb4)]);return;}if(_0x3ffe5f[_0x5e5f(0xb5)](_0x57a5d8['toLowerCase']()[_0x5e5f(0x5c)](),_0x3ffe5f[_0x5e5f(0xb6)])){if(_0x3ffe5f[_0x5e5f(0xb7)]('rXFcw',_0x3ffe5f[_0x5e5f(0xb8)]))return{'isValid':![],'error':_0x269381[_0x5e5f(0xb9)]};else{console[_0x5e5f(0xb1)](_0x5e5f(0xba)),_0x3ffe5f[_0x5e5f(0xb3)](_0x7414db,_0x3ffe5f['zdrgR']);return;}}if(_0x57a5d8[_0x5e5f(0x5c)]()){if(_0x3ffe5f['qpHNH'](_0x3ffe5f[_0x5e5f(0xbb)],_0x5e5f(0xbc))){const _0x4a3456=validateEmail(_0x57a5d8);if(!_0x4a3456[_0x5e5f(0xbd)]){if(_0x3ffe5f[_0x5e5f(0xbe)](_0x3ffe5f[_0x5e5f(0xbf)],_0x3ffe5f[_0x5e5f(0xc0)])){_0x3a83ce[_0x5e5f(0xb1)](_0x269381['kHLIC']),_0x269381[_0x5e5f(0xc1)](_0x2ad2d3,_0x269381[_0x5e5f(0xc2)]);return;}else{console[_0x5e5f(0xb1)](_0x3ffe5f[_0x5e5f(0xc3)],_0x4a3456[_0x5e5f(0xc4)]),_0x3ffe5f[_0x5e5f(0xb3)](_0x29eb4a,_0x4a3456['error']||_0x5e5f(0xc5));return;}}console[_0x5e5f(0xb1)](_0x3ffe5f[_0x5e5f(0xc6)]),_0x3ffe5f[_0x5e5f(0xc7)](_0x29eb4a,''),_0x3ffe5f['mlgOd'](_0x7414db,_0x57a5d8['trim']());}else return{'isValid':![],'error':_0x5e5f(0xc8)};}};return(0x0,_react[_0x5e5f(0xc9)])(()=>{const _0x500b11=_reactNative[_0x5e5f(0x13)][_0x5e5f(0x15)](_0x3ffe5f[_0x5e5f(0xca)],()=>_0x30b4e0(!![])),_0x1a993e=_reactNative[_0x5e5f(0x13)]['addListener'](_0x3ffe5f[_0x5e5f(0xcb)],()=>_0x30b4e0(![]));return()=>{_0x3ffe5f[_0x5e5f(0xb7)](_0x1a993e,null)||_0x3ffe5f['FSzBV'](_0x1a993e,void 0x0)||_0x1a993e[_0x5e5f(0x18)](),_0x3ffe5f['FSzBV'](_0x500b11,null)||_0x500b11===void 0x0||_0x500b11[_0x5e5f(0x18)]();};},[]),_react[_0x5e5f(0x2)][_0x5e5f(0xcc)](_reactNative[_0x5e5f(0xcd)],{'behavior':_0x3ffe5f['FSzBV'](_reactNative['Platform']['OS'],_0x5e5f(0xce))?_0x3ffe5f[_0x5e5f(0xcf)]:_0x5e5f(0xd0),'style':styles[_0x5e5f(0xd1)]},_react[_0x5e5f(0x2)][_0x5e5f(0xcc)](_reactNative[_0x5e5f(0xd2)],{'style':styles[_0x5e5f(0xd3)]},_react[_0x5e5f(0x2)][_0x5e5f(0xcc)](_reactNative[_0x5e5f(0xd2)],{'style':styles[_0x5e5f(0xd4)]},_react[_0x5e5f(0x2)]['createElement'](_reactNative[_0x5e5f(0xd5)],{'style':styles[_0x5e5f(0xd6)]},_0x3ffe5f[_0x5e5f(0xd7)]),_react[_0x5e5f(0x2)][_0x5e5f(0xcc)](_reactNative[_0x5e5f(0xd5)],{'style':styles[_0x5e5f(0xd8)]},_0x3ffe5f['PSSHr'])),_react['default'][_0x5e5f(0xcc)](_reactNative[_0x5e5f(0xd2)],{'style':styles[_0x5e5f(0xd9)]},_react[_0x5e5f(0x2)][_0x5e5f(0xcc)](_EmailInput[_0x5e5f(0x2)],{'value':_0x57a5d8,'onChangeText':_0x1036d2,'onSubmitEditing':_0x77c3cf,'returnKeyType':_0x3ffe5f['QThwl'],'blurOnSubmit':!![],'placeholder':_0x3ffe5f[_0x5e5f(0xda)],'placeholderTextColor':_0x3ffe5f[_0x5e5f(0xdb)]}),_0x5096e8||error?_react[_0x5e5f(0x2)][_0x5e5f(0xcc)](_reactNative['Text'],{'style':styles['errorText']},_0x5096e8||error):null),_react[_0x5e5f(0x2)]['createElement'](_reactNative['View'],{'style':styles[_0x5e5f(0xdc)]},_react[_0x5e5f(0x2)][_0x5e5f(0xcc)](_reactNative[_0x5e5f(0xd2)],{'style':styles[_0x5e5f(0xdd)]}),_react[_0x5e5f(0x2)][_0x5e5f(0xcc)](_reactNative[_0x5e5f(0xd5)],{'style':styles[_0x5e5f(0xde)]},'Or'),_react['default'][_0x5e5f(0xcc)](_reactNative['View'],{'style':styles['dividerLine']})),_react[_0x5e5f(0x2)]['createElement'](_reactNative['View'],{'style':styles[_0x5e5f(0xdf)]},_react[_0x5e5f(0x2)][_0x5e5f(0xcc)](_GoogleButton[_0x5e5f(0x2)],{'onPress':_0x36aad8,'disabled':loading})),_react[_0x5e5f(0x2)][_0x5e5f(0xcc)](_reactNative[_0x5e5f(0xd2)],{'style':styles['spacer']}),_react[_0x5e5f(0x2)][_0x5e5f(0xcc)](_reactNative[_0x5e5f(0xd2)],{'style':styles[_0x5e5f(0xe0)]},_react['default'][_0x5e5f(0xcc)](_PrimaryButton[_0x5e5f(0x2)],{'label':_0x3ffe5f[_0x5e5f(0xe1)],'onPress':_0x77c3cf,'disabled':loading||!_0x57a5d8['trim'](),'loading':loading}))));};function _0x389a(){const _0x29806e=['defineProperty','__esModule','default','keyboardDidShow','function','OrEJO','rjidr','KmFFY','oQeIJ','BGGOl','UfMyc','YoleR','xtTHy','object','Tjdgs','rmjmV','VWJLF','get','set','Keyboard','UCrTV','addListener','woKeU','vJbue','remove','hasOwnProperty','call','getOwnPropertyDescriptor','net','edu','gov','app','dev','tech','online','site','xyz','co.uk','com.au','co.za','com.br','co.kr','co.in','org.uk','net.au','gov.uk','ac.uk','con','cmo','vom','ocm','cpm','ckm','comm','comn','copm','orgg','rog','nte','nett','ent','bet','ioo','lio','gmai','gmil','gmal','gamil','outlok','outloo','yahooo','yaho','yhoo','hotmai','hotmal','hotmial','SxlIJ','ZduqU','GTHTk','\x20Did\x20you\x20mean\x20.net?','TRBeC','\x20Did\x20you\x20mean\x20.io?','kgqqb','outlook','icloud','protonmail','com','yahoo.co.jp','yahoo.com.br','yahoo.com.au','outlook.co.uk','hotmail.co.jp','trim','toLowerCase','EZHjG','lastIndexOf','substring','bxsbC','split','length','CdXFG','MwHai','KoIgn','has','ZlZLS','vKRZa','OLRKE','SLoVI','tbgwm','rHvRe','kdpzw','ZrZYn','cVxVg','Invalid\x20email\x20domain\x20(.',').\x20Please\x20check\x20your\x20email.','baHJE','xmdVH','SkxBa','eHoUp','LZjNF','MNsEA','YOICc','uRtsQ','aSeWQ','bXQOv','sISFd','wFUAF','Dqpjg','UedcC','LEuXE','DnHMV','WPyzX','slice','join','KkRRJ','gmail','FDFmB','yahoo','hotmail','LubOi','Did\x20you\x20mean\x20','lEpvd','Rqagz','KsIJM','vfmeW','mCFAh','includes','yahoo.co.uk','xsKPw','LDOvx','GBzji','Hifgy','VhBry','lwsjv','qIbkX','Zklic','nZXJy','zfBDO','reviewer@bypass.com','reviewer','tXsUe','zBgZh','qolap','❌\x20Email\x20validation\x20failed:','✅\x20Email\x20validation\x20passed','keyboardDidHide','padding','Build\x20your\x20Onairos\x20persona\x20to\x20own\x20your\x20digital\x20identity','done','Your\x20email','#9CA3AF','Continue','useState','IQuEO','DAACD','mlgOd','wOute','log','hRNGE','CVafb','LualS','Jttow','qaBvt','FSzBV','hbFUG','CKFQy','🧪\x20Test\x20bypass\x20detected\x20-\x20skipping\x20to\x20verification\x20screen','WKnja','nXpSq','isValid','RBvYr','RhevI','LIvJU','rsrnc','ZpawX','InLXt','error','Invalid\x20email\x20address','YIUCQ','ckSTr','Please\x20enter\x20a\x20valid\x20email\x20address','useEffect','bfuAQ','LoiUC','createElement','KeyboardAvoidingView','ios','bHKKD','height','container','View','content','headingContainer','Text','title','MlrMZ','subtitle','inputContainer','auiLq','MAYXI','dividerContainer','dividerLine','dividerText','googleContainer','continueContainer','BsvfZ','SignInStep','StyleSheet','create','100%','700','COLORS','grey800','left','SPACING','Inter','400','row','#E5E5E5','#DC3545'];_0x389a=function(){return _0x29806e;};return _0x389a();}exports[_0x5e5f(0xe2)]=SignInStep;function _0x5e5f(_0x389a13,_0x5e5f5f){_0x389a13=_0x389a13-0x0;const _0x322dd9=_0x389a();let _0x81408c=_0x322dd9[_0x389a13];return _0x81408c;}const styles=_reactNative[_0x5e5f(0xe3)][_0x5e5f(0xe4)]({'container':{'flex':0x1},'content':{'flex':0x1,'paddingTop':0x18,'paddingHorizontal':0x18},'headingContainer':{'width':_0x5e5f(0xe5),'marginBottom':0x16,'paddingHorizontal':0x0},'title':{'fontFamily':'IBM\x20Plex\x20Sans','fontWeight':_0x5e5f(0xe6),'fontSize':0x18,'lineHeight':0x20,'color':_theme[_0x5e5f(0xe7)][_0x5e5f(0xe8)],'textAlign':_0x5e5f(0xe9),'marginBottom':_theme[_0x5e5f(0xea)]['sm']},'subtitle':{'fontFamily':_0x5e5f(0xeb),'fontWeight':_0x5e5f(0xec),'fontSize':0x10,'lineHeight':0x18,'color':_theme[_0x5e5f(0xe7)]['grey600'],'textAlign':_0x5e5f(0xe9)},'inputContainer':{'marginBottom':0x20,'paddingHorizontal':0x0},'dividerContainer':{'flexDirection':_0x5e5f(0xed),'alignItems':'center','marginBottom':0x20,'paddingHorizontal':0x0},'dividerLine':{'flex':0x1,'height':0x1,'backgroundColor':_0x5e5f(0xee)},'dividerText':{'paddingHorizontal':_theme['SPACING']['md'],'fontSize':0xe,'fontFamily':_0x5e5f(0xeb),'fontWeight':'400','color':_theme[_0x5e5f(0xe7)]['grey500']},'googleContainer':{'marginBottom':_theme[_0x5e5f(0xea)]['xl'],'paddingHorizontal':0x0},'spacer':{'flex':0x1,'minHeight':0x14},'continueContainer':{'paddingBottom':_theme['SPACING']['xl'],'paddingHorizontal':0x0},'errorText':{'fontSize':0xe,'fontFamily':_0x5e5f(0xeb),'fontWeight':_0x5e5f(0xec),'color':_0x5e5f(0xef),'marginTop':0x8,'textAlign':_0x5e5f(0xe9)}});var _default=exports[_0x5e5f(0x2)]=SignInStep;
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports.SignInStep = void 0;
|
|
7
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _theme = require("../theme");
|
|
10
|
+
var _EmailInput = _interopRequireDefault(require("./EmailInput"));
|
|
11
|
+
var _GoogleButton = _interopRequireDefault(require("./GoogleButton"));
|
|
12
|
+
var _PrimaryButton = _interopRequireDefault(require("./PrimaryButton"));
|
|
13
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
|
+
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); }
|
|
15
|
+
// Valid top-level domains (comprehensive list)
|
|
16
|
+
const VALID_TLDS = new Set([
|
|
17
|
+
// Generic TLDs
|
|
18
|
+
'com', 'org', 'net', 'edu', 'gov', 'mil', 'int',
|
|
19
|
+
// Popular TLDs
|
|
20
|
+
'io', 'co', 'ai', 'app', 'dev', 'tech', 'online', 'site', 'web', 'info', 'biz', 'me', 'tv', 'cc', 'xyz',
|
|
21
|
+
// Country code TLDs
|
|
22
|
+
'uk', 'us', 'ca', 'au', 'de', 'fr', 'it', 'es', 'nl', 'be', 'ch', 'at', 'se', 'no', 'dk', 'fi', 'jp', 'cn', 'kr', 'in', 'br', 'mx', 'ar', 'ru', 'pl', 'cz', 'ie', 'nz', 'za', 'sg', 'hk', 'tw', 'pt', 'gr', 'tr', 'il', 'ae', 'sa', 'eg', 'ng', 'ke', 'gh', 'ph', 'id', 'my', 'th', 'vn',
|
|
23
|
+
// Common compound TLDs
|
|
24
|
+
'co.uk', 'com.au', 'co.nz', 'co.za', 'com.br', 'co.jp', 'co.kr', 'co.in', 'org.uk', 'net.au', 'gov.uk', 'ac.uk', 'edu.au']);
|
|
25
|
+
|
|
26
|
+
// Common typos that should be rejected
|
|
27
|
+
const INVALID_TLDS = new Set(['con', 'cmo', 'vom', 'ocm', 'cm', 'cpm', 'ckm', 'om', 'comm', 'comn', 'copm', 'ogr', 'og', 'orgg', 'rog', 'rg', 'nte', 'ne', 'nett', 'ent', 'bet', 'oi', 'ioo', 'lio', 'gmai', 'gmial', 'gmil', 'gmal', 'gamil', 'outlok', 'outloo', 'outlokk', 'yahooo', 'yaho', 'yhoo', 'hotmai', 'hotmal', 'hotmial']);
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Validates an email address
|
|
31
|
+
* @param email - The email to validate
|
|
32
|
+
* @returns Object with isValid boolean and optional error message
|
|
33
|
+
*/
|
|
34
|
+
const validateEmail = email => {
|
|
35
|
+
const trimmedEmail = email.trim().toLowerCase();
|
|
36
|
+
|
|
37
|
+
// Basic format check
|
|
38
|
+
const basicEmailRegex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
|
|
39
|
+
if (!basicEmailRegex.test(trimmedEmail)) {
|
|
40
|
+
return {
|
|
41
|
+
isValid: false,
|
|
42
|
+
error: 'Please enter a valid email address'
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
// Extract domain and TLD
|
|
47
|
+
const atIndex = trimmedEmail.lastIndexOf('@');
|
|
48
|
+
const domain = trimmedEmail.substring(atIndex + 1);
|
|
49
|
+
const parts = domain.split('.');
|
|
50
|
+
if (parts.length < 2) {
|
|
51
|
+
return {
|
|
52
|
+
isValid: false,
|
|
53
|
+
error: 'Please enter a valid email address'
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
// Get the TLD (last part) and check compound TLDs
|
|
58
|
+
const tld = parts[parts.length - 1];
|
|
59
|
+
const compoundTld = parts.length >= 2 ? `${parts[parts.length - 2]}.${tld}` : '';
|
|
60
|
+
|
|
61
|
+
// Check for invalid/typo TLDs first
|
|
62
|
+
if (INVALID_TLDS.has(tld)) {
|
|
63
|
+
// Suggest the correct TLD
|
|
64
|
+
let suggestion = '';
|
|
65
|
+
if (tld === 'con' || tld === 'cmo' || tld === 'vom' || tld === 'ocm' || tld === 'cpm' || tld === 'comm' || tld === 'comn' || tld === 'copm') {
|
|
66
|
+
suggestion = ' Did you mean .com?';
|
|
67
|
+
} else if (tld === 'ogr' || tld === 'og' || tld === 'orgg' || tld === 'rog') {
|
|
68
|
+
suggestion = ' Did you mean .org?';
|
|
69
|
+
} else if (tld === 'nte' || tld === 'ne' || tld === 'nett' || tld === 'ent') {
|
|
70
|
+
suggestion = ' Did you mean .net?';
|
|
71
|
+
} else if (tld === 'oi' || tld === 'ioo' || tld === 'lio') {
|
|
72
|
+
suggestion = ' Did you mean .io?';
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
isValid: false,
|
|
76
|
+
error: `Invalid email domain (.${tld}).${suggestion}`
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
// Check if TLD is too short (likely a typo)
|
|
81
|
+
if (tld.length < 2) {
|
|
82
|
+
return {
|
|
83
|
+
isValid: false,
|
|
84
|
+
error: 'Please enter a valid email address'
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
// Check if TLD is valid (either compound or single)
|
|
89
|
+
const isValidTld = VALID_TLDS.has(tld) || VALID_TLDS.has(compoundTld);
|
|
90
|
+
|
|
91
|
+
// For single-letter or very unusual TLDs, warn but still allow if not in invalid list
|
|
92
|
+
// This allows for new TLDs while catching obvious typos
|
|
93
|
+
if (!isValidTld && tld.length <= 2) {
|
|
94
|
+
return {
|
|
95
|
+
isValid: false,
|
|
96
|
+
error: `Invalid email domain (.${tld}). Please check your email.`
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
// Additional checks for common domain typos
|
|
101
|
+
const domainWithoutTld = parts.slice(0, -1).join('.');
|
|
102
|
+
const commonDomainTypos = {
|
|
103
|
+
'gmai': 'gmail',
|
|
104
|
+
'gmial': 'gmail',
|
|
105
|
+
'gmil': 'gmail',
|
|
106
|
+
'gmal': 'gmail',
|
|
107
|
+
'gamil': 'gmail',
|
|
108
|
+
'outlok': 'outlook',
|
|
109
|
+
'outloo': 'outlook',
|
|
110
|
+
'outlokk': 'outlook',
|
|
111
|
+
'yahooo': 'yahoo',
|
|
112
|
+
'yaho': 'yahoo',
|
|
113
|
+
'yhoo': 'yahoo',
|
|
114
|
+
'hotmai': 'hotmail',
|
|
115
|
+
'hotmal': 'hotmail',
|
|
116
|
+
'hotmial': 'hotmail',
|
|
117
|
+
'iclod': 'icloud',
|
|
118
|
+
'iclould': 'icloud'
|
|
119
|
+
};
|
|
120
|
+
if (commonDomainTypos[domainWithoutTld]) {
|
|
121
|
+
return {
|
|
122
|
+
isValid: false,
|
|
123
|
+
error: `Did you mean ${commonDomainTypos[domainWithoutTld]}.${tld}?`
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
// 🔐 Check for common email providers with wrong TLDs
|
|
128
|
+
// These providers almost always use .com, so other TLDs are likely typos
|
|
129
|
+
const commonProviders = ['gmail', 'yahoo', 'hotmail', 'outlook', 'icloud', 'aol', 'protonmail', 'zoho'];
|
|
130
|
+
const expectedProviderTld = {
|
|
131
|
+
'gmail': 'com',
|
|
132
|
+
'yahoo': 'com',
|
|
133
|
+
'hotmail': 'com',
|
|
134
|
+
'outlook': 'com',
|
|
135
|
+
'icloud': 'com',
|
|
136
|
+
'aol': 'com',
|
|
137
|
+
'protonmail': 'com',
|
|
138
|
+
'zoho': 'com'
|
|
139
|
+
};
|
|
140
|
+
|
|
141
|
+
// Check if domain matches a common provider but has wrong TLD
|
|
142
|
+
if (commonProviders.includes(domainWithoutTld) && tld !== expectedProviderTld[domainWithoutTld]) {
|
|
143
|
+
// Allow known valid variants like yahoo.co.uk, outlook.co.uk etc
|
|
144
|
+
const validVariants = ['yahoo.co.uk', 'yahoo.co.jp', 'yahoo.com.br', 'yahoo.com.au', 'outlook.co.uk', 'hotmail.co.uk', 'hotmail.co.jp'];
|
|
145
|
+
const fullDomain = `${domainWithoutTld}.${tld}`;
|
|
146
|
+
if (!validVariants.includes(fullDomain)) {
|
|
147
|
+
return {
|
|
148
|
+
isValid: false,
|
|
149
|
+
error: `Did you mean ${domainWithoutTld}.${expectedProviderTld[domainWithoutTld]}?`
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
return {
|
|
154
|
+
isValid: true
|
|
155
|
+
};
|
|
156
|
+
};
|
|
157
|
+
const SignInStep = ({
|
|
158
|
+
onEmailSubmit,
|
|
159
|
+
onGoogleSignIn,
|
|
160
|
+
onContinue,
|
|
161
|
+
loading = false,
|
|
162
|
+
error = '',
|
|
163
|
+
initialEmail = ''
|
|
164
|
+
}) => {
|
|
165
|
+
const [email, setEmail] = (0, _react.useState)(initialEmail);
|
|
166
|
+
const [keyboardVisible, setKeyboardVisible] = (0, _react.useState)(false);
|
|
167
|
+
const [validationError, setValidationError] = (0, _react.useState)('');
|
|
168
|
+
|
|
169
|
+
// Clear validation error when user starts typing
|
|
170
|
+
const handleEmailChange = text => {
|
|
171
|
+
setEmail(text);
|
|
172
|
+
if (validationError) {
|
|
173
|
+
setValidationError('');
|
|
174
|
+
}
|
|
175
|
+
};
|
|
176
|
+
const handleEmailSubmit = () => {
|
|
177
|
+
// Check for reviewer bypass first
|
|
178
|
+
if (email.toLowerCase().trim() === 'reviewer') {
|
|
179
|
+
console.log('🔍 Reviewer bypass detected in new UI');
|
|
180
|
+
// Call onEmailSubmit with a special reviewer email that the parent can recognize
|
|
181
|
+
onEmailSubmit('reviewer@bypass.com');
|
|
182
|
+
return;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
// Check for test bypass - goes directly to verification screen
|
|
186
|
+
if (email.toLowerCase().trim() === 'test') {
|
|
187
|
+
console.log('🧪 Test bypass detected - skipping to verification screen');
|
|
188
|
+
onEmailSubmit('test@bypass.com');
|
|
189
|
+
return;
|
|
190
|
+
}
|
|
191
|
+
if (email.trim()) {
|
|
192
|
+
// Validate email before submitting
|
|
193
|
+
const validation = validateEmail(email);
|
|
194
|
+
if (!validation.isValid) {
|
|
195
|
+
console.log('❌ Email validation failed:', validation.error);
|
|
196
|
+
setValidationError(validation.error || 'Invalid email address');
|
|
197
|
+
return;
|
|
198
|
+
}
|
|
199
|
+
console.log('✅ Email validation passed');
|
|
200
|
+
setValidationError('');
|
|
201
|
+
onEmailSubmit(email.trim());
|
|
202
|
+
}
|
|
203
|
+
};
|
|
204
|
+
(0, _react.useEffect)(() => {
|
|
205
|
+
const keyboardDidShowListener = _reactNative.Keyboard.addListener('keyboardDidShow', () => setKeyboardVisible(true));
|
|
206
|
+
const keyboardDidHideListener = _reactNative.Keyboard.addListener('keyboardDidHide', () => setKeyboardVisible(false));
|
|
207
|
+
return () => {
|
|
208
|
+
keyboardDidHideListener === null || keyboardDidHideListener === void 0 || keyboardDidHideListener.remove();
|
|
209
|
+
keyboardDidShowListener === null || keyboardDidShowListener === void 0 || keyboardDidShowListener.remove();
|
|
210
|
+
};
|
|
211
|
+
}, []);
|
|
212
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.KeyboardAvoidingView, {
|
|
213
|
+
behavior: _reactNative.Platform.OS === 'ios' ? 'padding' : 'height',
|
|
214
|
+
style: styles.container
|
|
215
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
216
|
+
style: styles.content
|
|
217
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
218
|
+
style: styles.headingContainer
|
|
219
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
220
|
+
style: styles.title
|
|
221
|
+
}, "Build your Onairos persona to own your digital identity"), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
222
|
+
style: styles.subtitle
|
|
223
|
+
}, "Sign in or create an account")), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
224
|
+
style: styles.inputContainer
|
|
225
|
+
}, /*#__PURE__*/_react.default.createElement(_EmailInput.default, {
|
|
226
|
+
value: email,
|
|
227
|
+
onChangeText: handleEmailChange,
|
|
228
|
+
onSubmitEditing: handleEmailSubmit,
|
|
229
|
+
returnKeyType: "done",
|
|
230
|
+
blurOnSubmit: true,
|
|
231
|
+
placeholder: "Your email",
|
|
232
|
+
placeholderTextColor: "#9CA3AF"
|
|
233
|
+
}), validationError || error ? /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
234
|
+
style: styles.errorText
|
|
235
|
+
}, validationError || error) : null), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
236
|
+
style: styles.dividerContainer
|
|
237
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
238
|
+
style: styles.dividerLine
|
|
239
|
+
}), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
240
|
+
style: styles.dividerText
|
|
241
|
+
}, "Or"), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
242
|
+
style: styles.dividerLine
|
|
243
|
+
})), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
244
|
+
style: styles.googleContainer
|
|
245
|
+
}, /*#__PURE__*/_react.default.createElement(_GoogleButton.default, {
|
|
246
|
+
onPress: onGoogleSignIn,
|
|
247
|
+
disabled: loading
|
|
248
|
+
})), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
249
|
+
style: styles.spacer
|
|
250
|
+
}), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
251
|
+
style: styles.continueContainer
|
|
252
|
+
}, /*#__PURE__*/_react.default.createElement(_PrimaryButton.default, {
|
|
253
|
+
label: "Continue",
|
|
254
|
+
onPress: handleEmailSubmit,
|
|
255
|
+
disabled: loading || !email.trim(),
|
|
256
|
+
loading: loading
|
|
257
|
+
}))));
|
|
258
|
+
};
|
|
259
|
+
exports.SignInStep = SignInStep;
|
|
260
|
+
const styles = _reactNative.StyleSheet.create({
|
|
261
|
+
container: {
|
|
262
|
+
flex: 1
|
|
263
|
+
},
|
|
264
|
+
content: {
|
|
265
|
+
flex: 1,
|
|
266
|
+
paddingTop: 24,
|
|
267
|
+
// Added more top padding to lower content
|
|
268
|
+
paddingHorizontal: 24 // Match Enoch app edge padding
|
|
269
|
+
},
|
|
270
|
+
headingContainer: {
|
|
271
|
+
width: '100%',
|
|
272
|
+
// Fill sheet width
|
|
273
|
+
marginBottom: 22,
|
|
274
|
+
// Further reduced spacing to bring subtitle closer to email input
|
|
275
|
+
paddingHorizontal: 0 // No padding at all - text goes to absolute edges
|
|
276
|
+
// Removed alignItems: 'center' - no centering
|
|
277
|
+
},
|
|
278
|
+
title: {
|
|
279
|
+
fontFamily: 'IBM Plex Sans',
|
|
280
|
+
fontWeight: '700',
|
|
281
|
+
fontSize: 24,
|
|
282
|
+
lineHeight: 32,
|
|
283
|
+
color: _theme.COLORS.grey800,
|
|
284
|
+
textAlign: 'left',
|
|
285
|
+
// Left-aligned as specified
|
|
286
|
+
marginBottom: _theme.SPACING.sm
|
|
287
|
+
// No fixed width - let parent's 24px insets define available width (327px on 375pt device)
|
|
288
|
+
// Removed height constraint to allow natural wrapping
|
|
289
|
+
},
|
|
290
|
+
subtitle: {
|
|
291
|
+
fontFamily: 'Inter',
|
|
292
|
+
fontWeight: '400',
|
|
293
|
+
fontSize: 16,
|
|
294
|
+
lineHeight: 24,
|
|
295
|
+
color: _theme.COLORS.grey600,
|
|
296
|
+
textAlign: 'left' // Also left-align subtitle for consistency
|
|
297
|
+
},
|
|
298
|
+
inputContainer: {
|
|
299
|
+
marginBottom: 32,
|
|
300
|
+
// Consistent spacing
|
|
301
|
+
paddingHorizontal: 0 // Match headline - no padding, full width
|
|
302
|
+
},
|
|
303
|
+
dividerContainer: {
|
|
304
|
+
flexDirection: 'row',
|
|
305
|
+
alignItems: 'center',
|
|
306
|
+
marginBottom: 32,
|
|
307
|
+
// Consistent spacing
|
|
308
|
+
paddingHorizontal: 0 // Match headline - no padding, full width
|
|
309
|
+
},
|
|
310
|
+
dividerLine: {
|
|
311
|
+
flex: 1,
|
|
312
|
+
height: 1,
|
|
313
|
+
backgroundColor: '#E5E5E5'
|
|
314
|
+
},
|
|
315
|
+
dividerText: {
|
|
316
|
+
paddingHorizontal: _theme.SPACING.md,
|
|
317
|
+
fontSize: 14,
|
|
318
|
+
fontFamily: 'Inter',
|
|
319
|
+
fontWeight: '400',
|
|
320
|
+
color: _theme.COLORS.grey500
|
|
321
|
+
},
|
|
322
|
+
googleContainer: {
|
|
323
|
+
marginBottom: _theme.SPACING.xl,
|
|
324
|
+
paddingHorizontal: 0 // Match headline - no padding, full width
|
|
325
|
+
},
|
|
326
|
+
spacer: {
|
|
327
|
+
flex: 1,
|
|
328
|
+
minHeight: 20
|
|
329
|
+
},
|
|
330
|
+
continueContainer: {
|
|
331
|
+
paddingBottom: _theme.SPACING.xl,
|
|
332
|
+
paddingHorizontal: 0 // Match headline - no padding, full width
|
|
333
|
+
},
|
|
334
|
+
errorText: {
|
|
335
|
+
fontSize: 14,
|
|
336
|
+
fontFamily: 'Inter',
|
|
337
|
+
fontWeight: '400',
|
|
338
|
+
color: '#DC3545',
|
|
339
|
+
// Red color for errors
|
|
340
|
+
marginTop: 8,
|
|
341
|
+
textAlign: 'left'
|
|
342
|
+
}
|
|
343
|
+
});
|
|
344
|
+
var _default = exports.default = SignInStep;
|
|
345
|
+
//# sourceMappingURL=SignInStep.js.map
|