@onairos/react-native 3.6.7 → 3.6.9

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 (257) hide show
  1. package/README.md +423 -423
  2. package/lib/commonjs/api/index.js +1 -1
  3. package/lib/commonjs/assets/images/Checkbox.svg +3 -3
  4. package/lib/commonjs/assets/images/EnochE.svg +19 -19
  5. package/lib/commonjs/assets/images/Personalityprofile.svg +3 -3
  6. package/lib/commonjs/assets/images/Personalitytraits.svg +3 -3
  7. package/lib/commonjs/assets/images/Userpreferences.svg +3 -3
  8. package/lib/commonjs/assets/images/arrow.svg +20 -20
  9. package/lib/commonjs/assets/images/basicproficon.svg +43 -43
  10. package/lib/commonjs/assets/images/basicprofile.svg +3 -3
  11. package/lib/commonjs/assets/images/checkmark.svg +4 -4
  12. package/lib/commonjs/assets/images/contentanalysis.svg +3 -3
  13. package/lib/commonjs/assets/images/contenticon.svg +23 -23
  14. package/lib/commonjs/assets/images/personalityicon.svg +18 -18
  15. package/lib/commonjs/assets/images/x-close.svg +3 -3
  16. package/lib/commonjs/components/BodyText.js +1 -1
  17. package/lib/commonjs/components/BrandMark.js +1 -1
  18. package/lib/commonjs/components/CodeInput.js +1 -1
  19. package/lib/commonjs/components/EmailInput.js +1 -1
  20. package/lib/commonjs/components/GoogleButton.js +1 -1
  21. package/lib/commonjs/components/HeadingGroup.js +1 -1
  22. package/lib/commonjs/components/LLMDataInputModal.js +1 -1
  23. package/lib/commonjs/components/ModalHeader.js +1 -1
  24. package/lib/commonjs/components/ModalSheet.js +1 -1
  25. package/lib/commonjs/components/Onairos.js +1 -1
  26. package/lib/commonjs/components/OnairosButton.js +1 -1
  27. package/lib/commonjs/components/OnairosSignInButton.js +1 -1
  28. package/lib/commonjs/components/Overlay.js +1 -1
  29. package/lib/commonjs/components/PersonaImage.js +1 -1
  30. package/lib/commonjs/components/PersonaLoadingScreen.js +1 -1
  31. package/lib/commonjs/components/PersonalizationConsentScreen.js +1 -1
  32. package/lib/commonjs/components/PinCreationScreen.js +1 -1
  33. package/lib/commonjs/components/PinInput.js +1 -1
  34. package/lib/commonjs/components/PlatformConnectorsStep.js +1 -1
  35. package/lib/commonjs/components/PlatformList.js +1 -1
  36. package/lib/commonjs/components/PlatformToggle.js +1 -1
  37. package/lib/commonjs/components/PrimaryButton.js +1 -1
  38. package/lib/commonjs/components/SignInMatchAnimation.js +1 -1
  39. package/lib/commonjs/components/SignInStep.js +1 -1
  40. package/lib/commonjs/components/UniversalOnboarding.js +1 -1
  41. package/lib/commonjs/components/VerificationStep.js +1 -1
  42. package/lib/commonjs/components/WelcomeScreen.js +1 -1
  43. package/lib/commonjs/components/icons/Basicproficon.js +1 -1
  44. package/lib/commonjs/components/icons/Basicprofile.js +1 -1
  45. package/lib/commonjs/components/icons/Checkbox.js +1 -1
  46. package/lib/commonjs/components/icons/Checkmark.js +1 -1
  47. package/lib/commonjs/components/icons/Contentanalysis.js +1 -1
  48. package/lib/commonjs/components/icons/Contenticon.js +1 -1
  49. package/lib/commonjs/components/icons/EnochE.js +1 -1
  50. package/lib/commonjs/components/icons/Personalityicon.js +1 -1
  51. package/lib/commonjs/components/icons/Personalityprofile.js +1 -1
  52. package/lib/commonjs/components/icons/Personalitytraits.js +1 -1
  53. package/lib/commonjs/components/icons/Userpreferences.js +1 -1
  54. package/lib/commonjs/components/icons/index.js +1 -1
  55. package/lib/commonjs/components/onboarding/OAuthWebView.js +1 -1
  56. package/lib/commonjs/components/onboarding/OnboardingHeader.js +1 -1
  57. package/lib/commonjs/components/onboarding/PinInput.js +1 -1
  58. package/lib/commonjs/components/onboarding/PlatformConnector.js +1 -1
  59. package/lib/commonjs/config/PLATFORM_APIS.md +559 -0
  60. package/lib/commonjs/config/api.js +1 -1
  61. package/lib/commonjs/config/telegramConfig.js +8 -0
  62. package/lib/commonjs/config/webchangelog/md +607 -0
  63. package/lib/commonjs/constants/index.js +1 -1
  64. package/lib/commonjs/context/AuthContext.js +1 -1
  65. package/lib/commonjs/hooks/useConnectedAccounts.js +1 -1
  66. package/lib/commonjs/hooks/useConnections.js +1 -1
  67. package/lib/commonjs/hooks/useCredentials.js +1 -1
  68. package/lib/commonjs/hooks/useUserConnections.js +1 -1
  69. package/lib/commonjs/index.js +1 -1
  70. package/lib/commonjs/services/SDK_API_KEY_VALIDATION.md +421 -421
  71. package/lib/commonjs/services/apiClient.js +1 -1
  72. package/lib/commonjs/services/apiKeyService.js +99 -99
  73. package/lib/commonjs/services/authService.js +72 -72
  74. package/lib/commonjs/services/biometricPinService.js +1 -1
  75. package/lib/commonjs/services/chatGPTConversationExtractor.js +1 -1
  76. package/lib/commonjs/services/chatGPTConversationService.js +1 -1
  77. package/lib/commonjs/services/claudeConversationExtractor.js +1 -1
  78. package/lib/commonjs/services/claudeConversationService.js +1 -1
  79. package/lib/commonjs/services/connectedAccountsService.js +1 -1
  80. package/lib/commonjs/services/googleAuthService.js +1 -1
  81. package/lib/commonjs/services/hingeDataExtractor.js +1 -1
  82. package/lib/commonjs/services/hingeDataService.js +1 -1
  83. package/lib/commonjs/services/imageCompressionService.js +1 -1
  84. package/lib/commonjs/services/instagramDataExtractor.js +1 -1
  85. package/lib/commonjs/services/instagramDataService.js +1 -1
  86. package/lib/commonjs/services/jwtStorageService.js +1 -1
  87. package/lib/commonjs/services/linkedinDOMExtractor.js +1 -1
  88. package/lib/commonjs/services/linkedinProfileService.js +1 -1
  89. package/lib/commonjs/services/linkedinScrapingService.js +1 -1
  90. package/lib/commonjs/services/llmDataStorage.js +1 -1
  91. package/lib/commonjs/services/mobileTrainingService.js +1 -1
  92. package/lib/commonjs/services/oauthService.js +20 -20
  93. package/lib/commonjs/services/pinEncryptionService.js +1 -1
  94. package/lib/commonjs/services/pinStorageUtils.js +1 -1
  95. package/lib/commonjs/services/platformAuthService.js +1 -1
  96. package/lib/commonjs/services/sephoraDataExtractor.js +1 -1
  97. package/lib/commonjs/services/sephoraDataService.js +1 -1
  98. package/lib/commonjs/services/storageService.js +1 -1
  99. package/lib/commonjs/services/telegramDataExtractor.js +1 -1
  100. package/lib/commonjs/services/telegramDataService.js +1 -1
  101. package/lib/commonjs/services/trainingApiHelpers.js +1 -1
  102. package/lib/commonjs/services/userConnectionsService.js +1 -1
  103. package/lib/commonjs/services/youtubeMigrationService.js +1 -1
  104. package/lib/commonjs/theme/index.js +1 -1
  105. package/lib/commonjs/types/index.js +1 -1
  106. package/lib/commonjs/types.js +1 -1
  107. package/lib/commonjs/utils/Portal.js +1 -1
  108. package/lib/commonjs/utils/api.js +1 -1
  109. package/lib/commonjs/utils/assetRegistry.js +1 -1
  110. package/lib/commonjs/utils/auth.js +1 -1
  111. package/lib/commonjs/utils/connectorTests.js +1 -1
  112. package/lib/commonjs/utils/crypto.js +1 -1
  113. package/lib/commonjs/utils/debugHelper.js +1 -1
  114. package/lib/commonjs/utils/encryption.js +1 -1
  115. package/lib/commonjs/utils/eventUtils.js +1 -1
  116. package/lib/commonjs/utils/haptics.js +1 -1
  117. package/lib/commonjs/utils/imagePreloader.js +1 -1
  118. package/lib/commonjs/utils/networkDiagnostics.js +1 -1
  119. package/lib/commonjs/utils/onairosApi.js +1 -1
  120. package/lib/commonjs/utils/programmaticFlow.js +1 -1
  121. package/lib/commonjs/utils/retryHelper.js +1 -1
  122. package/lib/commonjs/utils/secureStorage.js +1 -1
  123. package/lib/commonjs/utils/webviewScripts/chatgpt.js +1 -1
  124. package/lib/commonjs/utils/webviewScripts/claude.js +1 -1
  125. package/lib/commonjs/utils/webviewScripts/hinge.js +1 -1
  126. package/lib/commonjs/utils/webviewScripts/index.js +1 -1
  127. package/lib/commonjs/utils/webviewScripts/instagram.js +1 -1
  128. package/lib/commonjs/utils/webviewScripts/linkedin.js +1 -1
  129. package/lib/commonjs/utils/webviewScripts/sephora.js +1 -1
  130. package/lib/commonjs/utils/webviewScripts/telegram.js +1 -1
  131. package/lib/module/api/index.js +1 -1
  132. package/lib/module/assets/images/Checkbox.svg +3 -3
  133. package/lib/module/assets/images/EnochE.svg +19 -19
  134. package/lib/module/assets/images/Personalityprofile.svg +3 -3
  135. package/lib/module/assets/images/Personalitytraits.svg +3 -3
  136. package/lib/module/assets/images/Userpreferences.svg +3 -3
  137. package/lib/module/assets/images/arrow.svg +20 -20
  138. package/lib/module/assets/images/basicproficon.svg +43 -43
  139. package/lib/module/assets/images/basicprofile.svg +3 -3
  140. package/lib/module/assets/images/checkmark.svg +4 -4
  141. package/lib/module/assets/images/contentanalysis.svg +3 -3
  142. package/lib/module/assets/images/contenticon.svg +23 -23
  143. package/lib/module/assets/images/personalityicon.svg +18 -18
  144. package/lib/module/assets/images/x-close.svg +3 -3
  145. package/lib/module/components/BodyText.js +1 -1
  146. package/lib/module/components/BrandMark.js +1 -1
  147. package/lib/module/components/CodeInput.js +1 -1
  148. package/lib/module/components/EmailInput.js +1 -1
  149. package/lib/module/components/GoogleButton.js +1 -1
  150. package/lib/module/components/HeadingGroup.js +1 -1
  151. package/lib/module/components/LLMDataInputModal.js +1 -1
  152. package/lib/module/components/ModalHeader.js +1 -1
  153. package/lib/module/components/ModalSheet.js +1 -1
  154. package/lib/module/components/Onairos.js +1 -1
  155. package/lib/module/components/OnairosButton.js +1 -1
  156. package/lib/module/components/OnairosSignInButton.js +1 -1
  157. package/lib/module/components/Overlay.js +1 -1
  158. package/lib/module/components/PersonaImage.js +1 -1
  159. package/lib/module/components/PersonaLoadingScreen.js +1 -1
  160. package/lib/module/components/PersonalizationConsentScreen.js +1 -1
  161. package/lib/module/components/PinCreationScreen.js +1 -1
  162. package/lib/module/components/PinInput.js +1 -1
  163. package/lib/module/components/PlatformConnectorsStep.js +1 -1
  164. package/lib/module/components/PlatformList.js +1 -1
  165. package/lib/module/components/PlatformToggle.js +1 -1
  166. package/lib/module/components/PrimaryButton.js +1 -1
  167. package/lib/module/components/SignInMatchAnimation.js +1 -1
  168. package/lib/module/components/SignInStep.js +1 -1
  169. package/lib/module/components/UniversalOnboarding.js +1 -1
  170. package/lib/module/components/VerificationStep.js +1 -1
  171. package/lib/module/components/WelcomeScreen.js +1 -1
  172. package/lib/module/components/icons/Basicproficon.js +1 -1
  173. package/lib/module/components/icons/Basicprofile.js +1 -1
  174. package/lib/module/components/icons/Checkbox.js +1 -1
  175. package/lib/module/components/icons/Checkmark.js +1 -1
  176. package/lib/module/components/icons/Contentanalysis.js +1 -1
  177. package/lib/module/components/icons/Contenticon.js +1 -1
  178. package/lib/module/components/icons/EnochE.js +1 -1
  179. package/lib/module/components/icons/Personalityicon.js +1 -1
  180. package/lib/module/components/icons/Personalityprofile.js +1 -1
  181. package/lib/module/components/icons/Personalitytraits.js +1 -1
  182. package/lib/module/components/icons/Userpreferences.js +1 -1
  183. package/lib/module/components/onboarding/OAuthWebView.js +1 -1
  184. package/lib/module/components/onboarding/OnboardingHeader.js +1 -1
  185. package/lib/module/components/onboarding/PinInput.js +1 -1
  186. package/lib/module/components/onboarding/PlatformConnector.js +1 -1
  187. package/lib/module/config/PLATFORM_APIS.md +559 -0
  188. package/lib/module/config/api.js +1 -1
  189. package/lib/module/config/telegramConfig.js +8 -0
  190. package/lib/module/config/webchangelog/md +607 -0
  191. package/lib/module/constants/index.js +1 -1
  192. package/lib/module/context/AuthContext.js +1 -1
  193. package/lib/module/hooks/useConnectedAccounts.js +1 -1
  194. package/lib/module/hooks/useConnections.js +1 -1
  195. package/lib/module/hooks/useCredentials.js +1 -1
  196. package/lib/module/hooks/useUserConnections.js +1 -1
  197. package/lib/module/index.js +1 -1
  198. package/lib/module/services/SDK_API_KEY_VALIDATION.md +421 -421
  199. package/lib/module/services/apiClient.js +1 -1
  200. package/lib/module/services/apiKeyService.js +99 -99
  201. package/lib/module/services/authService.js +72 -72
  202. package/lib/module/services/biometricPinService.js +1 -1
  203. package/lib/module/services/chatGPTConversationExtractor.js +1 -1
  204. package/lib/module/services/chatGPTConversationService.js +1 -1
  205. package/lib/module/services/claudeConversationExtractor.js +1 -1
  206. package/lib/module/services/claudeConversationService.js +1 -1
  207. package/lib/module/services/connectedAccountsService.js +1 -1
  208. package/lib/module/services/googleAuthService.js +1 -1
  209. package/lib/module/services/hingeDataExtractor.js +1 -1
  210. package/lib/module/services/hingeDataService.js +1 -1
  211. package/lib/module/services/imageCompressionService.js +1 -1
  212. package/lib/module/services/instagramDataExtractor.js +1 -1
  213. package/lib/module/services/instagramDataService.js +1 -1
  214. package/lib/module/services/jwtStorageService.js +1 -1
  215. package/lib/module/services/linkedinDOMExtractor.js +1 -1
  216. package/lib/module/services/linkedinProfileService.js +1 -1
  217. package/lib/module/services/linkedinScrapingService.js +1 -1
  218. package/lib/module/services/llmDataStorage.js +1 -1
  219. package/lib/module/services/mobileTrainingService.js +1 -1
  220. package/lib/module/services/oauthService.js +20 -20
  221. package/lib/module/services/pinEncryptionService.js +1 -1
  222. package/lib/module/services/pinStorageUtils.js +1 -1
  223. package/lib/module/services/platformAuthService.js +1 -1
  224. package/lib/module/services/sephoraDataExtractor.js +1 -1
  225. package/lib/module/services/sephoraDataService.js +1 -1
  226. package/lib/module/services/storageService.js +1 -1
  227. package/lib/module/services/telegramDataExtractor.js +1 -1
  228. package/lib/module/services/telegramDataService.js +1 -1
  229. package/lib/module/services/trainingApiHelpers.js +1 -1
  230. package/lib/module/services/userConnectionsService.js +1 -1
  231. package/lib/module/services/youtubeMigrationService.js +1 -1
  232. package/lib/module/theme/index.js +1 -1
  233. package/lib/module/types.js +1 -1
  234. package/lib/module/utils/Portal.js +1 -1
  235. package/lib/module/utils/api.js +1 -1
  236. package/lib/module/utils/assetRegistry.js +1 -1
  237. package/lib/module/utils/auth.js +1 -1
  238. package/lib/module/utils/connectorTests.js +1 -1
  239. package/lib/module/utils/crypto.js +1 -1
  240. package/lib/module/utils/debugHelper.js +1 -1
  241. package/lib/module/utils/encryption.js +1 -1
  242. package/lib/module/utils/eventUtils.js +1 -1
  243. package/lib/module/utils/haptics.js +1 -1
  244. package/lib/module/utils/networkDiagnostics.js +1 -1
  245. package/lib/module/utils/onairosApi.js +1 -1
  246. package/lib/module/utils/programmaticFlow.js +1 -1
  247. package/lib/module/utils/retryHelper.js +1 -1
  248. package/lib/module/utils/secureStorage.js +1 -1
  249. package/lib/module/utils/webviewScripts/chatgpt.js +1 -1
  250. package/lib/module/utils/webviewScripts/claude.js +1 -1
  251. package/lib/module/utils/webviewScripts/hinge.js +1 -1
  252. package/lib/module/utils/webviewScripts/index.js +1 -1
  253. package/lib/module/utils/webviewScripts/instagram.js +1 -1
  254. package/lib/module/utils/webviewScripts/linkedin.js +1 -1
  255. package/lib/module/utils/webviewScripts/sephora.js +1 -1
  256. package/lib/module/utils/webviewScripts/telegram.js +1 -1
  257. package/package.json +172 -172
