@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,13 +1,467 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
Object['defineProperty'](exports,_0xb124(0x0),{'value':!![]}),exports[_0xb124(0x1)]=exports[_0xb124(0x2)]=void 0x0;var _react=_interopRequireWildcard(__ONAIROS_REQ_FUNC__(0x0)),_reactNative=__ONAIROS_REQ_FUNC__(0x1),_theme=__ONAIROS_REQ_FUNC__(0x2),_haptics=__ONAIROS_REQ_FUNC__(0x3),_connectedAccountsService=__ONAIROS_REQ_FUNC__(0x4),_assetRegistry=__ONAIROS_REQ_FUNC__(0x5),_icons=__ONAIROS_REQ_FUNC__(0x6);function _0xb124(_0x15d8e6,_0xb12406){_0x15d8e6=_0x15d8e6-0x0;var _0x4c0375=_0x15d8();var _0x14cfa5=_0x4c0375[_0x15d8e6];return _0x14cfa5;}function _interopRequireWildcard(_0x5165db,_0xf62f5b){var _0x12e07d={'SZqfv':function(_0x266c30,_0x2abad3){return _0x266c30&&_0x2abad3;},'tDbhb':function(_0x1ec955,_0xc413d4){return _0x1ec955===_0xc413d4;},'XIKGq':function(_0x2d5be9,_0x3c0c64){return _0x2d5be9!=_0x3c0c64;},'TXeMR':function(_0x5d9903,_0x412e7d){return _0x5d9903!==_0x412e7d;},'SjOuH':_0xb124(0x1),'DNZHg':function(_0x1c3599,_0x4b54f8,_0x578cab,_0x2f6efa){return _0x1c3599(_0x4b54f8,_0x578cab,_0x2f6efa);},'nTial':_0xb124(0x3)};if(_0x12e07d[_0xb124(0x4)]==typeof WeakMap)var _0x5f130c=new WeakMap(),_0x5f2345=new WeakMap();return(_interopRequireWildcard=function(_0x2e7505,_0x5ee1dd){if(_0x12e07d['SZqfv'](!_0x5ee1dd,_0x2e7505)&&_0x2e7505['__esModule'])return _0x2e7505;var _0x2a5155,_0x4f48a9,_0x153333={'__proto__':null,'default':_0x2e7505};if(_0x12e07d['tDbhb'](null,_0x2e7505)||_0x12e07d[_0xb124(0x5)](_0xb124(0x6),typeof _0x2e7505)&&_0x12e07d['XIKGq'](_0xb124(0x3),typeof _0x2e7505))return _0x153333;if(_0x2a5155=_0x5ee1dd?_0x5f2345:_0x5f130c){if(_0x2a5155[_0xb124(0x7)](_0x2e7505))return _0x2a5155[_0xb124(0x8)](_0x2e7505);_0x2a5155['set'](_0x2e7505,_0x153333);}for(const _0x33b39a in _0x2e7505)_0x12e07d[_0xb124(0x9)](_0x12e07d[_0xb124(0xa)],_0x33b39a)&&{}[_0xb124(0xb)]['call'](_0x2e7505,_0x33b39a)&&((_0x4f48a9=(_0x2a5155=Object['defineProperty'])&&Object[_0xb124(0xc)](_0x2e7505,_0x33b39a))&&(_0x4f48a9['get']||_0x4f48a9[_0xb124(0xd)])?_0x12e07d[_0xb124(0xe)](_0x2a5155,_0x153333,_0x33b39a,_0x4f48a9):_0x153333[_0x33b39a]=_0x2e7505[_0x33b39a]);return _0x153333;})(_0x5165db,_0xf62f5b);}function _0x15d8(){var _0x40793a=['__esModule','default','PersonalizationConsentScreen','function','nTial','XIKGq','object','has','get','TXeMR','SjOuH','hasOwnProperty','getOwnPropertyDescriptor','set','DNZHg','rjiDq','EnnSA','Welcome\x20back!','Choose\x20what\x20to\x20share:','Connected\x20Platforms','Connect\x20more','small','Accept\x20&\x20Continue','Decline','useState','CpFGC','LvZPs','triggerHaptic','HapticType','values','createElement','View','ScrollView','scrollContent','iconContainer','Image','BRAND_IMAGES','headerIcon','arrow','enochAppIcon','OnnRJ','titleContainer','Text','welcomeBackText','CpHPa','title','subtitle','optionsContainer','optionRow','basicProfile','optionLeft','COLORS','grey700','Basicprofile','grey800','optionText','checkboxContainer','Checkmark','#4CD964','Checkbox','checkbox','TouchableOpacity','contentAnalysis','Contenticon','optionIcon','grey400','Personalityicon','Personalitytraits','connectedPlatformsSection','jLzXx','connectedPlatformsIcons','connectedPlatformIconContainer','getPlatformIcon','connectedPlatformIcon','contain','HkkVe','tqici','CebpO','TrtSL','dUedO','connectMorePlusCircle','connectMorePlus','buttonContainer','acceptButtonActive','acceptButtonLoading','sfyOK','llHle','BUTTON_PRESS','DNEIY','aAepb','jWHxz','gFecR','ntphd','CLSum','call','defineProperty','ActivityIndicator','ezMYV','#FFFFFF','Fragment','acceptButtonText','acceptButtonTextActive','njaZG','buttonArrow','declineButtonText','DQAAP','StyleSheet','create','row','center','#000','grey600','IBM\x20Plex\x20Sans','700','600','400','#E5E5E5','Inter','#999999','underline','#F8F9FA','500','grey500'];_0x15d8=function(){return _0x40793a;};return _0x15d8();}const PersonalizationConsentScreen=({visible:_0xd5f656,onAccept:_0x1bdb7a,onDecline:_0x2181ce,loading:loading=![],connectedPlatforms:connectedPlatforms=[],onConnectMore:_0xfbf062,isReturningUser:isReturningUser=![],appName:appName='Enoch',onLogout:_0x3b2d6d})=>{var _0x546e48={'CpFGC':function(_0xdad7a8,_0x1a984c){return _0xdad7a8===_0x1a984c;},'LvZPs':'basicProfile','HkkVe':function(_0x5ab209){return _0x5ab209();},'tqici':function(_0x372116,_0x4621b2){return _0x372116!==_0x4621b2;},'xWSMa':_0xb124(0xf),'DNEIY':function(_0x40231b){return _0x40231b();},'jWHxz':function(_0x2932ad,_0x553381){return _0x2932ad&&_0x553381;},'gFecR':function(_0x9c3ba7,_0x8f04a){return _0x9c3ba7!=_0x8f04a;},'ntphd':_0xb124(0x6),'bzjBy':_0xb124(0x3),'CLSum':'default','vaqpO':function(_0x1f701a,_0x1e89b2,_0x140b36,_0x1b1963){return _0x1f701a(_0x1e89b2,_0x140b36,_0x1b1963);},'sfyOK':function(_0x2d8276,_0x51febb){return _0x2d8276!==_0x51febb;},'llHle':_0xb124(0x10),'OnnRJ':'contain','CpHPa':_0xb124(0x11),'pZVVU':'\x20wants\x20to\x20personalize\x20your\x20experience','MzLTk':_0xb124(0x12),'jLzXx':_0xb124(0x13),'dUedO':_0xb124(0x14),'ezMYV':_0xb124(0x15),'njaZG':_0xb124(0x16),'DQAAP':_0xb124(0x17)};const [_0x57f49d,_0x381f56]=(0x0,_react[_0xb124(0x18)])({'basicProfile':!![],'contentAnalysis':![],'personalityProfile':![]}),_0x5cb696=_0x4a30ba=>{if(_0x546e48[_0xb124(0x19)](_0x4a30ba,_0x546e48[_0xb124(0x1a)]))return;(0x0,_haptics[_0xb124(0x1b)])(_haptics[_0xb124(0x1c)]['BUTTON_PRESS']),_0x381f56(_0x1964f5=>({..._0x1964f5,[_0x4a30ba]:!_0x1964f5[_0x4a30ba]}));},_0x41a603=Object[_0xb124(0x1d)](_0x57f49d)['some'](_0x355c43=>_0x355c43);if(!_0xd5f656)return null;return _react[_0xb124(0x1)][_0xb124(0x1e)](_reactNative[_0xb124(0x1f)],{'style':styles['container']},_react['default']['createElement'](_reactNative[_0xb124(0x20)],{'style':styles['scrollView'],'contentContainerStyle':styles[_0xb124(0x21)],'showsVerticalScrollIndicator':![]},_react[_0xb124(0x1)][_0xb124(0x1e)](_reactNative[_0xb124(0x1f)],{'style':styles['headerContainer']},_react[_0xb124(0x1)]['createElement'](_reactNative[_0xb124(0x1f)],{'style':styles[_0xb124(0x22)]},_react[_0xb124(0x1)][_0xb124(0x1e)](_reactNative[_0xb124(0x23)],{'source':_assetRegistry[_0xb124(0x24)]['onairosLogo'],'style':styles[_0xb124(0x25)],'resizeMode':'contain'})),_react[_0xb124(0x1)][_0xb124(0x1e)](_reactNative['Text'],{'style':styles[_0xb124(0x26)]},'→'),_react[_0xb124(0x1)]['createElement'](_reactNative[_0xb124(0x23)],{'source':_assetRegistry[_0xb124(0x24)]['enochIcon'],'style':styles[_0xb124(0x27)],'resizeMode':_0x546e48[_0xb124(0x28)]})),_react[_0xb124(0x1)][_0xb124(0x1e)](_reactNative[_0xb124(0x1f)],{'style':styles[_0xb124(0x29)]},isReturningUser&&_react[_0xb124(0x1)]['createElement'](_reactNative[_0xb124(0x2a)],{'style':styles[_0xb124(0x2b)]},_0x546e48[_0xb124(0x2c)]),_react[_0xb124(0x1)]['createElement'](_reactNative[_0xb124(0x2a)],{'style':styles[_0xb124(0x2d)]},appName,_0x546e48['pZVVU']),_react[_0xb124(0x1)]['createElement'](_reactNative['Text'],{'style':styles[_0xb124(0x2e)]},_0x546e48['MzLTk'])),_react[_0xb124(0x1)][_0xb124(0x1e)](_reactNative['View'],{'style':styles[_0xb124(0x2f)]},_react[_0xb124(0x1)]['createElement'](_reactNative['TouchableOpacity'],{'style':styles[_0xb124(0x30)],'onPress':()=>_0x5cb696(_0xb124(0x31))},_react['default'][_0xb124(0x1e)](_reactNative['View'],{'style':styles[_0xb124(0x32)]},_react[_0xb124(0x1)][_0xb124(0x1e)](_icons['Basicproficon'],{'width':0x20,'height':0x20,'fill':_theme[_0xb124(0x33)][_0xb124(0x34)],'style':styles['optionIcon']}),_react[_0xb124(0x1)][_0xb124(0x1e)](_icons[_0xb124(0x35)],{'height':0x18,'fill':_theme[_0xb124(0x33)][_0xb124(0x36)],'style':styles[_0xb124(0x37)]})),_react[_0xb124(0x1)][_0xb124(0x1e)](_reactNative['View'],{'style':styles[_0xb124(0x38)]},_0x57f49d[_0xb124(0x31)]?_react[_0xb124(0x1)][_0xb124(0x1e)](_icons[_0xb124(0x39)],{'width':0x18,'height':0x18,'fill':_0xb124(0x3a),'style':styles['checkbox']}):_react[_0xb124(0x1)][_0xb124(0x1e)](_icons[_0xb124(0x3b)],{'width':0x18,'height':0x18,'stroke':_theme[_0xb124(0x33)]['grey400'],'style':styles[_0xb124(0x3c)]}))),_react[_0xb124(0x1)][_0xb124(0x1e)](_reactNative[_0xb124(0x3d)],{'style':styles[_0xb124(0x30)],'onPress':()=>_0x5cb696(_0xb124(0x3e))},_react[_0xb124(0x1)][_0xb124(0x1e)](_reactNative['View'],{'style':styles[_0xb124(0x32)]},_react[_0xb124(0x1)][_0xb124(0x1e)](_icons[_0xb124(0x3f)],{'width':0x20,'height':0x20,'fill':_theme[_0xb124(0x33)][_0xb124(0x34)],'style':styles[_0xb124(0x40)]}),_react[_0xb124(0x1)]['createElement'](_icons['Userpreferences'],{'height':0x18,'fill':_theme[_0xb124(0x33)][_0xb124(0x36)],'style':styles['optionText']})),_react['default']['createElement'](_reactNative[_0xb124(0x1f)],{'style':styles['checkboxContainer']},_0x57f49d[_0xb124(0x3e)]?_react[_0xb124(0x1)]['createElement'](_icons['Checkmark'],{'width':0x18,'height':0x18,'fill':_0xb124(0x3a),'style':styles[_0xb124(0x3c)]}):_react['default'][_0xb124(0x1e)](_icons[_0xb124(0x3b)],{'width':0x18,'height':0x18,'stroke':_theme['COLORS'][_0xb124(0x41)],'style':styles[_0xb124(0x3c)]}))),_react[_0xb124(0x1)][_0xb124(0x1e)](_reactNative[_0xb124(0x3d)],{'style':styles[_0xb124(0x30)],'onPress':()=>_0x5cb696('personalityProfile')},_react['default'][_0xb124(0x1e)](_reactNative[_0xb124(0x1f)],{'style':styles[_0xb124(0x32)]},_react[_0xb124(0x1)][_0xb124(0x1e)](_icons[_0xb124(0x42)],{'width':0x20,'height':0x20,'fill':_theme[_0xb124(0x33)]['grey700'],'style':styles[_0xb124(0x40)]}),_react[_0xb124(0x1)][_0xb124(0x1e)](_icons[_0xb124(0x43)],{'height':0x18,'fill':_theme[_0xb124(0x33)][_0xb124(0x36)],'style':styles[_0xb124(0x37)]})),_react[_0xb124(0x1)][_0xb124(0x1e)](_reactNative[_0xb124(0x1f)],{'style':styles[_0xb124(0x38)]},_0x57f49d['personalityProfile']?_react[_0xb124(0x1)][_0xb124(0x1e)](_icons[_0xb124(0x39)],{'width':0x18,'height':0x18,'fill':_0xb124(0x3a),'style':styles[_0xb124(0x3c)]}):_react[_0xb124(0x1)][_0xb124(0x1e)](_icons[_0xb124(0x3b)],{'width':0x18,'height':0x18,'stroke':_theme[_0xb124(0x33)]['grey400'],'style':styles[_0xb124(0x3c)]})))),_react['default'][_0xb124(0x1e)](_reactNative['View'],{'style':styles[_0xb124(0x44)]},_react[_0xb124(0x1)]['createElement'](_reactNative[_0xb124(0x2a)],{'style':styles['connectedPlatformsTitle']},_0x546e48[_0xb124(0x45)]),connectedPlatforms['length']>0x0&&_react[_0xb124(0x1)][_0xb124(0x1e)](_reactNative['View'],{'style':styles[_0xb124(0x46)]},connectedPlatforms['map'](_0x263d2d=>_react[_0xb124(0x1)]['createElement'](_reactNative[_0xb124(0x1f)],{'key':_0x263d2d,'style':styles[_0xb124(0x47)]},_react['default'][_0xb124(0x1e)](_reactNative[_0xb124(0x23)],{'source':(0x0,_connectedAccountsService[_0xb124(0x48)])(_0x263d2d),'style':styles[_0xb124(0x49)],'resizeMode':_0xb124(0x4a)})))),_0xfbf062&&_react[_0xb124(0x1)][_0xb124(0x1e)](_reactNative['TouchableOpacity'],{'style':styles['connectMoreButton'],'onPress':()=>{var _0x1f9962={'TrtSL':function(_0x1be5cf){return _0x546e48[_0xb124(0x4b)](_0x1be5cf);}};_0x546e48[_0xb124(0x4c)](_0x546e48['xWSMa'],_0xb124(0x4d))?((0x0,_haptics[_0xb124(0x1b)])(_haptics[_0xb124(0x1c)]['BUTTON_PRESS']),_0xfbf062()):((0x0,_0x11635f[_0xb124(0x1b)])(_0x1392d7[_0xb124(0x1c)]['BUTTON_PRESS']),_0x1f9962[_0xb124(0x4e)](_0x38a4ba));}},_react['default'][_0xb124(0x1e)](_reactNative[_0xb124(0x2a)],{'style':styles['connectMoreText']},_0x546e48[_0xb124(0x4f)]),_react[_0xb124(0x1)][_0xb124(0x1e)](_reactNative[_0xb124(0x1f)],{'style':styles[_0xb124(0x50)]},_react[_0xb124(0x1)][_0xb124(0x1e)](_reactNative[_0xb124(0x2a)],{'style':styles[_0xb124(0x51)]},'+')))),_react[_0xb124(0x1)][_0xb124(0x1e)](_reactNative['View'],{'style':styles[_0xb124(0x52)]},_react['default'][_0xb124(0x1e)](_reactNative[_0xb124(0x3d)],{'style':[styles['acceptButton'],_0x41a603&&styles[_0xb124(0x53)],loading&&styles[_0xb124(0x54)]],'onPress':()=>{if(_0x546e48[_0xb124(0x55)](_0x546e48[_0xb124(0x56)],_0x546e48[_0xb124(0x56)]))(0x0,_0x1b4c71[_0xb124(0x1b)])(_0xb95f5e[_0xb124(0x1c)][_0xb124(0x57)]),_0x546e48[_0xb124(0x58)](_0x5b1567);else{if(!loading){if(_0x546e48[_0xb124(0x55)](_0xb124(0x59),'aAepb')){if(_0x546e48[_0xb124(0x5a)](!_0x1c09b2,_0x25186d)&&_0x1217ae['__esModule'])return _0x42143e;var _0x23c039,_0x5c1098,_0x5e2c03={'__proto__':null,'default':_0x1e1328};if(_0x546e48[_0xb124(0x19)](null,_0x148b6f)||_0x546e48[_0xb124(0x5b)](_0x546e48[_0xb124(0x5c)],typeof _0x46f2d4)&&_0x546e48[_0xb124(0x5b)](_0x546e48['bzjBy'],typeof _0x15ab60))return _0x5e2c03;if(_0x23c039=_0x1c27d4?_0x4115dd:_0x4da898){if(_0x23c039[_0xb124(0x7)](_0x549abb))return _0x23c039[_0xb124(0x8)](_0x516ad8);_0x23c039[_0xb124(0xd)](_0x5bb792,_0x5e2c03);}for(const _0x548fce in _0x134912)_0x546e48[_0xb124(0x5d)]!==_0x548fce&&{}[_0xb124(0xb)][_0xb124(0x5e)](_0x2b53cd,_0x548fce)&&((_0x5c1098=(_0x23c039=_0x493fea[_0xb124(0x5f)])&&_0x3e7087['getOwnPropertyDescriptor'](_0x3b3444,_0x548fce))&&(_0x5c1098['get']||_0x5c1098[_0xb124(0xd)])?_0x546e48['vaqpO'](_0x23c039,_0x5e2c03,_0x548fce,_0x5c1098):_0x5e2c03[_0x548fce]=_0xd6c63[_0x548fce]);return _0x5e2c03;}else(0x0,_haptics[_0xb124(0x1b)])(_haptics[_0xb124(0x1c)][_0xb124(0x57)]),_0x546e48[_0xb124(0x4b)](_0x1bdb7a);}}},'disabled':loading,'activeOpacity':loading?0x1:0.7},loading?_react[_0xb124(0x1)]['createElement'](_reactNative[_0xb124(0x60)],{'size':_0x546e48[_0xb124(0x61)],'color':_0xb124(0x62)}):_react[_0xb124(0x1)]['createElement'](_react[_0xb124(0x1)][_0xb124(0x63)],null,_react[_0xb124(0x1)][_0xb124(0x1e)](_reactNative['Text'],{'style':[styles[_0xb124(0x64)],_0x41a603&&styles[_0xb124(0x65)]]},_0x546e48[_0xb124(0x66)]),_react[_0xb124(0x1)][_0xb124(0x1e)](_reactNative[_0xb124(0x2a)],{'style':[styles[_0xb124(0x67)],_0x41a603&&styles['buttonArrowActive']]},'→'))),_react[_0xb124(0x1)][_0xb124(0x1e)](_reactNative[_0xb124(0x3d)],{'style':styles['declineButton'],'onPress':()=>{(0x0,_haptics[_0xb124(0x1b)])(_haptics['HapticType'][_0xb124(0x57)]),_0x546e48['HkkVe'](_0x2181ce);}},_react[_0xb124(0x1)][_0xb124(0x1e)](_reactNative[_0xb124(0x2a)],{'style':styles[_0xb124(0x68)]},_0x546e48[_0xb124(0x69)])))));};exports['PersonalizationConsentScreen']=PersonalizationConsentScreen;const styles=_reactNative[_0xb124(0x6a)][_0xb124(0x6b)]({'container':{'flex':0x1,'backgroundColor':_theme[_0xb124(0x33)]['surface'],'paddingHorizontal':0x18,'paddingTop':0x28,'paddingBottom':0x8},'headerContainer':{'flexDirection':_0xb124(0x6c),'alignItems':_0xb124(0x6d),'justifyContent':_0xb124(0x6d),'marginBottom':0xc,'marginTop':0x0},'iconContainer':{'width':0x40,'height':0x40,'backgroundColor':_0xb124(0x62),'borderRadius':0xc,'alignItems':'center','justifyContent':_0xb124(0x6d),'marginHorizontal':0x8,'shadowColor':_0xb124(0x6e),'shadowOffset':{'width':0x0,'height':0x2},'shadowOpacity':0.1,'shadowRadius':0x4,'elevation':0x2},'headerIcon':{'width':0x2a,'height':0x2a},'enochAppIcon':{'width':0x48,'height':0x48,'marginHorizontal':0x8},'enochLetter':{'fontSize':0x1c,'fontFamily':'IBM\x20Plex\x20Sans','fontWeight':'700','color':_theme[_0xb124(0x33)]['grey800']},'arrow':{'fontSize':0x18,'color':_theme[_0xb124(0x33)][_0xb124(0x6f)],'marginHorizontal':0x10},'titleContainer':{'alignItems':_0xb124(0x6d),'marginBottom':0x8},'welcomeBackText':{'fontSize':0x18,'fontFamily':_0xb124(0x70),'fontWeight':_0xb124(0x71),'color':_theme[_0xb124(0x33)]['grey800'],'textAlign':_0xb124(0x6d),'marginBottom':0x2},'title':{'fontSize':0x14,'fontFamily':_0xb124(0x70),'fontWeight':_0xb124(0x72),'color':_theme[_0xb124(0x33)][_0xb124(0x36)],'textAlign':_0xb124(0x6d),'marginBottom':0xa},'subtitle':{'fontSize':0x10,'fontFamily':'Inter','fontWeight':_0xb124(0x73),'color':_theme['COLORS'][_0xb124(0x6f)],'textAlign':'center'},'scrollView':{'flex':0x1},'scrollContent':{'flexGrow':0x1},'optionsContainer':{'marginBottom':0x8},'optionRow':{'flexDirection':_0xb124(0x6c),'alignItems':_0xb124(0x6d),'justifyContent':'space-between','paddingVertical':0xc,'paddingHorizontal':0x2,'backgroundColor':'#F8F9FA','borderRadius':0xc,'marginBottom':0x6,'marginHorizontal':0x0},'optionLeft':{'flexDirection':'row','alignItems':'center','flex':0x1},'optionIcon':{'marginRight':0xc,'marginLeft':0x2,'marginTop':-0x4},'optionText':{'flex':0x1,'marginLeft':0x2},'checkboxContainer':{'paddingLeft':0x4,'paddingRight':0x2,'alignItems':_0xb124(0x6d),'justifyContent':_0xb124(0x6d)},'checkbox':{},'buttonContainer':{'gap':0x8,'paddingHorizontal':0x0,'paddingBottom':0x10,'marginTop':0x10},'acceptButton':{'backgroundColor':_0xb124(0x74),'borderRadius':0x19,'paddingVertical':0xa,'paddingHorizontal':0x18,'flexDirection':'row','alignItems':'center','justifyContent':_0xb124(0x6d)},'acceptButtonActive':{'backgroundColor':'#2D3436'},'acceptButtonLoading':{'backgroundColor':'#2D3436','opacity':0.8},'acceptButtonText':{'color':'#999999','fontSize':0x10,'fontFamily':_0xb124(0x75),'fontWeight':'600','marginRight':0x8},'acceptButtonTextActive':{'color':'#FFFFFF'},'buttonArrow':{'color':_0xb124(0x76),'fontSize':0x10},'buttonArrowActive':{'color':'#FFFFFF'},'declineButton':{'backgroundColor':_0xb124(0x74),'borderRadius':0x19,'paddingVertical':0xa,'paddingHorizontal':0x18,'alignItems':_0xb124(0x6d),'justifyContent':'center'},'declineButtonText':{'color':_theme[_0xb124(0x33)][_0xb124(0x6f)],'fontSize':0x10,'fontFamily':_0xb124(0x75),'fontWeight':'500'},'logoutButton':{'alignItems':_0xb124(0x6d),'paddingVertical':0xc,'marginTop':0x8},'logoutButtonText':{'fontSize':0xe,'fontFamily':'Inter','fontWeight':_0xb124(0x73),'color':_theme['COLORS']['grey500'],'textDecorationLine':_0xb124(0x77)},'connectedPlatformsSection':{'alignItems':_0xb124(0x6d),'paddingVertical':0xa,'paddingHorizontal':0x10,'backgroundColor':_0xb124(0x78),'borderRadius':0x10,'marginBottom':0xa,'marginTop':0x10},'connectedPlatformsTitle':{'fontSize':0xf,'fontFamily':_0xb124(0x75),'fontWeight':_0xb124(0x79),'color':_theme[_0xb124(0x33)][_0xb124(0x7a)],'marginBottom':0xa},'connectedPlatformsIcons':{'flexDirection':_0xb124(0x6c),'justifyContent':'center','alignItems':_0xb124(0x6d),'flexWrap':'wrap','gap':0xa,'marginBottom':0xa},'connectedPlatformIconContainer':{'width':0x30,'height':0x30,'borderRadius':0xa,'backgroundColor':_0xb124(0x62),'justifyContent':_0xb124(0x6d),'alignItems':_0xb124(0x6d),'shadowColor':_0xb124(0x6e),'shadowOffset':{'width':0x0,'height':0x2},'shadowOpacity':0.1,'shadowRadius':0x4,'elevation':0x2},'connectedPlatformIcon':{'width':0x20,'height':0x20},'connectMoreButton':{'flexDirection':_0xb124(0x6c),'alignItems':_0xb124(0x6d),'justifyContent':'center','gap':0x8},'connectMoreText':{'fontSize':0x10,'fontFamily':'Inter','fontWeight':'500','color':_theme[_0xb124(0x33)][_0xb124(0x7a)]},'connectMorePlusCircle':{'width':0x1c,'height':0x1c,'borderRadius':0xe,'borderWidth':0x2,'borderColor':_theme[_0xb124(0x33)][_0xb124(0x41)],'justifyContent':'center','alignItems':_0xb124(0x6d)},'connectMorePlus':{'fontSize':0x12,'fontWeight':_0xb124(0x79),'color':_theme['COLORS'][_0xb124(0x7a)],'marginTop':-0x2}});var _default=exports[_0xb124(0x1)]=PersonalizationConsentScreen;
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports.PersonalizationConsentScreen = void 0;
|
|
7
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _theme = require("../theme");
|
|
10
|
+
var _haptics = require("../utils/haptics");
|
|
11
|
+
var _connectedAccountsService = require("../services/connectedAccountsService");
|
|
12
|
+
var _assetRegistry = require("../utils/assetRegistry");
|
|
13
|
+
var _icons = require("./icons");
|
|
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
|
+
const PersonalizationConsentScreen = ({
|
|
16
|
+
visible,
|
|
17
|
+
onAccept,
|
|
18
|
+
onDecline,
|
|
19
|
+
loading = false,
|
|
20
|
+
connectedPlatforms = [],
|
|
21
|
+
onConnectMore,
|
|
22
|
+
isReturningUser = false,
|
|
23
|
+
appName = 'Enoch',
|
|
24
|
+
onLogout
|
|
25
|
+
}) => {
|
|
26
|
+
const [selectedOptions, setSelectedOptions] = (0, _react.useState)({
|
|
27
|
+
basicProfile: true,
|
|
28
|
+
contentAnalysis: false,
|
|
29
|
+
personalityProfile: false
|
|
30
|
+
});
|
|
31
|
+
const handleOptionToggle = option => {
|
|
32
|
+
// Basic profile is always on and cannot be unchecked
|
|
33
|
+
if (option === 'basicProfile') return;
|
|
34
|
+
(0, _haptics.triggerHaptic)(_haptics.HapticType.BUTTON_PRESS);
|
|
35
|
+
setSelectedOptions(prev => ({
|
|
36
|
+
...prev,
|
|
37
|
+
[option]: !prev[option]
|
|
38
|
+
}));
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
// Check if at least one option is selected
|
|
42
|
+
const hasSelectedOptions = Object.values(selectedOptions).some(value => value);
|
|
43
|
+
if (!visible) return null;
|
|
44
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
45
|
+
style: styles.container
|
|
46
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.ScrollView, {
|
|
47
|
+
style: styles.scrollView,
|
|
48
|
+
contentContainerStyle: styles.scrollContent,
|
|
49
|
+
showsVerticalScrollIndicator: false
|
|
50
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
51
|
+
style: styles.headerContainer
|
|
52
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
53
|
+
style: styles.iconContainer
|
|
54
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Image, {
|
|
55
|
+
source: _assetRegistry.BRAND_IMAGES.onairosLogo,
|
|
56
|
+
style: styles.headerIcon,
|
|
57
|
+
resizeMode: "contain"
|
|
58
|
+
})), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
59
|
+
style: styles.arrow
|
|
60
|
+
}, "\u2192"), /*#__PURE__*/_react.default.createElement(_reactNative.Image, {
|
|
61
|
+
source: _assetRegistry.BRAND_IMAGES.enochIcon,
|
|
62
|
+
style: styles.enochAppIcon,
|
|
63
|
+
resizeMode: "contain"
|
|
64
|
+
})), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
65
|
+
style: styles.titleContainer
|
|
66
|
+
}, isReturningUser && /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
67
|
+
style: styles.welcomeBackText
|
|
68
|
+
}, "Welcome back!"), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
69
|
+
style: styles.title
|
|
70
|
+
}, appName, " wants to personalize your experience"), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
71
|
+
style: styles.subtitle
|
|
72
|
+
}, "Choose what to share:")), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
73
|
+
style: styles.optionsContainer
|
|
74
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
|
|
75
|
+
style: styles.optionRow,
|
|
76
|
+
onPress: () => handleOptionToggle('basicProfile')
|
|
77
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
78
|
+
style: styles.optionLeft
|
|
79
|
+
}, /*#__PURE__*/_react.default.createElement(_icons.Basicproficon, {
|
|
80
|
+
width: 32,
|
|
81
|
+
height: 32,
|
|
82
|
+
fill: _theme.COLORS.grey700,
|
|
83
|
+
style: styles.optionIcon
|
|
84
|
+
}), /*#__PURE__*/_react.default.createElement(_icons.Basicprofile, {
|
|
85
|
+
height: 24,
|
|
86
|
+
fill: _theme.COLORS.grey800,
|
|
87
|
+
style: styles.optionText
|
|
88
|
+
})), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
89
|
+
style: styles.checkboxContainer
|
|
90
|
+
}, selectedOptions.basicProfile ? /*#__PURE__*/_react.default.createElement(_icons.Checkmark, {
|
|
91
|
+
width: 24,
|
|
92
|
+
height: 24,
|
|
93
|
+
fill: "#4CD964",
|
|
94
|
+
style: styles.checkbox
|
|
95
|
+
}) : /*#__PURE__*/_react.default.createElement(_icons.Checkbox, {
|
|
96
|
+
width: 24,
|
|
97
|
+
height: 24,
|
|
98
|
+
stroke: _theme.COLORS.grey400,
|
|
99
|
+
style: styles.checkbox
|
|
100
|
+
}))), /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
|
|
101
|
+
style: styles.optionRow,
|
|
102
|
+
onPress: () => handleOptionToggle('contentAnalysis')
|
|
103
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
104
|
+
style: styles.optionLeft
|
|
105
|
+
}, /*#__PURE__*/_react.default.createElement(_icons.Contenticon, {
|
|
106
|
+
width: 32,
|
|
107
|
+
height: 32,
|
|
108
|
+
fill: _theme.COLORS.grey700,
|
|
109
|
+
style: styles.optionIcon
|
|
110
|
+
}), /*#__PURE__*/_react.default.createElement(_icons.Userpreferences, {
|
|
111
|
+
height: 24,
|
|
112
|
+
fill: _theme.COLORS.grey800,
|
|
113
|
+
style: styles.optionText
|
|
114
|
+
})), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
115
|
+
style: styles.checkboxContainer
|
|
116
|
+
}, selectedOptions.contentAnalysis ? /*#__PURE__*/_react.default.createElement(_icons.Checkmark, {
|
|
117
|
+
width: 24,
|
|
118
|
+
height: 24,
|
|
119
|
+
fill: "#4CD964",
|
|
120
|
+
style: styles.checkbox
|
|
121
|
+
}) : /*#__PURE__*/_react.default.createElement(_icons.Checkbox, {
|
|
122
|
+
width: 24,
|
|
123
|
+
height: 24,
|
|
124
|
+
stroke: _theme.COLORS.grey400,
|
|
125
|
+
style: styles.checkbox
|
|
126
|
+
}))), /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
|
|
127
|
+
style: styles.optionRow,
|
|
128
|
+
onPress: () => handleOptionToggle('personalityProfile')
|
|
129
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
130
|
+
style: styles.optionLeft
|
|
131
|
+
}, /*#__PURE__*/_react.default.createElement(_icons.Personalityicon, {
|
|
132
|
+
width: 32,
|
|
133
|
+
height: 32,
|
|
134
|
+
fill: _theme.COLORS.grey700,
|
|
135
|
+
style: styles.optionIcon
|
|
136
|
+
}), /*#__PURE__*/_react.default.createElement(_icons.Personalitytraits, {
|
|
137
|
+
height: 24,
|
|
138
|
+
fill: _theme.COLORS.grey800,
|
|
139
|
+
style: styles.optionText
|
|
140
|
+
})), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
141
|
+
style: styles.checkboxContainer
|
|
142
|
+
}, selectedOptions.personalityProfile ? /*#__PURE__*/_react.default.createElement(_icons.Checkmark, {
|
|
143
|
+
width: 24,
|
|
144
|
+
height: 24,
|
|
145
|
+
fill: "#4CD964",
|
|
146
|
+
style: styles.checkbox
|
|
147
|
+
}) : /*#__PURE__*/_react.default.createElement(_icons.Checkbox, {
|
|
148
|
+
width: 24,
|
|
149
|
+
height: 24,
|
|
150
|
+
stroke: _theme.COLORS.grey400,
|
|
151
|
+
style: styles.checkbox
|
|
152
|
+
})))), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
153
|
+
style: styles.connectedPlatformsSection
|
|
154
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
155
|
+
style: styles.connectedPlatformsTitle
|
|
156
|
+
}, "Connected Platforms"), connectedPlatforms.length > 0 && /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
157
|
+
style: styles.connectedPlatformsIcons
|
|
158
|
+
}, connectedPlatforms.map(platformId => /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
159
|
+
key: platformId,
|
|
160
|
+
style: styles.connectedPlatformIconContainer
|
|
161
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Image, {
|
|
162
|
+
source: (0, _connectedAccountsService.getPlatformIcon)(platformId),
|
|
163
|
+
style: styles.connectedPlatformIcon,
|
|
164
|
+
resizeMode: "contain"
|
|
165
|
+
})))), onConnectMore && /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
|
|
166
|
+
style: styles.connectMoreButton,
|
|
167
|
+
onPress: () => {
|
|
168
|
+
(0, _haptics.triggerHaptic)(_haptics.HapticType.BUTTON_PRESS);
|
|
169
|
+
onConnectMore();
|
|
170
|
+
}
|
|
171
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
172
|
+
style: styles.connectMoreText
|
|
173
|
+
}, "Connect more"), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
174
|
+
style: styles.connectMorePlusCircle
|
|
175
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
176
|
+
style: styles.connectMorePlus
|
|
177
|
+
}, "+")))), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
178
|
+
style: styles.buttonContainer
|
|
179
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
|
|
180
|
+
style: [styles.acceptButton, hasSelectedOptions && styles.acceptButtonActive, loading && styles.acceptButtonLoading],
|
|
181
|
+
onPress: () => {
|
|
182
|
+
if (!loading) {
|
|
183
|
+
(0, _haptics.triggerHaptic)(_haptics.HapticType.BUTTON_PRESS);
|
|
184
|
+
onAccept();
|
|
185
|
+
}
|
|
186
|
+
},
|
|
187
|
+
disabled: loading,
|
|
188
|
+
activeOpacity: loading ? 1 : 0.7
|
|
189
|
+
}, loading ? /*#__PURE__*/_react.default.createElement(_reactNative.ActivityIndicator, {
|
|
190
|
+
size: "small",
|
|
191
|
+
color: "#FFFFFF"
|
|
192
|
+
}) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
193
|
+
style: [styles.acceptButtonText, hasSelectedOptions && styles.acceptButtonTextActive]
|
|
194
|
+
}, "Accept & Continue"), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
195
|
+
style: [styles.buttonArrow, hasSelectedOptions && styles.buttonArrowActive]
|
|
196
|
+
}, "\u2192"))), /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
|
|
197
|
+
style: styles.declineButton,
|
|
198
|
+
onPress: () => {
|
|
199
|
+
(0, _haptics.triggerHaptic)(_haptics.HapticType.BUTTON_PRESS);
|
|
200
|
+
onDecline();
|
|
201
|
+
}
|
|
202
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
203
|
+
style: styles.declineButtonText
|
|
204
|
+
}, "Decline")))));
|
|
205
|
+
};
|
|
206
|
+
exports.PersonalizationConsentScreen = PersonalizationConsentScreen;
|
|
207
|
+
const styles = _reactNative.StyleSheet.create({
|
|
208
|
+
container: {
|
|
209
|
+
flex: 1,
|
|
210
|
+
backgroundColor: _theme.COLORS.surface,
|
|
211
|
+
paddingHorizontal: 24,
|
|
212
|
+
paddingTop: 40,
|
|
213
|
+
paddingBottom: 8
|
|
214
|
+
},
|
|
215
|
+
headerContainer: {
|
|
216
|
+
flexDirection: 'row',
|
|
217
|
+
alignItems: 'center',
|
|
218
|
+
justifyContent: 'center',
|
|
219
|
+
marginBottom: 12,
|
|
220
|
+
marginTop: 0
|
|
221
|
+
},
|
|
222
|
+
iconContainer: {
|
|
223
|
+
width: 64,
|
|
224
|
+
height: 64,
|
|
225
|
+
backgroundColor: '#FFFFFF',
|
|
226
|
+
borderRadius: 12,
|
|
227
|
+
alignItems: 'center',
|
|
228
|
+
justifyContent: 'center',
|
|
229
|
+
marginHorizontal: 8,
|
|
230
|
+
shadowColor: '#000',
|
|
231
|
+
shadowOffset: {
|
|
232
|
+
width: 0,
|
|
233
|
+
height: 2
|
|
234
|
+
},
|
|
235
|
+
shadowOpacity: 0.1,
|
|
236
|
+
shadowRadius: 4,
|
|
237
|
+
elevation: 2
|
|
238
|
+
},
|
|
239
|
+
headerIcon: {
|
|
240
|
+
width: 42,
|
|
241
|
+
height: 42
|
|
242
|
+
},
|
|
243
|
+
enochAppIcon: {
|
|
244
|
+
width: 72,
|
|
245
|
+
height: 72,
|
|
246
|
+
marginHorizontal: 8
|
|
247
|
+
},
|
|
248
|
+
enochLetter: {
|
|
249
|
+
fontSize: 28,
|
|
250
|
+
fontFamily: 'IBM Plex Sans',
|
|
251
|
+
fontWeight: '700',
|
|
252
|
+
color: _theme.COLORS.grey800
|
|
253
|
+
},
|
|
254
|
+
arrow: {
|
|
255
|
+
fontSize: 24,
|
|
256
|
+
color: _theme.COLORS.grey600,
|
|
257
|
+
marginHorizontal: 16
|
|
258
|
+
},
|
|
259
|
+
titleContainer: {
|
|
260
|
+
alignItems: 'center',
|
|
261
|
+
marginBottom: 8
|
|
262
|
+
},
|
|
263
|
+
welcomeBackText: {
|
|
264
|
+
fontSize: 24,
|
|
265
|
+
fontFamily: 'IBM Plex Sans',
|
|
266
|
+
fontWeight: '700',
|
|
267
|
+
color: _theme.COLORS.grey800,
|
|
268
|
+
textAlign: 'center',
|
|
269
|
+
marginBottom: 2
|
|
270
|
+
},
|
|
271
|
+
title: {
|
|
272
|
+
fontSize: 20,
|
|
273
|
+
fontFamily: 'IBM Plex Sans',
|
|
274
|
+
fontWeight: '600',
|
|
275
|
+
color: _theme.COLORS.grey800,
|
|
276
|
+
textAlign: 'center',
|
|
277
|
+
marginBottom: 10
|
|
278
|
+
},
|
|
279
|
+
subtitle: {
|
|
280
|
+
fontSize: 16,
|
|
281
|
+
fontFamily: 'Inter',
|
|
282
|
+
fontWeight: '400',
|
|
283
|
+
color: _theme.COLORS.grey600,
|
|
284
|
+
textAlign: 'center'
|
|
285
|
+
},
|
|
286
|
+
scrollView: {
|
|
287
|
+
flex: 1
|
|
288
|
+
},
|
|
289
|
+
scrollContent: {
|
|
290
|
+
flexGrow: 1
|
|
291
|
+
},
|
|
292
|
+
optionsContainer: {
|
|
293
|
+
marginBottom: 8
|
|
294
|
+
},
|
|
295
|
+
optionRow: {
|
|
296
|
+
flexDirection: 'row',
|
|
297
|
+
alignItems: 'center',
|
|
298
|
+
justifyContent: 'space-between',
|
|
299
|
+
paddingVertical: 12,
|
|
300
|
+
paddingHorizontal: 2,
|
|
301
|
+
backgroundColor: '#F8F9FA',
|
|
302
|
+
borderRadius: 12,
|
|
303
|
+
marginBottom: 6,
|
|
304
|
+
marginHorizontal: 0
|
|
305
|
+
},
|
|
306
|
+
optionLeft: {
|
|
307
|
+
flexDirection: 'row',
|
|
308
|
+
alignItems: 'center',
|
|
309
|
+
flex: 1
|
|
310
|
+
},
|
|
311
|
+
optionIcon: {
|
|
312
|
+
marginRight: 12,
|
|
313
|
+
marginLeft: 2,
|
|
314
|
+
marginTop: -4
|
|
315
|
+
},
|
|
316
|
+
optionText: {
|
|
317
|
+
flex: 1,
|
|
318
|
+
marginLeft: 2
|
|
319
|
+
},
|
|
320
|
+
checkboxContainer: {
|
|
321
|
+
paddingLeft: 4,
|
|
322
|
+
paddingRight: 2,
|
|
323
|
+
alignItems: 'center',
|
|
324
|
+
justifyContent: 'center'
|
|
325
|
+
},
|
|
326
|
+
checkbox: {
|
|
327
|
+
// SVG components handle their own sizing
|
|
328
|
+
},
|
|
329
|
+
buttonContainer: {
|
|
330
|
+
gap: 8,
|
|
331
|
+
paddingHorizontal: 0,
|
|
332
|
+
paddingBottom: 16,
|
|
333
|
+
marginTop: 16
|
|
334
|
+
},
|
|
335
|
+
acceptButton: {
|
|
336
|
+
backgroundColor: '#E5E5E5',
|
|
337
|
+
borderRadius: 25,
|
|
338
|
+
paddingVertical: 10,
|
|
339
|
+
paddingHorizontal: 24,
|
|
340
|
+
flexDirection: 'row',
|
|
341
|
+
alignItems: 'center',
|
|
342
|
+
justifyContent: 'center'
|
|
343
|
+
},
|
|
344
|
+
acceptButtonActive: {
|
|
345
|
+
backgroundColor: '#2D3436'
|
|
346
|
+
},
|
|
347
|
+
acceptButtonLoading: {
|
|
348
|
+
backgroundColor: '#2D3436',
|
|
349
|
+
opacity: 0.8
|
|
350
|
+
},
|
|
351
|
+
acceptButtonText: {
|
|
352
|
+
color: '#999999',
|
|
353
|
+
fontSize: 16,
|
|
354
|
+
fontFamily: 'Inter',
|
|
355
|
+
fontWeight: '600',
|
|
356
|
+
marginRight: 8
|
|
357
|
+
},
|
|
358
|
+
acceptButtonTextActive: {
|
|
359
|
+
color: '#FFFFFF'
|
|
360
|
+
},
|
|
361
|
+
buttonArrow: {
|
|
362
|
+
color: '#999999',
|
|
363
|
+
fontSize: 16
|
|
364
|
+
},
|
|
365
|
+
buttonArrowActive: {
|
|
366
|
+
color: '#FFFFFF'
|
|
367
|
+
},
|
|
368
|
+
declineButton: {
|
|
369
|
+
backgroundColor: '#E5E5E5',
|
|
370
|
+
borderRadius: 25,
|
|
371
|
+
paddingVertical: 10,
|
|
372
|
+
paddingHorizontal: 24,
|
|
373
|
+
alignItems: 'center',
|
|
374
|
+
justifyContent: 'center'
|
|
375
|
+
},
|
|
376
|
+
declineButtonText: {
|
|
377
|
+
color: _theme.COLORS.grey600,
|
|
378
|
+
fontSize: 16,
|
|
379
|
+
fontFamily: 'Inter',
|
|
380
|
+
fontWeight: '500'
|
|
381
|
+
},
|
|
382
|
+
logoutButton: {
|
|
383
|
+
alignItems: 'center',
|
|
384
|
+
paddingVertical: 12,
|
|
385
|
+
marginTop: 8
|
|
386
|
+
},
|
|
387
|
+
logoutButtonText: {
|
|
388
|
+
fontSize: 14,
|
|
389
|
+
fontFamily: 'Inter',
|
|
390
|
+
fontWeight: '400',
|
|
391
|
+
color: _theme.COLORS.grey500,
|
|
392
|
+
textDecorationLine: 'underline'
|
|
393
|
+
},
|
|
394
|
+
connectedPlatformsSection: {
|
|
395
|
+
alignItems: 'center',
|
|
396
|
+
paddingVertical: 10,
|
|
397
|
+
paddingHorizontal: 16,
|
|
398
|
+
backgroundColor: '#F8F9FA',
|
|
399
|
+
borderRadius: 16,
|
|
400
|
+
marginBottom: 10,
|
|
401
|
+
marginTop: 16
|
|
402
|
+
},
|
|
403
|
+
connectedPlatformsTitle: {
|
|
404
|
+
fontSize: 15,
|
|
405
|
+
fontFamily: 'Inter',
|
|
406
|
+
fontWeight: '500',
|
|
407
|
+
color: _theme.COLORS.grey500,
|
|
408
|
+
marginBottom: 10
|
|
409
|
+
},
|
|
410
|
+
connectedPlatformsIcons: {
|
|
411
|
+
flexDirection: 'row',
|
|
412
|
+
justifyContent: 'center',
|
|
413
|
+
alignItems: 'center',
|
|
414
|
+
flexWrap: 'wrap',
|
|
415
|
+
gap: 10,
|
|
416
|
+
marginBottom: 10
|
|
417
|
+
},
|
|
418
|
+
connectedPlatformIconContainer: {
|
|
419
|
+
width: 48,
|
|
420
|
+
height: 48,
|
|
421
|
+
borderRadius: 10,
|
|
422
|
+
backgroundColor: '#FFFFFF',
|
|
423
|
+
justifyContent: 'center',
|
|
424
|
+
alignItems: 'center',
|
|
425
|
+
shadowColor: '#000',
|
|
426
|
+
shadowOffset: {
|
|
427
|
+
width: 0,
|
|
428
|
+
height: 2
|
|
429
|
+
},
|
|
430
|
+
shadowOpacity: 0.1,
|
|
431
|
+
shadowRadius: 4,
|
|
432
|
+
elevation: 2
|
|
433
|
+
},
|
|
434
|
+
connectedPlatformIcon: {
|
|
435
|
+
width: 32,
|
|
436
|
+
height: 32
|
|
437
|
+
},
|
|
438
|
+
connectMoreButton: {
|
|
439
|
+
flexDirection: 'row',
|
|
440
|
+
alignItems: 'center',
|
|
441
|
+
justifyContent: 'center',
|
|
442
|
+
gap: 8
|
|
443
|
+
},
|
|
444
|
+
connectMoreText: {
|
|
445
|
+
fontSize: 16,
|
|
446
|
+
fontFamily: 'Inter',
|
|
447
|
+
fontWeight: '500',
|
|
448
|
+
color: _theme.COLORS.grey500
|
|
449
|
+
},
|
|
450
|
+
connectMorePlusCircle: {
|
|
451
|
+
width: 28,
|
|
452
|
+
height: 28,
|
|
453
|
+
borderRadius: 14,
|
|
454
|
+
borderWidth: 2,
|
|
455
|
+
borderColor: _theme.COLORS.grey400,
|
|
456
|
+
justifyContent: 'center',
|
|
457
|
+
alignItems: 'center'
|
|
458
|
+
},
|
|
459
|
+
connectMorePlus: {
|
|
460
|
+
fontSize: 18,
|
|
461
|
+
fontWeight: '500',
|
|
462
|
+
color: _theme.COLORS.grey500,
|
|
463
|
+
marginTop: -2
|
|
464
|
+
}
|
|
465
|
+
});
|
|
466
|
+
var _default = exports.default = PersonalizationConsentScreen;
|
|
467
|
+
//# sourceMappingURL=PersonalizationConsentScreen.js.map
|