@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,11 +1,176 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
Object[_0x2151(0x0)](exports,_0x2151(0x1),{'value':!![]}),exports[_0x2151(0x2)]=exports[_0x2151(0x3)]=void 0x0;var _react=_interopRequireWildcard(__ONAIROS_REQ_FUNC__(0x0)),_reactNative=__ONAIROS_REQ_FUNC__(0x1),_theme=__ONAIROS_REQ_FUNC__(0x2),_CodeInput=_interopRequireDefault(__ONAIROS_REQ_FUNC__(0x3)),_PrimaryButton=_interopRequireDefault(__ONAIROS_REQ_FUNC__(0x4));function _0xd54d(){var _0x5849ed=['defineProperty','__esModule','default','VerificationStep','rpLaY','ecZnH','tZjOl','fOyTe','JnWsU','WjkIg','DmLqo','object','VNsrF','KmHqy','has','get','set','CRlvi','yiiIw','dodix','tXEpb','QotsL','caSMt','MFQOu','PAfJr','SbGtL','hasOwnProperty','call','getOwnPropertyDescriptor','HiyUI','BIZDg','padding','height','Enter\x20verification\x20code','Continue','SYAHB','qmipT','ZMbni','tFTOS','We\x27ve\x20sent\x20a\x206-digit\x20code\x20to\x20','useState','BXSvs','sHkIX','length','mwQzT','createElement','KeyboardAvoidingView','skezJ','Platform','ZTlSe','wxNNs','container','View','content','headingContainer','Text','title','YsRqh','subtitle','codeContainer','errorText','CvGWY','TouchableOpacity','backButtonText','backButtonDisabled','NeKxv','resendText','dgpvt','resendButton','resendLink','KLGqq','spacer','Xxngg','nKVTe','HvXUy','hvncW','QUJFV','PJOni','continueContainer','backButtonContainer','resendContainer','resendLinkDisabled','create','IBM\x20Plex\x20Sans','700','COLORS','grey800','400','left','Inter','#DC3545','center','row','grey600','grey400','none','grey500','grey300'];_0xd54d=function(){return _0x5849ed;};return _0xd54d();}function _interopRequireDefault(_0x4300f4){return _0x4300f4&&_0x4300f4[_0x2151(0x1)]?_0x4300f4:{'default':_0x4300f4};}function _interopRequireWildcard(_0x51539d,_0x53c92f){var _0x1534c3={'PfLMi':function(_0x56ba75,_0x393614){return _0x56ba75&&_0x393614;},'tZjOl':function(_0x1016a2,_0x3db21a){return _0x1016a2!=_0x3db21a;},'fOyTe':'object','JnWsU':function(_0x2e721f,_0x4f30ea){return _0x2e721f!=_0x4f30ea;},'ecZnH':'function','WjkIg':function(_0x5ee784,_0x262d75){return _0x5ee784!==_0x262d75;},'DmLqo':_0x2151(0x2),'rpLaY':function(_0x4abd27,_0x395108){return _0x4abd27==_0x395108;},'VNsrF':'eGjPz','HiyUI':function(_0x54ef1e,_0x523b03){return _0x54ef1e!==_0x523b03;},'BIZDg':function(_0x186e5c,_0x28ac90,_0x2681fd,_0x123234){return _0x186e5c(_0x28ac90,_0x2681fd,_0x123234);}};if(_0x1534c3[_0x2151(0x4)](_0x1534c3[_0x2151(0x5)],typeof WeakMap))var _0x41d789=new WeakMap(),_0x111cf6=new WeakMap();return(_interopRequireWildcard=function(_0x13ca62,_0x558d25){var _0x287a26={'dodix':function(_0x5bd9ee,_0x59a6dd){return _0x1534c3['PfLMi'](_0x5bd9ee,_0x59a6dd);},'tXEpb':function(_0x26c994,_0x367947){return _0x26c994===_0x367947;},'QotsL':function(_0x660d42,_0x200930){return _0x1534c3[_0x2151(0x6)](_0x660d42,_0x200930);},'caSMt':_0x1534c3[_0x2151(0x7)],'MFQOu':function(_0x2d1180,_0x4c13f9){return _0x1534c3[_0x2151(0x8)](_0x2d1180,_0x4c13f9);},'yiiIw':_0x1534c3[_0x2151(0x5)],'PAfJr':function(_0x3745f6,_0x27c51a){return _0x1534c3[_0x2151(0x9)](_0x3745f6,_0x27c51a);},'SbGtL':_0x1534c3[_0x2151(0xa)],'CRlvi':function(_0x22795b,_0x2f165e){return _0x1534c3['rpLaY'](_0x22795b,_0x2f165e);}};if(!_0x558d25&&_0x13ca62&&_0x13ca62[_0x2151(0x1)])return _0x13ca62;var _0x57d088,_0x1f377f,_0x4d1b5f={'__proto__':null,'default':_0x13ca62};if(null===_0x13ca62||_0x1534c3['tZjOl'](_0x2151(0xb),typeof _0x13ca62)&&_0x1534c3[_0x2151(0x6)](_0x1534c3[_0x2151(0x5)],typeof _0x13ca62))return _0x4d1b5f;if(_0x57d088=_0x558d25?_0x111cf6:_0x41d789){if(_0x1534c3[_0x2151(0x9)](_0x1534c3[_0x2151(0xc)],_0x2151(0xd))){if(_0x57d088[_0x2151(0xe)](_0x13ca62))return _0x57d088[_0x2151(0xf)](_0x13ca62);_0x57d088[_0x2151(0x10)](_0x13ca62,_0x4d1b5f);}else{if(_0x287a26[_0x2151(0x11)](_0x287a26[_0x2151(0x12)],typeof _0x38eca1))var _0x247670=new _0x425daa(),_0x2e73c4=new _0x591fbf();return(_0x50f6ad=function(_0x576d2f,_0x183766){if(_0x287a26[_0x2151(0x13)](!_0x183766,_0x576d2f)&&_0x576d2f[_0x2151(0x1)])return _0x576d2f;var _0x2a6654,_0x190843,_0x4b0d7d={'__proto__':null,'default':_0x576d2f};if(_0x287a26[_0x2151(0x14)](null,_0x576d2f)||_0x287a26[_0x2151(0x15)](_0x287a26[_0x2151(0x16)],typeof _0x576d2f)&&_0x287a26[_0x2151(0x17)](_0x287a26[_0x2151(0x12)],typeof _0x576d2f))return _0x4b0d7d;if(_0x2a6654=_0x183766?_0x2e73c4:_0x247670){if(_0x2a6654[_0x2151(0xe)](_0x576d2f))return _0x2a6654[_0x2151(0xf)](_0x576d2f);_0x2a6654[_0x2151(0x10)](_0x576d2f,_0x4b0d7d);}for(const _0x3f6ce1 in _0x576d2f)_0x287a26[_0x2151(0x18)](_0x287a26[_0x2151(0x19)],_0x3f6ce1)&&{}[_0x2151(0x1a)][_0x2151(0x1b)](_0x576d2f,_0x3f6ce1)&&((_0x190843=(_0x2a6654=_0x22e7a7[_0x2151(0x0)])&&_0x5682b0[_0x2151(0x1c)](_0x576d2f,_0x3f6ce1))&&(_0x190843[_0x2151(0xf)]||_0x190843[_0x2151(0x10)])?_0x2a6654(_0x4b0d7d,_0x3f6ce1,_0x190843):_0x4b0d7d[_0x3f6ce1]=_0x576d2f[_0x3f6ce1]);return _0x4b0d7d;})(_0x3365ea,_0x590248);}}for(const _0x4cb9ec in _0x13ca62)_0x1534c3[_0x2151(0x1d)](_0x1534c3[_0x2151(0xa)],_0x4cb9ec)&&{}['hasOwnProperty'][_0x2151(0x1b)](_0x13ca62,_0x4cb9ec)&&((_0x1f377f=(_0x57d088=Object['defineProperty'])&&Object[_0x2151(0x1c)](_0x13ca62,_0x4cb9ec))&&(_0x1f377f[_0x2151(0xf)]||_0x1f377f['set'])?_0x1534c3[_0x2151(0x1e)](_0x57d088,_0x4d1b5f,_0x4cb9ec,_0x1f377f):_0x4d1b5f[_0x4cb9ec]=_0x13ca62[_0x4cb9ec]);return _0x4d1b5f;})(_0x51539d,_0x53c92f);}const VerificationStep=({email:_0x183b04,onCodeSubmit:_0x43a0ce,onBack:_0x436e4c,loading:loading=![],error:error='',onResendCode:_0x4c772d})=>{var _0x5d2bc9={'skezJ':function(_0xa0c9c8,_0x1df199){return _0xa0c9c8===_0x1df199;},'ZTlSe':'ios','uljEn':_0x2151(0x1f),'wxNNs':_0x2151(0x20),'YsRqh':_0x2151(0x21),'CvGWY':_0x2151(0x22),'NeKxv':'Back','dgpvt':'Didn\x27t\x20receive\x20the\x20code?\x20','KLGqq':'Resend\x20Code','EBeZp':function(_0xb6a3a2,_0x47fbcc){return _0xb6a3a2(_0x47fbcc);},'BXSvs':function(_0x16076e,_0x53ab0f){return _0x16076e!==_0x53ab0f;},'ySHtF':_0x2151(0x23),'sHkIX':_0x2151(0x24),'Xxngg':_0x2151(0x25),'AzzpN':function(_0x23054b,_0x5c77a1){return _0x23054b===_0x5c77a1;},'nKVTe':function(_0x491d97,_0x24a19c){return _0x491d97!==_0x24a19c;},'hvncW':_0x2151(0x26),'QUJFV':function(_0x81bc2c,_0x2d1653){return _0x81bc2c(_0x2d1653);},'PJOni':_0x2151(0x27)};const [_0x4922a8,_0x1a869b]=(0x0,_react[_0x2151(0x28)])(''),_0x23f4c7=_0x4fb345=>{var _0x44832f={'mwQzT':function(_0xcd8104,_0x3bb5be){return _0x5d2bc9['EBeZp'](_0xcd8104,_0x3bb5be);}};if(_0x5d2bc9[_0x2151(0x29)](_0x5d2bc9['ySHtF'],_0x5d2bc9[_0x2151(0x2a)]))_0x5d2bc9['EBeZp'](_0x1a869b,_0x4fb345);else{const [_0x24082a,_0x5126d6]=(0x0,_0x3841e7['useState'])(''),_0x293132=_0x3c0dc9=>{_0x5126d6(_0x3c0dc9);},_0x171d4d=()=>{_0x24082a[_0x2151(0x2b)]===0x6&&_0x44832f[_0x2151(0x2c)](_0x401a82,_0x24082a);};return _0xfaa2b7[_0x2151(0x2)][_0x2151(0x2d)](_0x5732a8[_0x2151(0x2e)],{'behavior':_0x5d2bc9[_0x2151(0x2f)](_0x40bfef[_0x2151(0x30)]['OS'],_0x5d2bc9[_0x2151(0x31)])?_0x5d2bc9['uljEn']:_0x5d2bc9[_0x2151(0x32)],'style':_0x26c5ba[_0x2151(0x33)]},_0x33626f['default'][_0x2151(0x2d)](_0x2e1f5b[_0x2151(0x34)],{'style':_0x1dc5a4[_0x2151(0x35)]},_0x3b46ba[_0x2151(0x2)][_0x2151(0x2d)](_0x39289e[_0x2151(0x34)],{'style':_0xc7e071[_0x2151(0x36)]},_0x2f72c5['default'][_0x2151(0x2d)](_0x41bab1[_0x2151(0x37)],{'style':_0x2a356f[_0x2151(0x38)]},_0x5d2bc9[_0x2151(0x39)]),_0xf9a906[_0x2151(0x2)][_0x2151(0x2d)](_0x46dfb7[_0x2151(0x37)],{'style':_0x290a22[_0x2151(0x3a)]},_0x2151(0x27),_0x1a6df8)),_0x33a955[_0x2151(0x2)][_0x2151(0x2d)](_0x57df69[_0x2151(0x34)],{'style':_0x52ca22[_0x2151(0x3b)]},_0x352016['default'][_0x2151(0x2d)](_0x5856ed[_0x2151(0x2)],{'length':0x6,'onCodeChange':_0x293132}),_0x828921?_0x11766c[_0x2151(0x2)][_0x2151(0x2d)](_0x4dfd8c[_0x2151(0x37)],{'style':_0x4e661c[_0x2151(0x3c)]},_0x2869d8):null),_0x316c57['default'][_0x2151(0x2d)](_0x1d8549[_0x2151(0x34)],{'style':_0x37d6a3['continueContainer']},_0x574ab6[_0x2151(0x2)][_0x2151(0x2d)](_0x15ab54[_0x2151(0x2)],{'label':_0x5d2bc9[_0x2151(0x3d)],'onPress':_0x171d4d,'disabled':_0x461af0||_0x24082a[_0x2151(0x2b)]!==0x6,'loading':_0x488e86})),_0xee0a6e[_0x2151(0x2)][_0x2151(0x2d)](_0x44f671[_0x2151(0x3e)],{'onPress':_0x37c2e7,'disabled':_0x58e789,'style':_0x31b93f['backButtonContainer']},_0x4ab415['default'][_0x2151(0x2d)](_0x370d25['Text'],{'style':[_0x1e7df1[_0x2151(0x3f)],_0x10d167&&_0x30d2a5[_0x2151(0x40)]]},_0x5d2bc9[_0x2151(0x41)])),_0x482769&&_0x9d3b2d[_0x2151(0x2)][_0x2151(0x2d)](_0x52071d[_0x2151(0x34)],{'style':_0x35e163['resendContainer']},_0x44cf2c[_0x2151(0x2)][_0x2151(0x2d)](_0x3ec0da[_0x2151(0x37)],{'style':_0x3c62ca[_0x2151(0x42)]},_0x5d2bc9[_0x2151(0x43)]),_0x4df93a['default']['createElement'](_0xe2fb85[_0x2151(0x3e)],{'onPress':_0xc8611f,'disabled':_0x25f168,'style':_0x577c17[_0x2151(0x44)]},_0x2c76bc[_0x2151(0x2)][_0x2151(0x2d)](_0xab8e08[_0x2151(0x37)],{'style':[_0x4136a4[_0x2151(0x45)],_0x4c4d0f&&_0x3697f9['resendLinkDisabled']]},_0x5d2bc9[_0x2151(0x46)]))),_0x3a2956['default'][_0x2151(0x2d)](_0x4ef3a9[_0x2151(0x34)],{'style':_0x268f03[_0x2151(0x47)]})));}},_0x522b59=()=>{if('DzMZA'!==_0x5d2bc9[_0x2151(0x48)]){if(_0x5d2bc9['AzzpN'](_0x4922a8[_0x2151(0x2b)],0x6)){if(_0x5d2bc9[_0x2151(0x49)](_0x2151(0x4a),_0x5d2bc9[_0x2151(0x4b)]))_0x5d2bc9[_0x2151(0x4c)](_0x43a0ce,_0x4922a8);else{if(_0x2d5107[_0x2151(0xe)](_0x4f15e5))return _0x1942a6[_0x2151(0xf)](_0x43f5a2);_0x32ddf4[_0x2151(0x10)](_0x3c46d5,_0x267b47);}}}else _0x2f8d4c(_0x1f89c0);};return _react['default']['createElement'](_reactNative[_0x2151(0x2e)],{'behavior':_reactNative[_0x2151(0x30)]['OS']===_0x5d2bc9['ZTlSe']?_0x2151(0x1f):_0x2151(0x20),'style':styles['container']},_react[_0x2151(0x2)][_0x2151(0x2d)](_reactNative[_0x2151(0x34)],{'style':styles[_0x2151(0x35)]},_react['default'][_0x2151(0x2d)](_reactNative[_0x2151(0x34)],{'style':styles[_0x2151(0x36)]},_react[_0x2151(0x2)][_0x2151(0x2d)](_reactNative[_0x2151(0x37)],{'style':styles['title']},_0x2151(0x21)),_react['default'][_0x2151(0x2d)](_reactNative[_0x2151(0x37)],{'style':styles[_0x2151(0x3a)]},_0x5d2bc9[_0x2151(0x4d)],_0x183b04)),_react[_0x2151(0x2)]['createElement'](_reactNative[_0x2151(0x34)],{'style':styles[_0x2151(0x3b)]},_react[_0x2151(0x2)][_0x2151(0x2d)](_CodeInput[_0x2151(0x2)],{'length':0x6,'onCodeChange':_0x23f4c7}),error?_react[_0x2151(0x2)]['createElement'](_reactNative[_0x2151(0x37)],{'style':styles[_0x2151(0x3c)]},error):null),_react['default']['createElement'](_reactNative[_0x2151(0x34)],{'style':styles[_0x2151(0x4e)]},_react[_0x2151(0x2)]['createElement'](_PrimaryButton[_0x2151(0x2)],{'label':'Continue','onPress':_0x522b59,'disabled':loading||_0x4922a8[_0x2151(0x2b)]!==0x6,'loading':loading})),_react['default'][_0x2151(0x2d)](_reactNative['TouchableOpacity'],{'onPress':_0x436e4c,'disabled':loading,'style':styles[_0x2151(0x4f)]},_react['default'][_0x2151(0x2d)](_reactNative['Text'],{'style':[styles[_0x2151(0x3f)],loading&&styles[_0x2151(0x40)]]},_0x5d2bc9[_0x2151(0x41)])),_0x4c772d&&_react['default'][_0x2151(0x2d)](_reactNative[_0x2151(0x34)],{'style':styles[_0x2151(0x50)]},_react[_0x2151(0x2)][_0x2151(0x2d)](_reactNative['Text'],{'style':styles[_0x2151(0x42)]},_0x5d2bc9[_0x2151(0x43)]),_react['default'][_0x2151(0x2d)](_reactNative[_0x2151(0x3e)],{'onPress':_0x4c772d,'disabled':loading,'style':styles['resendButton']},_react[_0x2151(0x2)]['createElement'](_reactNative[_0x2151(0x37)],{'style':[styles['resendLink'],loading&&styles[_0x2151(0x51)]]},_0x5d2bc9[_0x2151(0x46)]))),_react[_0x2151(0x2)][_0x2151(0x2d)](_reactNative['View'],{'style':styles[_0x2151(0x47)]})));};function _0x2151(_0xd54d05,_0x215102){_0xd54d05=_0xd54d05-0x0;var _0x548458=_0xd54d();var _0x272018=_0x548458[_0xd54d05];return _0x272018;}exports[_0x2151(0x3)]=VerificationStep;const styles=_reactNative['StyleSheet'][_0x2151(0x52)]({'container':{'flex':0x1},'content':{'flex':0x1,'paddingTop':0x18,'paddingHorizontal':0x18},'headingContainer':{'width':'100%','marginBottom':0x28,'paddingHorizontal':0x0},'title':{'fontFamily':_0x2151(0x53),'fontWeight':_0x2151(0x54),'fontSize':0x18,'lineHeight':0x20,'color':_theme[_0x2151(0x55)][_0x2151(0x56)],'textAlign':'left','marginBottom':0x2},'subtitle':{'fontFamily':'Inter','fontWeight':_0x2151(0x57),'fontSize':0x10,'lineHeight':0x18,'color':_theme[_0x2151(0x55)]['grey600'],'textAlign':_0x2151(0x58),'marginBottom':0x8},'codeContainer':{'paddingHorizontal':0x10,'marginBottom':0x18},'spacer':{'flex':0x1,'minHeight':0x14},'continueContainer':{'paddingHorizontal':0x0,'marginBottom':0x18},'errorText':{'fontSize':0xe,'fontFamily':_0x2151(0x59),'fontWeight':_0x2151(0x57),'color':_0x2151(0x5a),'marginTop':0xc,'textAlign':_0x2151(0x5b)},'resendContainer':{'flexDirection':_0x2151(0x5c),'justifyContent':_0x2151(0x5b),'alignItems':_0x2151(0x5b),'marginTop':0x10,'paddingHorizontal':0x0},'resendText':{'fontSize':0xe,'fontFamily':_0x2151(0x59),'fontWeight':_0x2151(0x57),'color':_theme[_0x2151(0x55)][_0x2151(0x5d)]},'resendButton':{},'resendLink':{'fontSize':0xe,'fontFamily':_0x2151(0x59),'fontWeight':'500','color':'#D4A536','textDecorationLine':'underline'},'resendLinkDisabled':{'color':_theme[_0x2151(0x55)][_0x2151(0x5e)],'textDecorationLine':_0x2151(0x5f)},'backButtonContainer':{'alignItems':_0x2151(0x5b),'justifyContent':'center','paddingVertical':0x8,'marginTop':-0x8,'marginBottom':0x10},'backButtonText':{'fontSize':0xe,'fontFamily':'Inter','fontWeight':'400','color':_theme[_0x2151(0x55)][_0x2151(0x60)]},'backButtonDisabled':{'color':_theme[_0x2151(0x55)][_0x2151(0x61)]}});var _default=exports[_0x2151(0x2)]=VerificationStep;
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports.VerificationStep = void 0;
|
|
7
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _theme = require("../theme");
|
|
10
|
+
var _CodeInput = _interopRequireDefault(require("./CodeInput"));
|
|
11
|
+
var _PrimaryButton = _interopRequireDefault(require("./PrimaryButton"));
|
|
12
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
14
|
+
const VerificationStep = ({
|
|
15
|
+
email,
|
|
16
|
+
onCodeSubmit,
|
|
17
|
+
onBack,
|
|
18
|
+
loading = false,
|
|
19
|
+
error = '',
|
|
20
|
+
onResendCode
|
|
21
|
+
}) => {
|
|
22
|
+
const [code, setCode] = (0, _react.useState)('');
|
|
23
|
+
const handleCodeChange = newCode => {
|
|
24
|
+
setCode(newCode);
|
|
25
|
+
};
|
|
26
|
+
const handleContinue = () => {
|
|
27
|
+
if (code.length === 6) {
|
|
28
|
+
onCodeSubmit(code);
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.KeyboardAvoidingView, {
|
|
32
|
+
behavior: _reactNative.Platform.OS === 'ios' ? 'padding' : 'height',
|
|
33
|
+
style: styles.container
|
|
34
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
35
|
+
style: styles.content
|
|
36
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
37
|
+
style: styles.headingContainer
|
|
38
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
39
|
+
style: styles.title
|
|
40
|
+
}, "Enter verification code"), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
41
|
+
style: styles.subtitle
|
|
42
|
+
}, "We've sent a 6-digit code to ", email)), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
43
|
+
style: styles.codeContainer
|
|
44
|
+
}, /*#__PURE__*/_react.default.createElement(_CodeInput.default, {
|
|
45
|
+
length: 6,
|
|
46
|
+
onCodeChange: handleCodeChange
|
|
47
|
+
}), error ? /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
48
|
+
style: styles.errorText
|
|
49
|
+
}, error) : null), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
50
|
+
style: styles.continueContainer
|
|
51
|
+
}, /*#__PURE__*/_react.default.createElement(_PrimaryButton.default, {
|
|
52
|
+
label: "Continue",
|
|
53
|
+
onPress: handleContinue,
|
|
54
|
+
disabled: loading || code.length !== 6,
|
|
55
|
+
loading: loading
|
|
56
|
+
})), /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
|
|
57
|
+
onPress: onBack,
|
|
58
|
+
disabled: loading,
|
|
59
|
+
style: styles.backButtonContainer
|
|
60
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
61
|
+
style: [styles.backButtonText, loading && styles.backButtonDisabled]
|
|
62
|
+
}, "Back")), onResendCode && /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
63
|
+
style: styles.resendContainer
|
|
64
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
65
|
+
style: styles.resendText
|
|
66
|
+
}, "Didn't receive the code? "), /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
|
|
67
|
+
onPress: onResendCode,
|
|
68
|
+
disabled: loading,
|
|
69
|
+
style: styles.resendButton
|
|
70
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
71
|
+
style: [styles.resendLink, loading && styles.resendLinkDisabled]
|
|
72
|
+
}, "Resend Code"))), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
73
|
+
style: styles.spacer
|
|
74
|
+
})));
|
|
75
|
+
};
|
|
76
|
+
exports.VerificationStep = VerificationStep;
|
|
77
|
+
const styles = _reactNative.StyleSheet.create({
|
|
78
|
+
container: {
|
|
79
|
+
flex: 1
|
|
80
|
+
},
|
|
81
|
+
content: {
|
|
82
|
+
flex: 1,
|
|
83
|
+
paddingTop: 24,
|
|
84
|
+
paddingHorizontal: 24
|
|
85
|
+
},
|
|
86
|
+
headingContainer: {
|
|
87
|
+
width: '100%',
|
|
88
|
+
marginBottom: 40,
|
|
89
|
+
paddingHorizontal: 0
|
|
90
|
+
},
|
|
91
|
+
title: {
|
|
92
|
+
fontFamily: 'IBM Plex Sans',
|
|
93
|
+
fontWeight: '700',
|
|
94
|
+
fontSize: 24,
|
|
95
|
+
lineHeight: 32,
|
|
96
|
+
color: _theme.COLORS.grey800,
|
|
97
|
+
textAlign: 'left',
|
|
98
|
+
marginBottom: 2
|
|
99
|
+
},
|
|
100
|
+
subtitle: {
|
|
101
|
+
fontFamily: 'Inter',
|
|
102
|
+
fontWeight: '400',
|
|
103
|
+
fontSize: 16,
|
|
104
|
+
lineHeight: 24,
|
|
105
|
+
color: _theme.COLORS.grey600,
|
|
106
|
+
textAlign: 'left',
|
|
107
|
+
marginBottom: 8
|
|
108
|
+
},
|
|
109
|
+
codeContainer: {
|
|
110
|
+
paddingHorizontal: 16,
|
|
111
|
+
marginBottom: 24 // Reduced spacing to bring Continue button closer
|
|
112
|
+
},
|
|
113
|
+
spacer: {
|
|
114
|
+
flex: 1,
|
|
115
|
+
minHeight: 20
|
|
116
|
+
},
|
|
117
|
+
continueContainer: {
|
|
118
|
+
paddingHorizontal: 0,
|
|
119
|
+
marginBottom: 24 // Add spacing below Continue button
|
|
120
|
+
},
|
|
121
|
+
errorText: {
|
|
122
|
+
fontSize: 14,
|
|
123
|
+
fontFamily: 'Inter',
|
|
124
|
+
fontWeight: '400',
|
|
125
|
+
color: '#DC3545',
|
|
126
|
+
// Red color for errors
|
|
127
|
+
marginTop: 12,
|
|
128
|
+
textAlign: 'center'
|
|
129
|
+
},
|
|
130
|
+
resendContainer: {
|
|
131
|
+
flexDirection: 'row',
|
|
132
|
+
justifyContent: 'center',
|
|
133
|
+
alignItems: 'center',
|
|
134
|
+
marginTop: 16,
|
|
135
|
+
paddingHorizontal: 0
|
|
136
|
+
},
|
|
137
|
+
resendText: {
|
|
138
|
+
fontSize: 14,
|
|
139
|
+
fontFamily: 'Inter',
|
|
140
|
+
fontWeight: '400',
|
|
141
|
+
color: _theme.COLORS.grey600
|
|
142
|
+
},
|
|
143
|
+
resendButton: {
|
|
144
|
+
// No additional padding - let the text handle touch target
|
|
145
|
+
},
|
|
146
|
+
resendLink: {
|
|
147
|
+
fontSize: 14,
|
|
148
|
+
fontFamily: 'Inter',
|
|
149
|
+
fontWeight: '500',
|
|
150
|
+
color: '#D4A536',
|
|
151
|
+
// Brand color
|
|
152
|
+
textDecorationLine: 'underline'
|
|
153
|
+
},
|
|
154
|
+
resendLinkDisabled: {
|
|
155
|
+
color: _theme.COLORS.grey400,
|
|
156
|
+
textDecorationLine: 'none'
|
|
157
|
+
},
|
|
158
|
+
backButtonContainer: {
|
|
159
|
+
alignItems: 'center',
|
|
160
|
+
justifyContent: 'center',
|
|
161
|
+
paddingVertical: 8,
|
|
162
|
+
marginTop: -8,
|
|
163
|
+
marginBottom: 16
|
|
164
|
+
},
|
|
165
|
+
backButtonText: {
|
|
166
|
+
fontSize: 14,
|
|
167
|
+
fontFamily: 'Inter',
|
|
168
|
+
fontWeight: '400',
|
|
169
|
+
color: _theme.COLORS.grey500
|
|
170
|
+
},
|
|
171
|
+
backButtonDisabled: {
|
|
172
|
+
color: _theme.COLORS.grey300
|
|
173
|
+
}
|
|
174
|
+
});
|
|
175
|
+
var _default = exports.default = VerificationStep;
|
|
176
|
+
//# sourceMappingURL=VerificationStep.js.map
|