@onairos/react-native 3.7.1 → 3.7.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (241) hide show
  1. package/lib/commonjs/api/index.js +219 -9
  2. package/lib/commonjs/assets/icons/spotify.png +0 -0
  3. package/lib/commonjs/assets/images/spotify.png +0 -0
  4. package/lib/commonjs/components/BodyText.js +27 -9
  5. package/lib/commonjs/components/BrandMark.js +111 -10
  6. package/lib/commonjs/components/CodeInput.js +116 -9
  7. package/lib/commonjs/components/EmailInput.js +30 -8
  8. package/lib/commonjs/components/GoogleButton.js +56 -9
  9. package/lib/commonjs/components/HeadingGroup.js +43 -9
  10. package/lib/commonjs/components/LLMDataInputModal.js +664 -14
  11. package/lib/commonjs/components/ModalHeader.js +99 -9
  12. package/lib/commonjs/components/ModalSheet.js +47 -9
  13. package/lib/commonjs/components/Onairos.js +380 -14
  14. package/lib/commonjs/components/OnairosButton.js +313 -13
  15. package/lib/commonjs/components/OnairosSignInButton.js +130 -12
  16. package/lib/commonjs/components/Overlay.js +465 -13
  17. package/lib/commonjs/components/PersonaImage.js +137 -10
  18. package/lib/commonjs/components/PersonaLoadingScreen.js +318 -12
  19. package/lib/commonjs/components/PersonalizationConsentScreen.js +467 -13
  20. package/lib/commonjs/components/PinCreationScreen.js +403 -12
  21. package/lib/commonjs/components/PinInput.js +464 -9
  22. package/lib/commonjs/components/PlatformConnectorsStep.js +1311 -23
  23. package/lib/commonjs/components/PlatformList.js +137 -10
  24. package/lib/commonjs/components/PlatformToggle.js +180 -9
  25. package/lib/commonjs/components/PrimaryButton.js +180 -10
  26. package/lib/commonjs/components/SignInMatchAnimation.js +197 -9
  27. package/lib/commonjs/components/SignInStep.js +345 -12
  28. package/lib/commonjs/components/UniversalOnboarding.js +2780 -30
  29. package/lib/commonjs/components/VerificationStep.js +176 -11
  30. package/lib/commonjs/components/WelcomeScreen.js +461 -22
  31. package/lib/commonjs/components/icons/Basicproficon.js +37 -8
  32. package/lib/commonjs/components/icons/Basicprofile.js +21 -8
  33. package/lib/commonjs/components/icons/Checkbox.js +21 -8
  34. package/lib/commonjs/components/icons/Checkmark.js +27 -8
  35. package/lib/commonjs/components/icons/Contentanalysis.js +21 -8
  36. package/lib/commonjs/components/icons/Contenticon.js +39 -8
  37. package/lib/commonjs/components/icons/EnochE.js +41 -8
  38. package/lib/commonjs/components/icons/Personalityicon.js +30 -8
  39. package/lib/commonjs/components/icons/Personalityprofile.js +21 -8
  40. package/lib/commonjs/components/icons/Personalitytraits.js +21 -8
  41. package/lib/commonjs/components/icons/Userpreferences.js +21 -8
  42. package/lib/commonjs/components/icons/index.js +84 -17
  43. package/lib/commonjs/components/onboarding/OAuthWebView.js +1754 -18
  44. package/lib/commonjs/components/onboarding/OnboardingHeader.js +74 -10
  45. package/lib/commonjs/components/onboarding/PinInput.js +283 -10
  46. package/lib/commonjs/components/onboarding/PlatformConnector.js +249 -11
  47. package/lib/commonjs/config/PLATFORM_APIS.md +849 -0
  48. package/lib/commonjs/config/api.js +56 -7
  49. package/lib/commonjs/constants/index.js +120 -7
  50. package/lib/commonjs/context/AuthContext.js +345 -10
  51. package/lib/commonjs/hooks/useConnectedAccounts.js +111 -9
  52. package/lib/commonjs/hooks/useConnections.js +102 -8
  53. package/lib/commonjs/hooks/useCredentials.js +178 -10
  54. package/lib/commonjs/hooks/useUserConnections.js +148 -10
  55. package/lib/commonjs/index.js +439 -34
  56. package/lib/commonjs/services/apiClient.js +298 -8
  57. package/lib/commonjs/services/biometricPinService.js +180 -8
  58. package/lib/commonjs/services/chatGPTConversationExtractor.js +155 -8
  59. package/lib/commonjs/services/chatGPTConversationService.js +275 -9
  60. package/lib/commonjs/services/claudeConversationExtractor.js +103 -8
  61. package/lib/commonjs/services/claudeConversationService.js +158 -9
  62. package/lib/commonjs/services/connectedAccountsService.js +310 -10
  63. package/lib/commonjs/services/googleAuthService.js +252 -11
  64. package/lib/commonjs/services/hingeDataExtractor.js +105 -8
  65. package/lib/commonjs/services/hingeDataService.js +150 -9
  66. package/lib/commonjs/services/imageCompressionService.js +260 -7
  67. package/lib/commonjs/services/instagramDataExtractor.js +126 -8
  68. package/lib/commonjs/services/instagramDataService.js +163 -9
  69. package/lib/commonjs/services/jwtStorageService.js +276 -7
  70. package/lib/commonjs/services/linkedinDOMExtractor.js +245 -7
  71. package/lib/commonjs/services/linkedinProfileService.js +222 -9
  72. package/lib/commonjs/services/linkedinScrapingService.js +230 -8
  73. package/lib/commonjs/services/llmDataStorage.js +294 -8
  74. package/lib/commonjs/services/mobileTrainingService.js +186 -8
  75. package/lib/commonjs/services/netflixDataExtractor.js +120 -8
  76. package/lib/commonjs/services/netflixDataService.js +198 -9
  77. package/lib/commonjs/services/pinEncryptionService.js +84 -8
  78. package/lib/commonjs/services/pinStorageUtils.js +105 -7
  79. package/lib/commonjs/services/platformAuthService.js +1484 -12
  80. package/lib/commonjs/services/sephoraDataExtractor.js +140 -8
  81. package/lib/commonjs/services/sephoraDataService.js +200 -9
  82. package/lib/commonjs/services/spotifyDataExtractor.js +148 -8
  83. package/lib/commonjs/services/spotifyDataService.js +241 -9
  84. package/lib/commonjs/services/storageService.js +404 -8
  85. package/lib/commonjs/services/telegramDataExtractor.js +115 -8
  86. package/lib/commonjs/services/telegramDataService.js +499 -9
  87. package/lib/commonjs/services/trainingApiHelpers.js +73 -7
  88. package/lib/commonjs/services/userConnectionsService.js +340 -10
  89. package/lib/commonjs/services/youtubeMigrationService.js +416 -10
  90. package/lib/commonjs/theme/index.js +250 -7
  91. package/lib/commonjs/types/ambient.d.js +2 -1
  92. package/lib/commonjs/types/declarations.d.js +2 -1
  93. package/lib/commonjs/types/index.js +6 -1
  94. package/lib/commonjs/types/node-fix.d.js +2 -1
  95. package/lib/commonjs/types/node-override.d.js +2 -1
  96. package/lib/commonjs/types/opacity.d.js +2 -1
  97. package/lib/commonjs/types.js +14 -1
  98. package/lib/commonjs/utils/Portal.js +98 -8
  99. package/lib/commonjs/utils/api.js +130 -9
  100. package/lib/commonjs/utils/assetRegistry.js +210 -35
  101. package/lib/commonjs/utils/auth.js +112 -9
  102. package/lib/commonjs/utils/connectorTests.js +613 -29
  103. package/lib/commonjs/utils/crypto.js +62 -8
  104. package/lib/commonjs/utils/debugHelper.js +64 -1
  105. package/lib/commonjs/utils/encryption.js +76 -7
  106. package/lib/commonjs/utils/eventUtils.js +288 -1
  107. package/lib/commonjs/utils/haptics.js +66 -9
  108. package/lib/commonjs/utils/imagePreloader.js +6 -1
  109. package/lib/commonjs/utils/networkDiagnostics.js +226 -8
  110. package/lib/commonjs/utils/onairosApi.js +350 -9
  111. package/lib/commonjs/utils/programmaticFlow.js +117 -9
  112. package/lib/commonjs/utils/retryHelper.js +220 -1
  113. package/lib/commonjs/utils/secureStorage.js +349 -10
  114. package/lib/commonjs/utils/webviewScripts/chatgpt.js +551 -1
  115. package/lib/commonjs/utils/webviewScripts/claude.js +376 -1
  116. package/lib/commonjs/utils/webviewScripts/hinge.js +411 -1
  117. package/lib/commonjs/utils/webviewScripts/index.js +698 -15
  118. package/lib/commonjs/utils/webviewScripts/instagram.js +454 -1
  119. package/lib/commonjs/utils/webviewScripts/linkedin.js +880 -1
  120. package/lib/commonjs/utils/webviewScripts/netflix.js +382 -1
  121. package/lib/commonjs/utils/webviewScripts/sephora.js +516 -1
  122. package/lib/commonjs/utils/webviewScripts/spotify.js +419 -1
  123. package/lib/commonjs/utils/webviewScripts/telegram.js +678 -1
  124. package/lib/module/api/index.js +211 -1
  125. package/lib/module/assets/icons/spotify.png +0 -0
  126. package/lib/module/assets/images/spotify.png +0 -0
  127. package/lib/module/components/BodyText.js +20 -1
  128. package/lib/module/components/BrandMark.js +104 -1
  129. package/lib/module/components/CodeInput.js +109 -1
  130. package/lib/module/components/EmailInput.js +23 -1
  131. package/lib/module/components/GoogleButton.js +49 -1
  132. package/lib/module/components/HeadingGroup.js +36 -1
  133. package/lib/module/components/LLMDataInputModal.js +656 -7
  134. package/lib/module/components/ModalHeader.js +92 -1
  135. package/lib/module/components/ModalSheet.js +39 -1
  136. package/lib/module/components/Onairos.js +373 -1
  137. package/lib/module/components/OnairosButton.js +305 -1
  138. package/lib/module/components/OnairosSignInButton.js +121 -1
  139. package/lib/module/components/Overlay.js +456 -1
  140. package/lib/module/components/PersonaImage.js +129 -1
  141. package/lib/module/components/PersonaLoadingScreen.js +310 -1
  142. package/lib/module/components/PersonalizationConsentScreen.js +460 -1
  143. package/lib/module/components/PinCreationScreen.js +396 -1
  144. package/lib/module/components/PinInput.js +456 -1
  145. package/lib/module/components/PlatformConnectorsStep.js +1302 -6
  146. package/lib/module/components/PlatformList.js +129 -1
  147. package/lib/module/components/PlatformToggle.js +173 -1
  148. package/lib/module/components/PrimaryButton.js +172 -1
  149. package/lib/module/components/SignInMatchAnimation.js +189 -1
  150. package/lib/module/components/SignInStep.js +338 -1
  151. package/lib/module/components/UniversalOnboarding.js +2770 -1
  152. package/lib/module/components/VerificationStep.js +168 -1
  153. package/lib/module/components/WelcomeScreen.js +453 -1
  154. package/lib/module/components/icons/Basicproficon.js +30 -1
  155. package/lib/module/components/icons/Basicprofile.js +14 -1
  156. package/lib/module/components/icons/Checkbox.js +14 -1
  157. package/lib/module/components/icons/Checkmark.js +20 -1
  158. package/lib/module/components/icons/Contentanalysis.js +14 -1
  159. package/lib/module/components/icons/Contenticon.js +32 -1
  160. package/lib/module/components/icons/EnochE.js +34 -1
  161. package/lib/module/components/icons/Personalityicon.js +23 -1
  162. package/lib/module/components/icons/Personalityprofile.js +14 -1
  163. package/lib/module/components/icons/Personalitytraits.js +14 -1
  164. package/lib/module/components/icons/Userpreferences.js +14 -1
  165. package/lib/module/components/icons/index.js +13 -1
  166. package/lib/module/components/onboarding/OAuthWebView.js +1746 -1
  167. package/lib/module/components/onboarding/OnboardingHeader.js +66 -1
  168. package/lib/module/components/onboarding/PinInput.js +274 -1
  169. package/lib/module/components/onboarding/PlatformConnector.js +240 -1
  170. package/lib/module/config/PLATFORM_APIS.md +849 -0
  171. package/lib/module/config/api.js +47 -1
  172. package/lib/module/constants/index.js +114 -1
  173. package/lib/module/context/AuthContext.js +335 -1
  174. package/lib/module/hooks/useConnectedAccounts.js +106 -1
  175. package/lib/module/hooks/useConnections.js +95 -1
  176. package/lib/module/hooks/useCredentials.js +171 -6
  177. package/lib/module/hooks/useUserConnections.js +140 -1
  178. package/lib/module/index.js +172 -1
  179. package/lib/module/services/apiClient.js +295 -1
  180. package/lib/module/services/biometricPinService.js +169 -1
  181. package/lib/module/services/chatGPTConversationExtractor.js +149 -1
  182. package/lib/module/services/chatGPTConversationService.js +268 -1
  183. package/lib/module/services/claudeConversationExtractor.js +97 -1
  184. package/lib/module/services/claudeConversationService.js +151 -1
  185. package/lib/module/services/connectedAccountsService.js +293 -1
  186. package/lib/module/services/googleAuthService.js +241 -1
  187. package/lib/module/services/hingeDataExtractor.js +99 -1
  188. package/lib/module/services/hingeDataService.js +143 -1
  189. package/lib/module/services/imageCompressionService.js +250 -1
  190. package/lib/module/services/instagramDataExtractor.js +120 -1
  191. package/lib/module/services/instagramDataService.js +156 -1
  192. package/lib/module/services/jwtStorageService.js +257 -1
  193. package/lib/module/services/linkedinDOMExtractor.js +234 -1
  194. package/lib/module/services/linkedinProfileService.js +210 -1
  195. package/lib/module/services/linkedinScrapingService.js +219 -1
  196. package/lib/module/services/llmDataStorage.js +277 -1
  197. package/lib/module/services/mobileTrainingService.js +173 -1
  198. package/lib/module/services/netflixDataExtractor.js +114 -1
  199. package/lib/module/services/netflixDataService.js +191 -1
  200. package/lib/module/services/pinEncryptionService.js +74 -6
  201. package/lib/module/services/pinStorageUtils.js +93 -1
  202. package/lib/module/services/platformAuthService.js +1461 -1
  203. package/lib/module/services/sephoraDataExtractor.js +134 -1
  204. package/lib/module/services/sephoraDataService.js +193 -1
  205. package/lib/module/services/spotifyDataExtractor.js +142 -1
  206. package/lib/module/services/spotifyDataService.js +234 -1
  207. package/lib/module/services/storageService.js +383 -1
  208. package/lib/module/services/telegramDataExtractor.js +109 -1
  209. package/lib/module/services/telegramDataService.js +493 -1
  210. package/lib/module/services/trainingApiHelpers.js +67 -1
  211. package/lib/module/services/userConnectionsService.js +329 -1
  212. package/lib/module/services/youtubeMigrationService.js +405 -1
  213. package/lib/module/theme/index.js +245 -1
  214. package/lib/module/types.js +10 -1
  215. package/lib/module/utils/Portal.js +90 -1
  216. package/lib/module/utils/api.js +118 -1
  217. package/lib/module/utils/assetRegistry.js +200 -34
  218. package/lib/module/utils/auth.js +100 -1
  219. package/lib/module/utils/connectorTests.js +600 -27
  220. package/lib/module/utils/crypto.js +54 -1
  221. package/lib/module/utils/debugHelper.js +54 -1
  222. package/lib/module/utils/encryption.js +67 -1
  223. package/lib/module/utils/eventUtils.js +270 -1
  224. package/lib/module/utils/haptics.js +59 -8
  225. package/lib/module/utils/imagePreloader.js +3 -1
  226. package/lib/module/utils/networkDiagnostics.js +217 -1
  227. package/lib/module/utils/onairosApi.js +333 -1
  228. package/lib/module/utils/programmaticFlow.js +111 -1
  229. package/lib/module/utils/retryHelper.js +211 -1
  230. package/lib/module/utils/secureStorage.js +330 -6
  231. package/lib/module/utils/webviewScripts/chatgpt.js +545 -1
  232. package/lib/module/utils/webviewScripts/claude.js +370 -1
  233. package/lib/module/utils/webviewScripts/hinge.js +405 -1
  234. package/lib/module/utils/webviewScripts/index.js +434 -1
  235. package/lib/module/utils/webviewScripts/instagram.js +448 -1
  236. package/lib/module/utils/webviewScripts/linkedin.js +874 -1
  237. package/lib/module/utils/webviewScripts/netflix.js +376 -1
  238. package/lib/module/utils/webviewScripts/sephora.js +510 -1
  239. package/lib/module/utils/webviewScripts/spotify.js +413 -1
  240. package/lib/module/utils/webviewScripts/telegram.js +672 -1
  241. package/package.json +2 -2