@@ -1 +1 @@
1
- import React from'react';import{View,Text,StyleSheet,TouchableOpacity}from'react-native';function _0x3f98(_0x248549,_0x3f984b){_0x248549=_0x248549-0x0;const _0x5c081b=_0x2485();let _0x286094=_0x5c081b[_0x248549];return _0x286094;}import _0x1ea8b8 from'react-native-vector-icons/MaterialIcons';import{COLORS}from'../../constants';export const OnboardingHeader=({title:_0x59597b,subtitle:_0x2bfeb3,showBackButton:showBackButton=![],onBack:_0x5b7632,onClose:_0x441fee})=>{const _0x12963d={'Gmnzq':_0x3f98(0x0),'IhaBy':'close'};return React['createElement'](View,{'style':styles[_0x3f98(0x1)]},showBackButton&&React[_0x3f98(0x2)](TouchableOpacity,{'style':styles['backButton'],'onPress':_0x5b7632},React['createElement'](_0x1ea8b8,{'name':_0x3f98(0x3),'size':0x18,'color':_0x12963d[_0x3f98(0x4)]})),React[_0x3f98(0x2)](View,{'style':styles[_0x3f98(0x5)]},React[_0x3f98(0x2)](Text,{'style':styles[_0x3f98(0x6)]},_0x59597b),_0x2bfeb3&&React[_0x3f98(0x2)](Text,{'style':styles[_0x3f98(0x7)]},_0x2bfeb3)),React[_0x3f98(0x2)](TouchableOpacity,{'style':styles['closeButton'],'onPress':_0x441fee},React[_0x3f98(0x2)](_0x1ea8b8,{'name':_0x12963d[_0x3f98(0x8)],'size':0x18,'color':_0x12963d[_0x3f98(0x4)]})));};const styles=StyleSheet[_0x3f98(0x9)]({'header':{'flexDirection':_0x3f98(0xa),'alignItems':_0x3f98(0xb),'padding':0x10,'backgroundColor':COLORS[_0x3f98(0xc)],'borderTopLeftRadius':0x10,'borderTopRightRadius':0x10},'backButton':{'padding':0x8,'marginRight':0x8},'titleContainer':{'flex':0x1},'title':{'fontSize':0x12,'fontWeight':'600','color':_0x3f98(0x0)},'subtitle':{'fontSize':0xe,'color':_0x3f98(0xd),'marginTop':0x4},'closeButton':{'padding':0x8}});function _0x2485(){const _0x16f53a=['#000','header','createElement','arrow-back','Gmnzq','titleContainer','title','subtitle','IhaBy','create','row','center','headerBg','#666'];_0x2485=function(){return _0x16f53a;};return _0x2485();}
1
+ import React from'react';import{View,Text,StyleSheet,TouchableOpacity}from'react-native';function _0x502d(_0x5cf86e,_0x502d77){_0x5cf86e=_0x5cf86e-0x0;const _0x472a0d=_0x5cf8();let _0x52c161=_0x472a0d[_0x5cf86e];return _0x52c161;}import _0x47cb5e from'react-native-vector-icons/MaterialIcons';import{COLORS}from'../../constants';export const OnboardingHeader=({title:_0x36dd10,subtitle:_0x5688aa,showBackButton:showBackButton=![],onBack:_0x414811,onClose:_0xab101f})=>{const _0x4ce016={'fKEbm':_0x502d(0x0),'lkNws':'#000','SZAeP':'close'};return React[_0x502d(0x1)](View,{'style':styles[_0x502d(0x2)]},showBackButton&&React['createElement'](TouchableOpacity,{'style':styles[_0x502d(0x3)],'onPress':_0x414811},React[_0x502d(0x1)](_0x47cb5e,{'name':_0x4ce016[_0x502d(0x4)],'size':0x18,'color':_0x4ce016[_0x502d(0x5)]})),React[_0x502d(0x1)](View,{'style':styles['titleContainer']},React[_0x502d(0x1)](Text,{'style':styles[_0x502d(0x6)]},_0x36dd10),_0x5688aa&&React['createElement'](Text,{'style':styles['subtitle']},_0x5688aa)),React[_0x502d(0x1)](TouchableOpacity,{'style':styles[_0x502d(0x7)],'onPress':_0xab101f},React[_0x502d(0x1)](_0x47cb5e,{'name':_0x4ce016[_0x502d(0x8)],'size':0x18,'color':_0x4ce016[_0x502d(0x5)]})));};function _0x5cf8(){const _0x2d0991=['arrow-back','createElement','header','backButton','fKEbm','lkNws','title','closeButton','SZAeP','row','600','#000','#666'];_0x5cf8=function(){return _0x2d0991;};return _0x5cf8();}const styles=StyleSheet['create']({'header':{'flexDirection':_0x502d(0x9),'alignItems':'center','padding':0x10,'backgroundColor':COLORS['headerBg'],'borderTopLeftRadius':0x10,'borderTopRightRadius':0x10},'backButton':{'padding':0x8,'marginRight':0x8},'titleContainer':{'flex':0x1},'title':{'fontSize':0x12,'fontWeight':_0x502d(0xa),'color':_0x502d(0xb)},'subtitle':{'fontSize':0xe,'color':_0x502d(0xc),'marginTop':0x4},'closeButton':{'padding':0x8}});
@@ -1 +1 @@
1
- import React,{useState,useCallback,useEffect}from'react';function _0x59a8(_0x40eadd,_0x59a85d){_0x40eadd=_0x40eadd-0x0;const _0x14dc73=_0x40ea();let _0x21eaf2=_0x14dc73[_0x40eadd];return _0x21eaf2;}function _0x40ea(){const _0x1cc7f6=['QwSFo','WxkFI','kGKOJ','PIN\x20must\x20include\x20at\x20least\x20one\x20number','PIN\x20must\x20include\x20at\x20least\x20one\x20special\x20character','create','confirm','QygBp','ios','padding','Confirm\x20your\x20PIN','This\x20PIN\x20will\x20protect\x20your\x20Onairos\x20account','none','#999','visibility','PIN\x20Requirements:','check-circle','radio-button-unchecked','#4caf50','\x20characters','arrow-back','tpbXc','dPuBK','wbPNm','BSzBY','wNloI','FKxbP','AVAeH','Hixct','pTKKt','XVdcZ','jGaCU','length','push','NPrmT','YwNdb','dismiss','ctLtQ','test','AEpwq','kiStX','tVCeb','AppaU','RrTuS','xZNLU','KEecY','spGxq','createElement','CjuPm','DKMAu','height','container','content','title','MABDy','hWCuh','subtitle','BuFhV','Please\x20re-enter\x20your\x20PIN\x20to\x20confirm','YovOH','Jgpep','Enter\x20PIN','qDgBs','WPBwl','visibilityToggle','hGpFI','map','errorItem','error-outline','errorText','requirementsContainer','requirementsTitle','requirement','Cejon','ycmBE','uiXrH','zFrfC','QpJkL','At\x20least\x20','nNkbv','requirementText','Include\x20at\x20least\x20one\x20number','gQAGJ','buttonContainer','LEIhD','button','primary','buttonText','backButtonText','ioqOv','disabledButton','nextButtonText','Next','Submit','arrow-forward','#fff','#000','#666','row','center','#f44336','#f5f5f5','600','space-between'];_0x40ea=function(){return _0x1cc7f6;};return _0x40ea();}import{View,Text,StyleSheet,TextInput,TouchableOpacity,Keyboard,KeyboardAvoidingView,Platform}from'react-native';import _0x2bf3e0 from'react-native-vector-icons/MaterialIcons';import{COLORS}from'../../constants';export const PinInput=({onSubmit:_0x29b7bb,minLength:minLength=0x6,requireSpecialChar:requireSpecialChar=!![],requireNumber:requireNumber=!![]})=>{const _0x45e549={'wNloI':function(_0x21b777,_0x4911ce){return _0x21b777(_0x4911ce);},'FKxbP':function(_0x533085,_0x15b07e){return _0x533085===_0x15b07e;},'AVAeH':function(_0x1bb265,_0x1e2a90){return _0x1bb265===_0x1e2a90;},'Hixct':_0x59a8(0x0),'pTKKt':_0x59a8(0x1),'jGaCU':function(_0x8a8eb4,_0x307e3b){return _0x8a8eb4<_0x307e3b;},'NPrmT':_0x59a8(0x2),'ctLtQ':_0x59a8(0x3),'SHPxM':_0x59a8(0x4),'AEpwq':function(_0x5a057c,_0xfb5c10){return _0x5a057c===_0xfb5c10;},'BSzBY':_0x59a8(0x5),'kiStX':function(_0x11e176,_0x45d8c2){return _0x11e176(_0x45d8c2);},'tVCeb':_0x59a8(0x6),'AppaU':function(_0x48c42a,_0x1dbeb3){return _0x48c42a===_0x1dbeb3;},'RrTuS':_0x59a8(0x7),'wbPNm':function(_0x513436,_0x532b37){return _0x513436(_0x532b37);},'KEecY':function(_0x5603fe,_0x31340a){return _0x5603fe!==_0x31340a;},'CxGVO':'yEFbb','spGxq':function(_0x1b9723,_0x5b8b15){return _0x1b9723(_0x5b8b15);},'qLKCE':function(_0x44670d,_0x5b4826){return _0x44670d(_0x5b4826);},'sWINp':function(_0x552f67,_0x332c86){return _0x552f67(_0x332c86);},'tpbXc':function(_0x37ef67,_0x4093a3){return _0x37ef67(_0x4093a3);},'dPuBK':function(_0x1a4d62,_0x4d7430){return _0x1a4d62(_0x4d7430);},'IPzMA':function(_0x405d7e,_0x2d2c27,_0x2ee9b7){return _0x405d7e(_0x2d2c27,_0x2ee9b7);},'CjuPm':_0x59a8(0x8),'DKMAu':_0x59a8(0x9),'MABDy':function(_0x43199f,_0x314138){return _0x43199f===_0x314138;},'jaORH':'Create\x20a\x20PIN','hWCuh':_0x59a8(0xa),'BuFhV':_0x59a8(0xb),'YovOH':'default','Jgpep':_0x59a8(0xc),'qDgBs':_0x59a8(0xd),'WPBwl':'done','hGpFI':_0x59a8(0xe),'tsrey':_0x59a8(0xf),'Cejon':function(_0x2fa0a2,_0x3dcc30){return _0x2fa0a2>=_0x3dcc30;},'ycmBE':_0x59a8(0x10),'uiXrH':_0x59a8(0x11),'zFrfC':function(_0x5f0534,_0x1781fe){return _0x5f0534>=_0x1781fe;},'QpJkL':_0x59a8(0x12),'nNkbv':_0x59a8(0x13),'gQAGJ':'Include\x20at\x20least\x20one\x20special\x20character','LEIhD':function(_0x5975af,_0x3ad56d){return _0x5975af===_0x3ad56d;},'IfHUK':_0x59a8(0x14),'ioqOv':'Back'},[_0x1444ba,_0x23bab8]=_0x45e549['kiStX'](useState,''),[_0x4000ff,_0x8398c4]=_0x45e549['wNloI'](useState,''),[_0x5a545f,_0x262f4f]=_0x45e549[_0x59a8(0x15)](useState,![]),[_0x3d23cf,_0x6eef13]=_0x45e549[_0x59a8(0x16)](useState,[]),[_0x3412a9,_0x938649]=_0x45e549[_0x59a8(0x17)](useState,_0x45e549[_0x59a8(0x18)]);useEffect(()=>{_0x3412a9===_0x59a8(0x5)&&_0x45e549[_0x59a8(0x19)](_0x22ea4a,_0x1444ba);},[_0x1444ba,_0x3412a9]);const _0x22ea4a=useCallback(_0x144494=>{const _0x28c56b={'AsouM':function(_0x49461f,_0x15e6d8){return _0x45e549[_0x59a8(0x1a)](_0x49461f,_0x15e6d8);},'XVdcZ':function(_0x2a4905,_0x20415f){return _0x45e549[_0x59a8(0x19)](_0x2a4905,_0x20415f);}};if(_0x45e549[_0x59a8(0x1b)](_0x45e549[_0x59a8(0x1c)],_0x45e549[_0x59a8(0x1d)]))_0x28c56b['AsouM'](_0x63fc64,_0x59a8(0x5))&&_0x28c56b[_0x59a8(0x1e)](_0xafbf96,_0x58bcf5);else{const _0x5b5db7=[];return _0x45e549[_0x59a8(0x1f)](_0x144494[_0x59a8(0x20)],minLength)&&_0x5b5db7[_0x59a8(0x21)]('PIN\x20must\x20be\x20at\x20least\x20'+minLength+'\x20characters'),requireNumber&&!/\d/['test'](_0x144494)&&(_0x45e549[_0x59a8(0x22)]===_0x59a8(0x23)?(_0x5c7869[_0x59a8(0x24)](),_0x28c56b['XVdcZ'](_0x54f085,_0x5990df)):_0x5b5db7['push'](_0x45e549[_0x59a8(0x25)])),requireSpecialChar&&!/[!@#$%^&*(),.?":{}|<>]/[_0x59a8(0x26)](_0x144494)&&_0x5b5db7[_0x59a8(0x21)](_0x45e549['SHPxM']),_0x45e549[_0x59a8(0x19)](_0x6eef13,_0x5b5db7),_0x45e549[_0x59a8(0x27)](_0x5b5db7[_0x59a8(0x20)],0x0);}},[minLength,requireNumber,requireSpecialChar]),_0x53c175=_0x45e549['IPzMA'](useCallback,()=>{_0x45e549['FKxbP'](_0x3412a9,_0x45e549[_0x59a8(0x18)])?_0x45e549[_0x59a8(0x28)](_0x22ea4a,_0x1444ba)&&_0x45e549[_0x59a8(0x19)](_0x938649,_0x45e549[_0x59a8(0x29)]):_0x1444ba===_0x4000ff?_0x45e549[_0x59a8(0x2a)](_0x45e549[_0x59a8(0x2b)],_0x59a8(0x2c))?_0x19b84d['push']('PIN\x20must\x20include\x20at\x20least\x20one\x20special\x20character'):(Keyboard[_0x59a8(0x24)](),_0x45e549[_0x59a8(0x17)](_0x29b7bb,_0x1444ba)):(_0x45e549[_0x59a8(0x28)](_0x6eef13,['PINs\x20do\x20not\x20match']),_0x8398c4(''));},[_0x1444ba,_0x4000ff,_0x3412a9,_0x22ea4a,_0x29b7bb]),_0x30598f=useCallback(()=>{_0x45e549[_0x59a8(0x2d)](_0x45e549['CxGVO'],_0x45e549['CxGVO'])?_0x42d946(_0x552a11):(_0x45e549[_0x59a8(0x2e)](_0x938649,_0x45e549[_0x59a8(0x18)]),_0x45e549['qLKCE'](_0x8398c4,''),_0x45e549[_0x59a8(0x2e)](_0x6eef13,[]));},[]),_0x57b148=useCallback(()=>{_0x45e549['sWINp'](_0x262f4f,!_0x5a545f);},[_0x5a545f]);return React[_0x59a8(0x2f)](KeyboardAvoidingView,{'behavior':_0x45e549['FKxbP'](Platform['OS'],_0x45e549[_0x59a8(0x30)])?_0x45e549[_0x59a8(0x31)]:_0x59a8(0x32),'style':styles[_0x59a8(0x33)]},React[_0x59a8(0x2f)](View,{'style':styles[_0x59a8(0x34)]},React[_0x59a8(0x2f)](Text,{'style':styles[_0x59a8(0x35)]},_0x45e549[_0x59a8(0x36)](_0x3412a9,_0x59a8(0x5))?_0x45e549['jaORH']:_0x45e549[_0x59a8(0x37)]),React['createElement'](Text,{'style':styles[_0x59a8(0x38)]},_0x45e549['MABDy'](_0x3412a9,_0x45e549[_0x59a8(0x18)])?_0x45e549[_0x59a8(0x39)]:_0x59a8(0x3a)),React[_0x59a8(0x2f)](View,{'style':styles['inputContainer']},React[_0x59a8(0x2f)](TextInput,{'style':styles['input'],'value':_0x45e549[_0x59a8(0x2a)](_0x3412a9,_0x45e549['BSzBY'])?_0x1444ba:_0x4000ff,'onChangeText':_0x45e549[_0x59a8(0x36)](_0x3412a9,_0x45e549['BSzBY'])?_0x23bab8:_0x8398c4,'secureTextEntry':!_0x5a545f,'keyboardType':_0x45e549[_0x59a8(0x3b)],'autoCapitalize':_0x45e549[_0x59a8(0x3c)],'autoCorrect':![],'placeholder':_0x45e549[_0x59a8(0x1a)](_0x3412a9,_0x45e549[_0x59a8(0x18)])?_0x59a8(0x3d):'Confirm\x20PIN','placeholderTextColor':_0x45e549[_0x59a8(0x3e)],'returnKeyType':_0x45e549[_0x59a8(0x3f)],'onSubmitEditing':_0x53c175}),React['createElement'](TouchableOpacity,{'style':styles[_0x59a8(0x40)],'onPress':_0x57b148},React[_0x59a8(0x2f)](_0x2bf3e0,{'name':_0x5a545f?'visibility-off':_0x45e549[_0x59a8(0x41)],'size':0x18,'color':_0x45e549[_0x59a8(0x3e)]}))),_0x3d23cf[_0x59a8(0x20)]>0x0&&React[_0x59a8(0x2f)](View,{'style':styles['errorContainer']},_0x3d23cf[_0x59a8(0x42)]((_0x129ef8,_0x3de2e6)=>React[_0x59a8(0x2f)](View,{'key':_0x3de2e6,'style':styles[_0x59a8(0x43)]},React[_0x59a8(0x2f)](_0x2bf3e0,{'name':_0x59a8(0x44),'size':0x10,'color':'#f44336'}),React['createElement'](Text,{'style':styles[_0x59a8(0x45)]},_0x129ef8)))),_0x45e549[_0x59a8(0x1a)](_0x3412a9,_0x45e549[_0x59a8(0x18)])&&React[_0x59a8(0x2f)](View,{'style':styles[_0x59a8(0x46)]},React['createElement'](Text,{'style':styles[_0x59a8(0x47)]},_0x45e549['tsrey']),React[_0x59a8(0x2f)](View,{'style':styles[_0x59a8(0x48)]},React['createElement'](_0x2bf3e0,{'name':_0x45e549[_0x59a8(0x49)](_0x1444ba[_0x59a8(0x20)],minLength)?_0x45e549[_0x59a8(0x4a)]:_0x45e549[_0x59a8(0x4b)],'size':0x10,'color':_0x45e549[_0x59a8(0x4c)](_0x1444ba[_0x59a8(0x20)],minLength)?_0x45e549[_0x59a8(0x4d)]:_0x45e549[_0x59a8(0x3e)]}),React[_0x59a8(0x2f)](Text,{'style':[styles['requirementText'],{'color':_0x45e549[_0x59a8(0x49)](_0x1444ba[_0x59a8(0x20)],minLength)?_0x45e549[_0x59a8(0x4d)]:_0x45e549[_0x59a8(0x3e)]}]},_0x59a8(0x4e),minLength,_0x45e549[_0x59a8(0x4f)])),requireNumber&&React[_0x59a8(0x2f)](View,{'style':styles[_0x59a8(0x48)]},React[_0x59a8(0x2f)](_0x2bf3e0,{'name':/\d/['test'](_0x1444ba)?_0x59a8(0x10):_0x59a8(0x11),'size':0x10,'color':/\d/[_0x59a8(0x26)](_0x1444ba)?_0x45e549['QpJkL']:_0x45e549['qDgBs']}),React['createElement'](Text,{'style':[styles[_0x59a8(0x50)],{'color':/\d/[_0x59a8(0x26)](_0x1444ba)?_0x45e549[_0x59a8(0x4d)]:_0x45e549[_0x59a8(0x3e)]}]},_0x59a8(0x51))),requireSpecialChar&&React['createElement'](View,{'style':styles[_0x59a8(0x48)]},React[_0x59a8(0x2f)](_0x2bf3e0,{'name':/[!@#$%^&*(),.?":{}|<>]/[_0x59a8(0x26)](_0x1444ba)?_0x59a8(0x10):_0x59a8(0x11),'size':0x10,'color':/[!@#$%^&*(),.?":{}|<>]/['test'](_0x1444ba)?_0x45e549['QpJkL']:_0x45e549[_0x59a8(0x3e)]}),React[_0x59a8(0x2f)](Text,{'style':[styles[_0x59a8(0x50)],{'color':/[!@#$%^&*(),.?":{}|<>]/[_0x59a8(0x26)](_0x1444ba)?_0x59a8(0x12):_0x45e549[_0x59a8(0x3e)]}]},_0x45e549[_0x59a8(0x52)]))),React[_0x59a8(0x2f)](View,{'style':styles[_0x59a8(0x53)]},_0x45e549[_0x59a8(0x54)](_0x3412a9,_0x45e549[_0x59a8(0x29)])&&React['createElement'](TouchableOpacity,{'style':[styles[_0x59a8(0x55)],styles['backButton']],'onPress':_0x30598f},React['createElement'](_0x2bf3e0,{'name':_0x45e549['IfHUK'],'size':0x14,'color':COLORS[_0x59a8(0x56)]}),React[_0x59a8(0x2f)](Text,{'style':[styles[_0x59a8(0x57)],styles[_0x59a8(0x58)]]},_0x45e549[_0x59a8(0x59)])),React[_0x59a8(0x2f)](TouchableOpacity,{'style':[styles[_0x59a8(0x55)],styles['nextButton'],_0x45e549[_0x59a8(0x36)](_0x3412a9,_0x45e549[_0x59a8(0x18)])&&_0x3d23cf['length']>0x0||_0x45e549[_0x59a8(0x1a)](_0x3412a9,_0x45e549['tVCeb'])&&!_0x4000ff?styles[_0x59a8(0x5a)]:null],'onPress':_0x53c175,'disabled':_0x45e549[_0x59a8(0x2a)](_0x3412a9,_0x45e549[_0x59a8(0x18)])&&_0x3d23cf[_0x59a8(0x20)]>0x0||_0x3412a9===_0x45e549['tVCeb']&&!_0x4000ff},React[_0x59a8(0x2f)](Text,{'style':[styles['buttonText'],styles[_0x59a8(0x5b)]]},_0x45e549[_0x59a8(0x54)](_0x3412a9,'create')?_0x59a8(0x5c):_0x59a8(0x5d)),React[_0x59a8(0x2f)](_0x2bf3e0,{'name':_0x59a8(0x5e),'size':0x14,'color':_0x59a8(0x5f)})))));};const styles=StyleSheet[_0x59a8(0x5)]({'container':{'flex':0x1},'content':{'padding':0x18},'title':{'fontSize':0x18,'fontWeight':'bold','marginBottom':0x8,'color':_0x59a8(0x60)},'subtitle':{'fontSize':0x10,'color':_0x59a8(0x61),'marginBottom':0x18},'inputContainer':{'flexDirection':_0x59a8(0x62),'alignItems':'center','borderWidth':0x1,'borderColor':'#ddd','borderRadius':0x8,'backgroundColor':'#f9f9f9','marginBottom':0x10},'input':{'flex':0x1,'paddingHorizontal':0x10,'paddingVertical':0xc,'fontSize':0x10,'color':_0x59a8(0x60)},'visibilityToggle':{'padding':0xc},'errorContainer':{'marginBottom':0x10},'errorItem':{'flexDirection':_0x59a8(0x62),'alignItems':_0x59a8(0x63),'marginBottom':0x4},'errorText':{'color':_0x59a8(0x64),'marginLeft':0x6},'requirementsContainer':{'backgroundColor':_0x59a8(0x65),'padding':0x10,'borderRadius':0x8,'marginBottom':0x18},'requirementsTitle':{'fontSize':0xe,'fontWeight':_0x59a8(0x66),'marginBottom':0x8,'color':'#000'},'requirement':{'flexDirection':_0x59a8(0x62),'alignItems':_0x59a8(0x63),'marginBottom':0x8},'requirementText':{'marginLeft':0x8,'fontSize':0xe},'buttonContainer':{'flexDirection':_0x59a8(0x62),'justifyContent':_0x59a8(0x67)},'button':{'flexDirection':_0x59a8(0x62),'alignItems':_0x59a8(0x63),'paddingVertical':0xc,'paddingHorizontal':0x14,'borderRadius':0x19},'backButton':{'backgroundColor':'transparent','borderWidth':0x1,'borderColor':COLORS[_0x59a8(0x56)]},'nextButton':{'backgroundColor':COLORS[_0x59a8(0x56)],'minWidth':0x78,'justifyContent':_0x59a8(0x63)},'disabledButton':{'backgroundColor':'#ccc'},'buttonText':{'fontSize':0x10,'fontWeight':_0x59a8(0x66)},'backButtonText':{'color':COLORS[_0x59a8(0x56)],'marginLeft':0x8},'nextButtonText':{'color':'#fff','marginRight':0x8}});
1
+ import React,{useState,useCallback,useEffect}from'react';function _0x1f61(){const _0x4315be=['create','PIN\x20must\x20include\x20at\x20least\x20one\x20number','confirm','vdXJp','RBcau','tmDmg','SHSBT','PINs\x20do\x20not\x20match','Please\x20re-enter\x20your\x20PIN\x20to\x20confirm','none','#999','visibility-off','radio-button-unchecked','#4caf50','\x20characters','check-circle','Include\x20at\x20least\x20one\x20number','arrow-back','Back','arrow-forward','EfZPw','heJkS','bCVkG','pFFYX','WBwDz','hEySi','fnuDg','wNhWC','length','push','PIN\x20must\x20be\x20at\x20least\x20','test','StgrX','JQKWa','ktVyT','VDqym','kPRAu','KwCaI','TwguN','ZgfHF','vUmtV','EdSEA','dismiss','yfPHe','uErLx','createElement','ZXzff','padding','WOmmd','container','title','Create\x20a\x20PIN','subtitle','aWKMU','inputContainer','input','default','nRkee','IaxOz','Confirm\x20PIN','WfOVB','wikmc','visibilityToggle','vZHQy','VZZZR','JWycH','errorContainer','map','error-outline','#f44336','errorText','requirementsContainer','PIN\x20Requirements:','requirement','ahLZa','CFzJH','nlfmh','requirementText','MTdVQ','At\x20least\x20','zDTfH','yWnmI','Djhze','QABlz','KUwOH','button','backButton','FDtaV','primary','backButtonText','xdJZh','nextButton','ADVDH','disabledButton','tVUqC','NughH','buttonText','nextButtonText','oHBbE','uUBXV','bold','#000','#666','row','#ddd','#f9f9f9','center','600','space-between','transparent','#ccc','#fff'];_0x1f61=function(){return _0x4315be;};return _0x1f61();}function _0x39cf(_0x1f6161,_0x39cfd7){_0x1f6161=_0x1f6161-0x0;const _0xffd27=_0x1f61();let _0x403b0d=_0xffd27[_0x1f6161];return _0x403b0d;}import{View,Text,StyleSheet,TextInput,TouchableOpacity,Keyboard,KeyboardAvoidingView,Platform}from'react-native';import _0x4791a8 from'react-native-vector-icons/MaterialIcons';import{COLORS}from'../../constants';export const PinInput=({onSubmit:_0x29812a,minLength:minLength=0x6,requireSpecialChar:requireSpecialChar=!![],requireNumber:requireNumber=!![]})=>{const _0x4a5540={'hEySi':function(_0x1b99d5,_0x453b9f){return _0x1b99d5===_0x453b9f;},'pFFYX':_0x39cf(0x0),'fnuDg':function(_0x42b46f,_0x1384c4){return _0x42b46f(_0x1384c4);},'StgrX':_0x39cf(0x1),'ktVyT':'PIN\x20must\x20include\x20at\x20least\x20one\x20special\x20character','JQKWa':function(_0x127a39,_0x4fa3ff){return _0x127a39(_0x4fa3ff);},'ZgfHF':function(_0x210835,_0x39fbdc){return _0x210835(_0x39fbdc);},'EdSEA':_0x39cf(0x2),'VDqym':function(_0x17a83b,_0x23be3f){return _0x17a83b!==_0x23be3f;},'kPRAu':_0x39cf(0x3),'NughH':function(_0x415303,_0xc508ad){return _0x415303===_0xc508ad;},'TwguN':_0x39cf(0x4),'WHuvJ':function(_0x4110b1,_0x2a434c){return _0x4110b1===_0x2a434c;},'vUmtV':_0x39cf(0x5),'yfPHe':_0x39cf(0x6),'mqGZc':_0x39cf(0x7),'EfZPw':function(_0x5d72ce,_0x28f6c1){return _0x5d72ce(_0x28f6c1);},'uErLx':function(_0x13812d,_0x17d88c){return _0x13812d(_0x17d88c);},'heJkS':function(_0x5355de,_0x4621c8){return _0x5355de(_0x4621c8);},'bCVkG':function(_0x33c0c1,_0x35d60e){return _0x33c0c1(_0x35d60e);},'pDkBu':function(_0x5f36c3,_0x140c97){return _0x5f36c3(_0x140c97);},'WBwDz':function(_0x5dff71,_0x38534a,_0x2fbb13){return _0x5dff71(_0x38534a,_0x2fbb13);},'wNhWC':function(_0x54b09f,_0x4aa292,_0x47fe9c){return _0x54b09f(_0x4aa292,_0x47fe9c);},'ZXzff':function(_0x53ced6,_0x286db0){return _0x53ced6===_0x286db0;},'WOmmd':'height','pIBMj':'This\x20PIN\x20will\x20protect\x20your\x20Onairos\x20account','aWKMU':_0x39cf(0x8),'nRkee':_0x39cf(0x9),'IaxOz':'Enter\x20PIN','WfOVB':_0x39cf(0xa),'wikmc':'done','vZHQy':_0x39cf(0xb),'VZZZR':'visibility','JWycH':function(_0x13bd1f,_0x4aaef4){return _0x13bd1f>_0x4aaef4;},'ahLZa':function(_0x9db89e,_0x51852c){return _0x9db89e>=_0x51852c;},'CFzJH':_0x39cf(0xc),'nlfmh':_0x39cf(0xd),'MTdVQ':function(_0x5f141d,_0xab3f73){return _0x5f141d>=_0xab3f73;},'zDTfH':_0x39cf(0xe),'yWnmI':_0x39cf(0xf),'Djhze':_0x39cf(0x10),'QABlz':'Include\x20at\x20least\x20one\x20special\x20character','KUwOH':function(_0x3851b9,_0xbbc2ba){return _0x3851b9===_0xbbc2ba;},'FDtaV':_0x39cf(0x11),'xdJZh':_0x39cf(0x12),'ADVDH':function(_0x1f0b1f,_0x2e30ad){return _0x1f0b1f>_0x2e30ad;},'tVUqC':function(_0x2efb43,_0x5b17cb){return _0x2efb43===_0x5b17cb;},'vQvmN':function(_0x118059,_0x5006c2){return _0x118059>_0x5006c2;},'oHBbE':_0x39cf(0x13),'uUBXV':'#fff'},[_0xbab347,_0x2ee311]=_0x4a5540[_0x39cf(0x14)](useState,''),[_0x37c136,_0x43a551]=_0x4a5540['ZgfHF'](useState,''),[_0x549949,_0x560dbe]=_0x4a5540[_0x39cf(0x15)](useState,![]),[_0x10d392,_0x506b50]=_0x4a5540[_0x39cf(0x16)](useState,[]),[_0x2d62a0,_0x2f0df3]=_0x4a5540['pDkBu'](useState,_0x4a5540[_0x39cf(0x17)]);_0x4a5540[_0x39cf(0x18)](useEffect,()=>{_0x4a5540[_0x39cf(0x19)](_0x2d62a0,_0x4a5540['pFFYX'])&&_0x4a5540[_0x39cf(0x1a)](_0x5da6bb,_0xbab347);},[_0xbab347,_0x2d62a0]);const _0x5da6bb=_0x4a5540[_0x39cf(0x1b)](useCallback,_0x53d859=>{const _0x2fe91d=[];return _0x53d859[_0x39cf(0x1c)]<minLength&&_0x2fe91d[_0x39cf(0x1d)](_0x39cf(0x1e)+minLength+'\x20characters'),requireNumber&&!/\d/[_0x39cf(0x1f)](_0x53d859)&&_0x2fe91d[_0x39cf(0x1d)](_0x4a5540[_0x39cf(0x20)]),requireSpecialChar&&!/[!@#$%^&*(),.?":{}|<>]/['test'](_0x53d859)&&_0x2fe91d['push'](_0x4a5540['ktVyT']),_0x4a5540[_0x39cf(0x21)](_0x506b50,_0x2fe91d),_0x4a5540[_0x39cf(0x19)](_0x2fe91d[_0x39cf(0x1c)],0x0);},[minLength,requireNumber,requireSpecialChar]),_0x6d2b38=useCallback(()=>{const _0x5cc14b={'KwCaI':_0x4a5540[_0x39cf(0x22)]};_0x4a5540[_0x39cf(0x23)](_0x4a5540[_0x39cf(0x24)],_0x39cf(0x3))?_0x91bbf4[_0x39cf(0x1d)](_0x5cc14b[_0x39cf(0x25)]):_0x2d62a0===_0x39cf(0x0)?_0x4a5540['NughH'](_0x4a5540[_0x39cf(0x26)],_0x4a5540[_0x39cf(0x26)])?_0x4a5540[_0x39cf(0x27)](_0x5da6bb,_0xbab347)&&(_0x4a5540['WHuvJ'](_0x4a5540[_0x39cf(0x28)],_0x4a5540[_0x39cf(0x28)])?_0x2f0df3(_0x4a5540[_0x39cf(0x29)]):_0x309322(_0x548277)&&_0x4a5540[_0x39cf(0x27)](_0x338582,_0x4a5540[_0x39cf(0x29)])):(_0x28a039[_0x39cf(0x2a)](),_0x31c309(_0x25fe7f)):_0xbab347===_0x37c136?_0x4a5540[_0x39cf(0x2b)]!==_0x4a5540['yfPHe']?_0x4a5540[_0x39cf(0x27)](_0x202183,_0x4a5540['EdSEA']):(Keyboard[_0x39cf(0x2a)](),_0x29812a(_0xbab347)):(_0x4a5540[_0x39cf(0x27)](_0x506b50,[_0x4a5540['mqGZc']]),_0x43a551(''));},[_0xbab347,_0x37c136,_0x2d62a0,_0x5da6bb,_0x29812a]),_0x3e11bb=_0x4a5540[_0x39cf(0x18)](useCallback,()=>{_0x4a5540['ZgfHF'](_0x2f0df3,_0x4a5540[_0x39cf(0x17)]),_0x4a5540[_0x39cf(0x14)](_0x43a551,''),_0x4a5540[_0x39cf(0x14)](_0x506b50,[]);},[]),_0x1ccf48=_0x4a5540[_0x39cf(0x18)](useCallback,()=>{_0x4a5540[_0x39cf(0x2c)](_0x560dbe,!_0x549949);},[_0x549949]);return React[_0x39cf(0x2d)](KeyboardAvoidingView,{'behavior':_0x4a5540[_0x39cf(0x2e)](Platform['OS'],'ios')?_0x39cf(0x2f):_0x4a5540[_0x39cf(0x30)],'style':styles[_0x39cf(0x31)]},React[_0x39cf(0x2d)](View,{'style':styles['content']},React[_0x39cf(0x2d)](Text,{'style':styles[_0x39cf(0x32)]},_0x2d62a0===_0x39cf(0x0)?_0x39cf(0x33):'Confirm\x20your\x20PIN'),React[_0x39cf(0x2d)](Text,{'style':styles[_0x39cf(0x34)]},_0x2d62a0===_0x4a5540[_0x39cf(0x17)]?_0x4a5540['pIBMj']:_0x4a5540[_0x39cf(0x35)]),React['createElement'](View,{'style':styles[_0x39cf(0x36)]},React['createElement'](TextInput,{'style':styles[_0x39cf(0x37)],'value':_0x2d62a0===_0x4a5540[_0x39cf(0x17)]?_0xbab347:_0x37c136,'onChangeText':_0x2d62a0===_0x4a5540[_0x39cf(0x17)]?_0x2ee311:_0x43a551,'secureTextEntry':!_0x549949,'keyboardType':_0x39cf(0x38),'autoCapitalize':_0x4a5540[_0x39cf(0x39)],'autoCorrect':![],'placeholder':_0x4a5540[_0x39cf(0x2e)](_0x2d62a0,_0x4a5540[_0x39cf(0x17)])?_0x4a5540[_0x39cf(0x3a)]:_0x39cf(0x3b),'placeholderTextColor':_0x4a5540[_0x39cf(0x3c)],'returnKeyType':_0x4a5540[_0x39cf(0x3d)],'onSubmitEditing':_0x6d2b38}),React[_0x39cf(0x2d)](TouchableOpacity,{'style':styles[_0x39cf(0x3e)],'onPress':_0x1ccf48},React[_0x39cf(0x2d)](_0x4791a8,{'name':_0x549949?_0x4a5540[_0x39cf(0x3f)]:_0x4a5540[_0x39cf(0x40)],'size':0x18,'color':_0x4a5540['WfOVB']}))),_0x4a5540[_0x39cf(0x41)](_0x10d392[_0x39cf(0x1c)],0x0)&&React[_0x39cf(0x2d)](View,{'style':styles[_0x39cf(0x42)]},_0x10d392[_0x39cf(0x43)]((_0x130d9a,_0xb128de)=>React['createElement'](View,{'key':_0xb128de,'style':styles['errorItem']},React['createElement'](_0x4791a8,{'name':_0x39cf(0x44),'size':0x10,'color':_0x39cf(0x45)}),React[_0x39cf(0x2d)](Text,{'style':styles[_0x39cf(0x46)]},_0x130d9a)))),_0x4a5540[_0x39cf(0x2e)](_0x2d62a0,_0x4a5540['pFFYX'])&&React[_0x39cf(0x2d)](View,{'style':styles[_0x39cf(0x47)]},React[_0x39cf(0x2d)](Text,{'style':styles['requirementsTitle']},_0x39cf(0x48)),React[_0x39cf(0x2d)](View,{'style':styles[_0x39cf(0x49)]},React['createElement'](_0x4791a8,{'name':_0x4a5540[_0x39cf(0x4a)](_0xbab347['length'],minLength)?_0x39cf(0xf):_0x4a5540[_0x39cf(0x4b)],'size':0x10,'color':_0xbab347[_0x39cf(0x1c)]>=minLength?_0x4a5540[_0x39cf(0x4c)]:_0x4a5540[_0x39cf(0x3c)]}),React[_0x39cf(0x2d)](Text,{'style':[styles[_0x39cf(0x4d)],{'color':_0x4a5540[_0x39cf(0x4e)](_0xbab347['length'],minLength)?_0x39cf(0xd):_0x39cf(0xa)}]},_0x39cf(0x4f),minLength,_0x4a5540[_0x39cf(0x50)])),requireNumber&&React[_0x39cf(0x2d)](View,{'style':styles[_0x39cf(0x49)]},React[_0x39cf(0x2d)](_0x4791a8,{'name':/\d/[_0x39cf(0x1f)](_0xbab347)?_0x4a5540[_0x39cf(0x51)]:_0x4a5540[_0x39cf(0x4b)],'size':0x10,'color':/\d/[_0x39cf(0x1f)](_0xbab347)?_0x4a5540[_0x39cf(0x4c)]:'#999'}),React['createElement'](Text,{'style':[styles[_0x39cf(0x4d)],{'color':/\d/[_0x39cf(0x1f)](_0xbab347)?_0x4a5540[_0x39cf(0x4c)]:_0x4a5540[_0x39cf(0x3c)]}]},_0x4a5540[_0x39cf(0x52)])),requireSpecialChar&&React['createElement'](View,{'style':styles[_0x39cf(0x49)]},React[_0x39cf(0x2d)](_0x4791a8,{'name':/[!@#$%^&*(),.?":{}|<>]/[_0x39cf(0x1f)](_0xbab347)?_0x4a5540[_0x39cf(0x51)]:_0x4a5540[_0x39cf(0x4b)],'size':0x10,'color':/[!@#$%^&*(),.?":{}|<>]/[_0x39cf(0x1f)](_0xbab347)?_0x39cf(0xd):_0x4a5540[_0x39cf(0x3c)]}),React['createElement'](Text,{'style':[styles[_0x39cf(0x4d)],{'color':/[!@#$%^&*(),.?":{}|<>]/[_0x39cf(0x1f)](_0xbab347)?_0x4a5540['nlfmh']:_0x39cf(0xa)}]},_0x4a5540[_0x39cf(0x53)]))),React['createElement'](View,{'style':styles['buttonContainer']},_0x4a5540[_0x39cf(0x54)](_0x2d62a0,_0x4a5540['EdSEA'])&&React[_0x39cf(0x2d)](TouchableOpacity,{'style':[styles[_0x39cf(0x55)],styles[_0x39cf(0x56)]],'onPress':_0x3e11bb},React[_0x39cf(0x2d)](_0x4791a8,{'name':_0x4a5540[_0x39cf(0x57)],'size':0x14,'color':COLORS[_0x39cf(0x58)]}),React[_0x39cf(0x2d)](Text,{'style':[styles['buttonText'],styles[_0x39cf(0x59)]]},_0x4a5540[_0x39cf(0x5a)])),React['createElement'](TouchableOpacity,{'style':[styles['button'],styles[_0x39cf(0x5b)],_0x4a5540[_0x39cf(0x54)](_0x2d62a0,_0x4a5540[_0x39cf(0x17)])&&_0x4a5540[_0x39cf(0x5c)](_0x10d392[_0x39cf(0x1c)],0x0)||_0x4a5540[_0x39cf(0x54)](_0x2d62a0,_0x4a5540[_0x39cf(0x29)])&&!_0x37c136?styles[_0x39cf(0x5d)]:null],'onPress':_0x6d2b38,'disabled':_0x4a5540[_0x39cf(0x5e)](_0x2d62a0,_0x4a5540[_0x39cf(0x17)])&&_0x4a5540['vQvmN'](_0x10d392[_0x39cf(0x1c)],0x0)||_0x4a5540[_0x39cf(0x5f)](_0x2d62a0,_0x4a5540[_0x39cf(0x29)])&&!_0x37c136},React[_0x39cf(0x2d)](Text,{'style':[styles[_0x39cf(0x60)],styles[_0x39cf(0x61)]]},_0x4a5540[_0x39cf(0x5e)](_0x2d62a0,_0x4a5540[_0x39cf(0x17)])?'Next':'Submit'),React['createElement'](_0x4791a8,{'name':_0x4a5540[_0x39cf(0x62)],'size':0x14,'color':_0x4a5540[_0x39cf(0x63)]})))));};const styles=StyleSheet[_0x39cf(0x0)]({'container':{'flex':0x1},'content':{'padding':0x18},'title':{'fontSize':0x18,'fontWeight':_0x39cf(0x64),'marginBottom':0x8,'color':_0x39cf(0x65)},'subtitle':{'fontSize':0x10,'color':_0x39cf(0x66),'marginBottom':0x18},'inputContainer':{'flexDirection':_0x39cf(0x67),'alignItems':'center','borderWidth':0x1,'borderColor':_0x39cf(0x68),'borderRadius':0x8,'backgroundColor':_0x39cf(0x69),'marginBottom':0x10},'input':{'flex':0x1,'paddingHorizontal':0x10,'paddingVertical':0xc,'fontSize':0x10,'color':_0x39cf(0x65)},'visibilityToggle':{'padding':0xc},'errorContainer':{'marginBottom':0x10},'errorItem':{'flexDirection':_0x39cf(0x67),'alignItems':_0x39cf(0x6a),'marginBottom':0x4},'errorText':{'color':'#f44336','marginLeft':0x6},'requirementsContainer':{'backgroundColor':'#f5f5f5','padding':0x10,'borderRadius':0x8,'marginBottom':0x18},'requirementsTitle':{'fontSize':0xe,'fontWeight':_0x39cf(0x6b),'marginBottom':0x8,'color':'#000'},'requirement':{'flexDirection':_0x39cf(0x67),'alignItems':_0x39cf(0x6a),'marginBottom':0x8},'requirementText':{'marginLeft':0x8,'fontSize':0xe},'buttonContainer':{'flexDirection':'row','justifyContent':_0x39cf(0x6c)},'button':{'flexDirection':_0x39cf(0x67),'alignItems':_0x39cf(0x6a),'paddingVertical':0xc,'paddingHorizontal':0x14,'borderRadius':0x19},'backButton':{'backgroundColor':_0x39cf(0x6d),'borderWidth':0x1,'borderColor':COLORS[_0x39cf(0x58)]},'nextButton':{'backgroundColor':COLORS['primary'],'minWidth':0x78,'justifyContent':_0x39cf(0x6a)},'disabledButton':{'backgroundColor':_0x39cf(0x6e)},'buttonText':{'fontSize':0x10,'fontWeight':'600'},'backButtonText':{'color':COLORS[_0x39cf(0x58)],'marginLeft':0x8},'nextButtonText':{'color':_0x39cf(0x6f),'marginRight':0x8}});
@@ -1 +1 @@
1
- import React,{useState}from'react';function _0x5e38(){const _0x3583c1=['Instagram','Connect\x20to\x20share\x20and\x20analyze\x20your\x20Instagram\x20content','YouTube','smart-display','Connect\x20for\x20YouTube\x20video\x20recommendations\x20and\x20analysis','Pinterest','push-pin','#E60023','Connect\x20to\x20enhance\x20Pinterest\x20board\x20recommendations','forum','#FF4500','Connect\x20to\x20personalize\x20Reddit\x20content\x20insights','VcTSm','wvTLD','fDDQu','QruPI','EezVg','small','Disconnect','\x20of\x20','#999','gyLKq','Tpvdp','jfzmn','enUxr','xBFrQ','ohmBe','hfiaE','filter','length','container','title','rrFlj','Connect\x20at\x20least\x202\x20platforms\x20to\x20create\x20your\x20Onairos\x20account','createElement','platformList','keys','AsODh','platformItem','platformInfo','color','BilXV','platformText','platformName','name','platformDescription','description','platformButton','connectButton','NOgGg','crUUE','footer','BKpMj','WfjfK','fyMfn','proceedButton','proceedActive','proceedTextActive','Continue','NrHLm','https://oauth.example.com/','log','sCEEH','bold','#000','#666','center','#f8f8f8','#eee','row','600','primary','#f44336','#fff','space-between'];_0x5e38=function(){return _0x3583c1;};return _0x5e38();}import{View,Text,StyleSheet,TouchableOpacity,ActivityIndicator,ScrollView}from'react-native';import _0x42b693 from'react-native-vector-icons/MaterialIcons';import{COLORS}from'../../constants';import{OAuthWebView}from'./OAuthWebView';function _0x2904(_0x5e38b7,_0x2904db){_0x5e38b7=_0x5e38b7-0x0;const _0x521392=_0x5e38();let _0x167691=_0x521392[_0x5e38b7];return _0x167691;}const PLATFORMS={'instagram':{'name':_0x2904(0x0),'icon':'photo-camera','color':'#E1306C','description':_0x2904(0x1)},'youtube':{'name':_0x2904(0x2),'icon':_0x2904(0x3),'color':'#FF0000','description':_0x2904(0x4)},'pinterest':{'name':_0x2904(0x5),'icon':_0x2904(0x6),'color':_0x2904(0x7),'description':_0x2904(0x8)},'reddit':{'name':'Reddit','icon':_0x2904(0x9),'color':_0x2904(0xa),'description':_0x2904(0xb)}};export const PlatformConnector=({connections:_0x59529d,onConnect:_0x279bd6,onDisconnect:_0x58b7e5,isLoading:_0x4d260a,canProceed:_0x3b91c8,onProceed:_0x29dc1c})=>{const _0x5a68d4={'gyLKq':function(_0x367fcf,_0xc33ed6){return _0x367fcf(_0xc33ed6);},'Tpvdp':function(_0x441a66,_0x48cdab){return _0x441a66===_0x48cdab;},'jfzmn':_0x2904(0xc),'enUxr':_0x2904(0xd),'xBFrQ':function(_0x32cb24,_0x5d6b82){return _0x32cb24(_0x5d6b82);},'BSnRX':function(_0x307eca,_0x242d44){return _0x307eca===_0x242d44;},'ohmBe':_0x2904(0xe),'juYDJ':_0x2904(0xf),'AsODh':_0x2904(0x10),'bzBOH':function(_0x485f91,_0xdd11af){return _0x485f91===_0xdd11af;},'BilXV':'#fff','KoTDj':_0x2904(0x11),'NOgGg':_0x2904(0x12),'crUUE':'Connect','sCEEH':function(_0x930cbb){return _0x930cbb();},'rrFlj':'Connect\x20Your\x20Platforms','BKpMj':function(_0x28c255){return _0x28c255();},'WfjfK':_0x2904(0x13),'fyMfn':'\x20platforms\x20connected','XRRHt':'arrow-forward','NrHLm':_0x2904(0x14)},[_0x25ddbd,_0x3f66db]=_0x5a68d4['xBFrQ'](useState,null),_0x84010f=async _0x4faa54=>{_0x5a68d4[_0x2904(0x15)](_0x3f66db,_0x4faa54);},_0x27ca38=()=>{_0x5a68d4[_0x2904(0x16)](_0x5a68d4[_0x2904(0x17)],_0x5a68d4[_0x2904(0x18)])?_0x222584(_0x4d00c6):_0x5a68d4[_0x2904(0x19)](_0x3f66db,null);},_0x1055de=()=>{_0x5a68d4[_0x2904(0x19)](_0x3f66db,null);},_0x28adb1=async _0xb98fc2=>{await _0x58b7e5(_0xb98fc2);},_0x130435=_0x253342=>{if(_0x5a68d4['BSnRX'](_0x5a68d4[_0x2904(0x1a)],_0x2904(0x1b))){const _0x4e4646=_0x4d4559;return _0x595636[_0x4e4646]?!![]:![];}else{const _0x457e4d=_0x253342;return _0x59529d[_0x457e4d]?!![]:![];}},_0x5ddf2d=()=>{return Object['values'](_0x59529d)[_0x2904(0x1c)](Boolean)[_0x2904(0x1d)];};return React['createElement'](View,{'style':styles[_0x2904(0x1e)]},React['createElement'](Text,{'style':styles[_0x2904(0x1f)]},_0x5a68d4[_0x2904(0x20)]),React['createElement'](Text,{'style':styles['subtitle']},_0x2904(0x21)),React[_0x2904(0x22)](ScrollView,{'style':styles[_0x2904(0x23)]},Object[_0x2904(0x24)](PLATFORMS)['map'](_0x57b624=>{if(_0x5a68d4['juYDJ']===_0x5a68d4[_0x2904(0x25)])_0x134040(null);else{var _0x4bc8df;const _0x1bc24b=PLATFORMS[_0x57b624],_0x51fcc5=_0x5a68d4[_0x2904(0x15)](_0x130435,_0x57b624),_0x42563c=_0x51fcc5?(_0x4bc8df=_0x59529d[_0x57b624])===null||_0x5a68d4['bzBOH'](_0x4bc8df,void 0x0)?void 0x0:_0x4bc8df['userName']:null;return React['createElement'](View,{'key':_0x57b624,'style':styles[_0x2904(0x26)]},React['createElement'](View,{'style':styles[_0x2904(0x27)]},React[_0x2904(0x22)](View,{'style':[styles['platformIcon'],{'backgroundColor':_0x1bc24b[_0x2904(0x28)]}]},React[_0x2904(0x22)](_0x42b693,{'name':_0x1bc24b['icon'],'size':0x18,'color':_0x5a68d4[_0x2904(0x29)]})),React[_0x2904(0x22)](View,{'style':styles[_0x2904(0x2a)]},React['createElement'](Text,{'style':styles[_0x2904(0x2b)]},_0x1bc24b[_0x2904(0x2c)]),React[_0x2904(0x22)](Text,{'style':styles[_0x2904(0x2d)]},_0x51fcc5?'Connected\x20as\x20'+_0x42563c:_0x1bc24b[_0x2904(0x2e)]))),React[_0x2904(0x22)](TouchableOpacity,{'style':[styles[_0x2904(0x2f)],_0x51fcc5?styles['disconnectButton']:styles[_0x2904(0x30)]],'onPress':()=>_0x51fcc5?_0x28adb1(_0x57b624):_0x84010f(_0x57b624),'disabled':_0x4d260a},_0x4d260a?React[_0x2904(0x22)](ActivityIndicator,{'size':_0x5a68d4['KoTDj'],'color':_0x5a68d4[_0x2904(0x29)]}):React[_0x2904(0x22)](Text,{'style':styles['buttonText']},_0x51fcc5?_0x5a68d4[_0x2904(0x31)]:_0x5a68d4[_0x2904(0x32)])));}})),React[_0x2904(0x22)](View,{'style':styles[_0x2904(0x33)]},React[_0x2904(0x22)](Text,{'style':styles['connectionStatus']},_0x5a68d4[_0x2904(0x34)](_0x5ddf2d),_0x5a68d4[_0x2904(0x35)],Object[_0x2904(0x24)](PLATFORMS)[_0x2904(0x1d)],_0x5a68d4[_0x2904(0x36)]),React['createElement'](TouchableOpacity,{'style':[styles[_0x2904(0x37)],_0x3b91c8?styles[_0x2904(0x38)]:styles['proceedInactive']],'onPress':_0x29dc1c,'disabled':!_0x3b91c8},React[_0x2904(0x22)](Text,{'style':[styles['proceedText'],_0x3b91c8?styles[_0x2904(0x39)]:styles['proceedTextInactive']]},_0x2904(0x3a)),React['createElement'](_0x42b693,{'name':_0x5a68d4['XRRHt'],'size':0x14,'color':_0x3b91c8?_0x5a68d4[_0x2904(0x29)]:_0x5a68d4[_0x2904(0x3b)]}))),_0x25ddbd&&React[_0x2904(0x22)](OAuthWebView,{'url':_0x2904(0x3c)+_0x25ddbd,'platform':_0x25ddbd,'onComplete':_0x27ca38,'onClose':_0x1055de,'onSuccess':_0x4b8c35=>{console[_0x2904(0x3d)]('Received\x20authorization\x20code\x20for\x20'+_0x25ddbd+':\x20'+_0x4b8c35),_0x5a68d4[_0x2904(0x3e)](_0x27ca38);}}));};const styles=StyleSheet['create']({'container':{'flex':0x1,'padding':0x10},'title':{'fontSize':0x18,'fontWeight':_0x2904(0x3f),'marginBottom':0x8,'color':_0x2904(0x40)},'subtitle':{'fontSize':0x10,'color':_0x2904(0x41),'marginBottom':0x18},'platformList':{'flex':0x1},'platformItem':{'flexDirection':'row','alignItems':_0x2904(0x42),'marginBottom':0x10,'padding':0xc,'backgroundColor':_0x2904(0x43),'borderRadius':0xc,'borderWidth':0x1,'borderColor':_0x2904(0x44)},'platformInfo':{'flex':0x1,'flexDirection':_0x2904(0x45),'alignItems':_0x2904(0x42)},'platformIcon':{'width':0x28,'height':0x28,'borderRadius':0x14,'justifyContent':'center','alignItems':_0x2904(0x42),'marginRight':0xc},'platformText':{'flex':0x1},'platformName':{'fontSize':0x10,'fontWeight':_0x2904(0x46),'marginBottom':0x4,'color':_0x2904(0x40)},'platformDescription':{'fontSize':0xe,'color':_0x2904(0x41)},'platformButton':{'paddingHorizontal':0x10,'paddingVertical':0x8,'borderRadius':0x14,'justifyContent':_0x2904(0x42),'alignItems':_0x2904(0x42),'minWidth':0x64},'connectButton':{'backgroundColor':COLORS[_0x2904(0x47)]},'disconnectButton':{'backgroundColor':_0x2904(0x48)},'buttonText':{'color':_0x2904(0x49),'fontWeight':_0x2904(0x46)},'footer':{'flexDirection':_0x2904(0x45),'alignItems':_0x2904(0x42),'justifyContent':_0x2904(0x4a),'paddingTop':0x10,'borderTopWidth':0x1,'borderTopColor':_0x2904(0x44),'marginTop':0x10},'connectionStatus':{'fontSize':0xe,'color':_0x2904(0x41)},'proceedButton':{'flexDirection':'row','alignItems':_0x2904(0x42),'paddingHorizontal':0x10,'paddingVertical':0xa,'borderRadius':0x18},'proceedActive':{'backgroundColor':COLORS[_0x2904(0x47)]},'proceedInactive':{'backgroundColor':'#eee'},'proceedText':{'fontWeight':_0x2904(0x46),'marginRight':0x8},'proceedTextActive':{'color':_0x2904(0x49)},'proceedTextInactive':{'color':_0x2904(0x14)}});
1
+ import React,{useState}from'react';import{View,Text,StyleSheet,TouchableOpacity,ActivityIndicator,ScrollView}from'react-native';function _0x2452(_0x26ab71,_0x2452d7){_0x26ab71=_0x26ab71-0x0;const _0x37183c=_0x26ab();let _0x1df314=_0x37183c[_0x26ab71];return _0x1df314;}import _0x2cf53c from'react-native-vector-icons/MaterialIcons';function _0x26ab(){const _0x266774=['Instagram','photo-camera','#E1306C','Connect\x20to\x20share\x20and\x20analyze\x20your\x20Instagram\x20content','smart-display','#FF0000','Connect\x20for\x20YouTube\x20video\x20recommendations\x20and\x20analysis','Pinterest','push-pin','#E60023','Connect\x20to\x20enhance\x20Pinterest\x20board\x20recommendations','Reddit','#FF4500','Connect\x20to\x20personalize\x20Reddit\x20content\x20insights','lVxvE','#fff','eypxp','ZXnYT','Connect\x20Your\x20Platforms','Connect\x20at\x20least\x202\x20platforms\x20to\x20create\x20your\x20Onairos\x20account','\x20of\x20','arrow-forward','#999','BZRuj','yrmIy','GGSZG','tvdiA','RxftH','xrTJK','values','createElement','title','TUvDl','subtitle','platformList','keys','map','PQMYq','xifXV','YbWod','userName','platformItem','platformIcon','color','icon','platformText','platformName','name','platformDescription','Connected\x20as\x20','platformButton','connectButton','small','PUkFV','Connect','filter','length','connectionStatus','MdYrg','RYNPR','\x20platforms\x20connected','proceedButton','proceedActive','proceedInactive','proceedText','proceedTextActive','proceedTextInactive','BbFXx','UNqXt','iIbmb','https://oauth.example.com/','bSIuO','DoseF','zxVjX','log','Received\x20authorization\x20code\x20for\x20','fQbqX','create','bold','#000','#666','row','center','#f8f8f8','#eee','primary','#f44336','space-between','600'];_0x26ab=function(){return _0x266774;};return _0x26ab();}import{COLORS}from'../../constants';import{OAuthWebView}from'./OAuthWebView';const PLATFORMS={'instagram':{'name':_0x2452(0x0),'icon':_0x2452(0x1),'color':_0x2452(0x2),'description':_0x2452(0x3)},'youtube':{'name':'YouTube','icon':_0x2452(0x4),'color':_0x2452(0x5),'description':_0x2452(0x6)},'pinterest':{'name':_0x2452(0x7),'icon':_0x2452(0x8),'color':_0x2452(0x9),'description':_0x2452(0xa)},'reddit':{'name':_0x2452(0xb),'icon':'forum','color':_0x2452(0xc),'description':_0x2452(0xd)}};export const PlatformConnector=({connections:_0x14f2aa,onConnect:_0x24fcce,onDisconnect:_0x2bf935,isLoading:_0x25d479,canProceed:_0x747ce7,onProceed:_0x4900b9})=>{const _0x3b3404={'yrmIy':function(_0x25ebb1,_0x1b2f03){return _0x25ebb1(_0x1b2f03);},'GGSZG':function(_0x52d789,_0x4de243){return _0x52d789===_0x4de243;},'UapXj':'VWDZz','tvdiA':function(_0x1f4d24,_0x55a04c){return _0x1f4d24===_0x55a04c;},'RxftH':'bJQxZ','xrTJK':_0x2452(0xe),'xifXV':function(_0x2f3db3,_0x1b62fb){return _0x2f3db3(_0x1b62fb);},'YbWod':function(_0x1e57d3,_0x59d8ee){return _0x1e57d3===_0x59d8ee;},'UNqXt':_0x2452(0xf),'PUkFV':'Disconnect','bSIuO':function(_0x54156c,_0x120ef4){return _0x54156c!==_0x120ef4;},'DoseF':_0x2452(0x10),'zxVjX':_0x2452(0x11),'tEYLC':function(_0x552c54){return _0x552c54();},'BZRuj':function(_0x4ff820,_0x5616e7){return _0x4ff820(_0x5616e7);},'TUvDl':_0x2452(0x12),'kStfF':_0x2452(0x13),'MdYrg':function(_0x34a3f2){return _0x34a3f2();},'RYNPR':_0x2452(0x14),'BbFXx':'Continue','Fbyjw':_0x2452(0x15),'iIbmb':_0x2452(0x16)},[_0x1a42c7,_0xad8f65]=_0x3b3404[_0x2452(0x17)](useState,null),_0x154c92=async _0x515add=>{_0x3b3404[_0x2452(0x18)](_0xad8f65,_0x515add);},_0x2b5fff=()=>{_0x3b3404[_0x2452(0x19)](_0x3b3404['UapXj'],_0x3b3404['UapXj'])?_0xad8f65(null):_0x18c542(null);},_0x32387a=()=>{_0x3b3404[_0x2452(0x18)](_0xad8f65,null);},_0x644dd7=async _0x8692f6=>{await _0x2bf935(_0x8692f6);},_0x396db4=_0x36e442=>{const _0x151fa3=_0x36e442;return _0x14f2aa[_0x151fa3]?!![]:![];},_0x4bd179=()=>{if(_0x3b3404[_0x2452(0x1a)](_0x3b3404[_0x2452(0x1b)],_0x3b3404[_0x2452(0x1c)])){const _0x36f880=_0x4396b7;return _0x382c0a[_0x36f880]?!![]:![];}else return Object[_0x2452(0x1d)](_0x14f2aa)['filter'](Boolean)['length'];};return React[_0x2452(0x1e)](View,{'style':styles['container']},React['createElement'](Text,{'style':styles[_0x2452(0x1f)]},_0x3b3404[_0x2452(0x20)]),React[_0x2452(0x1e)](Text,{'style':styles[_0x2452(0x21)]},_0x3b3404['kStfF']),React[_0x2452(0x1e)](ScrollView,{'style':styles[_0x2452(0x22)]},Object[_0x2452(0x23)](PLATFORMS)[_0x2452(0x24)](_0x24b866=>{if(_0x2452(0x25)==='PQMYq'){var _0x2eaf41;const _0x63c991=PLATFORMS[_0x24b866],_0xbe41e1=_0x3b3404[_0x2452(0x26)](_0x396db4,_0x24b866),_0x456adc=_0xbe41e1?_0x3b3404[_0x2452(0x27)](_0x2eaf41=_0x14f2aa[_0x24b866],null)||_0x2eaf41===void 0x0?void 0x0:_0x2eaf41[_0x2452(0x28)]:null;return React[_0x2452(0x1e)](View,{'key':_0x24b866,'style':styles[_0x2452(0x29)]},React[_0x2452(0x1e)](View,{'style':styles['platformInfo']},React[_0x2452(0x1e)](View,{'style':[styles[_0x2452(0x2a)],{'backgroundColor':_0x63c991[_0x2452(0x2b)]}]},React[_0x2452(0x1e)](_0x2cf53c,{'name':_0x63c991[_0x2452(0x2c)],'size':0x18,'color':_0x3b3404['UNqXt']})),React['createElement'](View,{'style':styles[_0x2452(0x2d)]},React[_0x2452(0x1e)](Text,{'style':styles[_0x2452(0x2e)]},_0x63c991[_0x2452(0x2f)]),React[_0x2452(0x1e)](Text,{'style':styles[_0x2452(0x30)]},_0xbe41e1?_0x2452(0x31)+_0x456adc:_0x63c991['description']))),React[_0x2452(0x1e)](TouchableOpacity,{'style':[styles[_0x2452(0x32)],_0xbe41e1?styles['disconnectButton']:styles[_0x2452(0x33)]],'onPress':()=>_0xbe41e1?_0x644dd7(_0x24b866):_0x154c92(_0x24b866),'disabled':_0x25d479},_0x25d479?React['createElement'](ActivityIndicator,{'size':_0x2452(0x34),'color':_0x2452(0xf)}):React[_0x2452(0x1e)](Text,{'style':styles['buttonText']},_0xbe41e1?_0x3b3404[_0x2452(0x35)]:_0x2452(0x36))));}else return _0x46860c[_0x2452(0x1d)](_0x332019)[_0x2452(0x37)](_0x41737e)[_0x2452(0x38)];})),React[_0x2452(0x1e)](View,{'style':styles['footer']},React[_0x2452(0x1e)](Text,{'style':styles[_0x2452(0x39)]},_0x3b3404[_0x2452(0x3a)](_0x4bd179),_0x3b3404[_0x2452(0x3b)],Object[_0x2452(0x23)](PLATFORMS)[_0x2452(0x38)],_0x2452(0x3c)),React['createElement'](TouchableOpacity,{'style':[styles[_0x2452(0x3d)],_0x747ce7?styles[_0x2452(0x3e)]:styles[_0x2452(0x3f)]],'onPress':_0x4900b9,'disabled':!_0x747ce7},React[_0x2452(0x1e)](Text,{'style':[styles[_0x2452(0x40)],_0x747ce7?styles[_0x2452(0x41)]:styles[_0x2452(0x42)]]},_0x3b3404[_0x2452(0x43)]),React[_0x2452(0x1e)](_0x2cf53c,{'name':_0x3b3404['Fbyjw'],'size':0x14,'color':_0x747ce7?_0x3b3404[_0x2452(0x44)]:_0x3b3404[_0x2452(0x45)]}))),_0x1a42c7&&React[_0x2452(0x1e)](OAuthWebView,{'url':_0x2452(0x46)+_0x1a42c7,'platform':_0x1a42c7,'onComplete':_0x2b5fff,'onClose':_0x32387a,'onSuccess':_0x2f66a5=>{const _0x41cf67={'fQbqX':function(_0x102ad,_0x5aaf39){return _0x102ad(_0x5aaf39);}};_0x3b3404[_0x2452(0x47)](_0x3b3404[_0x2452(0x48)],_0x3b3404[_0x2452(0x49)])?(console[_0x2452(0x4a)](_0x2452(0x4b)+_0x1a42c7+':\x20'+_0x2f66a5),_0x3b3404['tEYLC'](_0x2b5fff)):_0x41cf67[_0x2452(0x4c)](_0x5448c5,null);}}));};const styles=StyleSheet[_0x2452(0x4d)]({'container':{'flex':0x1,'padding':0x10},'title':{'fontSize':0x18,'fontWeight':_0x2452(0x4e),'marginBottom':0x8,'color':_0x2452(0x4f)},'subtitle':{'fontSize':0x10,'color':_0x2452(0x50),'marginBottom':0x18},'platformList':{'flex':0x1},'platformItem':{'flexDirection':_0x2452(0x51),'alignItems':_0x2452(0x52),'marginBottom':0x10,'padding':0xc,'backgroundColor':_0x2452(0x53),'borderRadius':0xc,'borderWidth':0x1,'borderColor':_0x2452(0x54)},'platformInfo':{'flex':0x1,'flexDirection':'row','alignItems':_0x2452(0x52)},'platformIcon':{'width':0x28,'height':0x28,'borderRadius':0x14,'justifyContent':'center','alignItems':_0x2452(0x52),'marginRight':0xc},'platformText':{'flex':0x1},'platformName':{'fontSize':0x10,'fontWeight':'600','marginBottom':0x4,'color':_0x2452(0x4f)},'platformDescription':{'fontSize':0xe,'color':_0x2452(0x50)},'platformButton':{'paddingHorizontal':0x10,'paddingVertical':0x8,'borderRadius':0x14,'justifyContent':_0x2452(0x52),'alignItems':_0x2452(0x52),'minWidth':0x64},'connectButton':{'backgroundColor':COLORS[_0x2452(0x55)]},'disconnectButton':{'backgroundColor':_0x2452(0x56)},'buttonText':{'color':_0x2452(0xf),'fontWeight':'600'},'footer':{'flexDirection':_0x2452(0x51),'alignItems':_0x2452(0x52),'justifyContent':_0x2452(0x57),'paddingTop':0x10,'borderTopWidth':0x1,'borderTopColor':_0x2452(0x54),'marginTop':0x10},'connectionStatus':{'fontSize':0xe,'color':_0x2452(0x50)},'proceedButton':{'flexDirection':_0x2452(0x51),'alignItems':_0x2452(0x52),'paddingHorizontal':0x10,'paddingVertical':0xa,'borderRadius':0x18},'proceedActive':{'backgroundColor':COLORS[_0x2452(0x55)]},'proceedInactive':{'backgroundColor':'#eee'},'proceedText':{'fontWeight':_0x2452(0x58),'marginRight':0x8},'proceedTextActive':{'color':_0x2452(0xf)},'proceedTextInactive':{'color':_0x2452(0x16)}});