@@ -1,13 +1,467 @@
1
- 'use strict';
2
- // Onairos SDK - Asset Registry (auto-generated)
3
- var __ONAIROS_REQ_REGISTRY__ = [
4
- require("react"),
5
- require("react-native"),
6
- require("../theme"),
7
- require("../utils/haptics"),
8
- require("../services/connectedAccountsService"),
9
- require("../utils/assetRegistry"),
10
- require("./icons")
11
- ];
12
- function __ONAIROS_REQ_FUNC__(i) { return __ONAIROS_REQ_REGISTRY__[i]; }
13
- Object[_0xa6fa(0x0)](exports,_0xa6fa(0x1),{'value':!![]}),exports[_0xa6fa(0x2)]=exports[_0xa6fa(0x3)]=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 _interopRequireWildcard(_0x174744,_0x4e2f1e){var _0x482c80={'ykpaO':function(_0xa673f3,_0x19281b){return _0xa673f3===_0x19281b;},'oPMCo':function(_0x155b23,_0x4b355b){return _0x155b23!==_0x4b355b;},'GgfNq':_0xa6fa(0x2),'IWnwe':function(_0x241da8,_0x2c89d6,_0x9e6317,_0x122305){return _0x241da8(_0x2c89d6,_0x9e6317,_0x122305);},'xfqkJ':function(_0x113280,_0x2acad8){return _0x113280==_0x2acad8;},'gDRAk':_0xa6fa(0x4),'YkhKJ':_0xa6fa(0x5),'vvRTO':'hhVXI','gyGCb':function(_0x125ec4,_0x298959){return _0x125ec4&&_0x298959;},'GlCgB':function(_0x32e442,_0x3eca76){return _0x32e442===_0x3eca76;},'YyRTo':function(_0x3d262a,_0x4cbbb8){return _0x3d262a!=_0x4cbbb8;},'ridgB':function(_0x1bf981,_0x3caaf5){return _0x1bf981!=_0x3caaf5;},'GZqrY':function(_0x55787a,_0x33e62b){return _0x55787a!==_0x33e62b;},'ZvswI':function(_0x333815,_0x39a647,_0x55ec1d,_0x12ad3e){return _0x333815(_0x39a647,_0x55ec1d,_0x12ad3e);}};if(_0x482c80[_0xa6fa(0x6)]==typeof WeakMap)var _0x227f0a=new WeakMap(),_0x13a7fd=new WeakMap();return(_interopRequireWildcard=function(_0x1d3247,_0x1d62f5){if(_0x482c80[_0xa6fa(0x7)]===_0x482c80['vvRTO']){var _0x21d811={'lxLDY':function(_0x5a27fa,_0x5a44c1){return _0x482c80[_0xa6fa(0x8)](_0x5a27fa,_0x5a44c1);},'JnlpE':function(_0xd3b7b4,_0x327fb1){return _0xd3b7b4!=_0x327fb1;},'QXgsE':'object','kOSan':function(_0xaeb052,_0xff85b){return _0x482c80[_0xa6fa(0x9)](_0xaeb052,_0xff85b);},'Qhnsp':_0x482c80[_0xa6fa(0xa)],'nZCVE':function(_0x4e3de7,_0x102c46,_0x1cdcd5,_0x3757ca){return _0x482c80['IWnwe'](_0x4e3de7,_0x102c46,_0x1cdcd5,_0x3757ca);}};if(_0x482c80[_0xa6fa(0xb)](_0x482c80[_0xa6fa(0x6)],typeof _0x3e25c9))var _0x34ae7f=new _0x568360(),_0x1ac00b=new _0x52e064();return(_0x4cc26c=function(_0x10aeeb,_0x3d1eee){if(!_0x3d1eee&&_0x10aeeb&&_0x10aeeb[_0xa6fa(0x1)])return _0x10aeeb;var _0x372e97,_0x12a636,_0x1d4227={'__proto__':null,'default':_0x10aeeb};if(_0x21d811[_0xa6fa(0xc)](null,_0x10aeeb)||_0x21d811['JnlpE'](_0x21d811['QXgsE'],typeof _0x10aeeb)&&_0x21d811[_0xa6fa(0xd)](_0xa6fa(0x4),typeof _0x10aeeb))return _0x1d4227;if(_0x372e97=_0x3d1eee?_0x1ac00b:_0x34ae7f){if(_0x372e97['has'](_0x10aeeb))return _0x372e97['get'](_0x10aeeb);_0x372e97['set'](_0x10aeeb,_0x1d4227);}for(const _0xfdb376 in _0x10aeeb)_0x21d811[_0xa6fa(0xe)](_0x21d811[_0xa6fa(0xf)],_0xfdb376)&&{}[_0xa6fa(0x10)][_0xa6fa(0x11)](_0x10aeeb,_0xfdb376)&&((_0x12a636=(_0x372e97=_0x4bf17d['defineProperty'])&&_0x2b22bc[_0xa6fa(0x12)](_0x10aeeb,_0xfdb376))&&(_0x12a636[_0xa6fa(0x13)]||_0x12a636[_0xa6fa(0x14)])?_0x21d811[_0xa6fa(0x15)](_0x372e97,_0x1d4227,_0xfdb376,_0x12a636):_0x1d4227[_0xfdb376]=_0x10aeeb[_0xfdb376]);return _0x1d4227;})(_0x4967c9,_0x3ff0ee);}else{if(_0x482c80['gyGCb'](!_0x1d62f5,_0x1d3247)&&_0x1d3247[_0xa6fa(0x1)])return _0x1d3247;var _0x268ccc,_0xfb46f6,_0x47a716={'__proto__':null,'default':_0x1d3247};if(_0x482c80[_0xa6fa(0x16)](null,_0x1d3247)||_0x482c80[_0xa6fa(0x17)](_0xa6fa(0x18),typeof _0x1d3247)&&_0x482c80['ridgB'](_0x482c80[_0xa6fa(0x6)],typeof _0x1d3247))return _0x47a716;if(_0x268ccc=_0x1d62f5?_0x13a7fd:_0x227f0a){if(_0x268ccc['has'](_0x1d3247))return _0x268ccc[_0xa6fa(0x13)](_0x1d3247);_0x268ccc['set'](_0x1d3247,_0x47a716);}for(const _0x217339 in _0x1d3247)_0x482c80[_0xa6fa(0x19)](_0x482c80[_0xa6fa(0xa)],_0x217339)&&{}[_0xa6fa(0x10)][_0xa6fa(0x11)](_0x1d3247,_0x217339)&&((_0xfb46f6=(_0x268ccc=Object[_0xa6fa(0x0)])&&Object[_0xa6fa(0x12)](_0x1d3247,_0x217339))&&(_0xfb46f6[_0xa6fa(0x13)]||_0xfb46f6[_0xa6fa(0x14)])?_0x482c80[_0xa6fa(0x1a)](_0x268ccc,_0x47a716,_0x217339,_0xfb46f6):_0x47a716[_0x217339]=_0x1d3247[_0x217339]);return _0x47a716;}})(_0x174744,_0x4e2f1e);}const PersonalizationConsentScreen=({visible:_0xeddac2,onAccept:_0x510db2,onDecline:_0xc02efe,loading:loading=![],connectedPlatforms:connectedPlatforms=[],onConnectMore:_0x41f185,isReturningUser:isReturningUser=![],appName:appName='Enoch',onLogout:_0x459365})=>{var _0x4908bb={'bPigG':function(_0x5d7ea0,_0x3687b4){return _0x5d7ea0===_0x3687b4;},'cAqib':_0xa6fa(0x1b),'YNmXs':function(_0x5b7be0){return _0x5b7be0();},'SWpjY':function(_0x3d353c,_0x4b58ab){return _0x3d353c!=_0x4b58ab;},'POXWm':_0xa6fa(0x18),'oyChK':function(_0x4f673d,_0x340964){return _0x4f673d!==_0x340964;},'xUSbG':'default','Jpkqx':function(_0x395413,_0x3787de,_0x46092f,_0x39043e){return _0x395413(_0x3787de,_0x46092f,_0x39043e);},'ztkQB':function(_0x51dac9,_0x59cb31){return _0x51dac9!==_0x59cb31;},'Jekek':_0xa6fa(0x1c),'dWuCV':_0xa6fa(0x1d),'QtkdM':function(_0x17cba6){return _0x17cba6();},'IqDSB':function(_0x1fdb72){return _0x1fdb72();},'YvrLx':_0xa6fa(0x1e),'ibhDi':_0xa6fa(0x1f),'FCSRf':_0xa6fa(0x20),'aIiIy':'Connected\x20Platforms','XyNYf':function(_0x3967f5,_0x117ea4){return _0x3967f5>_0x117ea4;},'KCyNY':_0xa6fa(0x21),'aIDQx':_0xa6fa(0x22),'DPADL':_0xa6fa(0x23),'JeEGl':_0xa6fa(0x24)};const [_0x78e8bf,_0x2472df]=(0x0,_react[_0xa6fa(0x25)])({'basicProfile':!![],'contentAnalysis':![],'personalityProfile':![]}),_0xa4f9e3=_0x168f2d=>{if(_0x4908bb['bPigG'](_0x168f2d,_0xa6fa(0x26)))return;(0x0,_haptics[_0xa6fa(0x27)])(_haptics[_0xa6fa(0x28)][_0xa6fa(0x29)]),_0x2472df(_0x3d8538=>({..._0x3d8538,[_0x168f2d]:!_0x3d8538[_0x168f2d]}));},_0x5707f2=Object[_0xa6fa(0x2a)](_0x78e8bf)[_0xa6fa(0x2b)](_0x2ecc72=>_0x2ecc72);if(!_0xeddac2)return null;return _react[_0xa6fa(0x2)][_0xa6fa(0x2c)](_reactNative[_0xa6fa(0x2d)],{'style':styles['container']},_react[_0xa6fa(0x2)][_0xa6fa(0x2c)](_reactNative['ScrollView'],{'style':styles[_0xa6fa(0x2e)],'contentContainerStyle':styles[_0xa6fa(0x2f)],'showsVerticalScrollIndicator':![]},_react[_0xa6fa(0x2)][_0xa6fa(0x2c)](_reactNative[_0xa6fa(0x2d)],{'style':styles[_0xa6fa(0x30)]},_react[_0xa6fa(0x2)][_0xa6fa(0x2c)](_reactNative[_0xa6fa(0x2d)],{'style':styles[_0xa6fa(0x31)]},_react[_0xa6fa(0x2)][_0xa6fa(0x2c)](_reactNative[_0xa6fa(0x32)],{'source':_assetRegistry[_0xa6fa(0x33)][_0xa6fa(0x34)],'style':styles[_0xa6fa(0x35)],'resizeMode':_0x4908bb['YvrLx']})),_react[_0xa6fa(0x2)][_0xa6fa(0x2c)](_reactNative[_0xa6fa(0x36)],{'style':styles[_0xa6fa(0x37)]},'→'),_react[_0xa6fa(0x2)]['createElement'](_reactNative['Image'],{'source':_assetRegistry[_0xa6fa(0x33)]['enochIcon'],'style':styles[_0xa6fa(0x38)],'resizeMode':_0x4908bb[_0xa6fa(0x39)]})),_react[_0xa6fa(0x2)][_0xa6fa(0x2c)](_reactNative[_0xa6fa(0x2d)],{'style':styles['titleContainer']},isReturningUser&&_react[_0xa6fa(0x2)][_0xa6fa(0x2c)](_reactNative[_0xa6fa(0x36)],{'style':styles['welcomeBackText']},_0x4908bb[_0xa6fa(0x3a)]),_react['default']['createElement'](_reactNative[_0xa6fa(0x36)],{'style':styles[_0xa6fa(0x3b)]},appName,_0xa6fa(0x3c)),_react['default'][_0xa6fa(0x2c)](_reactNative[_0xa6fa(0x36)],{'style':styles['subtitle']},_0xa6fa(0x3d))),_react[_0xa6fa(0x2)]['createElement'](_reactNative[_0xa6fa(0x2d)],{'style':styles[_0xa6fa(0x3e)]},_react[_0xa6fa(0x2)][_0xa6fa(0x2c)](_reactNative[_0xa6fa(0x3f)],{'style':styles[_0xa6fa(0x40)],'onPress':()=>_0xa4f9e3('basicProfile')},_react[_0xa6fa(0x2)]['createElement'](_reactNative[_0xa6fa(0x2d)],{'style':styles['optionLeft']},_react[_0xa6fa(0x2)][_0xa6fa(0x2c)](_icons[_0xa6fa(0x41)],{'width':0x20,'height':0x20,'fill':_theme[_0xa6fa(0x42)]['grey700'],'style':styles[_0xa6fa(0x43)]}),_react[_0xa6fa(0x2)][_0xa6fa(0x2c)](_icons[_0xa6fa(0x44)],{'height':0x18,'fill':_theme[_0xa6fa(0x42)]['grey800'],'style':styles['optionText']})),_react[_0xa6fa(0x2)][_0xa6fa(0x2c)](_reactNative[_0xa6fa(0x2d)],{'style':styles[_0xa6fa(0x45)]},_0x78e8bf[_0xa6fa(0x26)]?_react['default']['createElement'](_icons[_0xa6fa(0x46)],{'width':0x18,'height':0x18,'fill':_0x4908bb[_0xa6fa(0x47)],'style':styles[_0xa6fa(0x48)]}):_react[_0xa6fa(0x2)]['createElement'](_icons[_0xa6fa(0x49)],{'width':0x18,'height':0x18,'stroke':_theme[_0xa6fa(0x42)][_0xa6fa(0x4a)],'style':styles[_0xa6fa(0x48)]}))),_react[_0xa6fa(0x2)][_0xa6fa(0x2c)](_reactNative[_0xa6fa(0x3f)],{'style':styles['optionRow'],'onPress':()=>_0xa4f9e3(_0xa6fa(0x4b))},_react[_0xa6fa(0x2)][_0xa6fa(0x2c)](_reactNative[_0xa6fa(0x2d)],{'style':styles['optionLeft']},_react['default'][_0xa6fa(0x2c)](_icons[_0xa6fa(0x4c)],{'width':0x20,'height':0x20,'fill':_theme[_0xa6fa(0x42)][_0xa6fa(0x4d)],'style':styles[_0xa6fa(0x43)]}),_react[_0xa6fa(0x2)][_0xa6fa(0x2c)](_icons[_0xa6fa(0x4e)],{'height':0x18,'fill':_theme['COLORS']['grey800'],'style':styles[_0xa6fa(0x4f)]})),_react[_0xa6fa(0x2)][_0xa6fa(0x2c)](_reactNative['View'],{'style':styles[_0xa6fa(0x45)]},_0x78e8bf[_0xa6fa(0x4b)]?_react['default'][_0xa6fa(0x2c)](_icons['Checkmark'],{'width':0x18,'height':0x18,'fill':_0x4908bb[_0xa6fa(0x47)],'style':styles[_0xa6fa(0x48)]}):_react[_0xa6fa(0x2)]['createElement'](_icons['Checkbox'],{'width':0x18,'height':0x18,'stroke':_theme[_0xa6fa(0x42)][_0xa6fa(0x4a)],'style':styles[_0xa6fa(0x48)]}))),_react[_0xa6fa(0x2)]['createElement'](_reactNative[_0xa6fa(0x3f)],{'style':styles['optionRow'],'onPress':()=>_0xa4f9e3('personalityProfile')},_react[_0xa6fa(0x2)][_0xa6fa(0x2c)](_reactNative[_0xa6fa(0x2d)],{'style':styles[_0xa6fa(0x50)]},_react['default'][_0xa6fa(0x2c)](_icons[_0xa6fa(0x51)],{'width':0x20,'height':0x20,'fill':_theme['COLORS'][_0xa6fa(0x4d)],'style':styles['optionIcon']}),_react[_0xa6fa(0x2)][_0xa6fa(0x2c)](_icons[_0xa6fa(0x52)],{'height':0x18,'fill':_theme[_0xa6fa(0x42)][_0xa6fa(0x53)],'style':styles[_0xa6fa(0x4f)]})),_react[_0xa6fa(0x2)][_0xa6fa(0x2c)](_reactNative[_0xa6fa(0x2d)],{'style':styles[_0xa6fa(0x45)]},_0x78e8bf[_0xa6fa(0x54)]?_react[_0xa6fa(0x2)][_0xa6fa(0x2c)](_icons[_0xa6fa(0x46)],{'width':0x18,'height':0x18,'fill':_0x4908bb['FCSRf'],'style':styles[_0xa6fa(0x48)]}):_react[_0xa6fa(0x2)]['createElement'](_icons[_0xa6fa(0x49)],{'width':0x18,'height':0x18,'stroke':_theme[_0xa6fa(0x42)][_0xa6fa(0x4a)],'style':styles[_0xa6fa(0x48)]})))),_react[_0xa6fa(0x2)][_0xa6fa(0x2c)](_reactNative[_0xa6fa(0x2d)],{'style':styles[_0xa6fa(0x55)]},_react[_0xa6fa(0x2)][_0xa6fa(0x2c)](_reactNative['Text'],{'style':styles['connectedPlatformsTitle']},_0x4908bb[_0xa6fa(0x56)]),_0x4908bb[_0xa6fa(0x57)](connectedPlatforms['length'],0x0)&&_react[_0xa6fa(0x2)][_0xa6fa(0x2c)](_reactNative[_0xa6fa(0x2d)],{'style':styles[_0xa6fa(0x58)]},connectedPlatforms[_0xa6fa(0x59)](_0x30fab8=>_react[_0xa6fa(0x2)]['createElement'](_reactNative[_0xa6fa(0x2d)],{'key':_0x30fab8,'style':styles[_0xa6fa(0x5a)]},_react[_0xa6fa(0x2)]['createElement'](_reactNative[_0xa6fa(0x32)],{'source':(0x0,_connectedAccountsService[_0xa6fa(0x5b)])(_0x30fab8),'style':styles[_0xa6fa(0x5c)],'resizeMode':_0xa6fa(0x1e)})))),_0x41f185&&_react[_0xa6fa(0x2)][_0xa6fa(0x2c)](_reactNative[_0xa6fa(0x3f)],{'style':styles[_0xa6fa(0x5d)],'onPress':()=>{_0x4908bb[_0xa6fa(0x5e)](_0x4908bb[_0xa6fa(0x5f)],'glxFB')?((0x0,_0x1d4d3b[_0xa6fa(0x27)])(_0x43ac05[_0xa6fa(0x28)][_0xa6fa(0x29)]),_0x25891e()):((0x0,_haptics[_0xa6fa(0x27)])(_haptics['HapticType'][_0xa6fa(0x29)]),_0x4908bb[_0xa6fa(0x60)](_0x41f185));}},_react[_0xa6fa(0x2)][_0xa6fa(0x2c)](_reactNative['Text'],{'style':styles[_0xa6fa(0x61)]},_0x4908bb[_0xa6fa(0x62)]),_react['default'][_0xa6fa(0x2c)](_reactNative[_0xa6fa(0x2d)],{'style':styles[_0xa6fa(0x63)]},_react[_0xa6fa(0x2)][_0xa6fa(0x2c)](_reactNative['Text'],{'style':styles[_0xa6fa(0x64)]},'+')))),_react[_0xa6fa(0x2)][_0xa6fa(0x2c)](_reactNative[_0xa6fa(0x2d)],{'style':styles[_0xa6fa(0x65)]},_react[_0xa6fa(0x2)][_0xa6fa(0x2c)](_reactNative['TouchableOpacity'],{'style':[styles[_0xa6fa(0x66)],_0x5707f2&&styles[_0xa6fa(0x67)],loading&&styles['acceptButtonLoading']],'onPress':()=>{if(_0x4908bb[_0xa6fa(0x68)]('rkjlP',_0x4908bb[_0xa6fa(0x69)])){if(!_0x409c89&&_0x31a5d0&&_0x26d3a9[_0xa6fa(0x1)])return _0x1e19f3;var _0x85dfc4,_0x5301a6,_0x35e742={'__proto__':null,'default':_0x98b299};if(null===_0x1691fd||_0x4908bb[_0xa6fa(0x6a)](_0x4908bb[_0xa6fa(0x6b)],typeof _0x2d95d7)&&_0xa6fa(0x4)!=typeof _0x119dde)return _0x35e742;if(_0x85dfc4=_0x386a0e?_0x44ed03:_0x43bd9c){if(_0x85dfc4[_0xa6fa(0x6c)](_0x13cd55))return _0x85dfc4['get'](_0x44911a);_0x85dfc4['set'](_0x2d5673,_0x35e742);}for(const _0x24d7a6 in _0x4edffd)_0x4908bb[_0xa6fa(0x6d)](_0x4908bb[_0xa6fa(0x6e)],_0x24d7a6)&&{}[_0xa6fa(0x10)][_0xa6fa(0x11)](_0x2fb93c,_0x24d7a6)&&((_0x5301a6=(_0x85dfc4=_0x18d924[_0xa6fa(0x0)])&&_0x34b939[_0xa6fa(0x12)](_0xdd4b33,_0x24d7a6))&&(_0x5301a6['get']||_0x5301a6[_0xa6fa(0x14)])?_0x4908bb[_0xa6fa(0x6f)](_0x85dfc4,_0x35e742,_0x24d7a6,_0x5301a6):_0x35e742[_0x24d7a6]=_0x59f6dd[_0x24d7a6]);return _0x35e742;}else!loading&&(_0x4908bb[_0xa6fa(0x5e)](_0x4908bb['dWuCV'],_0xa6fa(0x70))?((0x0,_0x24e436[_0xa6fa(0x27)])(_0x48e777[_0xa6fa(0x28)][_0xa6fa(0x29)]),_0x3d59d7()):((0x0,_haptics[_0xa6fa(0x27)])(_haptics[_0xa6fa(0x28)]['BUTTON_PRESS']),_0x4908bb[_0xa6fa(0x71)](_0x510db2)));},'disabled':loading,'activeOpacity':loading?0x1:0.7},loading?_react[_0xa6fa(0x2)]['createElement'](_reactNative[_0xa6fa(0x72)],{'size':_0x4908bb[_0xa6fa(0x73)],'color':_0x4908bb[_0xa6fa(0x74)]}):_react[_0xa6fa(0x2)][_0xa6fa(0x2c)](_react[_0xa6fa(0x2)]['Fragment'],null,_react[_0xa6fa(0x2)][_0xa6fa(0x2c)](_reactNative[_0xa6fa(0x36)],{'style':[styles[_0xa6fa(0x75)],_0x5707f2&&styles['acceptButtonTextActive']]},_0x4908bb['JeEGl']),_react[_0xa6fa(0x2)]['createElement'](_reactNative['Text'],{'style':[styles['buttonArrow'],_0x5707f2&&styles[_0xa6fa(0x76)]]},'→'))),_react[_0xa6fa(0x2)]['createElement'](_reactNative['TouchableOpacity'],{'style':styles[_0xa6fa(0x77)],'onPress':()=>{(0x0,_haptics[_0xa6fa(0x27)])(_haptics[_0xa6fa(0x28)][_0xa6fa(0x29)]),_0x4908bb[_0xa6fa(0x78)](_0xc02efe);}},_react['default'][_0xa6fa(0x2c)](_reactNative[_0xa6fa(0x36)],{'style':styles[_0xa6fa(0x79)]},_0xa6fa(0x7a))))));};function _0xfe6c(){var _0xffe12f=['defineProperty','__esModule','default','PersonalizationConsentScreen','function','XkrSy','gDRAk','YkhKJ','ykpaO','oPMCo','GgfNq','xfqkJ','lxLDY','JnlpE','kOSan','Qhnsp','hasOwnProperty','call','getOwnPropertyDescriptor','get','set','nZCVE','GlCgB','YyRTo','object','GZqrY','ZvswI','FLTPE','rkjlP','YSROK','contain','Welcome\x20back!','#4CD964','Connect\x20more','small','#FFFFFF','Accept\x20&\x20Continue','useState','basicProfile','triggerHaptic','HapticType','BUTTON_PRESS','values','some','createElement','View','scrollView','scrollContent','headerContainer','iconContainer','Image','BRAND_IMAGES','onairosLogo','headerIcon','Text','arrow','enochAppIcon','YvrLx','ibhDi','title','\x20wants\x20to\x20personalize\x20your\x20experience','Choose\x20what\x20to\x20share:','optionsContainer','TouchableOpacity','optionRow','Basicproficon','COLORS','optionIcon','Basicprofile','checkboxContainer','Checkmark','FCSRf','checkbox','Checkbox','grey400','contentAnalysis','Contenticon','grey700','Userpreferences','optionText','optionLeft','Personalityicon','Personalitytraits','grey800','personalityProfile','connectedPlatformsSection','aIiIy','XyNYf','connectedPlatformsIcons','map','connectedPlatformIconContainer','getPlatformIcon','connectedPlatformIcon','connectMoreButton','bPigG','cAqib','YNmXs','connectMoreText','KCyNY','connectMorePlusCircle','connectMorePlus','buttonContainer','acceptButton','acceptButtonActive','ztkQB','Jekek','SWpjY','POXWm','has','oyChK','xUSbG','Jpkqx','EooTZ','QtkdM','ActivityIndicator','aIDQx','DPADL','acceptButtonText','buttonArrowActive','declineButton','IqDSB','declineButtonText','Decline','StyleSheet','create','center','#000','700','grey600','600','400','row','space-between','#F8F9FA','#E5E5E5','#2D3436','#999999','Inter','grey500','underline','500','wrap'];_0xfe6c=function(){return _0xffe12f;};return _0xfe6c();}function _0xa6fa(_0xfe6c40,_0xa6fa3f){_0xfe6c40=_0xfe6c40-0x0;var _0x257408=_0xfe6c();var _0xb45bbd=_0x257408[_0xfe6c40];return _0xb45bbd;}exports[_0xa6fa(0x3)]=PersonalizationConsentScreen;const styles=_reactNative[_0xa6fa(0x7b)][_0xa6fa(0x7c)]({'container':{'flex':0x1,'backgroundColor':_theme['COLORS']['surface'],'paddingHorizontal':0x18,'paddingTop':0x28,'paddingBottom':0x8},'headerContainer':{'flexDirection':'row','alignItems':_0xa6fa(0x7d),'justifyContent':'center','marginBottom':0xc,'marginTop':0x0},'iconContainer':{'width':0x40,'height':0x40,'backgroundColor':_0xa6fa(0x23),'borderRadius':0xc,'alignItems':_0xa6fa(0x7d),'justifyContent':_0xa6fa(0x7d),'marginHorizontal':0x8,'shadowColor':_0xa6fa(0x7e),'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':_0xa6fa(0x7f),'color':_theme[_0xa6fa(0x42)][_0xa6fa(0x53)]},'arrow':{'fontSize':0x18,'color':_theme[_0xa6fa(0x42)][_0xa6fa(0x80)],'marginHorizontal':0x10},'titleContainer':{'alignItems':_0xa6fa(0x7d),'marginBottom':0x8},'welcomeBackText':{'fontSize':0x18,'fontFamily':'IBM\x20Plex\x20Sans','fontWeight':'700','color':_theme['COLORS']['grey800'],'textAlign':_0xa6fa(0x7d),'marginBottom':0x2},'title':{'fontSize':0x14,'fontFamily':'IBM\x20Plex\x20Sans','fontWeight':_0xa6fa(0x81),'color':_theme['COLORS'][_0xa6fa(0x53)],'textAlign':_0xa6fa(0x7d),'marginBottom':0xa},'subtitle':{'fontSize':0x10,'fontFamily':'Inter','fontWeight':_0xa6fa(0x82),'color':_theme[_0xa6fa(0x42)][_0xa6fa(0x80)],'textAlign':_0xa6fa(0x7d)},'scrollView':{'flex':0x1},'scrollContent':{'flexGrow':0x1},'optionsContainer':{'marginBottom':0x8},'optionRow':{'flexDirection':_0xa6fa(0x83),'alignItems':'center','justifyContent':_0xa6fa(0x84),'paddingVertical':0xc,'paddingHorizontal':0x2,'backgroundColor':_0xa6fa(0x85),'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':_0xa6fa(0x7d),'justifyContent':'center'},'checkbox':{},'buttonContainer':{'gap':0x8,'paddingHorizontal':0x0,'paddingBottom':0x10,'marginTop':0x10},'acceptButton':{'backgroundColor':_0xa6fa(0x86),'borderRadius':0x19,'paddingVertical':0xa,'paddingHorizontal':0x18,'flexDirection':_0xa6fa(0x83),'alignItems':'center','justifyContent':_0xa6fa(0x7d)},'acceptButtonActive':{'backgroundColor':'#2D3436'},'acceptButtonLoading':{'backgroundColor':_0xa6fa(0x87),'opacity':0.8},'acceptButtonText':{'color':_0xa6fa(0x88),'fontSize':0x10,'fontFamily':_0xa6fa(0x89),'fontWeight':_0xa6fa(0x81),'marginRight':0x8},'acceptButtonTextActive':{'color':'#FFFFFF'},'buttonArrow':{'color':'#999999','fontSize':0x10},'buttonArrowActive':{'color':_0xa6fa(0x23)},'declineButton':{'backgroundColor':_0xa6fa(0x86),'borderRadius':0x19,'paddingVertical':0xa,'paddingHorizontal':0x18,'alignItems':_0xa6fa(0x7d),'justifyContent':_0xa6fa(0x7d)},'declineButtonText':{'color':_theme[_0xa6fa(0x42)][_0xa6fa(0x80)],'fontSize':0x10,'fontFamily':'Inter','fontWeight':'500'},'logoutButton':{'alignItems':'center','paddingVertical':0xc,'marginTop':0x8},'logoutButtonText':{'fontSize':0xe,'fontFamily':_0xa6fa(0x89),'fontWeight':_0xa6fa(0x82),'color':_theme['COLORS'][_0xa6fa(0x8a)],'textDecorationLine':_0xa6fa(0x8b)},'connectedPlatformsSection':{'alignItems':_0xa6fa(0x7d),'paddingVertical':0xa,'paddingHorizontal':0x10,'backgroundColor':_0xa6fa(0x85),'borderRadius':0x10,'marginBottom':0xa,'marginTop':0x10},'connectedPlatformsTitle':{'fontSize':0xf,'fontFamily':_0xa6fa(0x89),'fontWeight':_0xa6fa(0x8c),'color':_theme[_0xa6fa(0x42)][_0xa6fa(0x8a)],'marginBottom':0xa},'connectedPlatformsIcons':{'flexDirection':_0xa6fa(0x83),'justifyContent':_0xa6fa(0x7d),'alignItems':'center','flexWrap':_0xa6fa(0x8d),'gap':0xa,'marginBottom':0xa},'connectedPlatformIconContainer':{'width':0x30,'height':0x30,'borderRadius':0xa,'backgroundColor':_0xa6fa(0x23),'justifyContent':'center','alignItems':_0xa6fa(0x7d),'shadowColor':'#000','shadowOffset':{'width':0x0,'height':0x2},'shadowOpacity':0.1,'shadowRadius':0x4,'elevation':0x2},'connectedPlatformIcon':{'width':0x20,'height':0x20},'connectMoreButton':{'flexDirection':_0xa6fa(0x83),'alignItems':_0xa6fa(0x7d),'justifyContent':_0xa6fa(0x7d),'gap':0x8},'connectMoreText':{'fontSize':0x10,'fontFamily':'Inter','fontWeight':_0xa6fa(0x8c),'color':_theme[_0xa6fa(0x42)][_0xa6fa(0x8a)]},'connectMorePlusCircle':{'width':0x1c,'height':0x1c,'borderRadius':0xe,'borderWidth':0x2,'borderColor':_theme['COLORS'][_0xa6fa(0x4a)],'justifyContent':_0xa6fa(0x7d),'alignItems':_0xa6fa(0x7d)},'connectMorePlus':{'fontSize':0x12,'fontWeight':_0xa6fa(0x8c),'color':_theme[_0xa6fa(0x42)][_0xa6fa(0x8a)],'marginTop':-0x2}});var _default=exports['default']=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