@onairos/react-native 3.6.4 → 3.6.5

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 (222) hide show
  1. package/lib/commonjs/api/index.js +1 -1
  2. package/lib/commonjs/components/BodyText.js +1 -1
  3. package/lib/commonjs/components/BrandMark.js +1 -1
  4. package/lib/commonjs/components/CodeInput.js +1 -1
  5. package/lib/commonjs/components/EmailInput.js +1 -1
  6. package/lib/commonjs/components/GoogleButton.js +1 -1
  7. package/lib/commonjs/components/HeadingGroup.js +1 -1
  8. package/lib/commonjs/components/LLMDataInputModal.js +1 -1
  9. package/lib/commonjs/components/ModalHeader.js +1 -1
  10. package/lib/commonjs/components/ModalSheet.js +1 -1
  11. package/lib/commonjs/components/Onairos.js +1 -1
  12. package/lib/commonjs/components/OnairosButton.js +1 -1
  13. package/lib/commonjs/components/OnairosSignInButton.js +1 -1
  14. package/lib/commonjs/components/Overlay.js +1 -1
  15. package/lib/commonjs/components/PersonaImage.js +1 -1
  16. package/lib/commonjs/components/PersonaLoadingScreen.js +1 -1
  17. package/lib/commonjs/components/PersonalizationConsentScreen.js +1 -1
  18. package/lib/commonjs/components/PinCreationScreen.js +1 -1
  19. package/lib/commonjs/components/PinInput.js +1 -1
  20. package/lib/commonjs/components/PlatformConnectorsStep.js +1 -1
  21. package/lib/commonjs/components/PlatformList.js +1 -1
  22. package/lib/commonjs/components/PlatformToggle.js +1 -1
  23. package/lib/commonjs/components/PrimaryButton.js +1 -1
  24. package/lib/commonjs/components/SignInMatchAnimation.js +1 -1
  25. package/lib/commonjs/components/SignInStep.js +1 -1
  26. package/lib/commonjs/components/UniversalOnboarding.js +1 -1
  27. package/lib/commonjs/components/VerificationStep.js +1 -1
  28. package/lib/commonjs/components/WelcomeScreen.js +1 -1
  29. package/lib/commonjs/components/icons/Basicproficon.js +1 -1
  30. package/lib/commonjs/components/icons/Basicprofile.js +1 -1
  31. package/lib/commonjs/components/icons/Checkbox.js +1 -1
  32. package/lib/commonjs/components/icons/Checkmark.js +1 -1
  33. package/lib/commonjs/components/icons/Contentanalysis.js +1 -1
  34. package/lib/commonjs/components/icons/Contenticon.js +1 -1
  35. package/lib/commonjs/components/icons/EnochE.js +1 -1
  36. package/lib/commonjs/components/icons/Personalityicon.js +1 -1
  37. package/lib/commonjs/components/icons/Personalityprofile.js +1 -1
  38. package/lib/commonjs/components/icons/Personalitytraits.js +1 -1
  39. package/lib/commonjs/components/icons/Userpreferences.js +1 -1
  40. package/lib/commonjs/components/icons/index.js +1 -1
  41. package/lib/commonjs/components/onboarding/OAuthWebView.js +1 -1
  42. package/lib/commonjs/components/onboarding/OnboardingHeader.js +1 -1
  43. package/lib/commonjs/components/onboarding/PinInput.js +1 -1
  44. package/lib/commonjs/components/onboarding/PlatformConnector.js +1 -1
  45. package/lib/commonjs/config/api.js +1 -1
  46. package/lib/commonjs/constants/index.js +1 -1
  47. package/lib/commonjs/context/AuthContext.js +1 -1
  48. package/lib/commonjs/hooks/useConnectedAccounts.js +1 -1
  49. package/lib/commonjs/hooks/useConnections.js +1 -1
  50. package/lib/commonjs/hooks/useCredentials.js +1 -1
  51. package/lib/commonjs/hooks/useUserConnections.js +1 -1
  52. package/lib/commonjs/index.js +1 -1
  53. package/lib/commonjs/services/apiClient.js +1 -1
  54. package/lib/commonjs/services/apiKeyService.js +924 -9
  55. package/lib/commonjs/services/authService.js +627 -10
  56. package/lib/commonjs/services/biometricPinService.js +1 -1
  57. package/lib/commonjs/services/chatGPTConversationExtractor.js +1 -1
  58. package/lib/commonjs/services/chatGPTConversationService.js +1 -1
  59. package/lib/commonjs/services/claudeConversationExtractor.js +1 -1
  60. package/lib/commonjs/services/claudeConversationService.js +1 -1
  61. package/lib/commonjs/services/connectedAccountsService.js +1 -1
  62. package/lib/commonjs/services/googleAuthService.js +1 -1
  63. package/lib/commonjs/services/hingeDataExtractor.js +1 -1
  64. package/lib/commonjs/services/hingeDataService.js +1 -1
  65. package/lib/commonjs/services/imageCompressionService.js +1 -1
  66. package/lib/commonjs/services/instagramDataExtractor.js +1 -1
  67. package/lib/commonjs/services/instagramDataService.js +1 -1
  68. package/lib/commonjs/services/jwtStorageService.js +1 -1
  69. package/lib/commonjs/services/linkedinDOMExtractor.js +1 -1
  70. package/lib/commonjs/services/linkedinProfileService.js +1 -1
  71. package/lib/commonjs/services/linkedinScrapingService.js +1 -1
  72. package/lib/commonjs/services/llmDataStorage.js +1 -1
  73. package/lib/commonjs/services/mobileTrainingService.js +1 -1
  74. package/lib/commonjs/services/oauthService.js +391 -11
  75. package/lib/commonjs/services/pinEncryptionService.js +1 -1
  76. package/lib/commonjs/services/pinStorageUtils.js +1 -1
  77. package/lib/commonjs/services/platformAuthService.js +1 -1
  78. package/lib/commonjs/services/sephoraDataExtractor.js +1 -1
  79. package/lib/commonjs/services/sephoraDataService.js +1 -1
  80. package/lib/commonjs/services/storageService.js +1 -1
  81. package/lib/commonjs/services/telegramDataExtractor.js +1 -1
  82. package/lib/commonjs/services/telegramDataService.js +1 -1
  83. package/lib/commonjs/services/trainingApiHelpers.js +1 -1
  84. package/lib/commonjs/services/userConnectionsService.js +1 -1
  85. package/lib/commonjs/services/youtubeMigrationService.js +1 -1
  86. package/lib/commonjs/theme/index.js +1 -1
  87. package/lib/commonjs/types/index.js +1 -1
  88. package/lib/commonjs/types.js +1 -1
  89. package/lib/commonjs/utils/Portal.js +1 -1
  90. package/lib/commonjs/utils/api.js +1 -1
  91. package/lib/commonjs/utils/assetRegistry.js +1 -1
  92. package/lib/commonjs/utils/auth.js +1 -1
  93. package/lib/commonjs/utils/connectorTests.js +1 -1
  94. package/lib/commonjs/utils/crypto.js +1 -1
  95. package/lib/commonjs/utils/debugHelper.js +1 -1
  96. package/lib/commonjs/utils/encryption.js +1 -1
  97. package/lib/commonjs/utils/eventUtils.js +1 -1
  98. package/lib/commonjs/utils/haptics.js +1 -1
  99. package/lib/commonjs/utils/imagePreloader.js +1 -1
  100. package/lib/commonjs/utils/networkDiagnostics.js +1 -1
  101. package/lib/commonjs/utils/onairosApi.js +1 -1
  102. package/lib/commonjs/utils/programmaticFlow.js +1 -1
  103. package/lib/commonjs/utils/retryHelper.js +1 -1
  104. package/lib/commonjs/utils/secureStorage.js +1 -1
  105. package/lib/commonjs/utils/webviewScripts/chatgpt.js +1 -1
  106. package/lib/commonjs/utils/webviewScripts/claude.js +1 -1
  107. package/lib/commonjs/utils/webviewScripts/hinge.js +1 -1
  108. package/lib/commonjs/utils/webviewScripts/index.js +1 -1
  109. package/lib/commonjs/utils/webviewScripts/instagram.js +1 -1
  110. package/lib/commonjs/utils/webviewScripts/linkedin.js +1 -1
  111. package/lib/commonjs/utils/webviewScripts/sephora.js +1 -1
  112. package/lib/commonjs/utils/webviewScripts/telegram.js +1 -1
  113. package/lib/module/api/index.js +1 -1
  114. package/lib/module/components/BodyText.js +1 -1
  115. package/lib/module/components/BrandMark.js +1 -1
  116. package/lib/module/components/CodeInput.js +1 -1
  117. package/lib/module/components/EmailInput.js +1 -1
  118. package/lib/module/components/GoogleButton.js +1 -1
  119. package/lib/module/components/HeadingGroup.js +1 -1
  120. package/lib/module/components/LLMDataInputModal.js +1 -1
  121. package/lib/module/components/ModalHeader.js +1 -1
  122. package/lib/module/components/ModalSheet.js +1 -1
  123. package/lib/module/components/Onairos.js +1 -1
  124. package/lib/module/components/OnairosButton.js +1 -1
  125. package/lib/module/components/OnairosSignInButton.js +1 -1
  126. package/lib/module/components/Overlay.js +1 -1
  127. package/lib/module/components/PersonaImage.js +1 -1
  128. package/lib/module/components/PersonaLoadingScreen.js +1 -1
  129. package/lib/module/components/PersonalizationConsentScreen.js +1 -1
  130. package/lib/module/components/PinCreationScreen.js +1 -1
  131. package/lib/module/components/PinInput.js +1 -1
  132. package/lib/module/components/PlatformConnectorsStep.js +1 -1
  133. package/lib/module/components/PlatformList.js +1 -1
  134. package/lib/module/components/PlatformToggle.js +1 -1
  135. package/lib/module/components/PrimaryButton.js +1 -1
  136. package/lib/module/components/SignInMatchAnimation.js +1 -1
  137. package/lib/module/components/SignInStep.js +1 -1
  138. package/lib/module/components/UniversalOnboarding.js +1 -1
  139. package/lib/module/components/VerificationStep.js +1 -1
  140. package/lib/module/components/WelcomeScreen.js +1 -1
  141. package/lib/module/components/icons/Basicproficon.js +1 -1
  142. package/lib/module/components/icons/Basicprofile.js +1 -1
  143. package/lib/module/components/icons/Checkbox.js +1 -1
  144. package/lib/module/components/icons/Checkmark.js +1 -1
  145. package/lib/module/components/icons/Contentanalysis.js +1 -1
  146. package/lib/module/components/icons/Contenticon.js +1 -1
  147. package/lib/module/components/icons/EnochE.js +1 -1
  148. package/lib/module/components/icons/Personalityicon.js +1 -1
  149. package/lib/module/components/icons/Personalityprofile.js +1 -1
  150. package/lib/module/components/icons/Personalitytraits.js +1 -1
  151. package/lib/module/components/icons/Userpreferences.js +1 -1
  152. package/lib/module/components/onboarding/OAuthWebView.js +1 -1
  153. package/lib/module/components/onboarding/OnboardingHeader.js +1 -1
  154. package/lib/module/components/onboarding/PinInput.js +1 -1
  155. package/lib/module/components/onboarding/PlatformConnector.js +1 -1
  156. package/lib/module/config/api.js +1 -1
  157. package/lib/module/constants/index.js +1 -1
  158. package/lib/module/context/AuthContext.js +1 -1
  159. package/lib/module/hooks/useConnectedAccounts.js +1 -1
  160. package/lib/module/hooks/useConnections.js +1 -1
  161. package/lib/module/hooks/useCredentials.js +1 -1
  162. package/lib/module/hooks/useUserConnections.js +1 -1
  163. package/lib/module/index.js +1 -1
  164. package/lib/module/services/apiClient.js +1 -1
  165. package/lib/module/services/apiKeyService.js +898 -1
  166. package/lib/module/services/authService.js +602 -1
  167. package/lib/module/services/biometricPinService.js +1 -1
  168. package/lib/module/services/chatGPTConversationExtractor.js +1 -1
  169. package/lib/module/services/chatGPTConversationService.js +1 -1
  170. package/lib/module/services/claudeConversationExtractor.js +1 -1
  171. package/lib/module/services/claudeConversationService.js +1 -1
  172. package/lib/module/services/connectedAccountsService.js +1 -1
  173. package/lib/module/services/googleAuthService.js +1 -1
  174. package/lib/module/services/hingeDataExtractor.js +1 -1
  175. package/lib/module/services/hingeDataService.js +1 -1
  176. package/lib/module/services/imageCompressionService.js +1 -1
  177. package/lib/module/services/instagramDataExtractor.js +1 -1
  178. package/lib/module/services/instagramDataService.js +1 -1
  179. package/lib/module/services/jwtStorageService.js +1 -1
  180. package/lib/module/services/linkedinDOMExtractor.js +1 -1
  181. package/lib/module/services/linkedinProfileService.js +1 -1
  182. package/lib/module/services/linkedinScrapingService.js +1 -1
  183. package/lib/module/services/llmDataStorage.js +1 -1
  184. package/lib/module/services/mobileTrainingService.js +1 -1
  185. package/lib/module/services/oauthService.js +381 -1
  186. package/lib/module/services/pinEncryptionService.js +1 -1
  187. package/lib/module/services/pinStorageUtils.js +1 -1
  188. package/lib/module/services/platformAuthService.js +1 -1
  189. package/lib/module/services/sephoraDataExtractor.js +1 -1
  190. package/lib/module/services/sephoraDataService.js +1 -1
  191. package/lib/module/services/storageService.js +1 -1
  192. package/lib/module/services/telegramDataExtractor.js +1 -1
  193. package/lib/module/services/telegramDataService.js +1 -1
  194. package/lib/module/services/trainingApiHelpers.js +1 -1
  195. package/lib/module/services/userConnectionsService.js +1 -1
  196. package/lib/module/services/youtubeMigrationService.js +1 -1
  197. package/lib/module/theme/index.js +1 -1
  198. package/lib/module/types.js +1 -1
  199. package/lib/module/utils/Portal.js +1 -1
  200. package/lib/module/utils/api.js +1 -1
  201. package/lib/module/utils/assetRegistry.js +1 -1
  202. package/lib/module/utils/auth.js +1 -1
  203. package/lib/module/utils/connectorTests.js +1 -1
  204. package/lib/module/utils/crypto.js +1 -1
  205. package/lib/module/utils/debugHelper.js +1 -1
  206. package/lib/module/utils/encryption.js +1 -1
  207. package/lib/module/utils/eventUtils.js +1 -1
  208. package/lib/module/utils/haptics.js +1 -1
  209. package/lib/module/utils/networkDiagnostics.js +1 -1
  210. package/lib/module/utils/onairosApi.js +1 -1
  211. package/lib/module/utils/programmaticFlow.js +1 -1
  212. package/lib/module/utils/retryHelper.js +1 -1
  213. package/lib/module/utils/secureStorage.js +1 -1
  214. package/lib/module/utils/webviewScripts/chatgpt.js +1 -1
  215. package/lib/module/utils/webviewScripts/claude.js +1 -1
  216. package/lib/module/utils/webviewScripts/hinge.js +1 -1
  217. package/lib/module/utils/webviewScripts/index.js +1 -1
  218. package/lib/module/utils/webviewScripts/instagram.js +1 -1
  219. package/lib/module/utils/webviewScripts/linkedin.js +1 -1
  220. package/lib/module/utils/webviewScripts/sephora.js +1 -1
  221. package/lib/module/utils/webviewScripts/telegram.js +1 -1
  222. package/package.json +1 -1
@@ -1 +1 @@
1
- import React from'react';import{View,Text,StyleSheet,TouchableOpacity}from'react-native';import _0x1b3744 from'react-native-vector-icons/MaterialIcons';function _0x43bb(_0xf5effc,_0x43bba5){_0xf5effc=_0xf5effc-0x0;const _0x1549ce=_0xf5ef();let _0x1ab792=_0x1549ce[_0xf5effc];return _0x1ab792;}import{COLORS}from'../../constants';export const OnboardingHeader=({title:_0x5f26bd,subtitle:_0x50d551,showBackButton:showBackButton=![],onBack:_0xc4f9cd,onClose:_0x2ef5cf})=>{const _0xc327d5={'QEnQh':_0x43bb(0x0),'YkUdW':_0x43bb(0x1),'eETcT':_0x43bb(0x2)};return React[_0x43bb(0x3)](View,{'style':styles[_0x43bb(0x4)]},showBackButton&&React['createElement'](TouchableOpacity,{'style':styles[_0x43bb(0x5)],'onPress':_0xc4f9cd},React[_0x43bb(0x3)](_0x1b3744,{'name':_0xc327d5['QEnQh'],'size':0x18,'color':_0x43bb(0x2)})),React[_0x43bb(0x3)](View,{'style':styles[_0x43bb(0x6)]},React[_0x43bb(0x3)](Text,{'style':styles[_0x43bb(0x7)]},_0x5f26bd),_0x50d551&&React[_0x43bb(0x3)](Text,{'style':styles[_0x43bb(0x8)]},_0x50d551)),React[_0x43bb(0x3)](TouchableOpacity,{'style':styles[_0x43bb(0x9)],'onPress':_0x2ef5cf},React[_0x43bb(0x3)](_0x1b3744,{'name':_0xc327d5[_0x43bb(0xa)],'size':0x18,'color':_0xc327d5[_0x43bb(0xb)]})));};const styles=StyleSheet[_0x43bb(0xc)]({'header':{'flexDirection':_0x43bb(0xd),'alignItems':_0x43bb(0xe),'padding':0x10,'backgroundColor':COLORS[_0x43bb(0xf)],'borderTopLeftRadius':0x10,'borderTopRightRadius':0x10},'backButton':{'padding':0x8,'marginRight':0x8},'titleContainer':{'flex':0x1},'title':{'fontSize':0x12,'fontWeight':_0x43bb(0x10),'color':_0x43bb(0x2)},'subtitle':{'fontSize':0xe,'color':_0x43bb(0x11),'marginTop':0x4},'closeButton':{'padding':0x8}});function _0xf5ef(){const _0x428d17=['arrow-back','close','#000','createElement','header','backButton','titleContainer','title','subtitle','closeButton','YkUdW','eETcT','create','row','center','headerBg','600','#666'];_0xf5ef=function(){return _0x428d17;};return _0xf5ef();}
1
+ import React from'react';import{View,Text,StyleSheet,TouchableOpacity}from'react-native';function _0xf66e(_0x46dc42,_0xf66edd){_0x46dc42=_0x46dc42-0x0;const _0x2879a9=_0x46dc();let _0x342f53=_0x2879a9[_0x46dc42];return _0x342f53;}import _0x31fd6b from'react-native-vector-icons/MaterialIcons';import{COLORS}from'../../constants';function _0x46dc(){const _0x115041=['createElement','arrow-back','ECjah','titleContainer','title','closeButton','RKeZI','create','row','center','headerBg','600'];_0x46dc=function(){return _0x115041;};return _0x46dc();}export const OnboardingHeader=({title:_0x39b39c,subtitle:_0x254d67,showBackButton:showBackButton=![],onBack:_0x586def,onClose:_0x4cdef2})=>{const _0x2b5a86={'ECjah':'#000','RKeZI':'close'};return React['createElement'](View,{'style':styles['header']},showBackButton&&React[_0xf66e(0x0)](TouchableOpacity,{'style':styles['backButton'],'onPress':_0x586def},React[_0xf66e(0x0)](_0x31fd6b,{'name':_0xf66e(0x1),'size':0x18,'color':_0x2b5a86[_0xf66e(0x2)]})),React['createElement'](View,{'style':styles[_0xf66e(0x3)]},React[_0xf66e(0x0)](Text,{'style':styles[_0xf66e(0x4)]},_0x39b39c),_0x254d67&&React[_0xf66e(0x0)](Text,{'style':styles['subtitle']},_0x254d67)),React[_0xf66e(0x0)](TouchableOpacity,{'style':styles[_0xf66e(0x5)],'onPress':_0x4cdef2},React['createElement'](_0x31fd6b,{'name':_0x2b5a86[_0xf66e(0x6)],'size':0x18,'color':_0x2b5a86[_0xf66e(0x2)]})));};const styles=StyleSheet[_0xf66e(0x7)]({'header':{'flexDirection':_0xf66e(0x8),'alignItems':_0xf66e(0x9),'padding':0x10,'backgroundColor':COLORS[_0xf66e(0xa)],'borderTopLeftRadius':0x10,'borderTopRightRadius':0x10},'backButton':{'padding':0x8,'marginRight':0x8},'titleContainer':{'flex':0x1},'title':{'fontSize':0x12,'fontWeight':_0xf66e(0xb),'color':'#000'},'subtitle':{'fontSize':0xe,'color':'#666','marginTop':0x4},'closeButton':{'padding':0x8}});
@@ -1 +1 @@
1
- import React,{useState,useCallback,useEffect}from'react';function _0x594a(){const _0xc396e1=['create','EZihS','oxfjn','qLIlf','QDiBM','confirm','iuXRc','PINs\x20do\x20not\x20match','gtQUc','ios','padding','height','Confirm\x20your\x20PIN','This\x20PIN\x20will\x20protect\x20your\x20Onairos\x20account','Please\x20re-enter\x20your\x20PIN\x20to\x20confirm','default','#999','visibility','check-circle','#4caf50','radio-button-unchecked','Include\x20at\x20least\x20one\x20special\x20character','arrow-back','Back','Next','Submit','arrow-forward','#fff','jgMhB','aPjNe','mUwWb','uSiKV','jyqKE','MmGKH','QacnX','dismiss','CKtre','tDHvC','length','UdQJV','EMjIp','JREDp','push','\x20characters','PIN\x20must\x20be\x20at\x20least\x20','test','IfJRb','bseFD','HcIjH','eSWrT','RFfkr','dqPnQ','rHMxa','scibx','ONwfD','agUlJ','oWdTa','createElement','CyimV','wFcln','kYENh','container','content','title','Create\x20a\x20PIN','fgdXv','eXcYp','vzIpG','inputContainer','input','lPwBN','eCxEO','MIdti','IpGRt','THAjS','pQKng','dZIKB','visibilityToggle','GVSjB','wyuol','errorContainer','map','errorItem','error-outline','#f44336','djskR','requirementsContainer','requirementsTitle','PIN\x20Requirements:','requirement','cAaRA','sJEKn','GLldR','requirementText','sQuRg','Include\x20at\x20least\x20one\x20number','buttonContainer','zzmGz','button','backButton','fMIPr','buttonText','backButtonText','buRkD','nextButton','UHxCp','disabledButton','gLFwt','nextButtonText','RlAPv','GKOQF','ZvhMv','pwYSP','bold','#666','center','#ddd','#f9f9f9','#000','row','#f5f5f5','space-between','transparent','primary','#ccc','600'];_0x594a=function(){return _0xc396e1;};return _0x594a();}import{View,Text,StyleSheet,TextInput,TouchableOpacity,Keyboard,KeyboardAvoidingView,Platform}from'react-native';function _0x1d65(_0x594ab7,_0x1d6541){_0x594ab7=_0x594ab7-0x0;const _0x2f7a88=_0x594a();let _0x586ccb=_0x2f7a88[_0x594ab7];return _0x586ccb;}import _0x25f75f from'react-native-vector-icons/MaterialIcons';import{COLORS}from'../../constants';export const PinInput=({onSubmit:_0x58ab61,minLength:minLength=0x6,requireSpecialChar:requireSpecialChar=!![],requireNumber:requireNumber=!![]})=>{const _0x215149={'mUwWb':_0x1d65(0x0),'jgMhB':function(_0x1ef9a0,_0x246349){return _0x1ef9a0(_0x246349);},'jyqKE':function(_0x4e7c6e,_0x99c1a6){return _0x4e7c6e===_0x99c1a6;},'MmGKH':_0x1d65(0x1),'QacnX':'ysjxE','tDHvC':function(_0x58e068,_0x3bc1b6){return _0x58e068<_0x3bc1b6;},'UdQJV':function(_0x183b48,_0x1b88e3){return _0x183b48!==_0x1b88e3;},'EMjIp':_0x1d65(0x2),'JREDp':_0x1d65(0x3),'IfJRb':'PIN\x20must\x20include\x20at\x20least\x20one\x20number','bseFD':function(_0x47e11d,_0x55e24d){return _0x47e11d(_0x55e24d);},'HcIjH':function(_0x59f4a5,_0x35d024){return _0x59f4a5===_0x35d024;},'eSWrT':function(_0x345cb1,_0x4cc18a){return _0x345cb1(_0x4cc18a);},'HgTjq':_0x1d65(0x4),'zzmGz':_0x1d65(0x5),'fttAW':function(_0x4ef188,_0x364ffe){return _0x4ef188===_0x364ffe;},'RFfkr':function(_0x5adc97,_0x4f923b){return _0x5adc97===_0x4f923b;},'dqPnQ':_0x1d65(0x6),'mOuAI':function(_0x5a1c37,_0x12f4c3){return _0x5a1c37(_0x12f4c3);},'agUlJ':_0x1d65(0x7),'ONwfD':_0x1d65(0x8),'oWdTa':function(_0x211d91,_0x5de5fc){return _0x211d91(_0x5de5fc);},'KkfIa':function(_0x2efee3,_0x1e790f){return _0x2efee3(_0x1e790f);},'aPjNe':function(_0x4d0eb9,_0x212aab,_0x318053){return _0x4d0eb9(_0x212aab,_0x318053);},'uSiKV':function(_0x198c44,_0x3dccdc,_0x4ccf22){return _0x198c44(_0x3dccdc,_0x4ccf22);},'CyimV':_0x1d65(0x9),'wFcln':_0x1d65(0xa),'kYENh':_0x1d65(0xb),'KeVqM':function(_0x7d57dd,_0xc9bdf8){return _0x7d57dd===_0xc9bdf8;},'fgdXv':_0x1d65(0xc),'eXcYp':_0x1d65(0xd),'vzIpG':_0x1d65(0xe),'lPwBN':function(_0x236ad1,_0xda36c6){return _0x236ad1===_0xda36c6;},'eCxEO':_0x1d65(0xf),'MIdti':function(_0x1c2233,_0x2180b2){return _0x1c2233===_0x2180b2;},'IpGRt':'Enter\x20PIN','THAjS':'Confirm\x20PIN','pQKng':_0x1d65(0x10),'dZIKB':'done','GVSjB':_0x1d65(0x11),'wyuol':function(_0x5ae959,_0x49f1e6){return _0x5ae959>_0x49f1e6;},'djskR':function(_0x15da98,_0x486d43){return _0x15da98===_0x486d43;},'sJEKn':function(_0x440cee,_0x4083d6){return _0x440cee>=_0x4083d6;},'cAaRA':_0x1d65(0x12),'GLldR':_0x1d65(0x13),'eYswt':'\x20characters','sQuRg':_0x1d65(0x14),'CMXUz':_0x1d65(0x15),'fMIPr':_0x1d65(0x16),'buRkD':_0x1d65(0x17),'wDDbI':function(_0x208ce3,_0x4806dd){return _0x208ce3===_0x4806dd;},'UHxCp':function(_0x39c5b5,_0x317f0c){return _0x39c5b5>_0x317f0c;},'gLFwt':function(_0x556a05,_0xfaf622){return _0x556a05>_0xfaf622;},'RlAPv':_0x1d65(0x18),'GKOQF':_0x1d65(0x19),'ZvhMv':_0x1d65(0x1a),'pwYSP':_0x1d65(0x1b)},[_0x363f90,_0x51f083]=useState(''),[_0x28a93f,_0x5853c1]=_0x215149['KkfIa'](useState,''),[_0x1540ee,_0xc9af7b]=_0x215149[_0x1d65(0x1c)](useState,![]),[_0x4c3985,_0x43fc2c]=useState([]),[_0x32aa7d,_0x3cf746]=_0x215149['oWdTa'](useState,_0x215149['mUwWb']);_0x215149[_0x1d65(0x1d)](useEffect,()=>{_0x32aa7d===_0x215149[_0x1d65(0x1e)]&&_0x215149['jgMhB'](_0x52bd9d,_0x363f90);},[_0x363f90,_0x32aa7d]);const _0x52bd9d=_0x215149[_0x1d65(0x1f)](useCallback,_0x1dad90=>{const _0x17941f={'CKtre':function(_0x27e36f,_0x100393){return _0x27e36f(_0x100393);}};if(_0x215149[_0x1d65(0x20)](_0x215149[_0x1d65(0x21)],_0x215149[_0x1d65(0x22)]))_0x20283d[_0x1d65(0x23)](),_0x17941f[_0x1d65(0x24)](_0x41b70a,_0x7d85a8);else{const _0x2a1e6f=[];return _0x215149[_0x1d65(0x25)](_0x1dad90[_0x1d65(0x26)],minLength)&&(_0x215149[_0x1d65(0x27)](_0x215149[_0x1d65(0x28)],_0x215149[_0x1d65(0x29)])?_0x2a1e6f[_0x1d65(0x2a)]('PIN\x20must\x20be\x20at\x20least\x20'+minLength+_0x1d65(0x2b)):_0x3eb53b[_0x1d65(0x2a)](_0x1d65(0x2c)+_0xab5a4d+_0x1d65(0x2b))),requireNumber&&!/\d/[_0x1d65(0x2d)](_0x1dad90)&&_0x2a1e6f[_0x1d65(0x2a)](_0x215149[_0x1d65(0x2e)]),requireSpecialChar&&!/[!@#$%^&*(),.?":{}|<>]/[_0x1d65(0x2d)](_0x1dad90)&&_0x2a1e6f['push']('PIN\x20must\x20include\x20at\x20least\x20one\x20special\x20character'),_0x215149[_0x1d65(0x2f)](_0x43fc2c,_0x2a1e6f),_0x215149[_0x1d65(0x30)](_0x2a1e6f['length'],0x0);}},[minLength,requireNumber,requireSpecialChar]),_0x41d9e7=_0x215149[_0x1d65(0x1d)](useCallback,()=>{const _0x5875c5={'rHMxa':function(_0x2e8b90,_0x240976){return _0x215149[_0x1d65(0x31)](_0x2e8b90,_0x240976);}};_0x215149[_0x1d65(0x20)](_0x32aa7d,_0x215149[_0x1d65(0x1e)])?_0x215149[_0x1d65(0x30)](_0x215149['HgTjq'],_0x215149['HgTjq'])?_0x215149['bseFD'](_0x52bd9d,_0x363f90)&&_0x215149[_0x1d65(0x2f)](_0x3cf746,_0x215149['zzmGz']):_0xc352fb(!_0x4f69ac):_0x215149['fttAW'](_0x363f90,_0x28a93f)?_0x215149[_0x1d65(0x32)](_0x215149[_0x1d65(0x33)],_0x215149['dqPnQ'])?(Keyboard[_0x1d65(0x23)](),_0x215149[_0x1d65(0x2f)](_0x58ab61,_0x363f90)):_0x5875c5[_0x1d65(0x34)](_0x20a17c,_0x2ae5c8):(_0x215149['mOuAI'](_0x43fc2c,['PINs\x20do\x20not\x20match']),_0x215149['eSWrT'](_0x5853c1,''));},[_0x363f90,_0x28a93f,_0x32aa7d,_0x52bd9d,_0x58ab61]),_0x462856=useCallback(()=>{_0x1d65(0x35)===_0x215149[_0x1d65(0x36)]?_0x49f7ae===_0x12940d?(_0x5beb7b[_0x1d65(0x23)](),_0x38bb6c(_0x4d7c31)):(_0x3f515b([_0x215149[_0x1d65(0x37)]]),_0x421923('')):(_0x3cf746(_0x1d65(0x0)),_0x215149[_0x1d65(0x38)](_0x5853c1,''),_0x43fc2c([]));},[]),_0x38fe9d=_0x215149[_0x1d65(0x1f)](useCallback,()=>{_0x215149[_0x1d65(0x2f)](_0xc9af7b,!_0x1540ee);},[_0x1540ee]);return React[_0x1d65(0x39)](KeyboardAvoidingView,{'behavior':_0x215149['HcIjH'](Platform['OS'],_0x215149[_0x1d65(0x3a)])?_0x215149[_0x1d65(0x3b)]:_0x215149[_0x1d65(0x3c)],'style':styles[_0x1d65(0x3d)]},React[_0x1d65(0x39)](View,{'style':styles[_0x1d65(0x3e)]},React[_0x1d65(0x39)](Text,{'style':styles[_0x1d65(0x3f)]},_0x215149['KeVqM'](_0x32aa7d,_0x215149['mUwWb'])?_0x1d65(0x40):_0x215149[_0x1d65(0x41)]),React['createElement'](Text,{'style':styles['subtitle']},_0x215149['KeVqM'](_0x32aa7d,_0x215149[_0x1d65(0x1e)])?_0x215149[_0x1d65(0x42)]:_0x215149[_0x1d65(0x43)]),React[_0x1d65(0x39)](View,{'style':styles[_0x1d65(0x44)]},React[_0x1d65(0x39)](TextInput,{'style':styles[_0x1d65(0x45)],'value':_0x215149[_0x1d65(0x46)](_0x32aa7d,_0x215149[_0x1d65(0x1e)])?_0x363f90:_0x28a93f,'onChangeText':_0x32aa7d===_0x215149['mUwWb']?_0x51f083:_0x5853c1,'secureTextEntry':!_0x1540ee,'keyboardType':_0x215149[_0x1d65(0x47)],'autoCapitalize':'none','autoCorrect':![],'placeholder':_0x215149[_0x1d65(0x48)](_0x32aa7d,_0x1d65(0x0))?_0x215149[_0x1d65(0x49)]:_0x215149[_0x1d65(0x4a)],'placeholderTextColor':_0x215149[_0x1d65(0x4b)],'returnKeyType':_0x215149[_0x1d65(0x4c)],'onSubmitEditing':_0x41d9e7}),React[_0x1d65(0x39)](TouchableOpacity,{'style':styles[_0x1d65(0x4d)],'onPress':_0x38fe9d},React[_0x1d65(0x39)](_0x25f75f,{'name':_0x1540ee?'visibility-off':_0x215149[_0x1d65(0x4e)],'size':0x18,'color':_0x1d65(0x10)}))),_0x215149[_0x1d65(0x4f)](_0x4c3985[_0x1d65(0x26)],0x0)&&React['createElement'](View,{'style':styles[_0x1d65(0x50)]},_0x4c3985[_0x1d65(0x51)]((_0x5dfa0c,_0x5e0824)=>React[_0x1d65(0x39)](View,{'key':_0x5e0824,'style':styles[_0x1d65(0x52)]},React[_0x1d65(0x39)](_0x25f75f,{'name':_0x1d65(0x53),'size':0x10,'color':_0x1d65(0x54)}),React[_0x1d65(0x39)](Text,{'style':styles['errorText']},_0x5dfa0c)))),_0x215149[_0x1d65(0x55)](_0x32aa7d,'create')&&React['createElement'](View,{'style':styles[_0x1d65(0x56)]},React[_0x1d65(0x39)](Text,{'style':styles[_0x1d65(0x57)]},_0x1d65(0x58)),React['createElement'](View,{'style':styles[_0x1d65(0x59)]},React[_0x1d65(0x39)](_0x25f75f,{'name':_0x215149['sJEKn'](_0x363f90[_0x1d65(0x26)],minLength)?_0x215149[_0x1d65(0x5a)]:_0x1d65(0x14),'size':0x10,'color':_0x215149[_0x1d65(0x5b)](_0x363f90[_0x1d65(0x26)],minLength)?_0x215149[_0x1d65(0x5c)]:_0x215149['pQKng']}),React[_0x1d65(0x39)](Text,{'style':[styles[_0x1d65(0x5d)],{'color':_0x363f90[_0x1d65(0x26)]>=minLength?_0x215149[_0x1d65(0x5c)]:_0x215149[_0x1d65(0x4b)]}]},'At\x20least\x20',minLength,_0x215149['eYswt'])),requireNumber&&React[_0x1d65(0x39)](View,{'style':styles[_0x1d65(0x59)]},React['createElement'](_0x25f75f,{'name':/\d/[_0x1d65(0x2d)](_0x363f90)?_0x215149[_0x1d65(0x5a)]:_0x215149[_0x1d65(0x5e)],'size':0x10,'color':/\d/['test'](_0x363f90)?_0x215149[_0x1d65(0x5c)]:_0x215149['pQKng']}),React['createElement'](Text,{'style':[styles[_0x1d65(0x5d)],{'color':/\d/[_0x1d65(0x2d)](_0x363f90)?_0x215149[_0x1d65(0x5c)]:'#999'}]},_0x1d65(0x5f))),requireSpecialChar&&React[_0x1d65(0x39)](View,{'style':styles['requirement']},React[_0x1d65(0x39)](_0x25f75f,{'name':/[!@#$%^&*(),.?":{}|<>]/[_0x1d65(0x2d)](_0x363f90)?_0x1d65(0x12):_0x215149[_0x1d65(0x5e)],'size':0x10,'color':/[!@#$%^&*(),.?":{}|<>]/['test'](_0x363f90)?_0x215149[_0x1d65(0x5c)]:_0x215149[_0x1d65(0x4b)]}),React['createElement'](Text,{'style':[styles[_0x1d65(0x5d)],{'color':/[!@#$%^&*(),.?":{}|<>]/[_0x1d65(0x2d)](_0x363f90)?_0x1d65(0x13):_0x1d65(0x10)}]},_0x215149['CMXUz']))),React['createElement'](View,{'style':styles[_0x1d65(0x60)]},_0x215149[_0x1d65(0x55)](_0x32aa7d,_0x215149[_0x1d65(0x61)])&&React[_0x1d65(0x39)](TouchableOpacity,{'style':[styles[_0x1d65(0x62)],styles[_0x1d65(0x63)]],'onPress':_0x462856},React[_0x1d65(0x39)](_0x25f75f,{'name':_0x215149[_0x1d65(0x64)],'size':0x14,'color':COLORS['primary']}),React[_0x1d65(0x39)](Text,{'style':[styles[_0x1d65(0x65)],styles[_0x1d65(0x66)]]},_0x215149[_0x1d65(0x67)])),React['createElement'](TouchableOpacity,{'style':[styles[_0x1d65(0x62)],styles[_0x1d65(0x68)],_0x215149['wDDbI'](_0x32aa7d,_0x1d65(0x0))&&_0x215149[_0x1d65(0x69)](_0x4c3985[_0x1d65(0x26)],0x0)||_0x215149[_0x1d65(0x20)](_0x32aa7d,_0x215149['zzmGz'])&&!_0x28a93f?styles[_0x1d65(0x6a)]:null],'onPress':_0x41d9e7,'disabled':_0x32aa7d===_0x1d65(0x0)&&_0x215149[_0x1d65(0x6b)](_0x4c3985['length'],0x0)||_0x32aa7d==='confirm'&&!_0x28a93f},React[_0x1d65(0x39)](Text,{'style':[styles['buttonText'],styles[_0x1d65(0x6c)]]},_0x32aa7d==='create'?_0x215149[_0x1d65(0x6d)]:_0x215149[_0x1d65(0x6e)]),React[_0x1d65(0x39)](_0x25f75f,{'name':_0x215149[_0x1d65(0x6f)],'size':0x14,'color':_0x215149[_0x1d65(0x70)]})))));};const styles=StyleSheet[_0x1d65(0x0)]({'container':{'flex':0x1},'content':{'padding':0x18},'title':{'fontSize':0x18,'fontWeight':_0x1d65(0x71),'marginBottom':0x8,'color':'#000'},'subtitle':{'fontSize':0x10,'color':_0x1d65(0x72),'marginBottom':0x18},'inputContainer':{'flexDirection':'row','alignItems':_0x1d65(0x73),'borderWidth':0x1,'borderColor':_0x1d65(0x74),'borderRadius':0x8,'backgroundColor':_0x1d65(0x75),'marginBottom':0x10},'input':{'flex':0x1,'paddingHorizontal':0x10,'paddingVertical':0xc,'fontSize':0x10,'color':_0x1d65(0x76)},'visibilityToggle':{'padding':0xc},'errorContainer':{'marginBottom':0x10},'errorItem':{'flexDirection':_0x1d65(0x77),'alignItems':_0x1d65(0x73),'marginBottom':0x4},'errorText':{'color':'#f44336','marginLeft':0x6},'requirementsContainer':{'backgroundColor':_0x1d65(0x78),'padding':0x10,'borderRadius':0x8,'marginBottom':0x18},'requirementsTitle':{'fontSize':0xe,'fontWeight':'600','marginBottom':0x8,'color':_0x1d65(0x76)},'requirement':{'flexDirection':_0x1d65(0x77),'alignItems':'center','marginBottom':0x8},'requirementText':{'marginLeft':0x8,'fontSize':0xe},'buttonContainer':{'flexDirection':_0x1d65(0x77),'justifyContent':_0x1d65(0x79)},'button':{'flexDirection':_0x1d65(0x77),'alignItems':_0x1d65(0x73),'paddingVertical':0xc,'paddingHorizontal':0x14,'borderRadius':0x19},'backButton':{'backgroundColor':_0x1d65(0x7a),'borderWidth':0x1,'borderColor':COLORS[_0x1d65(0x7b)]},'nextButton':{'backgroundColor':COLORS['primary'],'minWidth':0x78,'justifyContent':_0x1d65(0x73)},'disabledButton':{'backgroundColor':_0x1d65(0x7c)},'buttonText':{'fontSize':0x10,'fontWeight':_0x1d65(0x7d)},'backButtonText':{'color':COLORS[_0x1d65(0x7b)],'marginLeft':0x8},'nextButtonText':{'color':_0x1d65(0x1b),'marginRight':0x8}});
1
+ function _0x5485(){const _0x53bffb=['create','MSSEN','PIN\x20must\x20include\x20at\x20least\x20one\x20special\x20character','huFLX','PINs\x20do\x20not\x20match','Create\x20a\x20PIN','Confirm\x20your\x20PIN','This\x20PIN\x20will\x20protect\x20your\x20Onairos\x20account','Please\x20re-enter\x20your\x20PIN\x20to\x20confirm','Confirm\x20PIN','#999','done','visibility-off','visibility','check-circle','radio-button-unchecked','#4caf50','At\x20least\x20','\x20characters','Include\x20at\x20least\x20one\x20number','Include\x20at\x20least\x20one\x20special\x20character','arrow-back','Back','Submit','arrow-forward','nsDWn','AJcMS','ETWaJ','GHSzb','TplUF','vBeGa','push','test','jRYgr','PIN\x20must\x20include\x20at\x20least\x20one\x20number','GyUby','ZEmHF','PzLvu','length','xdKGt','VgEQF','xiEQJ','dismiss','NMKxp','Geqcw','LbjKB','createElement','KWiFO','title','tOkCD','UnBXO','subtitle','TqwJN','fCTcQ','input','DeeIY','default','QaDfC','kDmUt','wGApb','visibilityToggle','rpuVd','tRJcl','PUSen','map','errorItem','error-outline','errorText','AVMMs','requirementsContainer','requirementsTitle','PIN\x20Requirements:','requirement','cSdfV','rtUAW','PHoAo','requirementText','rYrfY','cshPi','INXhw','vcUQH','dRXvJ','buttonContainer','button','backButton','GZpKq','backButtonText','NlfJd','nextButton','confirm','QNfTd','buttonText','nextButtonText','cdhfs','#fff','bold','#666','center','#ddd','#000','#f5f5f5','600','row','space-between','primary','#ccc'];_0x5485=function(){return _0x53bffb;};return _0x5485();}function _0x2e4a(_0x54857c,_0x2e4af2){_0x54857c=_0x54857c-0x0;const _0x2b4e5f=_0x5485();let _0xa2ea88=_0x2b4e5f[_0x54857c];return _0xa2ea88;}import React,{useState,useCallback,useEffect}from'react';import{View,Text,StyleSheet,TextInput,TouchableOpacity,Keyboard,KeyboardAvoidingView,Platform}from'react-native';import _0x7b77b5 from'react-native-vector-icons/MaterialIcons';import{COLORS}from'../../constants';export const PinInput=({onSubmit:_0x33f83c,minLength:minLength=0x6,requireSpecialChar:requireSpecialChar=!![],requireNumber:requireNumber=!![]})=>{const _0x4ed579={'ETWaJ':_0x2e4a(0x0),'TplUF':function(_0x52e3db,_0x367157){return _0x52e3db(_0x367157);},'GyUby':function(_0x26d180,_0x5627c){return _0x26d180(_0x5627c);},'vBeGa':function(_0x3e0e63,_0x248c0c){return _0x3e0e63<_0x248c0c;},'jRYgr':_0x2e4a(0x1),'ZEmHF':_0x2e4a(0x2),'PzLvu':function(_0x2b1ed2,_0x553c6a){return _0x2b1ed2===_0x553c6a;},'VgEQF':'PIN\x20must\x20include\x20at\x20least\x20one\x20number','KyqtY':_0x2e4a(0x3),'xiEQJ':function(_0x466242,_0x830e1b){return _0x466242===_0x830e1b;},'NMKxp':function(_0x28b912,_0x186370){return _0x28b912(_0x186370);},'Geqcw':_0x2e4a(0x4),'vhQDB':function(_0x5190ee,_0x1f51e8){return _0x5190ee(_0x1f51e8);},'LbjKB':function(_0x17d871,_0x212ae4){return _0x17d871(_0x212ae4);},'nsDWn':function(_0x141847,_0x4cb6eb){return _0x141847(_0x4cb6eb);},'AJcMS':function(_0x3de8c4,_0x24a352){return _0x3de8c4(_0x24a352);},'GHSzb':function(_0x33a04d,_0x25003b,_0x1d4092){return _0x33a04d(_0x25003b,_0x1d4092);},'tOkCD':function(_0x48a10d,_0x4dbc04){return _0x48a10d===_0x4dbc04;},'KWiFO':'height','UnBXO':_0x2e4a(0x5),'nQXTZ':_0x2e4a(0x6),'TqwJN':function(_0x5ae2e1,_0x4b76f1){return _0x5ae2e1===_0x4b76f1;},'sfXld':_0x2e4a(0x7),'fCTcQ':_0x2e4a(0x8),'DeeIY':function(_0x7a35b2,_0x494a25){return _0x7a35b2===_0x494a25;},'ZBLaI':'Enter\x20PIN','QaDfC':_0x2e4a(0x9),'kDmUt':_0x2e4a(0xa),'wGApb':_0x2e4a(0xb),'rpuVd':_0x2e4a(0xc),'tRJcl':_0x2e4a(0xd),'PUSen':function(_0x1db9de,_0x1cce02){return _0x1db9de>_0x1cce02;},'AVMMs':function(_0x959e5,_0x70cd42){return _0x959e5===_0x70cd42;},'cSdfV':function(_0x115c69,_0x138ac2){return _0x115c69>=_0x138ac2;},'rtUAW':_0x2e4a(0xe),'PHoAo':_0x2e4a(0xf),'INXhw':_0x2e4a(0x10),'rYrfY':_0x2e4a(0x11),'cshPi':_0x2e4a(0x12),'vcUQH':_0x2e4a(0x13),'dRXvJ':_0x2e4a(0x14),'QNfTd':'confirm','GZpKq':_0x2e4a(0x15),'NlfJd':_0x2e4a(0x16),'WHGIz':function(_0x1f4ecb,_0x6576c5){return _0x1f4ecb===_0x6576c5;},'JupJJ':_0x2e4a(0x17),'cdhfs':_0x2e4a(0x18)},[_0x4b4812,_0x16f0d2]=_0x4ed579[_0x2e4a(0x19)](useState,''),[_0x4a2224,_0x3abf64]=_0x4ed579['NMKxp'](useState,''),[_0x2cd097,_0x364575]=_0x4ed579['nsDWn'](useState,![]),[_0x2a16b9,_0x600a94]=useState([]),[_0x59ccf4,_0xc364a0]=_0x4ed579[_0x2e4a(0x1a)](useState,_0x4ed579[_0x2e4a(0x1b)]);_0x4ed579[_0x2e4a(0x1c)](useEffect,()=>{_0x59ccf4===_0x4ed579['ETWaJ']&&_0x4ed579[_0x2e4a(0x1d)](_0x3294d5,_0x4b4812);},[_0x4b4812,_0x59ccf4]);const _0x3294d5=useCallback(_0x449fab=>{const _0x10980e=[];return _0x4ed579[_0x2e4a(0x1e)](_0x449fab['length'],minLength)&&_0x10980e[_0x2e4a(0x1f)]('PIN\x20must\x20be\x20at\x20least\x20'+minLength+'\x20characters'),requireNumber&&!/\d/[_0x2e4a(0x20)](_0x449fab)&&(_0x4ed579['jRYgr']===_0x4ed579[_0x2e4a(0x21)]?_0x10980e[_0x2e4a(0x1f)](_0x2e4a(0x22)):_0x35fe6c==='create'&&_0x4ed579[_0x2e4a(0x23)](_0x27cb25,_0x477205)),requireSpecialChar&&!/[!@#$%^&*(),.?":{}|<>]/['test'](_0x449fab)&&_0x10980e[_0x2e4a(0x1f)](_0x4ed579[_0x2e4a(0x24)]),_0x4ed579[_0x2e4a(0x1d)](_0x600a94,_0x10980e),_0x4ed579[_0x2e4a(0x25)](_0x10980e[_0x2e4a(0x26)],0x0);},[minLength,requireNumber,requireSpecialChar]),_0x5791e3=useCallback(()=>{_0x4ed579['KyqtY']===_0x2e4a(0x27)?_0x529212[_0x2e4a(0x1f)](_0x4ed579[_0x2e4a(0x28)]):_0x59ccf4===_0x4ed579['ETWaJ']?_0x4ed579['GyUby'](_0x3294d5,_0x4b4812)&&_0x4ed579[_0x2e4a(0x1d)](_0xc364a0,'confirm'):_0x4ed579[_0x2e4a(0x29)](_0x4b4812,_0x4a2224)?(Keyboard[_0x2e4a(0x2a)](),_0x4ed579[_0x2e4a(0x2b)](_0x33f83c,_0x4b4812)):(_0x4ed579['GyUby'](_0x600a94,[_0x4ed579[_0x2e4a(0x2c)]]),_0x4ed579['vhQDB'](_0x3abf64,''));},[_0x4b4812,_0x4a2224,_0x59ccf4,_0x3294d5,_0x33f83c]),_0x2ffc4d=_0x4ed579[_0x2e4a(0x1c)](useCallback,()=>{_0x4ed579[_0x2e4a(0x23)](_0xc364a0,_0x4ed579[_0x2e4a(0x1b)]),_0x4ed579[_0x2e4a(0x2d)](_0x3abf64,''),_0x4ed579[_0x2e4a(0x23)](_0x600a94,[]);},[]),_0x262cfd=_0x4ed579['GHSzb'](useCallback,()=>{_0x364575(!_0x2cd097);},[_0x2cd097]);return React[_0x2e4a(0x2e)](KeyboardAvoidingView,{'behavior':_0x4ed579['tOkCD'](Platform['OS'],'ios')?'padding':_0x4ed579[_0x2e4a(0x2f)],'style':styles['container']},React[_0x2e4a(0x2e)](View,{'style':styles['content']},React[_0x2e4a(0x2e)](Text,{'style':styles[_0x2e4a(0x30)]},_0x4ed579[_0x2e4a(0x31)](_0x59ccf4,_0x4ed579['ETWaJ'])?_0x4ed579[_0x2e4a(0x32)]:_0x4ed579['nQXTZ']),React[_0x2e4a(0x2e)](Text,{'style':styles[_0x2e4a(0x33)]},_0x4ed579[_0x2e4a(0x34)](_0x59ccf4,_0x4ed579[_0x2e4a(0x1b)])?_0x4ed579['sfXld']:_0x4ed579[_0x2e4a(0x35)]),React[_0x2e4a(0x2e)](View,{'style':styles['inputContainer']},React[_0x2e4a(0x2e)](TextInput,{'style':styles[_0x2e4a(0x36)],'value':_0x4ed579[_0x2e4a(0x37)](_0x59ccf4,_0x4ed579['ETWaJ'])?_0x4b4812:_0x4a2224,'onChangeText':_0x4ed579[_0x2e4a(0x31)](_0x59ccf4,_0x4ed579[_0x2e4a(0x1b)])?_0x16f0d2:_0x3abf64,'secureTextEntry':!_0x2cd097,'keyboardType':_0x2e4a(0x38),'autoCapitalize':'none','autoCorrect':![],'placeholder':_0x4ed579[_0x2e4a(0x25)](_0x59ccf4,_0x4ed579[_0x2e4a(0x1b)])?_0x4ed579['ZBLaI']:_0x4ed579[_0x2e4a(0x39)],'placeholderTextColor':_0x4ed579[_0x2e4a(0x3a)],'returnKeyType':_0x4ed579[_0x2e4a(0x3b)],'onSubmitEditing':_0x5791e3}),React[_0x2e4a(0x2e)](TouchableOpacity,{'style':styles[_0x2e4a(0x3c)],'onPress':_0x262cfd},React[_0x2e4a(0x2e)](_0x7b77b5,{'name':_0x2cd097?_0x4ed579[_0x2e4a(0x3d)]:_0x4ed579[_0x2e4a(0x3e)],'size':0x18,'color':_0x4ed579['kDmUt']}))),_0x4ed579[_0x2e4a(0x3f)](_0x2a16b9['length'],0x0)&&React[_0x2e4a(0x2e)](View,{'style':styles['errorContainer']},_0x2a16b9[_0x2e4a(0x40)]((_0x1b8e68,_0x3560bd)=>React[_0x2e4a(0x2e)](View,{'key':_0x3560bd,'style':styles[_0x2e4a(0x41)]},React[_0x2e4a(0x2e)](_0x7b77b5,{'name':_0x2e4a(0x42),'size':0x10,'color':'#f44336'}),React['createElement'](Text,{'style':styles[_0x2e4a(0x43)]},_0x1b8e68)))),_0x4ed579[_0x2e4a(0x44)](_0x59ccf4,_0x4ed579['ETWaJ'])&&React[_0x2e4a(0x2e)](View,{'style':styles[_0x2e4a(0x45)]},React[_0x2e4a(0x2e)](Text,{'style':styles[_0x2e4a(0x46)]},_0x2e4a(0x47)),React[_0x2e4a(0x2e)](View,{'style':styles[_0x2e4a(0x48)]},React[_0x2e4a(0x2e)](_0x7b77b5,{'name':_0x4ed579[_0x2e4a(0x49)](_0x4b4812[_0x2e4a(0x26)],minLength)?_0x4ed579[_0x2e4a(0x4a)]:_0x4ed579[_0x2e4a(0x4b)],'size':0x10,'color':_0x4ed579[_0x2e4a(0x49)](_0x4b4812[_0x2e4a(0x26)],minLength)?_0x2e4a(0x10):_0x4ed579[_0x2e4a(0x3a)]}),React[_0x2e4a(0x2e)](Text,{'style':[styles[_0x2e4a(0x4c)],{'color':_0x4ed579[_0x2e4a(0x49)](_0x4b4812['length'],minLength)?_0x4ed579['INXhw']:_0x4ed579[_0x2e4a(0x3a)]}]},_0x4ed579[_0x2e4a(0x4d)],minLength,_0x4ed579[_0x2e4a(0x4e)])),requireNumber&&React[_0x2e4a(0x2e)](View,{'style':styles[_0x2e4a(0x48)]},React[_0x2e4a(0x2e)](_0x7b77b5,{'name':/\d/['test'](_0x4b4812)?_0x4ed579['rtUAW']:'radio-button-unchecked','size':0x10,'color':/\d/[_0x2e4a(0x20)](_0x4b4812)?_0x4ed579[_0x2e4a(0x4f)]:'#999'}),React[_0x2e4a(0x2e)](Text,{'style':[styles[_0x2e4a(0x4c)],{'color':/\d/[_0x2e4a(0x20)](_0x4b4812)?_0x4ed579[_0x2e4a(0x4f)]:_0x4ed579[_0x2e4a(0x3a)]}]},_0x4ed579[_0x2e4a(0x50)])),requireSpecialChar&&React['createElement'](View,{'style':styles[_0x2e4a(0x48)]},React['createElement'](_0x7b77b5,{'name':/[!@#$%^&*(),.?":{}|<>]/[_0x2e4a(0x20)](_0x4b4812)?_0x2e4a(0xe):_0x2e4a(0xf),'size':0x10,'color':/[!@#$%^&*(),.?":{}|<>]/[_0x2e4a(0x20)](_0x4b4812)?_0x4ed579[_0x2e4a(0x4f)]:_0x4ed579[_0x2e4a(0x3a)]}),React[_0x2e4a(0x2e)](Text,{'style':[styles[_0x2e4a(0x4c)],{'color':/[!@#$%^&*(),.?":{}|<>]/['test'](_0x4b4812)?_0x4ed579[_0x2e4a(0x4f)]:_0x2e4a(0xa)}]},_0x4ed579[_0x2e4a(0x51)]))),React[_0x2e4a(0x2e)](View,{'style':styles[_0x2e4a(0x52)]},_0x4ed579[_0x2e4a(0x29)](_0x59ccf4,_0x4ed579['QNfTd'])&&React['createElement'](TouchableOpacity,{'style':[styles[_0x2e4a(0x53)],styles[_0x2e4a(0x54)]],'onPress':_0x2ffc4d},React[_0x2e4a(0x2e)](_0x7b77b5,{'name':_0x4ed579[_0x2e4a(0x55)],'size':0x14,'color':COLORS['primary']}),React[_0x2e4a(0x2e)](Text,{'style':[styles['buttonText'],styles[_0x2e4a(0x56)]]},_0x4ed579[_0x2e4a(0x57)])),React[_0x2e4a(0x2e)](TouchableOpacity,{'style':[styles[_0x2e4a(0x53)],styles[_0x2e4a(0x58)],_0x59ccf4===_0x2e4a(0x0)&&_0x4ed579[_0x2e4a(0x3f)](_0x2a16b9[_0x2e4a(0x26)],0x0)||_0x4ed579[_0x2e4a(0x25)](_0x59ccf4,_0x2e4a(0x59))&&!_0x4a2224?styles['disabledButton']:null],'onPress':_0x5791e3,'disabled':_0x4ed579['TqwJN'](_0x59ccf4,_0x2e4a(0x0))&&_0x2a16b9[_0x2e4a(0x26)]>0x0||_0x59ccf4===_0x4ed579[_0x2e4a(0x5a)]&&!_0x4a2224},React['createElement'](Text,{'style':[styles[_0x2e4a(0x5b)],styles[_0x2e4a(0x5c)]]},_0x4ed579['WHGIz'](_0x59ccf4,_0x4ed579[_0x2e4a(0x1b)])?'Next':_0x4ed579['JupJJ']),React[_0x2e4a(0x2e)](_0x7b77b5,{'name':_0x4ed579[_0x2e4a(0x5d)],'size':0x14,'color':_0x2e4a(0x5e)})))));};const styles=StyleSheet[_0x2e4a(0x0)]({'container':{'flex':0x1},'content':{'padding':0x18},'title':{'fontSize':0x18,'fontWeight':_0x2e4a(0x5f),'marginBottom':0x8,'color':'#000'},'subtitle':{'fontSize':0x10,'color':_0x2e4a(0x60),'marginBottom':0x18},'inputContainer':{'flexDirection':'row','alignItems':_0x2e4a(0x61),'borderWidth':0x1,'borderColor':_0x2e4a(0x62),'borderRadius':0x8,'backgroundColor':'#f9f9f9','marginBottom':0x10},'input':{'flex':0x1,'paddingHorizontal':0x10,'paddingVertical':0xc,'fontSize':0x10,'color':_0x2e4a(0x63)},'visibilityToggle':{'padding':0xc},'errorContainer':{'marginBottom':0x10},'errorItem':{'flexDirection':'row','alignItems':'center','marginBottom':0x4},'errorText':{'color':'#f44336','marginLeft':0x6},'requirementsContainer':{'backgroundColor':_0x2e4a(0x64),'padding':0x10,'borderRadius':0x8,'marginBottom':0x18},'requirementsTitle':{'fontSize':0xe,'fontWeight':_0x2e4a(0x65),'marginBottom':0x8,'color':_0x2e4a(0x63)},'requirement':{'flexDirection':_0x2e4a(0x66),'alignItems':'center','marginBottom':0x8},'requirementText':{'marginLeft':0x8,'fontSize':0xe},'buttonContainer':{'flexDirection':'row','justifyContent':_0x2e4a(0x67)},'button':{'flexDirection':_0x2e4a(0x66),'alignItems':_0x2e4a(0x61),'paddingVertical':0xc,'paddingHorizontal':0x14,'borderRadius':0x19},'backButton':{'backgroundColor':'transparent','borderWidth':0x1,'borderColor':COLORS[_0x2e4a(0x68)]},'nextButton':{'backgroundColor':COLORS[_0x2e4a(0x68)],'minWidth':0x78,'justifyContent':_0x2e4a(0x61)},'disabledButton':{'backgroundColor':_0x2e4a(0x69)},'buttonText':{'fontSize':0x10,'fontWeight':_0x2e4a(0x65)},'backButtonText':{'color':COLORS[_0x2e4a(0x68)],'marginLeft':0x8},'nextButtonText':{'color':_0x2e4a(0x5e),'marginRight':0x8}});
@@ -1 +1 @@
1
- import React,{useState}from'react';function _0x3c9a(_0x596dd5,_0x3c9a88){_0x596dd5=_0x596dd5-0x0;const _0x242313=_0x596d();let _0x257136=_0x242313[_0x596dd5];return _0x257136;}import{View,Text,StyleSheet,TouchableOpacity,ActivityIndicator,ScrollView}from'react-native';function _0x596d(){const _0x355f42=['Instagram','photo-camera','#E1306C','Connect\x20to\x20share\x20and\x20analyze\x20your\x20Instagram\x20content','YouTube','#FF0000','push-pin','#E60023','Connect\x20to\x20enhance\x20Pinterest\x20board\x20recommendations','Reddit','forum','#FF4500','qqLGE','#fff','Disconnect','Connect','Connect\x20Your\x20Platforms','\x20platforms\x20connected','arrow-forward','RTpHR','tIXui','values','filter','bfhUF','nbXWp','aeNuz','sUfMw','ISWHW','log','Received\x20authorization\x20code\x20for\x20','BPITH','InrJm','grdem','length','createElement','container','title','hCjDP','subtitle','Connect\x20at\x20least\x202\x20platforms\x20to\x20create\x20your\x20Onairos\x20account','platformList','userName','platformItem','platformIcon','color','icon','QrPhr','platformName','name','platformDescription','Connected\x20as\x20','description','disconnectButton','BwDYm','buttonText','zBrVG','Pvyvx','footer','JGoTv','keys','KatMB','proceedButton','proceedActive','proceedInactive','proceedText','proceedTextActive','proceedTextInactive','LWnkV','DiWqB','#999','https://oauth.example.com/','create','bold','#666','row','center','#f8f8f8','#eee','600','#000','primary','#f44336','space-between'];_0x596d=function(){return _0x355f42;};return _0x596d();}import _0x31e2c1 from'react-native-vector-icons/MaterialIcons';import{COLORS}from'../../constants';import{OAuthWebView}from'./OAuthWebView';const PLATFORMS={'instagram':{'name':_0x3c9a(0x0),'icon':_0x3c9a(0x1),'color':_0x3c9a(0x2),'description':_0x3c9a(0x3)},'youtube':{'name':_0x3c9a(0x4),'icon':'smart-display','color':_0x3c9a(0x5),'description':'Connect\x20for\x20YouTube\x20video\x20recommendations\x20and\x20analysis'},'pinterest':{'name':'Pinterest','icon':_0x3c9a(0x6),'color':_0x3c9a(0x7),'description':_0x3c9a(0x8)},'reddit':{'name':_0x3c9a(0x9),'icon':_0x3c9a(0xa),'color':_0x3c9a(0xb),'description':'Connect\x20to\x20personalize\x20Reddit\x20content\x20insights'}};export const PlatformConnector=({connections:_0x5d2d5b,onConnect:_0x134182,onDisconnect:_0x3dfa24,isLoading:_0x581d62,canProceed:_0x442907,onProceed:_0x197121})=>{const _0x263639={'tIXui':_0x3c9a(0xc),'bfhUF':function(_0x54dc3b,_0x12a2c8){return _0x54dc3b(_0x12a2c8);},'nbXWp':function(_0xe84e27){return _0xe84e27();},'aeNuz':function(_0x16a2ea,_0x1beecc){return _0x16a2ea===_0x1beecc;},'sUfMw':'ISWHW','RTpHR':function(_0x578140,_0x233544){return _0x578140(_0x233544);},'InrJm':function(_0x3576fb,_0x35ed30){return _0x3576fb!==_0x35ed30;},'uWzwV':function(_0x36c486,_0x176629){return _0x36c486===_0x176629;},'QrPhr':_0x3c9a(0xd),'BwDYm':'small','zBrVG':_0x3c9a(0xe),'Pvyvx':_0x3c9a(0xf),'hCjDP':_0x3c9a(0x10),'JGoTv':'\x20of\x20','KatMB':_0x3c9a(0x11),'LWnkV':'Continue','DiWqB':_0x3c9a(0x12)},[_0x328be4,_0x28087a]=_0x263639[_0x3c9a(0x13)](useState,null),_0x163e64=async _0x539730=>{if(_0x263639['tIXui']!==_0x263639[_0x3c9a(0x14)])return _0x344480[_0x3c9a(0x15)](_0x3936f3)[_0x3c9a(0x16)](_0xd6b412)['length'];else _0x263639[_0x3c9a(0x17)](_0x28087a,_0x539730);},_0x95f82=()=>{_0x28087a(null);},_0xc1c0b4=()=>{_0x28087a(null);},_0xd9bfca=async _0x52851c=>{const _0x444f7d={'BPITH':function(_0x7e18e1){return _0x263639[_0x3c9a(0x18)](_0x7e18e1);}};_0x263639[_0x3c9a(0x19)](_0x263639[_0x3c9a(0x1a)],_0x3c9a(0x1b))?await _0x263639[_0x3c9a(0x13)](_0x3dfa24,_0x52851c):(_0x48ced1[_0x3c9a(0x1c)](_0x3c9a(0x1d)+_0x2d96b6+':\x20'+_0x4c9ba5),_0x444f7d[_0x3c9a(0x1e)](_0x550d07));},_0x763ff1=_0x5263f9=>{if(_0x263639[_0x3c9a(0x1f)](_0x3c9a(0x20),'vfwST')){const _0x852e1e=_0x5263f9;return _0x5d2d5b[_0x852e1e]?!![]:![];}else _0x263639['RTpHR'](_0x460639,null);},_0xa90fda=()=>{return Object[_0x3c9a(0x15)](_0x5d2d5b)[_0x3c9a(0x16)](Boolean)[_0x3c9a(0x21)];};return React[_0x3c9a(0x22)](View,{'style':styles[_0x3c9a(0x23)]},React['createElement'](Text,{'style':styles[_0x3c9a(0x24)]},_0x263639[_0x3c9a(0x25)]),React[_0x3c9a(0x22)](Text,{'style':styles[_0x3c9a(0x26)]},_0x3c9a(0x27)),React['createElement'](ScrollView,{'style':styles[_0x3c9a(0x28)]},Object['keys'](PLATFORMS)['map'](_0x325721=>{var _0x391129;const _0x2cedae=PLATFORMS[_0x325721],_0x51b9b8=_0x263639['RTpHR'](_0x763ff1,_0x325721),_0x50cc18=_0x51b9b8?(_0x391129=_0x5d2d5b[_0x325721])===null||_0x263639['uWzwV'](_0x391129,void 0x0)?void 0x0:_0x391129[_0x3c9a(0x29)]:null;return React['createElement'](View,{'key':_0x325721,'style':styles[_0x3c9a(0x2a)]},React[_0x3c9a(0x22)](View,{'style':styles['platformInfo']},React['createElement'](View,{'style':[styles[_0x3c9a(0x2b)],{'backgroundColor':_0x2cedae[_0x3c9a(0x2c)]}]},React[_0x3c9a(0x22)](_0x31e2c1,{'name':_0x2cedae[_0x3c9a(0x2d)],'size':0x18,'color':_0x263639[_0x3c9a(0x2e)]})),React[_0x3c9a(0x22)](View,{'style':styles['platformText']},React['createElement'](Text,{'style':styles[_0x3c9a(0x2f)]},_0x2cedae[_0x3c9a(0x30)]),React[_0x3c9a(0x22)](Text,{'style':styles[_0x3c9a(0x31)]},_0x51b9b8?_0x3c9a(0x32)+_0x50cc18:_0x2cedae[_0x3c9a(0x33)]))),React[_0x3c9a(0x22)](TouchableOpacity,{'style':[styles['platformButton'],_0x51b9b8?styles[_0x3c9a(0x34)]:styles['connectButton']],'onPress':()=>_0x51b9b8?_0xd9bfca(_0x325721):_0x163e64(_0x325721),'disabled':_0x581d62},_0x581d62?React[_0x3c9a(0x22)](ActivityIndicator,{'size':_0x263639[_0x3c9a(0x35)],'color':_0x263639[_0x3c9a(0x2e)]}):React[_0x3c9a(0x22)](Text,{'style':styles[_0x3c9a(0x36)]},_0x51b9b8?_0x263639[_0x3c9a(0x37)]:_0x263639[_0x3c9a(0x38)])));})),React['createElement'](View,{'style':styles[_0x3c9a(0x39)]},React[_0x3c9a(0x22)](Text,{'style':styles['connectionStatus']},_0x263639['nbXWp'](_0xa90fda),_0x263639[_0x3c9a(0x3a)],Object[_0x3c9a(0x3b)](PLATFORMS)[_0x3c9a(0x21)],_0x263639[_0x3c9a(0x3c)]),React[_0x3c9a(0x22)](TouchableOpacity,{'style':[styles[_0x3c9a(0x3d)],_0x442907?styles[_0x3c9a(0x3e)]:styles[_0x3c9a(0x3f)]],'onPress':_0x197121,'disabled':!_0x442907},React[_0x3c9a(0x22)](Text,{'style':[styles[_0x3c9a(0x40)],_0x442907?styles[_0x3c9a(0x41)]:styles[_0x3c9a(0x42)]]},_0x263639[_0x3c9a(0x43)]),React[_0x3c9a(0x22)](_0x31e2c1,{'name':_0x263639[_0x3c9a(0x44)],'size':0x14,'color':_0x442907?_0x263639[_0x3c9a(0x2e)]:_0x3c9a(0x45)}))),_0x328be4&&React[_0x3c9a(0x22)](OAuthWebView,{'url':_0x3c9a(0x46)+_0x328be4,'platform':_0x328be4,'onComplete':_0x95f82,'onClose':_0xc1c0b4,'onSuccess':_0x253eb7=>{console[_0x3c9a(0x1c)](_0x3c9a(0x1d)+_0x328be4+':\x20'+_0x253eb7),_0x263639[_0x3c9a(0x18)](_0x95f82);}}));};const styles=StyleSheet[_0x3c9a(0x47)]({'container':{'flex':0x1,'padding':0x10},'title':{'fontSize':0x18,'fontWeight':_0x3c9a(0x48),'marginBottom':0x8,'color':'#000'},'subtitle':{'fontSize':0x10,'color':_0x3c9a(0x49),'marginBottom':0x18},'platformList':{'flex':0x1},'platformItem':{'flexDirection':_0x3c9a(0x4a),'alignItems':_0x3c9a(0x4b),'marginBottom':0x10,'padding':0xc,'backgroundColor':_0x3c9a(0x4c),'borderRadius':0xc,'borderWidth':0x1,'borderColor':_0x3c9a(0x4d)},'platformInfo':{'flex':0x1,'flexDirection':_0x3c9a(0x4a),'alignItems':_0x3c9a(0x4b)},'platformIcon':{'width':0x28,'height':0x28,'borderRadius':0x14,'justifyContent':_0x3c9a(0x4b),'alignItems':_0x3c9a(0x4b),'marginRight':0xc},'platformText':{'flex':0x1},'platformName':{'fontSize':0x10,'fontWeight':_0x3c9a(0x4e),'marginBottom':0x4,'color':_0x3c9a(0x4f)},'platformDescription':{'fontSize':0xe,'color':_0x3c9a(0x49)},'platformButton':{'paddingHorizontal':0x10,'paddingVertical':0x8,'borderRadius':0x14,'justifyContent':_0x3c9a(0x4b),'alignItems':_0x3c9a(0x4b),'minWidth':0x64},'connectButton':{'backgroundColor':COLORS[_0x3c9a(0x50)]},'disconnectButton':{'backgroundColor':_0x3c9a(0x51)},'buttonText':{'color':_0x3c9a(0xd),'fontWeight':'600'},'footer':{'flexDirection':_0x3c9a(0x4a),'alignItems':_0x3c9a(0x4b),'justifyContent':_0x3c9a(0x52),'paddingTop':0x10,'borderTopWidth':0x1,'borderTopColor':_0x3c9a(0x4d),'marginTop':0x10},'connectionStatus':{'fontSize':0xe,'color':_0x3c9a(0x49)},'proceedButton':{'flexDirection':_0x3c9a(0x4a),'alignItems':'center','paddingHorizontal':0x10,'paddingVertical':0xa,'borderRadius':0x18},'proceedActive':{'backgroundColor':COLORS[_0x3c9a(0x50)]},'proceedInactive':{'backgroundColor':_0x3c9a(0x4d)},'proceedText':{'fontWeight':'600','marginRight':0x8},'proceedTextActive':{'color':_0x3c9a(0xd)},'proceedTextInactive':{'color':'#999'}});
1
+ function _0x5e02(_0x5dfd7f,_0x5e0272){_0x5dfd7f=_0x5dfd7f-0x0;const _0x480639=_0x5dfd();let _0x3ffd09=_0x480639[_0x5dfd7f];return _0x3ffd09;}import React,{useState}from'react';import{View,Text,StyleSheet,TouchableOpacity,ActivityIndicator,ScrollView}from'react-native';import _0x4084c6 from'react-native-vector-icons/MaterialIcons';import{COLORS}from'../../constants';import{OAuthWebView}from'./OAuthWebView';const PLATFORMS={'instagram':{'name':_0x5e02(0x0),'icon':'photo-camera','color':_0x5e02(0x1),'description':_0x5e02(0x2)},'youtube':{'name':'YouTube','icon':_0x5e02(0x3),'color':_0x5e02(0x4),'description':'Connect\x20for\x20YouTube\x20video\x20recommendations\x20and\x20analysis'},'pinterest':{'name':_0x5e02(0x5),'icon':_0x5e02(0x6),'color':_0x5e02(0x7),'description':_0x5e02(0x8)},'reddit':{'name':_0x5e02(0x9),'icon':'forum','color':_0x5e02(0xa),'description':_0x5e02(0xb)}};export const PlatformConnector=({connections:_0x306a9d,onConnect:_0x1a045e,onDisconnect:_0x472bd3,isLoading:_0x11d4e8,canProceed:_0x16798c,onProceed:_0x109791})=>{const _0x1e0c0e={'qLutW':function(_0x54947c){return _0x54947c();},'dRFEa':function(_0x17e0ce,_0x560ee9){return _0x17e0ce===_0x560ee9;},'ttdNj':'rbXbf','WcFPr':_0x5e02(0xc),'geABP':function(_0x3d8f87,_0x4b15b1){return _0x3d8f87(_0x4b15b1);},'LMlng':function(_0x4307cc,_0x1ede7d){return _0x4307cc(_0x1ede7d);},'gaDSm':'#fff','ctzrB':_0x5e02(0xd),'XgHMe':function(_0x273e49,_0x494373){return _0x273e49!==_0x494373;},'pZyPn':_0x5e02(0xe),'TLaoE':function(_0xf6d131,_0x31580c){return _0xf6d131===_0x31580c;},'wgotQ':_0x5e02(0xf),'iqYRf':_0x5e02(0x10),'CrlPd':'rsNjH','GTBgn':function(_0x210199,_0x582e10){return _0x210199===_0x582e10;},'ARogp':_0x5e02(0x11),'YVVkF':function(_0x47d5fa,_0x1e474f){return _0x47d5fa(_0x1e474f);},'QTpIC':_0x5e02(0x12),'TjvFz':_0x5e02(0x13),'nvKdn':function(_0x506c7a){return _0x506c7a();},'kqseg':_0x5e02(0x14),'aHhOS':'\x20platforms\x20connected','YTqMj':_0x5e02(0x15),'Vgpoz':_0x5e02(0x16),'OGfVc':_0x5e02(0x17)},[_0x551573,_0x5d90bc]=_0x1e0c0e[_0x5e02(0x18)](useState,null),_0x1548a3=async _0x2dca56=>{_0x1e0c0e[_0x5e02(0x19)](_0x1e0c0e['ttdNj'],_0x1e0c0e['WcFPr'])?(_0x378f3a[_0x5e02(0x1a)]('Received\x20authorization\x20code\x20for\x20'+_0x20ebd3+':\x20'+_0x5851a4),_0x1e0c0e['qLutW'](_0x5dbd3b)):_0x1e0c0e[_0x5e02(0x1b)](_0x5d90bc,_0x2dca56);},_0x510255=()=>{_0x1e0c0e['geABP'](_0x5d90bc,null);},_0x5734b0=()=>{if(_0x1e0c0e[_0x5e02(0x1c)](_0x1e0c0e[_0x5e02(0x1d)],_0x1e0c0e[_0x5e02(0x1d)])){var _0x45c90c;const _0x361716=_0x519c28[_0xd747e0],_0x35c767=_0x1e0c0e['LMlng'](_0x11513b,_0x46c2a2),_0x442cc7=_0x35c767?_0x1e0c0e[_0x5e02(0x19)](_0x45c90c=_0x24b319[_0x52d1da],null)||_0x45c90c===void 0x0?void 0x0:_0x45c90c[_0x5e02(0x1e)]:null;return React[_0x5e02(0x1f)](View,{'key':_0x4ad190,'style':_0x17e7e4[_0x5e02(0x20)]},React['createElement'](View,{'style':_0x3cdc8a[_0x5e02(0x21)]},React[_0x5e02(0x1f)](View,{'style':[_0x148d6a[_0x5e02(0x22)],{'backgroundColor':_0x361716[_0x5e02(0x23)]}]},React[_0x5e02(0x1f)](_0x1bda88,{'name':_0x361716['icon'],'size':0x18,'color':_0x1e0c0e[_0x5e02(0x24)]})),React[_0x5e02(0x1f)](View,{'style':_0x560a99[_0x5e02(0x25)]},React[_0x5e02(0x1f)](Text,{'style':_0x3a21d4[_0x5e02(0x26)]},_0x361716[_0x5e02(0x27)]),React['createElement'](Text,{'style':_0x19242e['platformDescription']},_0x35c767?_0x5e02(0x28)+_0x442cc7:_0x361716['description']))),React[_0x5e02(0x1f)](TouchableOpacity,{'style':[_0x76a29e[_0x5e02(0x29)],_0x35c767?_0x1a09ba[_0x5e02(0x2a)]:_0x550be5[_0x5e02(0x2b)]],'onPress':()=>_0x35c767?_0x46a4a8(_0x1773f1):_0x90f22b(_0x38d4b9),'disabled':_0x58a668},_0x5197f0?React['createElement'](ActivityIndicator,{'size':_0x5e02(0x11),'color':_0x1e0c0e[_0x5e02(0x24)]}):React[_0x5e02(0x1f)](Text,{'style':_0x5b597b[_0x5e02(0x2c)]},_0x35c767?_0x5e02(0x2d):_0x1e0c0e[_0x5e02(0x2e)])));}else _0x1e0c0e[_0x5e02(0x1b)](_0x5d90bc,null);},_0x4eb15a=async _0x575615=>{await _0x1e0c0e[_0x5e02(0x2f)](_0x472bd3,_0x575615);},_0x31563a=_0x30f870=>{if(_0x1e0c0e[_0x5e02(0x30)](_0x5e02(0xf),_0x1e0c0e[_0x5e02(0x31)])){const _0x3b1d94=_0x30f870;return _0x306a9d[_0x3b1d94]?!![]:![];}else{const _0x1cffe4=_0x1754e2;return _0x59d4c9[_0x1cffe4]?!![]:![];}},_0x36cda9=()=>{return Object['values'](_0x306a9d)[_0x5e02(0x32)](Boolean)['length'];};return React[_0x5e02(0x1f)](View,{'style':styles['container']},React[_0x5e02(0x1f)](Text,{'style':styles[_0x5e02(0x33)]},_0x1e0c0e[_0x5e02(0x34)]),React[_0x5e02(0x1f)](Text,{'style':styles[_0x5e02(0x35)]},_0x1e0c0e[_0x5e02(0x36)]),React[_0x5e02(0x1f)](ScrollView,{'style':styles[_0x5e02(0x37)]},Object[_0x5e02(0x38)](PLATFORMS)[_0x5e02(0x39)](_0x2cc746=>{if(_0x1e0c0e['XgHMe'](_0x1e0c0e[_0x5e02(0x3a)],_0x1e0c0e[_0x5e02(0x3b)])){var _0x2d536e;const _0x2a42dc=PLATFORMS[_0x2cc746],_0x7ae124=_0x1e0c0e['LMlng'](_0x31563a,_0x2cc746),_0x100ca7=_0x7ae124?_0x1e0c0e[_0x5e02(0x30)](_0x2d536e=_0x306a9d[_0x2cc746],null)||_0x1e0c0e[_0x5e02(0x3c)](_0x2d536e,void 0x0)?void 0x0:_0x2d536e[_0x5e02(0x1e)]:null;return React['createElement'](View,{'key':_0x2cc746,'style':styles[_0x5e02(0x20)]},React[_0x5e02(0x1f)](View,{'style':styles[_0x5e02(0x21)]},React['createElement'](View,{'style':[styles[_0x5e02(0x22)],{'backgroundColor':_0x2a42dc['color']}]},React[_0x5e02(0x1f)](_0x4084c6,{'name':_0x2a42dc[_0x5e02(0x3d)],'size':0x18,'color':_0x1e0c0e[_0x5e02(0x24)]})),React[_0x5e02(0x1f)](View,{'style':styles['platformText']},React[_0x5e02(0x1f)](Text,{'style':styles[_0x5e02(0x26)]},_0x2a42dc[_0x5e02(0x27)]),React[_0x5e02(0x1f)](Text,{'style':styles[_0x5e02(0x3e)]},_0x7ae124?_0x5e02(0x28)+_0x100ca7:_0x2a42dc[_0x5e02(0x3f)]))),React['createElement'](TouchableOpacity,{'style':[styles['platformButton'],_0x7ae124?styles[_0x5e02(0x2a)]:styles[_0x5e02(0x2b)]],'onPress':()=>_0x7ae124?_0x4eb15a(_0x2cc746):_0x1548a3(_0x2cc746),'disabled':_0x11d4e8},_0x11d4e8?React[_0x5e02(0x1f)](ActivityIndicator,{'size':_0x1e0c0e[_0x5e02(0x40)],'color':_0x1e0c0e['gaDSm']}):React[_0x5e02(0x1f)](Text,{'style':styles['buttonText']},_0x7ae124?_0x5e02(0x2d):_0x1e0c0e[_0x5e02(0x2e)])));}else return _0xabb36d[_0x5e02(0x41)](_0x92ba4b)['filter'](_0x344397)[_0x5e02(0x42)];})),React[_0x5e02(0x1f)](View,{'style':styles[_0x5e02(0x43)]},React[_0x5e02(0x1f)](Text,{'style':styles[_0x5e02(0x44)]},_0x1e0c0e[_0x5e02(0x45)](_0x36cda9),_0x1e0c0e[_0x5e02(0x46)],Object[_0x5e02(0x38)](PLATFORMS)[_0x5e02(0x42)],_0x1e0c0e[_0x5e02(0x47)]),React['createElement'](TouchableOpacity,{'style':[styles[_0x5e02(0x48)],_0x16798c?styles[_0x5e02(0x49)]:styles['proceedInactive']],'onPress':_0x109791,'disabled':!_0x16798c},React[_0x5e02(0x1f)](Text,{'style':[styles[_0x5e02(0x4a)],_0x16798c?styles[_0x5e02(0x4b)]:styles[_0x5e02(0x4c)]]},_0x1e0c0e['YTqMj']),React[_0x5e02(0x1f)](_0x4084c6,{'name':_0x1e0c0e[_0x5e02(0x4d)],'size':0x14,'color':_0x16798c?_0x1e0c0e[_0x5e02(0x24)]:_0x1e0c0e[_0x5e02(0x4e)]}))),_0x551573&&React['createElement'](OAuthWebView,{'url':_0x5e02(0x4f)+_0x551573,'platform':_0x551573,'onComplete':_0x510255,'onClose':_0x5734b0,'onSuccess':_0x5fcff4=>{console[_0x5e02(0x1a)](_0x5e02(0x50)+_0x551573+':\x20'+_0x5fcff4),_0x1e0c0e[_0x5e02(0x51)](_0x510255);}}));};function _0x5dfd(){const _0x4bf0f4=['Instagram','#E1306C','Connect\x20to\x20share\x20and\x20analyze\x20your\x20Instagram\x20content','smart-display','#FF0000','Pinterest','push-pin','#E60023','Connect\x20to\x20enhance\x20Pinterest\x20board\x20recommendations','Reddit','#FF4500','Connect\x20to\x20personalize\x20Reddit\x20content\x20insights','aVfBa','Connect','EcODJ','gSioO','WgofZ','small','Connect\x20Your\x20Platforms','Connect\x20at\x20least\x202\x20platforms\x20to\x20create\x20your\x20Onairos\x20account','\x20of\x20','Continue','arrow-forward','#999','YVVkF','dRFEa','log','geABP','XgHMe','pZyPn','userName','createElement','platformItem','platformInfo','platformIcon','color','gaDSm','platformText','platformName','name','Connected\x20as\x20','platformButton','disconnectButton','connectButton','buttonText','Disconnect','ctzrB','LMlng','TLaoE','wgotQ','filter','title','QTpIC','subtitle','TjvFz','platformList','keys','map','iqYRf','CrlPd','GTBgn','icon','platformDescription','description','ARogp','values','length','footer','connectionStatus','nvKdn','kqseg','aHhOS','proceedButton','proceedActive','proceedText','proceedTextActive','proceedTextInactive','Vgpoz','OGfVc','https://oauth.example.com/','Received\x20authorization\x20code\x20for\x20','qLutW','create','#666','row','center','#f8f8f8','#eee','600','#000','primary','#f44336','space-between','#fff'];_0x5dfd=function(){return _0x4bf0f4;};return _0x5dfd();}const styles=StyleSheet[_0x5e02(0x52)]({'container':{'flex':0x1,'padding':0x10},'title':{'fontSize':0x18,'fontWeight':'bold','marginBottom':0x8,'color':'#000'},'subtitle':{'fontSize':0x10,'color':_0x5e02(0x53),'marginBottom':0x18},'platformList':{'flex':0x1},'platformItem':{'flexDirection':_0x5e02(0x54),'alignItems':_0x5e02(0x55),'marginBottom':0x10,'padding':0xc,'backgroundColor':_0x5e02(0x56),'borderRadius':0xc,'borderWidth':0x1,'borderColor':_0x5e02(0x57)},'platformInfo':{'flex':0x1,'flexDirection':'row','alignItems':_0x5e02(0x55)},'platformIcon':{'width':0x28,'height':0x28,'borderRadius':0x14,'justifyContent':_0x5e02(0x55),'alignItems':_0x5e02(0x55),'marginRight':0xc},'platformText':{'flex':0x1},'platformName':{'fontSize':0x10,'fontWeight':_0x5e02(0x58),'marginBottom':0x4,'color':_0x5e02(0x59)},'platformDescription':{'fontSize':0xe,'color':_0x5e02(0x53)},'platformButton':{'paddingHorizontal':0x10,'paddingVertical':0x8,'borderRadius':0x14,'justifyContent':'center','alignItems':_0x5e02(0x55),'minWidth':0x64},'connectButton':{'backgroundColor':COLORS[_0x5e02(0x5a)]},'disconnectButton':{'backgroundColor':_0x5e02(0x5b)},'buttonText':{'color':'#fff','fontWeight':_0x5e02(0x58)},'footer':{'flexDirection':_0x5e02(0x54),'alignItems':_0x5e02(0x55),'justifyContent':_0x5e02(0x5c),'paddingTop':0x10,'borderTopWidth':0x1,'borderTopColor':_0x5e02(0x57),'marginTop':0x10},'connectionStatus':{'fontSize':0xe,'color':_0x5e02(0x53)},'proceedButton':{'flexDirection':_0x5e02(0x54),'alignItems':_0x5e02(0x55),'paddingHorizontal':0x10,'paddingVertical':0xa,'borderRadius':0x18},'proceedActive':{'backgroundColor':COLORS[_0x5e02(0x5a)]},'proceedInactive':{'backgroundColor':_0x5e02(0x57)},'proceedText':{'fontWeight':_0x5e02(0x58),'marginRight':0x8},'proceedTextActive':{'color':_0x5e02(0x5d)},'proceedTextInactive':{'color':_0x5e02(0x17)}});
@@ -1 +1 @@
1
- function _0x523d(){const _0x4301f0=['/auth','/user','/connections','/oauth','Bearer\x20','User\x20not\x20authenticated\x20-\x20no\x20JWT\x20token\x20found','HzQwK'];_0x523d=function(){return _0x4301f0;};return _0x523d();}import{getAuthToken}from'../services/authService';export const API_CONFIG={'BASE_URL':'https://api2.onairos.uk','ENDPOINTS':{'AUTH':_0x354b(0x0),'USER':_0x354b(0x1),'CONNECTIONS':_0x354b(0x2),'TRAINING':'/training','OAUTH':_0x354b(0x3)},'TIMEOUT':0x7530};export const getApiHeaders=()=>({'Content-Type':'application/json','Accept':'application/json'});export const getAuthHeaders=_0x1476a4=>({...getApiHeaders(),..._0x1476a4&&{'Authorization':_0x354b(0x4)+_0x1476a4}});function _0x354b(_0x523dea,_0x354be4){_0x523dea=_0x523dea-0x0;const _0x563817=_0x523d();let _0x4e7a68=_0x563817[_0x523dea];return _0x4e7a68;}export const getUserAuthHeaders=async()=>{const _0x297468={'HzQwK':function(_0x232b9a){return _0x232b9a();},'zAuIT':_0x354b(0x5)},_0x48cb18=await _0x297468['HzQwK'](getAuthToken);if(!_0x48cb18)throw new Error(_0x297468['zAuIT']);return{..._0x297468[_0x354b(0x6)](getApiHeaders),'Authorization':_0x354b(0x4)+_0x48cb18};};
1
+ function _0x48b1(_0x43a1d3,_0x48b148){_0x43a1d3=_0x43a1d3-0x0;const _0x5d6f36=_0x43a1();let _0x1dd541=_0x5d6f36[_0x43a1d3];return _0x1dd541;}import{getAuthToken}from'../services/authService';export const API_CONFIG={'BASE_URL':'https://api2.onairos.uk','ENDPOINTS':{'AUTH':_0x48b1(0x0),'USER':'/user','CONNECTIONS':_0x48b1(0x1),'TRAINING':_0x48b1(0x2),'OAUTH':_0x48b1(0x3)},'TIMEOUT':0x7530};export const getApiHeaders=()=>({'Content-Type':'application/json','Accept':'application/json'});export const getAuthHeaders=_0x2c1c4e=>({...getApiHeaders(),..._0x2c1c4e&&{'Authorization':_0x48b1(0x4)+_0x2c1c4e}});function _0x43a1(){const _0xb5b8a4=['/auth','/connections','/training','/oauth','Bearer\x20','yWaVw','USsGg'];_0x43a1=function(){return _0xb5b8a4;};return _0x43a1();}export const getUserAuthHeaders=async()=>{const _0x51af18={'USsGg':function(_0x5c960e){return _0x5c960e();},'yWaVw':'User\x20not\x20authenticated\x20-\x20no\x20JWT\x20token\x20found'},_0x330f2a=await _0x51af18['USsGg'](getAuthToken);if(!_0x330f2a)throw new Error(_0x51af18[_0x48b1(0x5)]);return{..._0x51af18[_0x48b1(0x6)](getApiHeaders),'Authorization':_0x48b1(0x4)+_0x330f2a};};
@@ -1 +1 @@
1
- import{API_CONFIG}from'../config/api';function _0x54d1(){const _0x54b085=['#F8F9FA','#000000','#666666','#E5E5E5','#34C759','#FF3B30','#E1306C','#FF4500','#FF0000','#10A37F','#FFFFFF','instagram','Connect\x20your\x20Instagram\x20account\x20to\x20train\x20your\x20AI\x20model','Pinterest','pinterest','Use\x20your\x20Pinterest\x20boards\x20for\x20AI\x20training','Reddit','reddit','Connect\x20Reddit\x20to\x20enhance\x20your\x20AI\x20model','YouTube','youtube','Use\x20YouTube\x20data\x20to\x20improve\x20AI\x20recommendations','ChatGPT','chatgpt','Connect\x20your\x20ChatGPT\x20conversations\x20for\x20AI\x20insights','LLM\x20Data','psychology','llm','BASE_URL','/instagram/auth','/pinterest/auth','/reddit/auth','/youtube/auth','/chatgpt/auth','/reddit/callback','/chatgpt/callback','/llmdata','onairos_credentials','onairosanime'];_0x54d1=function(){return _0x54b085;};return _0x54d1();}function _0x281f(_0x54d199,_0x281f4b){_0x54d199=_0x54d199-0x0;const _0x371c06=_0x54d1();let _0x2eb6ee=_0x371c06[_0x54d199];return _0x2eb6ee;}export const COLORS={'primary':'#1BA9D4','headerBg':_0x281f(0x0),'text':{'primary':_0x281f(0x1),'secondary':_0x281f(0x2)},'border':_0x281f(0x3),'success':_0x281f(0x4),'error':_0x281f(0x5),'instagram':_0x281f(0x6),'pinterest':'#E60023','reddit':_0x281f(0x7),'youtube':_0x281f(0x8),'chatgpt':_0x281f(0x9),'llm':_0x281f(0x9),'white':_0x281f(0xa),'black':_0x281f(0x1),'gray':'#666666','lightGray':_0x281f(0x3)};export const PLATFORMS={'instagram':{'name':'Instagram','icon':_0x281f(0xb),'color':COLORS['instagram'],'description':_0x281f(0xc)},'pinterest':{'name':_0x281f(0xd),'icon':_0x281f(0xe),'color':COLORS[_0x281f(0xe)],'description':_0x281f(0xf)},'reddit':{'name':_0x281f(0x10),'icon':_0x281f(0x11),'color':COLORS[_0x281f(0x11)],'description':_0x281f(0x12)},'youtube':{'name':_0x281f(0x13),'icon':_0x281f(0x14),'color':COLORS[_0x281f(0x14)],'description':_0x281f(0x15)},'chatgpt':{'name':_0x281f(0x16),'icon':'chat','color':COLORS[_0x281f(0x17)],'description':_0x281f(0x18)},'llm':{'name':_0x281f(0x19),'icon':_0x281f(0x1a),'color':COLORS[_0x281f(0x1b)],'description':'Connect\x20your\x20AI\x20conversation\x20data'}};export const API_ENDPOINTS={'base':API_CONFIG[_0x281f(0x1c)],'oauth':{'instagram':_0x281f(0x1d),'pinterest':_0x281f(0x1e),'reddit':_0x281f(0x1f),'youtube':_0x281f(0x20),'chatgpt':_0x281f(0x21),'llm':_0x281f(0x21)},'callback':{'instagram':'/instagram/callback','pinterest':'/pinterest/callback','reddit':_0x281f(0x22),'youtube':'/youtube/callback','chatgpt':_0x281f(0x23),'llm':_0x281f(0x23)},'llm':{'dataIngest':_0x281f(0x24),'dataRequest':'/llmdata/request'}};export const STORAGE_KEYS={'credentials':_0x281f(0x25),'connections':'onairos_connections'};export const PIN_REQUIREMENTS={'minLength':0x8,'requireUppercase':!![],'requireLowercase':!![],'requireNumber':!![],'requireSpecialChar':!![]};export const DEEP_LINK_CONFIG={'scheme':_0x281f(0x26),'host':'authenticate','redirectUri':'onairosanime://auth/'};
1
+ import{API_CONFIG}from'../config/api';export const COLORS={'primary':_0x39ae(0x0),'headerBg':'#F8F9FA','text':{'primary':_0x39ae(0x1),'secondary':_0x39ae(0x2)},'border':_0x39ae(0x3),'success':_0x39ae(0x4),'error':'#FF3B30','instagram':_0x39ae(0x5),'pinterest':_0x39ae(0x6),'reddit':_0x39ae(0x7),'youtube':_0x39ae(0x8),'chatgpt':_0x39ae(0x9),'llm':_0x39ae(0x9),'white':_0x39ae(0xa),'black':_0x39ae(0x1),'gray':_0x39ae(0x2),'lightGray':_0x39ae(0x3)};export const PLATFORMS={'instagram':{'name':'Instagram','icon':_0x39ae(0xb),'color':COLORS[_0x39ae(0xb)],'description':_0x39ae(0xc)},'pinterest':{'name':_0x39ae(0xd),'icon':_0x39ae(0xe),'color':COLORS['pinterest'],'description':_0x39ae(0xf)},'reddit':{'name':_0x39ae(0x10),'icon':_0x39ae(0x11),'color':COLORS[_0x39ae(0x11)],'description':_0x39ae(0x12)},'youtube':{'name':'YouTube','icon':_0x39ae(0x13),'color':COLORS[_0x39ae(0x13)],'description':_0x39ae(0x14)},'chatgpt':{'name':_0x39ae(0x15),'icon':_0x39ae(0x16),'color':COLORS[_0x39ae(0x17)],'description':_0x39ae(0x18)},'llm':{'name':_0x39ae(0x19),'icon':_0x39ae(0x1a),'color':COLORS['llm'],'description':_0x39ae(0x1b)}};export const API_ENDPOINTS={'base':API_CONFIG[_0x39ae(0x1c)],'oauth':{'instagram':'/instagram/auth','pinterest':'/pinterest/auth','reddit':_0x39ae(0x1d),'youtube':_0x39ae(0x1e),'chatgpt':_0x39ae(0x1f),'llm':'/chatgpt/auth'},'callback':{'instagram':_0x39ae(0x20),'pinterest':_0x39ae(0x21),'reddit':_0x39ae(0x22),'youtube':_0x39ae(0x23),'chatgpt':_0x39ae(0x24),'llm':'/chatgpt/callback'},'llm':{'dataIngest':'/llmdata','dataRequest':_0x39ae(0x25)}};function _0x39ae(_0x5090a4,_0x39ae7e){_0x5090a4=_0x5090a4-0x0;const _0x2c04a6=_0x5090();let _0x1618b6=_0x2c04a6[_0x5090a4];return _0x1618b6;}function _0x5090(){const _0x2412ba=['#1BA9D4','#000000','#666666','#E5E5E5','#34C759','#E1306C','#E60023','#FF4500','#FF0000','#10A37F','#FFFFFF','instagram','Connect\x20your\x20Instagram\x20account\x20to\x20train\x20your\x20AI\x20model','Pinterest','pinterest','Use\x20your\x20Pinterest\x20boards\x20for\x20AI\x20training','Reddit','reddit','Connect\x20Reddit\x20to\x20enhance\x20your\x20AI\x20model','youtube','Use\x20YouTube\x20data\x20to\x20improve\x20AI\x20recommendations','ChatGPT','chat','chatgpt','Connect\x20your\x20ChatGPT\x20conversations\x20for\x20AI\x20insights','LLM\x20Data','psychology','Connect\x20your\x20AI\x20conversation\x20data','BASE_URL','/reddit/auth','/youtube/auth','/chatgpt/auth','/instagram/callback','/pinterest/callback','/reddit/callback','/youtube/callback','/chatgpt/callback','/llmdata/request','onairos_credentials','onairos_connections','authenticate','onairosanime://auth/'];_0x5090=function(){return _0x2412ba;};return _0x5090();}export const STORAGE_KEYS={'credentials':_0x39ae(0x26),'connections':_0x39ae(0x27)};export const PIN_REQUIREMENTS={'minLength':0x8,'requireUppercase':!![],'requireLowercase':!![],'requireNumber':!![],'requireSpecialChar':!![]};export const DEEP_LINK_CONFIG={'scheme':'onairosanime','host':_0x39ae(0x28),'redirectUri':_0x39ae(0x29)};
@@ -1 +1 @@
1
- import React,{createContext,useState,useEffect,useContext}from'react';import AsyncStorage from'@react-native-async-storage/async-storage';function _0x1733(){const _0x185566=['Failed\x20to\x20load\x20authentication\x20state:','Failed\x20to\x20remove\x20user\x20data:','Failed\x20to\x20save\x20user\x20data:','user','ZdETk','0|3|2|5|1|4','HAfza','🌐\x20Network\x20verification\x20failed,\x20using\x20local\x20token\x20validation:','DEZWH','Failed\x20to\x20fetch\x20user\x20profile:','401','feJgR','ghSdO','onboardingCompleted','hNUJm','IoDHv','💾\x20Network\x20unreachable,\x20trusting\x20local\x20authentication\x20state','eqleT','BQirJ','NPXXX','apple','onairos','User\x20logged\x20in\x20with\x20onboarded=false:','useAuth\x20must\x20be\x20used\x20within\x20an\x20AuthProvider','auth_method','fSpSQ','hasConnectedOnairos','onairosUserId','lastConnectedAt','🔗\x20Stored\x20Onairos\x20connection\x20status:','false','🍎\x20Apple\x20sign-in\x20completed\x20-\x20auth_method\x20set\x20to\x20\x22apple\x22','McFzK','🔑\x20Onairos\x20sign-in\x20completed\x20-\x20auth_method\x20set\x20to\x20\x22onairos\x22','ueKUu','WlZco','Failed\x20to\x20complete\x20onboarding:','xVvJY','Failed\x20to\x20update\x20user\x20data:','Account\x20deleted\x20successfully','AXmTG','dLDHV','GOoLG','🎯\x20Found\x20event\x20access\x20token\x20-\x20user\x20has\x20completed\x20onboarding,\x20authentication\x20confirmed','Failed\x20to\x20update\x20onboarded\x20status:','QrYBg','UvRnM','isdcO','mmNUl','SxKmb','zFusF','PincJ','cRLie','ZcaVi','aJREM','LyHRD','vJvNq','YRMLl','oWMDQ','LgVbQ','zoGId','SPkCl','omMYv','WMjRI','DQgri','DOdcn','xMOvz','ZSQXA','kMLfG','ZVODf','osjsi','ShyYn','XkzLw','vdQuf','bkiDb','aaLHx','gbdzG','XJgZK','dkAON','error','USLNw','wGyqf','YRsTw','xFUOI','IqRnU','getItem','eacIj','HijjB','hwCHF','TzyfT','WNBXr','zxkKi','split','DRSsm','parse','rAduh','aOYSn','lRIMf','log','warn','kAJGR','hFnyS','NHSEz','FYrPk','hVzVy','yxCsF','WhuWN','setItem','stringify','kaFwQ','jdtGY','eMQOH','tYyEP','bPHRB','message','includes','Dzzkm','hjXDz','tffKu','tsZxG','GRoPd','kicHx','mMOPZ','usxSW','pmYKF','EdMkB','true','jBWYV','EiGji','OYBtc','RdhZy','iNdYb','CIhzF','yDEei','ZdIJH','wwsLd','MWsDN','hOgME','email','RWXOY','rqRbq','hdKbJ','MsHFE','wrMhq','token','LxxLW','XGJQj','aLVsC','cQcDw','eFTmw','jiDNq','profilePicture','Apple\x20sign-in\x20failed:','wZyaI','kTMJi','weNEV','GkWAo','ppovI','cyIMr','ennYp','nfWIo','sXxyj','CAMMU','SjBST','zkqyy','PGnMR','UuAAy','qnUjq','VMGQp','aFHZD','fpgDY','OhgRQ','NHCwI','BNfkB','DyOOf','GPZuY','removeItem','RrCtV','itYkn','tzfRK','createElement','Provider','oeXYT','AUCJr'];_0x1733=function(){return _0x185566;};return _0x1733();}import{saveAuthToken,getAuthToken,removeAuthToken,verifyToken,getUserProfile,authenticateWithApple,authenticateWithOnairos,updateUserOnboardedStatus}from'../services/authService';import{saveAuthState,clearUserData,getResumeTarget,markStepCompleted,updateLastScreen,isReturningUser,markEventPageReached,hasEventAccessToken}from'../services/storageService';const AuthContext=createContext(undefined);function _0x3bb0(_0x173362,_0x3bb019){_0x173362=_0x173362-0x0;const _0x1a8111=_0x1733();let _0x159f3f=_0x1a8111[_0x173362];return _0x159f3f;}export const AuthProvider=({children:_0x57076b})=>{const _0x35a385={'GOoLG':_0x3bb0(0x0),'hZOES':_0x3bb0(0x1),'QrYBg':_0x3bb0(0x2),'aJREM':function(_0x3754ba,_0x2055df){return _0x3754ba(_0x2055df);},'isdcO':function(_0x4f7af5,_0xf952a0){return _0x4f7af5===_0xf952a0;},'mmNUl':function(_0x57d786){return _0x57d786();},'SxKmb':_0x3bb0(0x3),'PincJ':_0x3bb0(0x4),'cRLie':_0x3bb0(0x5),'ZcaVi':function(_0x271a8d,_0x525c1c){return _0x271a8d(_0x525c1c);},'LyHRD':'BYxBP','WINyk':_0x3bb0(0x6),'vJvNq':_0x3bb0(0x7),'YRMLl':_0x3bb0(0x8),'oWMDQ':function(_0x12a0c0,_0x1f527f){return _0x12a0c0!==_0x1f527f;},'zoGId':_0x3bb0(0x9),'SPkCl':function(_0x3b7826,_0x1c1a29){return _0x3b7826 instanceof _0x1c1a29;},'omMYv':_0x3bb0(0xa),'WMjRI':function(_0x35f886,_0x50c72d){return _0x35f886===_0x50c72d;},'DQgri':_0x3bb0(0xb),'DOdcn':_0x3bb0(0xc),'ZSQXA':'Onairos\x20User','RWXOY':function(_0x41daa8,_0x27cfbf){return _0x41daa8!==_0x27cfbf;},'kMLfG':'usxSW','zkqyy':function(_0x1bc99d){return _0x1bc99d();},'ZVODf':_0x3bb0(0xd),'osjsi':function(_0xcb9b31,_0x49fb23){return _0xcb9b31===_0x49fb23;},'FHciV':_0x3bb0(0xe),'XkzLw':_0x3bb0(0xf),'CIhzF':function(_0x52df36){return _0x52df36();},'wrMhq':'Apple\x20sign-in\x20failed:','UQweM':_0x3bb0(0x10),'FcJhV':function(_0x28b334,_0x28c767){return _0x28b334!==_0x28c767;},'yDEei':_0x3bb0(0x11),'ZdIJH':_0x3bb0(0x12),'wwsLd':function(_0x46569c,_0x450c29){return _0x46569c!==_0x450c29;},'MWsDN':_0x3bb0(0x13),'rqRbq':_0x3bb0(0x14),'GkWAo':_0x3bb0(0x15),'hdKbJ':'authentication','MsHFE':_0x3bb0(0x16),'MzGzX':_0x3bb0(0x17),'LxxLW':_0x3bb0(0x18),'aLVsC':_0x3bb0(0x19),'cQcDw':_0x3bb0(0x1a),'tbehR':_0x3bb0(0x1b),'jlpEv':_0x3bb0(0x1c),'BxxBP':_0x3bb0(0x1d),'eFTmw':_0x3bb0(0x1e),'jiDNq':'🔗\x20No\x20Onairos\x20connection\x20info\x20from\x20backend,\x20defaulting\x20to\x20false','GFdlq':function(_0x48b301,_0x5bc0e5){return _0x48b301(_0x5bc0e5);},'jyGVM':_0x3bb0(0x1f),'kBYpH':function(_0x5c73dd,_0x5692c4){return _0x5c73dd===_0x5692c4;},'wZyaI':'YPFzC','kTMJi':_0x3bb0(0x20),'nfWIo':'Onairos\x20sign-in\x20failed:','weNEV':function(_0x52893b,_0x3f22c6){return _0x52893b(_0x3f22c6);},'ppovI':function(_0x1828ac,_0x16a7cb){return _0x1828ac(_0x16a7cb);},'BNfkB':function(_0x3536dc,_0x584c72){return _0x3536dc(_0x584c72);},'cyIMr':_0x3bb0(0x21),'ennYp':_0x3bb0(0x22),'MglGN':'VPKKw','sXxyj':function(_0x398b6c,_0x17e5cd){return _0x398b6c(_0x17e5cd);},'CAMMU':function(_0x4c35b3){return _0x4c35b3();},'goMhP':function(_0x33f46b,_0x2939c8){return _0x33f46b(_0x2939c8);},'XFxZk':function(_0x1613c4,_0xe28d98){return _0x1613c4(_0xe28d98);},'SjBST':function(_0x47b60b,_0x12add7){return _0x47b60b(_0x12add7);},'BAjLJ':function(_0x36203b,_0x1e5bb0){return _0x36203b!==_0x1e5bb0;},'PGnMR':_0x3bb0(0x23),'qnUjq':_0x3bb0(0x24),'VMGQp':'Failed\x20to\x20delete\x20account:','aFHZD':_0x3bb0(0x25),'jiEaj':function(_0x24692d,_0x245496){return _0x24692d(_0x245496);},'fpgDY':_0x3bb0(0x26),'NHCwI':function(_0xf531b7){return _0xf531b7();},'DyOOf':function(_0x5b20fa,_0x56a4bc){return _0x5b20fa(_0x56a4bc);},'GPZuY':'0|2|4|1|3|5|6','RrCtV':function(_0x2224f1,_0x51c735){return _0x2224f1(_0x51c735);},'itYkn':function(_0x25975e,_0x3cf1ea){return _0x25975e(_0x3cf1ea);},'tzfRK':_0x3bb0(0x27),'RLXyW':function(_0x25cd70,_0xef7e55){return _0x25cd70(_0xef7e55);},'AXmTG':function(_0x52fac9,_0x1e11b8){return _0x52fac9(_0x1e11b8);},'dLDHV':function(_0x3febf5,_0x3e94ed,_0x2a63a8){return _0x3febf5(_0x3e94ed,_0x2a63a8);}},[_0x4d5921,_0x3a6363]=useState(null),[_0xf0d5d7,_0x5cd403]=_0x35a385['RLXyW'](useState,!![]),[_0x1215b7,_0x29bac9]=useState(![]),[_0x3f7e72,_0x20d83c]=_0x35a385[_0x3bb0(0x28)](useState,![]);_0x35a385[_0x3bb0(0x29)](useEffect,()=>{const _0x571d42={'USLNw':_0x35a385[_0x3bb0(0x2a)],'WNBXr':_0x3bb0(0x2b),'zxkKi':function(_0x45d2a6,_0x3a5ad6){return _0x45d2a6(_0x3a5ad6);},'aaLHx':function(_0x5f2e58,_0xfd61f2){return _0x5f2e58(_0xfd61f2);},'yxCsF':_0x3bb0(0x2c),'dXgll':_0x35a385['hZOES'],'vdQuf':_0x3bb0(0x26),'bkiDb':_0x35a385[_0x3bb0(0x2d)],'gbdzG':function(_0x30896f,_0x334104){return _0x35a385['aJREM'](_0x30896f,_0x334104);},'XJgZK':function(_0x8e6eeb,_0xdb55c3){return _0x8e6eeb!==_0xdb55c3;},'dkAON':_0x3bb0(0x2e),'wGyqf':function(_0x3b05a4,_0xc255ef){return _0x35a385[_0x3bb0(0x2f)](_0x3b05a4,_0xc255ef);},'IqRnU':function(_0xecec0){return _0x35a385[_0x3bb0(0x30)](_0xecec0);},'eacIj':_0x35a385[_0x3bb0(0x31)],'HijjB':function(_0x1a2284,_0x410f06){return _0x35a385[_0x3bb0(0x2f)](_0x1a2284,_0x410f06);},'hwCHF':_0x3bb0(0x32),'TzyfT':_0x35a385[_0x3bb0(0x33)],'fuuwJ':_0x35a385[_0x3bb0(0x34)],'LynDZ':function(_0x5825de,_0x4d027d){return _0x35a385[_0x3bb0(0x35)](_0x5825de,_0x4d027d);},'DRSsm':function(_0x4d0c7b,_0x41a914){return _0x35a385[_0x3bb0(0x36)](_0x4d0c7b,_0x41a914);},'rAduh':_0x35a385[_0x3bb0(0x37)],'aOYSn':_0x35a385['WINyk'],'kAJGR':_0x35a385[_0x3bb0(0x38)],'TgDmn':_0x35a385[_0x3bb0(0x39)],'NHSEz':_0x3bb0(0x10),'FYrPk':function(_0x370a12,_0x4134ca){return _0x35a385[_0x3bb0(0x3a)](_0x370a12,_0x4134ca);},'hVzVy':'zdpiI','WhuWN':function(_0x58db8c,_0x356c7f){return _0x35a385[_0x3bb0(0x35)](_0x58db8c,_0x356c7f);},'kaFwQ':function(_0x3ca7dd,_0x516d09){return _0x3ca7dd(_0x516d09);},'eMQOH':_0x3bb0(0x3b),'tYyEP':_0x35a385[_0x3bb0(0x3c)],'bPHRB':function(_0x42cdde,_0x563f39){return _0x35a385[_0x3bb0(0x3d)](_0x42cdde,_0x563f39);},'Dzzkm':_0x35a385[_0x3bb0(0x3e)],'uOBsn':'403','hjXDz':function(_0x42af01,_0x39945a){return _0x35a385[_0x3bb0(0x3f)](_0x42af01,_0x39945a);},'tffKu':_0x35a385[_0x3bb0(0x40)],'tsZxG':_0x35a385[_0x3bb0(0x41)],'GRoPd':_0x3bb0(0x42),'jlVCM':'offline_user','kicHx':_0x35a385[_0x3bb0(0x43)],'vaBRt':'user@onairos.com','enQgV':function(_0x16f45c,_0x13e1f7){return _0x35a385['RWXOY'](_0x16f45c,_0x13e1f7);},'puESf':_0x35a385[_0x3bb0(0x44)],'pmYKF':function(_0x5122d9){return _0x35a385['zkqyy'](_0x5122d9);},'EdMkB':_0x35a385[_0x3bb0(0x45)],'DzytQ':function(_0x3bf382,_0x3e90b3){return _0x35a385[_0x3bb0(0x46)](_0x3bf382,_0x3e90b3);},'jBWYV':_0x35a385['FHciV'],'OYBtc':_0x3bb0(0x47),'RdhZy':_0x35a385[_0x3bb0(0x48)]},_0x490b16=async()=>{const _0x19c662={'xFUOI':_0x571d42[_0x3bb0(0x49)],'hFnyS':_0x3bb0(0x24),'mMOPZ':_0x571d42[_0x3bb0(0x4a)],'EiGji':function(_0x24358c,_0x2a98f4){return _0x571d42[_0x3bb0(0x4b)](_0x24358c,_0x2a98f4);},'iNdYb':function(_0x2fe2aa,_0x3da76a){return _0x571d42[_0x3bb0(0x4c)](_0x2fe2aa,_0x3da76a);}};if(_0x571d42[_0x3bb0(0x4d)](_0x571d42[_0x3bb0(0x4e)],_0x571d42[_0x3bb0(0x4e)]))_0x5b79f9[_0x3bb0(0x4f)](_0x571d42[_0x3bb0(0x50)],_0xe03240);else try{if(_0x571d42[_0x3bb0(0x51)]('ssmmv',_0x3bb0(0x52)))_0x469e11['error'](_0x19c662[_0x3bb0(0x53)],_0x5d5e5c);else{const _0x3cf9fb=await _0x571d42[_0x3bb0(0x54)](hasEventAccessToken),_0x17970c=await AsyncStorage[_0x3bb0(0x55)](_0x571d42[_0x3bb0(0x56)]);if(_0x3cf9fb&&_0x17970c){if(_0x571d42[_0x3bb0(0x57)](_0x571d42[_0x3bb0(0x58)],_0x571d42[_0x3bb0(0x59)])){_0x20cb10['log'](_0x571d42[_0x3bb0(0x5a)]),_0x1630d(_0x1da909['parse'](_0x3a3852)),_0x571d42[_0x3bb0(0x5b)](_0x5966b9,!![]),_0x4208c7(!![]),_0x571d42['aaLHx'](_0x316bc5,![]);return;}else{const _0xf4e187=_0x571d42['fuuwJ'][_0x3bb0(0x5c)]('|');let _0x47cd87=0x0;while(!![]){switch(_0xf4e187[_0x47cd87++]){case'0':console['log'](_0x571d42[_0x3bb0(0x5a)]);continue;case'1':_0x5cd403(![]);continue;case'2':_0x571d42['LynDZ'](_0x20d83c,!![]);continue;case'3':_0x571d42[_0x3bb0(0x5d)](_0x3a6363,JSON[_0x3bb0(0x5e)](_0x17970c));continue;case'4':return;case'5':_0x571d42['aaLHx'](_0x29bac9,!![]);continue;}break;}}}const _0x13e49f=await _0x571d42[_0x3bb0(0x54)](getAuthToken);if(_0x13e49f){if(_0x571d42[_0x3bb0(0x51)](_0x571d42[_0x3bb0(0x5f)],_0x571d42[_0x3bb0(0x5f)])){let _0x3565ef=![];try{_0x571d42[_0x3bb0(0x57)](_0x571d42[_0x3bb0(0x60)],_0x3bb0(0x61))?(_0x2c64cd[_0x3bb0(0x62)](_0x3bb0(0x10)),_0x2d85d8=!![]):_0x3565ef=await verifyToken();}catch(_0x42737e){console[_0x3bb0(0x63)](_0x571d42[_0x3bb0(0x64)],_0x42737e);if(_0x17970c){if(_0x571d42['TgDmn']!==_0x3bb0(0x8)){_0x18791f[_0x3bb0(0x4f)](_0x19c662[_0x3bb0(0x65)],_0x4b1742);throw _0x4ccb47;}else console[_0x3bb0(0x62)](_0x571d42[_0x3bb0(0x66)]),_0x3565ef=!![];}}if(_0x3565ef){if(_0x17970c){if(_0x571d42[_0x3bb0(0x67)](_0x571d42[_0x3bb0(0x68)],_0x571d42[_0x3bb0(0x68)])){_0x491158[_0x3bb0(0x4f)](_0x571d42[_0x3bb0(0x69)],_0x23b75e);throw _0x1594b7;}else _0x571d42[_0x3bb0(0x6a)](_0x3a6363,JSON[_0x3bb0(0x5e)](_0x17970c)),_0x571d42[_0x3bb0(0x4b)](_0x20d83c,!![]);}else try{const _0x2c19f0=await getUserProfile();await AsyncStorage[_0x3bb0(0x6b)](_0x3bb0(0x3),JSON[_0x3bb0(0x6c)](_0x2c19f0)),_0x571d42['aaLHx'](_0x3a6363,_0x2c19f0),_0x571d42[_0x3bb0(0x6d)](_0x20d83c,!![]);}catch(_0x5043ee){if(_0x3bb0(0x6e)!==_0x571d42[_0x3bb0(0x6f)]){console[_0x3bb0(0x4f)](_0x571d42[_0x3bb0(0x70)],_0x5043ee);const _0x547319=_0x571d42[_0x3bb0(0x71)](_0x5043ee,Error)?_0x5043ee[_0x3bb0(0x72)]:_0x571d42[_0x3bb0(0x5b)](String,_0x5043ee);if(_0x547319[_0x3bb0(0x73)](_0x571d42[_0x3bb0(0x74)])||_0x547319['includes'](_0x571d42['uOBsn']))_0x571d42[_0x3bb0(0x75)](_0x571d42[_0x3bb0(0x76)],_0x3bb0(0xb))?await removeAuthToken():_0x493773(!![]);else{if(_0x571d42[_0x3bb0(0x77)]!==_0x571d42[_0x3bb0(0x78)]){console['log']('🌐\x20Profile\x20fetch\x20failed\x20(likely\x20network),\x20keeping\x20authentication\x20state');if(_0x13e49f){const _0x52693a={'id':_0x571d42['jlVCM'],'name':_0x571d42[_0x3bb0(0x79)],'email':_0x571d42['vaBRt'],'onboarded':![]};await AsyncStorage[_0x3bb0(0x6b)](_0x571d42[_0x3bb0(0x56)],JSON[_0x3bb0(0x6c)](_0x52693a)),_0x571d42[_0x3bb0(0x6a)](_0x3a6363,_0x52693a),_0x571d42[_0x3bb0(0x4c)](_0x20d83c,!![]);}}else _0x2ae508[_0x3bb0(0x4f)](_0x19c662[_0x3bb0(0x7a)],_0x3b44ae);}}else _0x4cac48(![]);}}else _0x571d42['enQgV'](_0x571d42['puESf'],_0x3bb0(0x7b))?_0x55fc53[_0x3bb0(0x4f)](_0x571d42['dXgll'],_0x23b73c):await _0x571d42[_0x3bb0(0x7c)](removeAuthToken);}else _0x19c662['EiGji'](_0x3c5ad9,![]);}const _0x3e0474=await AsyncStorage[_0x3bb0(0x55)](_0x571d42[_0x3bb0(0x7d)]);_0x571d42[_0x3bb0(0x51)](_0x3e0474,_0x3bb0(0x7e))&&_0x571d42['kaFwQ'](_0x29bac9,!![]);}}catch(_0x351c45){_0x571d42['DzytQ'](_0x3bb0(0xe),_0x571d42[_0x3bb0(0x7f)])?console[_0x3bb0(0x4f)](_0x571d42[_0x3bb0(0x50)],_0x351c45):_0x19c662[_0x3bb0(0x80)](_0x5515c7,![]);}finally{_0x571d42[_0x3bb0(0x57)](_0x571d42[_0x3bb0(0x81)],_0x571d42[_0x3bb0(0x82)])?_0x19c662[_0x3bb0(0x83)](_0x3e77b5,![]):_0x571d42[_0x3bb0(0x5d)](_0x5cd403,![]);}};_0x35a385[_0x3bb0(0x84)](_0x490b16);},[]);const _0x9ce1d1=async _0x58d1b1=>{const _0x3bd9d6={'hOgME':_0x35a385['UQweM']};if(_0x35a385['FcJhV'](_0x35a385[_0x3bb0(0x85)],_0x35a385[_0x3bb0(0x86)]))try{if(_0x35a385[_0x3bb0(0x87)](_0x35a385[_0x3bb0(0x88)],_0x35a385[_0x3bb0(0x88)]))_0x56ec17[_0x3bb0(0x63)](_0x3bb0(0x7),_0x347e96),_0x3c104d&&(_0x2d0d30[_0x3bb0(0x62)](_0x3bd9d6[_0x3bb0(0x89)]),_0x1a963d=!![]);else{var _0x394155;const _0x58fb15={..._0x58d1b1,'onboarded':![]};await AsyncStorage[_0x3bb0(0x6b)](_0x35a385[_0x3bb0(0x31)],JSON[_0x3bb0(0x6c)](_0x58fb15)),_0x35a385['aJREM'](_0x3a6363,_0x58fb15),_0x35a385['ZcaVi'](_0x20d83c,!![]),await _0x35a385[_0x3bb0(0x35)](saveAuthState,{'isAuthenticated':!![],'authMethod':(_0x394155=_0x58d1b1[_0x3bb0(0x8a)])!==null&&_0x35a385[_0x3bb0(0x8b)](_0x394155,void 0x0)&&_0x394155[_0x3bb0(0x73)](_0x35a385[_0x3bb0(0x8c)])?_0x35a385[_0x3bb0(0x8c)]:_0x35a385['GkWAo'],'hasValidToken':!![],'userEmail':_0x58d1b1[_0x3bb0(0x8a)],'userName':_0x58d1b1['name']}),await _0x35a385[_0x3bb0(0x36)](markStepCompleted,_0x35a385[_0x3bb0(0x8d)]),console['log'](_0x35a385[_0x3bb0(0x8e)],_0x58fb15);}}catch(_0x1aa34c){console[_0x3bb0(0x4f)]('Failed\x20to\x20save\x20user\x20data:',_0x1aa34c);}else{_0x2fa1fb[_0x3bb0(0x4f)](_0x35a385[_0x3bb0(0x8f)],_0x5e1e99);throw _0xf2001;}},_0x31fc9d=async _0x2cfef6=>{try{_0x35a385[_0x3bb0(0x36)](_0x5cd403,!![]);const _0xf7666a=await authenticateWithApple(_0x2cfef6);await saveAuthToken(_0xf7666a[_0x3bb0(0x90)]),await AsyncStorage['setItem'](_0x35a385[_0x3bb0(0x91)],_0x3bb0(0x14));_0xf7666a['onairos']?_0x35a385['wwsLd'](_0x3bb0(0x92),_0x35a385[_0x3bb0(0x93)])?(await AsyncStorage[_0x3bb0(0x6b)](_0x35a385[_0x3bb0(0x94)],_0xf7666a[_0x3bb0(0x15)][_0x3bb0(0x1a)]['toString']()),_0xf7666a[_0x3bb0(0x15)][_0x3bb0(0x1b)]&&await AsyncStorage[_0x3bb0(0x6b)](_0x35a385['tbehR'],_0xf7666a[_0x3bb0(0x15)]['onairosUserId']),_0xf7666a['onairos'][_0x3bb0(0x1c)]&&await AsyncStorage[_0x3bb0(0x6b)](_0x35a385['jlpEv'],_0xf7666a[_0x3bb0(0x15)][_0x3bb0(0x1c)]),console['log'](_0x35a385['BxxBP'],_0xf7666a['onairos'][_0x3bb0(0x1a)])):(_0x35a385[_0x3bb0(0x36)](_0x3511b2,_0x2d3665[_0x3bb0(0x5e)](_0x185a33)),_0x35a385[_0x3bb0(0x36)](_0x56b716,!![])):(await AsyncStorage[_0x3bb0(0x6b)](_0x35a385[_0x3bb0(0x94)],_0x35a385[_0x3bb0(0x95)]),console[_0x3bb0(0x62)](_0x35a385[_0x3bb0(0x96)]));const _0xaba506={'id':_0xf7666a['user']['id'],'name':_0xf7666a[_0x3bb0(0x3)]['name']||_0x35a385[_0x3bb0(0x43)],'email':_0xf7666a['user'][_0x3bb0(0x8a)],'profilePicture':_0xf7666a[_0x3bb0(0x3)][_0x3bb0(0x97)],'onboarded':![]};return await AsyncStorage[_0x3bb0(0x6b)](_0x35a385[_0x3bb0(0x31)],JSON[_0x3bb0(0x6c)](_0xaba506)),_0x3a6363(_0xaba506),_0x35a385['GFdlq'](_0x20d83c,!![]),console['log'](_0x35a385['jyGVM']),_0xaba506;}catch(_0x59d085){console[_0x3bb0(0x4f)](_0x3bb0(0x98),_0x59d085);throw _0x59d085;}finally{if(_0x35a385['kBYpH'](_0x35a385[_0x3bb0(0x99)],_0x35a385[_0x3bb0(0x9a)]))throw new _0x207f93(_0x35a385['MzGzX']);else _0x35a385[_0x3bb0(0x35)](_0x5cd403,![]);}},_0x276261=async _0x357455=>{try{_0x35a385['GFdlq'](_0x5cd403,!![]);const _0x32cd47=await _0x35a385['weNEV'](authenticateWithOnairos,_0x357455);await _0x35a385[_0x3bb0(0x9b)](saveAuthToken,_0x32cd47[_0x3bb0(0x90)]),await AsyncStorage[_0x3bb0(0x6b)](_0x35a385[_0x3bb0(0x91)],_0x35a385[_0x3bb0(0x9c)]);const _0x3291e6={'id':_0x32cd47['user']['id'],'name':_0x32cd47[_0x3bb0(0x3)]['name']||_0x35a385[_0x3bb0(0x43)],'email':_0x32cd47[_0x3bb0(0x3)][_0x3bb0(0x8a)],'profilePicture':_0x32cd47['user'][_0x3bb0(0x97)],'onboarded':![]};return await AsyncStorage[_0x3bb0(0x6b)](_0x35a385['SxKmb'],JSON[_0x3bb0(0x6c)](_0x3291e6)),_0x35a385[_0x3bb0(0x9d)](_0x3a6363,_0x3291e6),_0x35a385['BNfkB'](_0x20d83c,!![]),console['log'](_0x35a385[_0x3bb0(0x9e)]),_0x3291e6;}catch(_0x2d2987){if(_0x35a385[_0x3bb0(0x9f)]!==_0x35a385['MglGN']){console[_0x3bb0(0x4f)](_0x35a385[_0x3bb0(0xa0)],_0x2d2987);throw _0x2d2987;}else{_0x20ab06[_0x3bb0(0x4f)](_0x35a385[_0x3bb0(0xa0)],_0x3bf334);throw _0xc49c02;}}finally{_0x35a385[_0x3bb0(0xa1)](_0x5cd403,![]);}},_0x17440e=async()=>{try{await _0x35a385[_0x3bb0(0xa2)](clearUserData),_0x35a385['goMhP'](_0x3a6363,null),_0x35a385['XFxZk'](_0x20d83c,![]);}catch(_0x51e2a8){console[_0x3bb0(0x4f)](_0x35a385['hZOES'],_0x51e2a8);}},_0x4411d6=async _0x3c3919=>{const _0x1720f1={'SyEof':function(_0x232e90,_0x242f3f){return _0x35a385[_0x3bb0(0x35)](_0x232e90,_0x242f3f);},'UuAAy':'useAuth\x20must\x20be\x20used\x20within\x20an\x20AuthProvider'};try{const _0x1ede61={..._0x4d5921,..._0x3c3919};await AsyncStorage[_0x3bb0(0x6b)](_0x35a385[_0x3bb0(0x31)],JSON[_0x3bb0(0x6c)](_0x1ede61)),_0x35a385[_0x3bb0(0xa3)](_0x3a6363,_0x1ede61),await _0x35a385[_0x3bb0(0xa4)](_0x4b85b4);}catch(_0x38cfab){if(_0x35a385['BAjLJ'](_0x35a385[_0x3bb0(0xa5)],_0x35a385[_0x3bb0(0xa5)])){const _0x20700d=_0x1720f1['SyEof'](useContext,_0x1078d7);if(_0x20700d===_0x7b384e)throw new _0xd49219(_0x1720f1[_0x3bb0(0xa6)]);return _0x20700d;}else{console['error'](_0x35a385[_0x3bb0(0xa7)],_0x38cfab);throw _0x38cfab;}}},_0x5c8465=async _0xe75e80=>{const _0x42a606={'OhgRQ':_0x35a385[_0x3bb0(0xa8)]};if(_0x35a385['aFHZD']===_0x35a385[_0x3bb0(0xa9)])try{if(!_0x4d5921)return;const _0x5cf84c={..._0x4d5921,..._0xe75e80};await AsyncStorage[_0x3bb0(0x6b)](_0x35a385[_0x3bb0(0x31)],JSON[_0x3bb0(0x6c)](_0x5cf84c)),_0x35a385['jiEaj'](_0x3a6363,_0x5cf84c);}catch(_0x5b33bd){console[_0x3bb0(0x4f)](_0x35a385[_0x3bb0(0xaa)],_0x5b33bd);}else{_0x348f10['error'](_0x42a606[_0x3bb0(0xab)],_0x88620d);throw _0x4fb0d6;}},_0x4b85b4=async()=>{try{_0x35a385[_0x3bb0(0xa1)](_0x5cd403,!![]),await _0x35a385[_0x3bb0(0xac)](updateUserOnboardedStatus);if(_0x4d5921){const _0x403dd9={..._0x4d5921,'onboarded':!![]};await AsyncStorage[_0x3bb0(0x6b)](_0x35a385['SxKmb'],JSON['stringify'](_0x403dd9)),_0x35a385[_0x3bb0(0xad)](_0x3a6363,_0x403dd9);}}catch(_0x1428db){console[_0x3bb0(0x4f)](_0x3bb0(0x2c),_0x1428db);throw _0x1428db;}finally{_0x35a385[_0x3bb0(0xae)](_0x5cd403,![]);}},_0x1cfb90=async()=>{try{const _0x96a7fd=_0x35a385[_0x3bb0(0xaf)][_0x3bb0(0x5c)]('|');let _0xe1061c=0x0;while(!![]){switch(_0x96a7fd[_0xe1061c++]){case'0':await AsyncStorage[_0x3bb0(0xb0)](_0x35a385[_0x3bb0(0x31)]);continue;case'1':_0x35a385['goMhP'](_0x3a6363,null);continue;case'2':await _0x35a385[_0x3bb0(0x84)](removeAuthToken);continue;case'3':_0x35a385[_0x3bb0(0xb1)](_0x20d83c,![]);continue;case'4':await AsyncStorage['removeItem'](_0x35a385[_0x3bb0(0x45)]);continue;case'5':_0x35a385[_0x3bb0(0xb2)](_0x29bac9,![]);continue;case'6':console[_0x3bb0(0x62)](_0x35a385[_0x3bb0(0xb3)]);continue;}break;}}catch(_0x24edbd){console[_0x3bb0(0x4f)]('Failed\x20to\x20delete\x20account:',_0x24edbd);throw _0x24edbd;}};return React[_0x3bb0(0xb4)](AuthContext[_0x3bb0(0xb5)],{'value':{'user':_0x4d5921,'isLoading':_0xf0d5d7,'hasCompletedOnboarding':_0x1215b7,'login':_0x9ce1d1,'logout':_0x17440e,'deleteAccount':_0x1cfb90,'completeOnboarding':_0x4411d6,'updateUser':_0x5c8465,'appleSignIn':_0x31fc9d,'onairosSignIn':_0x276261,'isAuthenticated':_0x3f7e72,'updateOnboardedStatus':_0x4b85b4,'getResumeTarget':getResumeTarget,'markStepCompleted':markStepCompleted,'updateLastScreen':updateLastScreen,'isReturningUser':isReturningUser,'markEventPageReached':markEventPageReached,'hasEventAccessToken':hasEventAccessToken}},_0x57076b);};export const useAuth=()=>{const _0x4de1cd={'oeXYT':function(_0x23bea,_0x33b2dd){return _0x23bea(_0x33b2dd);},'AUCJr':function(_0x2f6bd1,_0x37c76e){return _0x2f6bd1===_0x37c76e;},'lgluD':_0x3bb0(0x17)},_0x3c3869=_0x4de1cd[_0x3bb0(0xb6)](useContext,AuthContext);if(_0x4de1cd[_0x3bb0(0xb7)](_0x3c3869,undefined))throw new Error(_0x4de1cd['lgluD']);return _0x3c3869;};
1
+ import React,{createContext,useState,useEffect,useContext}from'react';import AsyncStorage from'@react-native-async-storage/async-storage';function _0x2c31(_0x1ebeaf,_0x2c311c){_0x1ebeaf=_0x1ebeaf-0x0;const _0x8b8758=_0x1ebe();let _0x2519c0=_0x8b8758[_0x1ebeaf];return _0x2519c0;}import{saveAuthToken,getAuthToken,removeAuthToken,verifyToken,getUserProfile,authenticateWithApple,authenticateWithOnairos,updateUserOnboardedStatus}from'../services/authService';function _0x1ebe(){const _0x361f83=['useAuth\x20must\x20be\x20used\x20within\x20an\x20AuthProvider','Failed\x20to\x20update\x20onboarded\x20status:','user','qbjDs','HXGRy','oTqaA','weNYt','Failed\x20to\x20fetch\x20user\x20profile:','403','user@onairos.com','true','Failed\x20to\x20load\x20authentication\x20state:','Apple\x20sign-in\x20failed:','yptdI','apple','onairos','authentication','User\x20logged\x20in\x20with\x20onboarded=false:','xpkxZ','lnHnC','HacqC','onairosUserId','lastConnectedAt','hasConnectedOnairos','🍎\x20Apple\x20sign-in\x20completed\x20-\x20auth_method\x20set\x20to\x20\x22apple\x22','CrAup','🔑\x20Onairos\x20sign-in\x20completed\x20-\x20auth_method\x20set\x20to\x20\x22onairos\x22','EoHDz','Failed\x20to\x20remove\x20user\x20data:','hUaHS','EwRmE','XtlFW','Failed\x20to\x20complete\x20onboarding:','ySLlT','qegfq','SdYrP','wmSxN','bidgg','6|2|4|1|5|0|3','onboardingCompleted','seDPn','vTqZR','ZIrQn','mzeIc','ySYeM','WtfNY','XYRrq','tChzS','AUcFE','getItem','nHGmH','tNTdK','log','WOcyr','parse','NQUqw','EesgT','mKGfi','error','vvmki','aJEOf','HRJal','QGLIG','LibGY','setItem','stringify','warn','🌐\x20Network\x20verification\x20failed,\x20using\x20local\x20token\x20validation:','💾\x20Network\x20unreachable,\x20trusting\x20local\x20authentication\x20state','VyVsS','message','EFlzC','includes','401','mupgR','yOMNY','🌐\x20Profile\x20fetch\x20failed\x20(likely\x20network),\x20keeping\x20authentication\x20state','offline_user','QmzrK','bAzwH','SxDob','njlHO','dCyVd','pfyqr','Failed\x20to\x20update\x20user\x20data:','DcQfQ','SsXpV','opJVc','email','name','sgOEp','Rsvyo','BopnS','TrpOV','token','kKtMS','XvfIO','JqHkM','hdCZK','wiOww','toString','FmKEo','uIGXE','GxQnf','oLbOk','🔗\x20No\x20Onairos\x20connection\x20info\x20from\x20backend,\x20defaulting\x20to\x20false','Onairos\x20User','gUMdg','tUJCG','bGWhP','XewJy','ifqsg','lLbsj','profilePicture','QTdhE','PauOx','tiAHm','VKkdj','sEdZg','GJCKY','vxoVU','sbhBt','xPTLf','pMkqD','HyhpV','yixgw','sZQHo','sNuUL','vBtAl','rwXZm','fkbZo','QtcQR','yKcpW','snAYl','WyRJm','ZCCDU','split','AVkLn','jSHAu','VAKnY','QJpPl','wuvPe','JGcSZ','Liahp','MUXNC','IibrU','JQeKT','PONkG','CUChi','Account\x20deleted\x20successfully','removeItem','jkQTM','createElement','Provider','QHruR','LrRBJ'];_0x1ebe=function(){return _0x361f83;};return _0x1ebe();}import{saveAuthState,clearUserData,getResumeTarget,markStepCompleted,updateLastScreen,isReturningUser,markEventPageReached,hasEventAccessToken}from'../services/storageService';const AuthContext=createContext(undefined);export const AuthProvider=({children:_0x1cb109})=>{const _0x1c1083={'XYRrq':_0x2c31(0x0),'tChzS':_0x2c31(0x1),'AUcFE':function(_0x5da1e7){return _0x5da1e7();},'nHGmH':_0x2c31(0x2),'tNTdK':function(_0x3e78d0,_0x3697b4){return _0x3e78d0===_0x3697b4;},'pIuGA':_0x2c31(0x3),'QtcQR':'🎯\x20Found\x20event\x20access\x20token\x20-\x20user\x20has\x20completed\x20onboarding,\x20authentication\x20confirmed','WOcyr':function(_0x341c93,_0x1f2ea2){return _0x341c93(_0x1f2ea2);},'mKGfi':_0x2c31(0x4),'vvmki':function(_0x369612,_0x20b55a){return _0x369612===_0x20b55a;},'ePDTc':_0x2c31(0x5),'HRJal':'🌐\x20Network\x20verification\x20failed,\x20using\x20local\x20token\x20validation:','QGLIG':'💾\x20Network\x20unreachable,\x20trusting\x20local\x20authentication\x20state','LibGY':_0x2c31(0x6),'TrpOV':function(_0x4be20d,_0xb10bf){return _0x4be20d(_0xb10bf);},'dCyVd':function(_0x243a55,_0x5ab821){return _0x243a55(_0x5ab821);},'VyVsS':_0x2c31(0x7),'EFlzC':function(_0x42a92b,_0x53ed40){return _0x42a92b(_0x53ed40);},'mupgR':_0x2c31(0x8),'yOMNY':function(_0x246837){return _0x246837();},'QmzrK':'Onairos\x20User','bAzwH':_0x2c31(0x9),'SxDob':function(_0x176908,_0x56e16c){return _0x176908(_0x56e16c);},'ySYeM':function(_0xa56363,_0x432bf3){return _0xa56363===_0x432bf3;},'njlHO':_0x2c31(0xa),'pfyqr':'kvlWp','DcQfQ':_0x2c31(0xb),'ZIrQn':'Failed\x20to\x20delete\x20account:','mzeIc':_0x2c31(0xc),'WtfNY':_0x2c31(0xd),'vTqZR':function(_0xd7d02b,_0x43a9f4){return _0xd7d02b(_0x43a9f4);},'JqHkM':function(_0x543519,_0xfa6933){return _0x543519!==_0xfa6933;},'opJVc':function(_0x5a5ee7,_0x4117d3){return _0x5a5ee7!==_0x4117d3;},'XvfIO':_0x2c31(0xe),'lLbsj':_0x2c31(0xf),'sgOEp':function(_0x51cf27,_0x140a65){return _0x51cf27(_0x140a65);},'Rsvyo':_0x2c31(0x10),'BopnS':_0x2c31(0x11),'rwXZm':'Failed\x20to\x20save\x20user\x20data:','usTCp':function(_0x534e3e,_0x26f076){return _0x534e3e(_0x26f076);},'kKtMS':'auth_method','hdCZK':_0x2c31(0x12),'wiOww':_0x2c31(0x13),'uIGXE':_0x2c31(0x14),'GxQnf':_0x2c31(0x15),'xTJJC':_0x2c31(0x16),'Ikfxk':_0x2c31(0x17),'VBlvl':'false','XewJy':function(_0x32caaa,_0x1a2748){return _0x32caaa(_0x1a2748);},'gUMdg':_0x2c31(0x18),'tUJCG':function(_0x2e6d8a,_0xa5e723){return _0x2e6d8a!==_0xa5e723;},'bGWhP':_0x2c31(0x19),'KXtcR':'usKoQ','GJCKY':function(_0x7d96eb,_0xb41c55){return _0x7d96eb(_0xb41c55);},'vxoVU':function(_0xce7f0,_0x4ed0cf){return _0xce7f0===_0x4ed0cf;},'ifqsg':function(_0x381f43,_0x30c17a){return _0x381f43(_0x30c17a);},'sbhBt':function(_0x118df6,_0x3ee1a1){return _0x118df6(_0x3ee1a1);},'QTdhE':function(_0x16a192,_0x299041){return _0x16a192(_0x299041);},'PauOx':_0x2c31(0x1a),'tiAHm':function(_0x1deae3,_0x2d0cac){return _0x1deae3!==_0x2d0cac;},'sEdZg':'VKkdj','xPTLf':function(_0xef8db8,_0x48c096){return _0xef8db8===_0x48c096;},'fLaaK':_0x2c31(0x1b),'SWwBj':function(_0x565db9,_0x56ec44){return _0x565db9(_0x56ec44);},'vmrrO':_0x2c31(0x1c),'yixgw':function(_0x3ecf74,_0x9ad1e6){return _0x3ecf74===_0x9ad1e6;},'sZQHo':_0x2c31(0x1d),'sNuUL':_0x2c31(0x1e),'WctOy':function(_0x233376){return _0x233376();},'vBtAl':_0x2c31(0x1f),'fkbZo':_0x2c31(0x20),'snAYl':'Onairos\x20sign-in\x20failed:','wIAki':function(_0x3c2eba,_0x17c640){return _0x3c2eba(_0x17c640);},'yKcpW':_0x2c31(0x21),'aIYJe':_0x2c31(0x22),'WyRJm':_0x2c31(0x23),'ZCCDU':'Failed\x20to\x20update\x20user\x20data:','JGcSZ':function(_0x5723ca,_0x53756a){return _0x5723ca(_0x53756a);},'QJpPl':_0x2c31(0x24),'wuvPe':function(_0x2b2152,_0x47e2f8){return _0x2b2152(_0x47e2f8);},'Liahp':'MUXNC','IibrU':function(_0x27821b,_0x2086b8){return _0x27821b!==_0x2086b8;},'JQeKT':_0x2c31(0x25),'PONkG':_0x2c31(0x26),'XUGsR':function(_0x27b421,_0x8b74b8){return _0x27b421(_0x8b74b8);},'GcAlh':function(_0x29aef8,_0x3b9cc6){return _0x29aef8(_0x3b9cc6);},'CUChi':function(_0x5a29e8){return _0x5a29e8();},'jkQTM':_0x2c31(0x27),'seDPn':function(_0x2b2f24,_0x42879f){return _0x2b2f24(_0x42879f);},'waCEG':function(_0xa51a83,_0x57743b,_0x2fdf5b){return _0xa51a83(_0x57743b,_0x2fdf5b);}},[_0x12ff62,_0x425f50]=_0x1c1083[_0x2c31(0x28)](useState,null),[_0x48e26d,_0x1d5556]=_0x1c1083[_0x2c31(0x29)](useState,!![]),[_0x4ee2fc,_0x248edc]=useState(![]),[_0x36b0af,_0x446908]=useState(![]);_0x1c1083['waCEG'](useEffect,()=>{const _0xe76316={'VTQKu':_0x1c1083[_0x2c31(0x2a)],'SsXpV':_0x1c1083[_0x2c31(0x2b)]};if(_0x1c1083[_0x2c31(0x2c)](_0x1c1083['WtfNY'],_0x1c1083[_0x2c31(0x2d)])){const _0x4fcb94=async()=>{const _0x3536c0={'NQUqw':_0x1c1083[_0x2c31(0x2e)],'myXcC':_0x1c1083[_0x2c31(0x2f)]};try{const _0x150fc7=await _0x1c1083[_0x2c31(0x30)](hasEventAccessToken),_0x159649=await AsyncStorage[_0x2c31(0x31)](_0x1c1083[_0x2c31(0x32)]);if(_0x150fc7&&_0x159649){if(_0x1c1083[_0x2c31(0x33)](_0x1c1083['pIuGA'],_0x1c1083['pIuGA'])){console[_0x2c31(0x34)](_0x1c1083['QtcQR']),_0x1c1083[_0x2c31(0x35)](_0x425f50,JSON[_0x2c31(0x36)](_0x159649)),_0x446908(!![]),_0x248edc(!![]),_0x1d5556(![]);return;}else throw new _0x59dfd0(_0x3536c0[_0x2c31(0x37)]);}const _0x4bc2b7=await getAuthToken();if(_0x4bc2b7){let _0x3ed5bb=![];try{if(_0x2c31(0x38)!==_0x1c1083[_0x2c31(0x39)])_0x3ed5bb=await _0x1c1083[_0x2c31(0x30)](verifyToken);else{_0x4505c1[_0x2c31(0x3a)](_0xe76316['VTQKu'],_0x4eb667);throw _0x1fa4e0;}}catch(_0x55f709){if(_0x1c1083[_0x2c31(0x3b)](_0x2c31(0x3c),_0x1c1083['ePDTc'])){_0x50190c[_0x2c31(0x3a)](_0x3536c0['myXcC'],_0x38885a);throw _0xab31a7;}else console['warn'](_0x1c1083[_0x2c31(0x3d)],_0x55f709),_0x159649&&(console[_0x2c31(0x34)](_0x1c1083[_0x2c31(0x3e)]),_0x3ed5bb=!![]);}if(_0x3ed5bb){if(_0x159649)_0x1c1083['WOcyr'](_0x425f50,JSON[_0x2c31(0x36)](_0x159649)),_0x446908(!![]);else try{if(_0x1c1083[_0x2c31(0x3f)]===_0x1c1083[_0x2c31(0x3f)]){const _0x4ade03=await _0x1c1083[_0x2c31(0x30)](getUserProfile);await AsyncStorage[_0x2c31(0x40)](_0x1c1083[_0x2c31(0x32)],JSON[_0x2c31(0x41)](_0x4ade03)),_0x1c1083['TrpOV'](_0x425f50,_0x4ade03),_0x1c1083['dCyVd'](_0x446908,!![]);}else _0x226a87[_0x2c31(0x42)](_0x2c31(0x43),_0x428d7c),_0x2c519d&&(_0x31ee57['log'](_0x2c31(0x44)),_0x31c7a6=!![]);}catch(_0x4f1ff0){console[_0x2c31(0x3a)](_0x1c1083[_0x2c31(0x45)],_0x4f1ff0);const _0xb37b5a=_0x4f1ff0 instanceof Error?_0x4f1ff0[_0x2c31(0x46)]:_0x1c1083[_0x2c31(0x47)](String,_0x4f1ff0);if(_0xb37b5a[_0x2c31(0x48)](_0x2c31(0x49))||_0xb37b5a['includes'](_0x1c1083[_0x2c31(0x4a)]))await _0x1c1083[_0x2c31(0x4b)](removeAuthToken);else{console[_0x2c31(0x34)](_0x2c31(0x4c));if(_0x4bc2b7){const _0x2a2b94={'id':_0x2c31(0x4d),'name':_0x1c1083[_0x2c31(0x4e)],'email':_0x1c1083[_0x2c31(0x4f)],'onboarded':![]};await AsyncStorage[_0x2c31(0x40)](_0x1c1083[_0x2c31(0x32)],JSON['stringify'](_0x2a2b94)),_0x1c1083[_0x2c31(0x47)](_0x425f50,_0x2a2b94),_0x1c1083[_0x2c31(0x50)](_0x446908,!![]);}}}}else await removeAuthToken();}const _0x27b4b9=await AsyncStorage[_0x2c31(0x31)]('onboardingCompleted');_0x1c1083[_0x2c31(0x2c)](_0x27b4b9,_0x1c1083[_0x2c31(0x51)])&&_0x1c1083[_0x2c31(0x52)](_0x248edc,!![]);}catch(_0x2e4084){_0x1c1083[_0x2c31(0x53)]!==_0x1c1083['pfyqr']?_0xfe0e14[_0x2c31(0x3a)](_0x2c31(0x54),_0x3b740e):console['error'](_0x1c1083[_0x2c31(0x55)],_0x2e4084);}finally{_0x1c1083[_0x2c31(0x50)](_0x1d5556,![]);}};_0x1c1083[_0x2c31(0x30)](_0x4fcb94);}else{_0x5d3d50[_0x2c31(0x3a)](_0xe76316[_0x2c31(0x56)],_0x378014);throw _0x1bff6d;}},[]);const _0x22f171=async _0x2b9797=>{try{var _0x2e471b;const _0x4d7a92={..._0x2b9797,'onboarded':![]};await AsyncStorage[_0x2c31(0x40)](_0x1c1083['nHGmH'],JSON[_0x2c31(0x41)](_0x4d7a92)),_0x425f50(_0x4d7a92),_0x1c1083[_0x2c31(0x35)](_0x446908,!![]),await _0x1c1083[_0x2c31(0x29)](saveAuthState,{'isAuthenticated':!![],'authMethod':_0x1c1083['JqHkM'](_0x2e471b=_0x2b9797['email'],null)&&_0x1c1083[_0x2c31(0x57)](_0x2e471b,void 0x0)&&_0x2e471b[_0x2c31(0x48)](_0x2c31(0xe))?_0x1c1083['XvfIO']:_0x1c1083['lLbsj'],'hasValidToken':!![],'userEmail':_0x2b9797[_0x2c31(0x58)],'userName':_0x2b9797[_0x2c31(0x59)]}),await _0x1c1083[_0x2c31(0x5a)](markStepCompleted,_0x1c1083[_0x2c31(0x5b)]),console[_0x2c31(0x34)](_0x1c1083[_0x2c31(0x5c)],_0x4d7a92);}catch(_0x361bcd){console[_0x2c31(0x3a)](_0x1c1083['rwXZm'],_0x361bcd);}},_0x20bc08=async _0x28b0fb=>{const _0x56e443={'oLbOk':_0x2c31(0x1c)};try{_0x1c1083['usTCp'](_0x1d5556,!![]);const _0x709c82=await _0x1c1083[_0x2c31(0x52)](authenticateWithApple,_0x28b0fb);await _0x1c1083[_0x2c31(0x5d)](saveAuthToken,_0x709c82[_0x2c31(0x5e)]),await AsyncStorage[_0x2c31(0x40)](_0x1c1083[_0x2c31(0x5f)],_0x1c1083[_0x2c31(0x60)]);_0x709c82[_0x2c31(0xf)]?_0x1c1083[_0x2c31(0x61)](_0x1c1083[_0x2c31(0x62)],_0x1c1083[_0x2c31(0x63)])?(await AsyncStorage[_0x2c31(0x40)](_0x2c31(0x17),_0x709c82[_0x2c31(0xf)][_0x2c31(0x17)][_0x2c31(0x64)]()),_0x709c82[_0x2c31(0xf)][_0x2c31(0x15)]&&(_0x2c31(0x65)===_0x1c1083[_0x2c31(0x66)]?(_0x967d81(_0x1155df[_0x2c31(0x36)](_0x59f7bc)),_0x1c1083[_0x2c31(0x5a)](_0x7795e6,!![])):await AsyncStorage[_0x2c31(0x40)](_0x1c1083[_0x2c31(0x67)],_0x709c82[_0x2c31(0xf)][_0x2c31(0x15)])),_0x709c82[_0x2c31(0xf)]['lastConnectedAt']&&await AsyncStorage[_0x2c31(0x40)](_0x1c1083['xTJJC'],_0x709c82[_0x2c31(0xf)][_0x2c31(0x16)]),console[_0x2c31(0x34)]('🔗\x20Stored\x20Onairos\x20connection\x20status:',_0x709c82[_0x2c31(0xf)][_0x2c31(0x17)])):_0x4631f8[_0x2c31(0x3a)](_0x56e443[_0x2c31(0x68)],_0xa5591):(await AsyncStorage[_0x2c31(0x40)](_0x1c1083['Ikfxk'],_0x1c1083['VBlvl']),console[_0x2c31(0x34)](_0x2c31(0x69)));const _0x45d7d7={'id':_0x709c82[_0x2c31(0x2)]['id'],'name':_0x709c82['user']['name']||_0x2c31(0x6a),'email':_0x709c82[_0x2c31(0x2)][_0x2c31(0x58)],'profilePicture':_0x709c82[_0x2c31(0x2)]['profilePicture'],'onboarded':![]};return await AsyncStorage[_0x2c31(0x40)](_0x2c31(0x2),JSON[_0x2c31(0x41)](_0x45d7d7)),_0x425f50(_0x45d7d7),_0x1c1083['XewJy'](_0x446908,!![]),console[_0x2c31(0x34)](_0x1c1083[_0x2c31(0x6b)]),_0x45d7d7;}catch(_0x43f535){console[_0x2c31(0x3a)](_0x1c1083[_0x2c31(0x2b)],_0x43f535);throw _0x43f535;}finally{_0x1c1083[_0x2c31(0x6c)](_0x1c1083[_0x2c31(0x6d)],_0x1c1083['KXtcR'])?_0x1d5556(![]):_0x1c1083['vTqZR'](_0x3b50fc,![]);}},_0x39c36e=async _0x5c1dde=>{try{_0x1c1083[_0x2c31(0x6e)](_0x1d5556,!![]);const _0x2a63d8=await _0x1c1083[_0x2c31(0x6f)](authenticateWithOnairos,_0x5c1dde);await _0x1c1083['sbhBt'](saveAuthToken,_0x2a63d8[_0x2c31(0x5e)]),await AsyncStorage[_0x2c31(0x40)](_0x1c1083[_0x2c31(0x5f)],_0x1c1083[_0x2c31(0x70)]);const _0x2c2818={'id':_0x2a63d8[_0x2c31(0x2)]['id'],'name':_0x2a63d8['user'][_0x2c31(0x59)]||_0x1c1083[_0x2c31(0x4e)],'email':_0x2a63d8[_0x2c31(0x2)][_0x2c31(0x58)],'profilePicture':_0x2a63d8['user'][_0x2c31(0x71)],'onboarded':![]};return await AsyncStorage[_0x2c31(0x40)](_0x1c1083[_0x2c31(0x32)],JSON[_0x2c31(0x41)](_0x2c2818)),_0x425f50(_0x2c2818),_0x1c1083[_0x2c31(0x72)](_0x446908,!![]),console['log'](_0x1c1083[_0x2c31(0x73)]),_0x2c2818;}catch(_0x1dbbd8){console[_0x2c31(0x3a)]('Onairos\x20sign-in\x20failed:',_0x1dbbd8);throw _0x1dbbd8;}finally{if(_0x1c1083[_0x2c31(0x74)](_0x2c31(0x75),_0x1c1083[_0x2c31(0x76)])){const _0x8c38a3=_0x1c1083[_0x2c31(0x77)](useContext,_0x195601);if(_0x1c1083[_0x2c31(0x78)](_0x8c38a3,_0x2dc11d))throw new _0x1fd9a3(_0x1c1083['XYRrq']);return _0x8c38a3;}else _0x1c1083[_0x2c31(0x79)](_0x1d5556,![]);}},_0x1aaf6f=async()=>{const _0x3e0c84={'HyhpV':function(_0x323a52,_0x4b5ce4){return _0x323a52(_0x4b5ce4);}};try{_0x1c1083[_0x2c31(0x7a)](_0x2c31(0x7b),_0x1c1083['fLaaK'])?_0x3e0c84[_0x2c31(0x7c)](_0xe27e78,![]):(await _0x1c1083[_0x2c31(0x30)](clearUserData),_0x425f50(null),_0x1c1083['SWwBj'](_0x446908,![]));}catch(_0x4d86cb){console[_0x2c31(0x3a)](_0x1c1083['vmrrO'],_0x4d86cb);}},_0x6079af=async _0x26699d=>{if(_0x1c1083[_0x2c31(0x7d)](_0x1c1083[_0x2c31(0x7e)],_0x1c1083[_0x2c31(0x7f)]))_0x704cf7[_0x2c31(0x34)](_0x2c31(0x44)),_0x5084ac=!![];else try{const _0x4ebcf1={..._0x12ff62,..._0x26699d};await AsyncStorage[_0x2c31(0x40)](_0x1c1083[_0x2c31(0x32)],JSON[_0x2c31(0x41)](_0x4ebcf1)),_0x425f50(_0x4ebcf1),await _0x1c1083['WctOy'](_0x54befb);}catch(_0x3b9b43){if(_0x1c1083['JqHkM'](_0x1c1083[_0x2c31(0x80)],_0x1c1083[_0x2c31(0x80)]))_0x46bdc5[_0x2c31(0x3a)](_0x1c1083[_0x2c31(0x81)],_0x40773e);else{console[_0x2c31(0x3a)](_0x1c1083[_0x2c31(0x82)],_0x3b9b43);throw _0x3b9b43;}}},_0xe0a58f=async _0x5e5d2f=>{const _0x5f495a={'AVkLn':function(_0x4b50a5,_0x1be0e0){return _0x1c1083['wIAki'](_0x4b50a5,_0x1be0e0);},'jSHAu':function(_0x3338f2,_0x17fa6d){return _0x3338f2(_0x17fa6d);},'VAKnY':_0x1c1083[_0x2c31(0x83)]};try{if(_0x1c1083['opJVc'](_0x1c1083[_0x2c31(0x84)],_0x1c1083['aIYJe'])){if(!_0x12ff62)return;const _0x34678a={..._0x12ff62,..._0x5e5d2f};await AsyncStorage['setItem'](_0x1c1083[_0x2c31(0x32)],JSON['stringify'](_0x34678a)),_0x1c1083['wIAki'](_0x425f50,_0x34678a);}else{_0x301a67[_0x2c31(0x3a)](_0x1c1083[_0x2c31(0x85)],_0x5586ef);throw _0x383efe;}}catch(_0x32386d){if(_0x1c1083[_0x2c31(0x78)](_0x1c1083[_0x2c31(0x86)],_0x1c1083[_0x2c31(0x86)]))console[_0x2c31(0x3a)](_0x1c1083[_0x2c31(0x87)],_0x32386d);else{const _0x5c641b='5|1|2|0|4|3'[_0x2c31(0x88)]('|');let _0x725aa4=0x0;while(!![]){switch(_0x5c641b[_0x725aa4++]){case'0':_0x3b3416(!![]);continue;case'1':_0x5f495a[_0x2c31(0x89)](_0x2a4d41,_0x18148b['parse'](_0x55e625));continue;case'2':_0xe647b(!![]);continue;case'3':return;case'4':_0x5f495a[_0x2c31(0x8a)](_0x564c01,![]);continue;case'5':_0x502b1b['log'](_0x5f495a[_0x2c31(0x8b)]);continue;}break;}}}},_0x54befb=async()=>{if(_0x1c1083[_0x2c31(0x78)](_0x1c1083[_0x2c31(0x8c)],_0x1c1083[_0x2c31(0x8c)]))try{_0x1d5556(!![]),await updateUserOnboardedStatus();if(_0x12ff62){const _0x1b045d={..._0x12ff62,'onboarded':!![]};await AsyncStorage[_0x2c31(0x40)](_0x1c1083[_0x2c31(0x32)],JSON[_0x2c31(0x41)](_0x1b045d)),_0x1c1083[_0x2c31(0x8d)](_0x425f50,_0x1b045d);}}catch(_0x7fd546){console['error'](_0x1c1083['tChzS'],_0x7fd546);throw _0x7fd546;}finally{_0x1c1083[_0x2c31(0x5a)](_0x1d5556,![]);}else _0x1c1083[_0x2c31(0x8e)](_0x1deabb,!![]);},_0x23f759=async()=>{if(_0x1c1083[_0x2c31(0x8f)]!==_0x2c31(0x90))_0x1c1083[_0x2c31(0x6f)](_0x11bff2,![]);else try{if(_0x1c1083[_0x2c31(0x91)](_0x1c1083[_0x2c31(0x92)],_0x1c1083[_0x2c31(0x92)])){_0x54b7fd[_0x2c31(0x3a)](_0x1c1083[_0x2c31(0x82)],_0x399ccf);throw _0x2fad27;}else{const _0xfc5d67=_0x1c1083[_0x2c31(0x93)]['split']('|');let _0x4d162d=0x0;while(!![]){switch(_0xfc5d67[_0x4d162d++]){case'0':_0x1c1083['XUGsR'](_0x248edc,![]);continue;case'1':_0x1c1083['GcAlh'](_0x425f50,null);continue;case'2':await _0x1c1083[_0x2c31(0x94)](removeAuthToken);continue;case'3':console[_0x2c31(0x34)](_0x2c31(0x95));continue;case'4':await AsyncStorage[_0x2c31(0x96)](_0x1c1083[_0x2c31(0x97)]);continue;case'5':_0x446908(![]);continue;case'6':await AsyncStorage[_0x2c31(0x96)](_0x1c1083[_0x2c31(0x32)]);continue;}break;}}}catch(_0x5f2321){console[_0x2c31(0x3a)](_0x1c1083[_0x2c31(0x2a)],_0x5f2321);throw _0x5f2321;}};return React[_0x2c31(0x98)](AuthContext[_0x2c31(0x99)],{'value':{'user':_0x12ff62,'isLoading':_0x48e26d,'hasCompletedOnboarding':_0x4ee2fc,'login':_0x22f171,'logout':_0x1aaf6f,'deleteAccount':_0x23f759,'completeOnboarding':_0x6079af,'updateUser':_0xe0a58f,'appleSignIn':_0x20bc08,'onairosSignIn':_0x39c36e,'isAuthenticated':_0x36b0af,'updateOnboardedStatus':_0x54befb,'getResumeTarget':getResumeTarget,'markStepCompleted':markStepCompleted,'updateLastScreen':updateLastScreen,'isReturningUser':isReturningUser,'markEventPageReached':markEventPageReached,'hasEventAccessToken':hasEventAccessToken}},_0x1cb109);};export const useAuth=()=>{const _0x445816={'QHruR':function(_0x174394,_0x163b6f){return _0x174394(_0x163b6f);},'LrRBJ':function(_0x4db7ba,_0x2b265a){return _0x4db7ba===_0x2b265a;},'wGekI':_0x2c31(0x0)},_0x15f6e9=_0x445816[_0x2c31(0x9a)](useContext,AuthContext);if(_0x445816[_0x2c31(0x9b)](_0x15f6e9,undefined))throw new Error(_0x445816['wGekI']);return _0x15f6e9;};
@@ -1 +1 @@
1
- import{useState,useEffect,useCallback}from'react';function _0x105d(){const _0x4a91ac=['🔍\x20No\x20user\x20available\x20for\x20fetching\x20connected\x20accounts','JQcvD','RyoMw','luShi','🚀\x20[HOOK]\x20Starting\x20connected\x20accounts\x20fetch\x20with\x20new\x20smart\x20API...','❌\x20[HOOK]\x20Error\x20fetching\x20connected\x20accounts:','Failed\x20to\x20load\x20connected\x20accounts','wEqXm','gFZcU','vzlGn','✅\x20[HOOK]\x20Account\x20removed\x20locally:','gYcVP','vXcua','sTHYl','SIhWo','GZcrH','AESVL','pbeOm','log','ItLaD','NESGa','DxoTf','ZHcQP','FeVYe','🚀\x20[HOOK]\x20User\x20info\x20available:','name','qLOsU','email','\x20accounts','NhArl','FTbaG','map','platform','toLowerCase','uOYma','uMgIE','Gfkyj','yWkxW','iTBBb','https://','.com/','some','✅\x20[HOOK]\x20Account\x20added\x20locally:','AfDeI','StxkA','NkfqY','GCKzV','NhaxC','hRGlr','soUTb','filter','TRJhL','ZFbDF','dUjri','cnRFh'];_0x105d=function(){return _0x4a91ac;};return _0x105d();}import{getConnectedAccountsSmart}from'../services/connectedAccountsService';function _0x3e3e(_0x105dfa,_0x3e3e5b){_0x105dfa=_0x105dfa-0x0;const _0x3ec73e=_0x105d();let _0x1926f0=_0x3ec73e[_0x105dfa];return _0x1926f0;}import{useAuth}from'../context/AuthContext';export const useConnectedAccounts=()=>{const _0x30f05a={'sTHYl':_0x3e3e(0x0),'vXcua':function(_0x1f55c0,_0x440ebb){return _0x1f55c0(_0x440ebb);},'RRLXu':function(_0x56666b,_0x57f90e){return _0x56666b!==_0x57f90e;},'mQnse':_0x3e3e(0x1),'SIhWo':'HUrXc','GZcrH':function(_0x282a0c,_0x3c629b){return _0x282a0c===_0x3c629b;},'AESVL':_0x3e3e(0x2),'pbeOm':_0x3e3e(0x3),'DxoTf':function(_0x571d69,_0x31a3a5){return _0x571d69(_0x31a3a5);},'ZHcQP':function(_0xa66d48,_0x2ed14c){return _0xa66d48(_0x2ed14c);},'FeVYe':_0x3e3e(0x4),'qLOsU':function(_0x4522e0,_0x2b18b6,_0x4c0f95,_0x177231){return _0x4522e0(_0x2b18b6,_0x4c0f95,_0x177231);},'NhArl':_0x3e3e(0x5),'FTbaG':_0x3e3e(0x6),'BLHAF':'🔄\x20[HOOK]\x20Refreshing\x20connected\x20accounts...','yWkxW':function(_0x5c99ee,_0xbe53d0){return _0x5c99ee===_0xbe53d0;},'iTBBb':_0x3e3e(0x7),'NkfqY':function(_0x27c282,_0x139779){return _0x27c282(_0x139779);},'GCKzV':_0x3e3e(0x8),'NhaxC':_0x3e3e(0x9),'soUTb':function(_0x2375c7,_0x4f2f2d){return _0x2375c7(_0x4f2f2d);},'dUjri':function(_0xe91542,_0x3d1b2c){return _0xe91542(_0x3d1b2c);},'cnRFh':_0x3e3e(0xa),'TRJhL':_0x3e3e(0xb),'ZFbDF':'fpelw','LdPVU':function(_0x13c6a1,_0x4a8842,_0x2341dd){return _0x13c6a1(_0x4a8842,_0x2341dd);},'uOYma':function(_0x1dec13,_0x4e0189,_0x5bede6){return _0x1dec13(_0x4e0189,_0x5bede6);},'uMgIE':function(_0x2b82c9,_0x57bdea,_0x1a175c){return _0x2b82c9(_0x57bdea,_0x1a175c);},'StxkA':function(_0x4214de,_0x280d40,_0x213f60){return _0x4214de(_0x280d40,_0x213f60);}},{user:_0x294792}=useAuth(),[_0x3d1489,_0x2bfbaf]=useState([]),[_0x432051,_0xb3104d]=_0x30f05a[_0x3e3e(0xc)](useState,!![]),[_0x56a7d7,_0x4eb685]=useState(null),_0x6dff12=_0x30f05a['LdPVU'](useCallback,async()=>{const _0x36c222={'ItLaD':_0x30f05a[_0x3e3e(0xd)],'NESGa':function(_0x3b20fe,_0x2ee754){return _0x30f05a[_0x3e3e(0xc)](_0x3b20fe,_0x2ee754);}};if(_0x30f05a['RRLXu'](_0x30f05a['mQnse'],_0x30f05a[_0x3e3e(0xe)])){if(!_0x294792){if(_0x30f05a[_0x3e3e(0xf)](_0x30f05a[_0x3e3e(0x10)],_0x30f05a[_0x3e3e(0x11)])){_0x1861b9[_0x3e3e(0x12)](_0x36c222[_0x3e3e(0x13)]),_0x36c222[_0x3e3e(0x14)](_0x49267c,![]);return;}else{console['log'](_0x30f05a[_0x3e3e(0xd)]),_0x30f05a[_0x3e3e(0x15)](_0xb3104d,![]);return;}}try{_0x30f05a['ZHcQP'](_0xb3104d,!![]),_0x30f05a[_0x3e3e(0x16)](_0x4eb685,null),console[_0x3e3e(0x12)](_0x30f05a[_0x3e3e(0x17)]),console[_0x3e3e(0x12)](_0x3e3e(0x18),{'email':_0x294792['email'],'id':_0x294792['id'],'name':_0x294792[_0x3e3e(0x19)]});const _0x3b7d2a=await _0x30f05a[_0x3e3e(0x1a)](getConnectedAccountsSmart,_0x294792[_0x3e3e(0x1b)],_0x294792['id'],_0x294792[_0x3e3e(0x19)]);console[_0x3e3e(0x12)]('✅\x20[HOOK]\x20Connected\x20accounts\x20loaded\x20via\x20smart\x20API:\x20'+_0x3b7d2a['length']+_0x3e3e(0x1c)),_0x30f05a[_0x3e3e(0xc)](_0x2bfbaf,_0x3b7d2a);}catch(_0x3db407){console['error'](_0x30f05a[_0x3e3e(0x1d)],_0x3db407),_0x30f05a[_0x3e3e(0x16)](_0x4eb685,_0x30f05a[_0x3e3e(0x1e)]);}finally{_0x30f05a[_0x3e3e(0xc)](_0xb3104d,![]);}}else return _0x593b2c[_0x3e3e(0x1f)](_0x534301=>_0x534301[_0x3e3e(0x20)][_0x3e3e(0x21)]()===_0x126ee9[_0x3e3e(0x21)]()?_0x28f1ed:_0x534301);},[_0x294792]),_0x4b3280=_0x30f05a[_0x3e3e(0x22)](useCallback,async()=>{console['log'](_0x30f05a['BLHAF']),await _0x6dff12();},[_0x6dff12]),_0x2dc4f6=_0x30f05a[_0x3e3e(0x23)](useCallback,(_0x27fdc9,_0x5cf5ae)=>{const _0x4a9a74={'fMKku':_0x3e3e(0x24),'nTqUW':function(_0x4c0a67,_0x2e9bea){return _0x30f05a[_0x3e3e(0x25)](_0x4c0a67,_0x2e9bea);},'AfDeI':_0x30f05a[_0x3e3e(0x26)]},_0x2c2613=_0x3e3e(0x27)+_0x27fdc9['toLowerCase']()+_0x3e3e(0x28)+_0x5cf5ae,_0x24630e={'platform':_0x27fdc9,'username':_0x5cf5ae,'url':_0x2c2613};_0x2bfbaf(_0x50f01b=>{const _0x19354f={'fgMEc':function(_0x262b5b,_0xe50123){return _0x262b5b(_0xe50123);}},_0x10291d=_0x50f01b[_0x3e3e(0x29)](_0xeb37de=>_0xeb37de[_0x3e3e(0x20)][_0x3e3e(0x21)]()===_0x27fdc9[_0x3e3e(0x21)]());if(_0x10291d){if('dUPYq'!==_0x4a9a74['fMKku'])return _0x50f01b['map'](_0x40eead=>_0x40eead[_0x3e3e(0x20)]['toLowerCase']()===_0x27fdc9[_0x3e3e(0x21)]()?_0x24630e:_0x40eead);else{const _0x5dcf31=_0x3e3e(0x27)+_0x35fb00[_0x3e3e(0x21)]()+'.com/'+_0x49a4f9,_0x550b3e={'platform':_0x3c383d,'username':_0x2b33f6,'url':_0x5dcf31};_0x19354f['fgMEc'](_0x2c64b5,_0x37d22d=>{const _0x3c11a5=_0x37d22d['some'](_0x3a94cc=>_0x3a94cc[_0x3e3e(0x20)][_0x3e3e(0x21)]()===_0x5669ed[_0x3e3e(0x21)]());return _0x3c11a5?_0x37d22d[_0x3e3e(0x1f)](_0x42e3c8=>_0x42e3c8[_0x3e3e(0x20)][_0x3e3e(0x21)]()===_0x414fa9[_0x3e3e(0x21)]()?_0x550b3e:_0x42e3c8):[..._0x37d22d,_0x550b3e];}),_0x317f29['log'](_0x3e3e(0x2a),_0x550b3e);}}else return _0x4a9a74['nTqUW'](_0x4a9a74[_0x3e3e(0x2b)],_0x4a9a74[_0x3e3e(0x2b)])?[..._0x50f01b,_0x24630e]:[..._0x141fea,_0x20d505];}),console[_0x3e3e(0x12)](_0x3e3e(0x2a),_0x24630e);},[]),_0x20a76a=_0x30f05a[_0x3e3e(0x2c)](useCallback,_0x39f473=>{const _0x125da8={'hRGlr':function(_0x249468,_0x8f3582){return _0x30f05a[_0x3e3e(0x2d)](_0x249468,_0x8f3582);}};_0x30f05a[_0x3e3e(0x2e)]===_0x30f05a[_0x3e3e(0x2f)]?_0x125da8[_0x3e3e(0x30)](_0x32abb4,![]):(_0x30f05a[_0x3e3e(0x31)](_0x2bfbaf,_0x5306da=>_0x5306da[_0x3e3e(0x32)](_0x97730d=>_0x97730d[_0x3e3e(0x20)][_0x3e3e(0x21)]()!==_0x39f473[_0x3e3e(0x21)]())),console[_0x3e3e(0x12)]('✅\x20[HOOK]\x20Account\x20removed\x20locally:',_0x39f473));},[]);return useEffect(()=>{_0x30f05a[_0x3e3e(0x33)]===_0x30f05a[_0x3e3e(0x34)]?(_0x30f05a[_0x3e3e(0x35)](_0x3098dd,_0x452c88=>_0x452c88['filter'](_0x1654f3=>_0x1654f3['platform'][_0x3e3e(0x21)]()!==_0x3f7b77[_0x3e3e(0x21)]())),_0x5cdfbc['log'](_0x30f05a[_0x3e3e(0x36)],_0x545861)):_0x6dff12();},[_0x6dff12]),{'connectedAccounts':_0x3d1489,'isLoading':_0x432051,'error':_0x56a7d7,'refreshAccounts':_0x4b3280,'addAccount':_0x2dc4f6,'removeAccount':_0x20a76a};};
1
+ import{useState,useEffect,useCallback}from'react';import{getConnectedAccountsSmart}from'../services/connectedAccountsService';import{useAuth}from'../context/AuthContext';function _0x3aab(){const _0x472462=['🔍\x20No\x20user\x20available\x20for\x20fetching\x20connected\x20accounts','🚀\x20[HOOK]\x20User\x20info\x20available:','❌\x20[HOOK]\x20Error\x20fetching\x20connected\x20accounts:','Failed\x20to\x20load\x20connected\x20accounts','hQTts','🔄\x20[HOOK]\x20Refreshing\x20connected\x20accounts...','rWnEJ','cmzku','✅\x20[HOOK]\x20Account\x20added\x20locally:','BDVDl','✅\x20[HOOK]\x20Account\x20removed\x20locally:','kkDPX','FkZkg','ZuAvg','log','WPGsn','qjXjb','Hcudz','🚀\x20[HOOK]\x20Starting\x20connected\x20accounts\x20fetch\x20with\x20new\x20smart\x20API...','email','✅\x20[HOOK]\x20Connected\x20accounts\x20loaded\x20via\x20smart\x20API:\x20','error','wRrnK','Wncgt','zNKIJ','SLsDF','roGHT','oqmDw','https://','toLowerCase','.com/','SsaiT','KDzKm','mWfkJ','map','platform','some','SfFdy','XEdqZ','IqnWa','GOTZG','iJOgG','WaUMM','tIAZM'];_0x3aab=function(){return _0x472462;};return _0x3aab();}function _0x1fd0(_0x3aabf3,_0x1fd030){_0x3aabf3=_0x3aabf3-0x0;const _0x5811df=_0x3aab();let _0x4ebe50=_0x5811df[_0x3aabf3];return _0x4ebe50;}export const useConnectedAccounts=()=>{const _0x4bc486={'WPGsn':_0x1fd0(0x0),'qjXjb':function(_0xf84b18,_0x27f1f1){return _0xf84b18(_0x27f1f1);},'Hcudz':function(_0x56f748,_0x2a5a3d){return _0x56f748(_0x2a5a3d);},'NAyhE':_0x1fd0(0x1),'wRrnK':_0x1fd0(0x2),'Wncgt':function(_0x2084e4,_0x55bf8d){return _0x2084e4(_0x55bf8d);},'GwQOO':_0x1fd0(0x3),'zNKIJ':function(_0x54b39f,_0x27875c){return _0x54b39f!==_0x27875c;},'SLsDF':_0x1fd0(0x4),'ZVscC':'CoLlH','roGHT':_0x1fd0(0x5),'tIAZM':function(_0x5f22e1){return _0x5f22e1();},'KDzKm':function(_0x5e9e2e,_0x421bce){return _0x5e9e2e(_0x421bce);},'mWfkJ':'KSvxG','SfFdy':function(_0x40922d,_0x326476){return _0x40922d===_0x326476;},'gNEmP':_0x1fd0(0x6),'XEdqZ':_0x1fd0(0x7),'SsaiT':function(_0x332985,_0x8bafae){return _0x332985(_0x8bafae);},'GOTZG':_0x1fd0(0x8),'lqlDN':function(_0x592afa,_0x19ff0a){return _0x592afa!==_0x19ff0a;},'oLRwA':_0x1fd0(0x9),'ApaEb':function(_0x589e2d,_0x22817b){return _0x589e2d(_0x22817b);},'iJOgG':_0x1fd0(0xa),'kkDPX':function(_0x3dabb2,_0x2a1fa1){return _0x3dabb2(_0x2a1fa1);},'FkZkg':function(_0x3b048e,_0x4ab39d){return _0x3b048e(_0x4ab39d);},'ZuAvg':function(_0x544338,_0x42c2bf,_0x417a6a){return _0x544338(_0x42c2bf,_0x417a6a);},'oqmDw':function(_0xb87ffb,_0x2d8435,_0x46ac1e){return _0xb87ffb(_0x2d8435,_0x46ac1e);},'WaUMM':function(_0x5404a4,_0x44d90a,_0x201a8c){return _0x5404a4(_0x44d90a,_0x201a8c);}},{user:_0x596aae}=useAuth(),[_0x1d7d29,_0x41f30f]=useState([]),[_0x256796,_0x7bacaa]=_0x4bc486[_0x1fd0(0xb)](useState,!![]),[_0x17b3c7,_0x3880b2]=_0x4bc486[_0x1fd0(0xc)](useState,null),_0x352955=_0x4bc486[_0x1fd0(0xd)](useCallback,async()=>{if(!_0x596aae){console[_0x1fd0(0xe)](_0x4bc486[_0x1fd0(0xf)]),_0x4bc486[_0x1fd0(0x10)](_0x7bacaa,![]);return;}try{_0x7bacaa(!![]),_0x4bc486[_0x1fd0(0x11)](_0x3880b2,null),console[_0x1fd0(0xe)](_0x1fd0(0x12)),console[_0x1fd0(0xe)](_0x4bc486['NAyhE'],{'email':_0x596aae[_0x1fd0(0x13)],'id':_0x596aae['id'],'name':_0x596aae['name']});const _0x21f4ad=await getConnectedAccountsSmart(_0x596aae[_0x1fd0(0x13)],_0x596aae['id'],_0x596aae['name']);console[_0x1fd0(0xe)](_0x1fd0(0x14)+_0x21f4ad['length']+'\x20accounts'),_0x4bc486[_0x1fd0(0x10)](_0x41f30f,_0x21f4ad);}catch(_0x5c71a5){console[_0x1fd0(0x15)](_0x4bc486[_0x1fd0(0x16)],_0x5c71a5),_0x4bc486[_0x1fd0(0x17)](_0x3880b2,_0x4bc486['GwQOO']);}finally{_0x4bc486[_0x1fd0(0x18)](_0x4bc486[_0x1fd0(0x19)],_0x4bc486['ZVscC'])?_0x4bc486[_0x1fd0(0x10)](_0x7bacaa,![]):_0x186d23();}},[_0x596aae]),_0x4764b8=_0x4bc486[_0x1fd0(0xd)](useCallback,async()=>{console[_0x1fd0(0xe)](_0x4bc486[_0x1fd0(0x1a)]),await _0x4bc486['tIAZM'](_0x352955);},[_0x352955]),_0x4d1820=_0x4bc486[_0x1fd0(0x1b)](useCallback,(_0x56d8e7,_0x4b9270)=>{const _0x36ab1c=_0x1fd0(0x1c)+_0x56d8e7[_0x1fd0(0x1d)]()+_0x1fd0(0x1e)+_0x4b9270,_0x2d33ed={'platform':_0x56d8e7,'username':_0x4b9270,'url':_0x36ab1c};_0x4bc486[_0x1fd0(0x1f)](_0x41f30f,_0x39fdbf=>{const _0xa4aa3c={'IqnWa':function(_0x3517bc,_0x1993bd){return _0x4bc486[_0x1fd0(0x20)](_0x3517bc,_0x1993bd);}};if(_0x4bc486[_0x1fd0(0x18)](_0x4bc486[_0x1fd0(0x21)],_0x4bc486[_0x1fd0(0x21)]))return _0x183838[_0x1fd0(0x22)](_0x309633=>_0x309633[_0x1fd0(0x23)]['toLowerCase']()===_0x33919e['toLowerCase']()?_0xdaddb8:_0x309633);else{const _0x5418e7=_0x39fdbf[_0x1fd0(0x24)](_0x1fa44c=>_0x1fa44c[_0x1fd0(0x23)][_0x1fd0(0x1d)]()===_0x56d8e7['toLowerCase']());if(_0x5418e7)return _0x39fdbf[_0x1fd0(0x22)](_0x3bbd8a=>_0x3bbd8a[_0x1fd0(0x23)]['toLowerCase']()===_0x56d8e7['toLowerCase']()?_0x2d33ed:_0x3bbd8a);else{if(_0x4bc486[_0x1fd0(0x25)](_0x4bc486['gNEmP'],_0x4bc486[_0x1fd0(0x26)])){const _0xe56619=_0x1fd0(0x1c)+_0x4b5aff[_0x1fd0(0x1d)]()+'.com/'+_0x231477,_0x272e38={'platform':_0x2c4b9b,'username':_0x4084d0,'url':_0xe56619};_0xa4aa3c[_0x1fd0(0x27)](_0x52d768,_0x49e95c=>{const _0x41776a=_0x49e95c[_0x1fd0(0x24)](_0x38cb17=>_0x38cb17[_0x1fd0(0x23)][_0x1fd0(0x1d)]()===_0x25e443['toLowerCase']());return _0x41776a?_0x49e95c[_0x1fd0(0x22)](_0x164e83=>_0x164e83['platform'][_0x1fd0(0x1d)]()===_0x2ad7b1['toLowerCase']()?_0x272e38:_0x164e83):[..._0x49e95c,_0x272e38];}),_0x368b7a[_0x1fd0(0xe)](_0x1fd0(0x8),_0x272e38);}else return[..._0x39fdbf,_0x2d33ed];}}}),console['log'](_0x4bc486[_0x1fd0(0x28)],_0x2d33ed);},[]),_0x3a2178=_0x4bc486[_0x1fd0(0x1b)](useCallback,_0x2745ab=>{if(_0x4bc486['lqlDN'](_0x4bc486['oLRwA'],_0x1fd0(0x9))){const _0x136f84=_0x782545[_0x1fd0(0x24)](_0x3409a8=>_0x3409a8[_0x1fd0(0x23)][_0x1fd0(0x1d)]()===_0x54f40f[_0x1fd0(0x1d)]());return _0x136f84?_0x11fc99[_0x1fd0(0x22)](_0x55a59e=>_0x55a59e[_0x1fd0(0x23)][_0x1fd0(0x1d)]()===_0x5d449b[_0x1fd0(0x1d)]()?_0x3c8042:_0x55a59e):[..._0x37897a,_0x9f885b];}else _0x4bc486['ApaEb'](_0x41f30f,_0x346535=>_0x346535['filter'](_0x3beb95=>_0x3beb95[_0x1fd0(0x23)]['toLowerCase']()!==_0x2745ab[_0x1fd0(0x1d)]())),console[_0x1fd0(0xe)](_0x4bc486[_0x1fd0(0x29)],_0x2745ab);},[]);return _0x4bc486[_0x1fd0(0x2a)](useEffect,()=>{_0x4bc486[_0x1fd0(0x2b)](_0x352955);},[_0x352955]),{'connectedAccounts':_0x1d7d29,'isLoading':_0x256796,'error':_0x17b3c7,'refreshAccounts':_0x4764b8,'addAccount':_0x4d1820,'removeAccount':_0x3a2178};};
@@ -1 +1 @@
1
- function _0x1036(_0x4f17c4,_0x1036c8){_0x4f17c4=_0x4f17c4-0x0;const _0x492235=_0x4f17();let _0x56ab54=_0x492235[_0x4f17c4];return _0x56ab54;}import{useState,useCallback}from'react';function _0x4f17(){const _0x341f99=['instagram','JmAri','ℹ️\x20NOTE:\x20Backend\x20sync\x20removed\x20from\x20SDK\x20-\x20app\x20should\x20call\x20/enoch/users/update\x20if\x20needed','KNCQq','SHqpr','QOWwN','lQumB','UlhOa','aJiRl','youtube','aDVtm','aTOPS','LYKCL','uJICI','vCqIH','DitDo','log','✅\x20Platform\x20','\x20connected\x20locally','ADICj','BOrjh','aGfIF','hpxml','Error\x20connecting\x20platform\x20','error','PtfEr','Error\x20disconnecting\x20platform\x20','szjGz','fhCBY','\x20disconnected\x20locally','zABkD','WTJHz','VHPNj','wAbXi'];_0x4f17=function(){return _0x341f99;};return _0x4f17();}import{initiateNativeAuth}from'../services/platformAuthService';export const useConnections=()=>{const _0x51cdaf={'lQumB':function(_0x408cc8,_0xf3e3c){return _0x408cc8(_0xf3e3c);},'UolSv':function(_0x52ddca,_0x546108){return _0x52ddca(_0x546108);},'aJiRl':function(_0x7eab1a,_0x28647c){return _0x7eab1a===_0x28647c;},'aDVtm':_0x1036(0x0),'aTOPS':function(_0x649bfb,_0x58a056,_0x254bf4){return _0x649bfb(_0x58a056,_0x254bf4);},'LYKCL':function(_0x22b8bb,_0x53b5b0){return _0x22b8bb!==_0x53b5b0;},'uJICI':'ueExZ','vCqIH':_0x1036(0x1),'DitDo':function(_0x393283,_0x15585d){return _0x393283(_0x15585d);},'ADICj':_0x1036(0x2),'WTJHz':function(_0x478538,_0x1b25c9){return _0x478538!==_0x1b25c9;},'hpxml':_0x1036(0x3),'oHbwZ':_0x1036(0x4),'PtfEr':function(_0x2e05e8,_0x11b16b){return _0x2e05e8(_0x11b16b);},'VHPNj':_0x1036(0x5),'szjGz':'fhCBY','zABkD':function(_0x596e8e,_0x5bf878){return _0x596e8e(_0x5bf878);},'wAbXi':'fRpcQ','UlhOa':function(_0x5d5b7f,_0x1c5aa7){return _0x5d5b7f(_0x1c5aa7);}},[_0x4e3082,_0x1428bf]=_0x51cdaf[_0x1036(0x6)](useState,{}),[_0x1bbada,_0x27673d]=_0x51cdaf[_0x1036(0x7)](useState,![]),_0x33618d=useCallback(async(_0x4c2426,_0x428ba8)=>{const _0x2999af={'BOrjh':function(_0x230c3b,_0x4ec7e3){return _0x51cdaf['lQumB'](_0x230c3b,_0x4ec7e3);}};try{_0x51cdaf['UolSv'](_0x27673d,!![]);const useNativeSDK=_0x51cdaf[_0x1036(0x8)](_0x4c2426,_0x1036(0x9))||_0x51cdaf[_0x1036(0x8)](_0x4c2426,_0x51cdaf[_0x1036(0xa)]);let _0x1446f3=![];useNativeSDK?_0x1446f3=await _0x51cdaf[_0x1036(0xb)](initiateNativeAuth,_0x4c2426,_0x428ba8):(await new Promise(_0x3dc168=>setTimeout(()=>_0x3dc168(undefined),0x3e8)),_0x1446f3=!![]);if(_0x1446f3)return _0x51cdaf[_0x1036(0xc)](_0x51cdaf[_0x1036(0xd)],_0x51cdaf[_0x1036(0xe)])?(_0x51cdaf[_0x1036(0xf)](_0x1428bf,_0x3cc764=>({..._0x3cc764,[_0x4c2426]:{'userName':_0x428ba8,'connected':!![]}})),console[_0x1036(0x10)](_0x1036(0x11)+_0x4c2426+_0x1036(0x12)),console[_0x1036(0x10)](_0x51cdaf[_0x1036(0x13)]),!![]):(_0x2999af[_0x1036(0x14)](_0x472a63,_0x44f5ba=>({..._0x44f5ba,[_0x5069b6]:{'userName':_0x9c4eb9,'connected':!![]}})),_0x200e38['log'](_0x1036(0x11)+_0x29813c+_0x1036(0x12)),_0x48fe0b[_0x1036(0x10)](_0x1036(0x2)),!![]);return![];}catch(_0x503f29){return _0x51cdaf['WTJHz'](_0x1036(0x15),_0x51cdaf[_0x1036(0x16)])?(console['error'](_0x1036(0x17)+_0x4c2426+':',_0x503f29),![]):(_0x8bbfcf[_0x1036(0x18)](_0x1036(0x17)+_0x583e09+':',_0x3e0b06),![]);}finally{if(_0x51cdaf[_0x1036(0x8)]('SHqpr',_0x51cdaf['oHbwZ']))_0x51cdaf[_0x1036(0x19)](_0x27673d,![]);else return _0xcd0f8e[_0x1036(0x18)](_0x1036(0x1a)+_0x72d36d+':',_0x155bbf),![];}},[]),_0x3d2184=_0x51cdaf[_0x1036(0xb)](useCallback,async(_0x19ed9e,_0x41d230)=>{try{return _0x51cdaf[_0x1036(0x1b)]!==_0x1036(0x1c)?(_0x51cdaf['DitDo'](_0x11ef85,_0x59824d=>{const _0x3d1d2c={..._0x59824d};return delete _0x3d1d2c[_0x174c0],_0x3d1d2c;}),_0x4b35a1[_0x1036(0x10)]('✅\x20Platform\x20'+_0x45729c+_0x1036(0x1d)),_0x17f847[_0x1036(0x10)](_0x51cdaf[_0x1036(0x13)]),!![]):(_0x51cdaf[_0x1036(0x1e)](_0x1428bf,_0x4549e4=>{if(_0x51cdaf[_0x1036(0x1f)](_0x51cdaf[_0x1036(0x20)],_0x51cdaf[_0x1036(0x20)])){const _0x2b57c0={..._0x2aece4};return delete _0x2b57c0[_0x263c46],_0x2b57c0;}else{const _0x1f3d5e={..._0x4549e4};return delete _0x1f3d5e[_0x19ed9e],_0x1f3d5e;}}),console['log'](_0x1036(0x11)+_0x19ed9e+_0x1036(0x1d)),console[_0x1036(0x10)](_0x51cdaf[_0x1036(0x13)]),!![]);}catch(_0x3c0e07){return console[_0x1036(0x18)](_0x1036(0x1a)+_0x19ed9e+':',_0x3c0e07),![];}},[]),_0x4dd05b=_0x51cdaf[_0x1036(0xb)](useCallback,async()=>{const _0x238f67={'EoSvK':function(_0x3bed87,_0x5eb0cb){return _0x51cdaf[_0x1036(0x6)](_0x3bed87,_0x5eb0cb);}};if(_0x51cdaf[_0x1036(0x21)]!==_0x51cdaf[_0x1036(0x21)])_0x238f67['EoSvK'](_0x33d15a,![]);else return _0x4e3082;},[_0x4e3082]);return{'connections':_0x4e3082,'connectPlatform':_0x33618d,'disconnectPlatform':_0x3d2184,'getConnectionStatus':_0x4dd05b,'isConnecting':_0x1bbada};};
1
+ import{useState,useCallback}from'react';import{initiateNativeAuth}from'../services/platformAuthService';function _0x5186(_0x29076f,_0x518650){_0x29076f=_0x29076f-0x0;const _0x1ceb47=_0x2907();let _0x150de0=_0x1ceb47[_0x29076f];return _0x150de0;}export const useConnections=()=>{const _0x2169eb={'Gbobc':_0x5186(0x0),'Tnwbz':_0x5186(0x1),'ScghD':function(_0x189658,_0x4bda92){return _0x189658(_0x4bda92);},'YwDzs':function(_0x2d4378,_0x3474be){return _0x2d4378===_0x3474be;},'APzvb':_0x5186(0x2),'WEEDb':'instagram','liKPh':function(_0x5ebb5a,_0x4abf8c,_0x129c32){return _0x5ebb5a(_0x4abf8c,_0x129c32);},'oCpOM':_0x5186(0x3),'gNzKK':function(_0x5cec39,_0x2913ea){return _0x5cec39(_0x2913ea);},'AzblQ':function(_0x4f3131,_0x3e8301){return _0x4f3131!==_0x3e8301;},'SMNhd':_0x5186(0x4),'miezK':function(_0x4c021d,_0x4b87ef){return _0x4c021d===_0x4b87ef;},'aPhwh':function(_0x22f5ec,_0x46146d){return _0x22f5ec===_0x46146d;},'MnTgk':_0x5186(0x5),'bgVny':'Mlhdl','ZLgcj':_0x5186(0x6),'EqFiF':function(_0x2b48f0,_0x105f57,_0x90e5cd){return _0x2b48f0(_0x105f57,_0x90e5cd);},'DTcaT':function(_0x3a565f,_0x47770d,_0x13c9a2){return _0x3a565f(_0x47770d,_0x13c9a2);}},[_0x291ac0,_0x75eed8]=_0x2169eb['ScghD'](useState,{}),[_0x245965,_0x483676]=useState(![]),_0x33cbda=_0x2169eb[_0x5186(0x7)](useCallback,async(_0x4dc31a,_0x5e61a7)=>{const _0x58d227={'RTJlT':function(_0x2f5a37,_0x212c27){return _0x2f5a37(_0x212c27);},'qYDkW':_0x2169eb['Gbobc']};if(_0x5186(0x8)!==_0x2169eb[_0x5186(0x9)])try{_0x2169eb[_0x5186(0xa)](_0x483676,!![]);const useNativeSDK=_0x2169eb[_0x5186(0xb)](_0x4dc31a,_0x2169eb['APzvb'])||_0x2169eb[_0x5186(0xb)](_0x4dc31a,_0x2169eb[_0x5186(0xc)]);let _0x20b241=![];useNativeSDK?_0x20b241=await _0x2169eb[_0x5186(0xd)](initiateNativeAuth,_0x4dc31a,_0x5e61a7):(await new Promise(_0x48b478=>setTimeout(()=>_0x48b478(undefined),0x3e8)),_0x20b241=!![]);if(_0x20b241)return _0x2169eb['YwDzs'](_0x2169eb[_0x5186(0xe)],_0x2169eb[_0x5186(0xe)])?(_0x2169eb[_0x5186(0xf)](_0x75eed8,_0x5d91c8=>({..._0x5d91c8,[_0x4dc31a]:{'userName':_0x5e61a7,'connected':!![]}})),console[_0x5186(0x10)](_0x5186(0x11)+_0x4dc31a+_0x5186(0x12)),console[_0x5186(0x10)](_0x2169eb[_0x5186(0x13)]),!![]):(_0x278abf(_0xaa84f=>{const _0x34b7c8={..._0xaa84f};return delete _0x34b7c8[_0x41014b],_0x34b7c8;}),_0x46b98a[_0x5186(0x10)](_0x5186(0x11)+_0x12436a+'\x20disconnected\x20locally'),_0x5a6048[_0x5186(0x10)]('ℹ️\x20NOTE:\x20Backend\x20sync\x20removed\x20from\x20SDK\x20-\x20app\x20should\x20call\x20/enoch/users/update\x20if\x20needed'),!![]);return![];}catch(_0x5bf9f8){return console[_0x5186(0x14)](_0x5186(0x15)+_0x4dc31a+':',_0x5bf9f8),![];}finally{if(_0x2169eb[_0x5186(0x16)](_0x2169eb['SMNhd'],_0x2169eb[_0x5186(0x17)]))return _0x1b9299[_0x5186(0x14)](_0x5186(0x18)+_0x2e34f1+':',_0x2fa1ec),![];else _0x483676(![]);}else try{return _0x58d227[_0x5186(0x19)](_0x36de12,_0x1d9784=>{const _0x377cdb={..._0x1d9784};return delete _0x377cdb[_0x18e26a],_0x377cdb;}),_0x2ac2b7['log']('✅\x20Platform\x20'+_0x18ca9d+_0x5186(0x1a)),_0x3fa20c[_0x5186(0x10)](_0x58d227[_0x5186(0x1b)]),!![];}catch(_0x196d63){return _0x4d8b3d[_0x5186(0x14)](_0x5186(0x18)+_0x60ec7b+':',_0x196d63),![];}},[]),_0x5dbfb0=_0x2169eb[_0x5186(0xd)](useCallback,async(_0x3ff950,_0xb37618)=>{try{return _0x2169eb['miezK'](_0x5186(0x1c),_0x5186(0x1c))?(_0x75eed8(_0x40b9af=>{const _0x177221={..._0x40b9af};return delete _0x177221[_0x3ff950],_0x177221;}),console['log'](_0x5186(0x11)+_0x3ff950+_0x5186(0x1a)),console[_0x5186(0x10)](_0x2169eb[_0x5186(0x13)]),!![]):(_0x4ec0b4[_0x5186(0x14)](_0x5186(0x15)+_0x25bac2+':',_0x4356f7),![]);}catch(_0x4bc068){return _0x2169eb[_0x5186(0x1d)](_0x2169eb[_0x5186(0x1e)],_0x2169eb[_0x5186(0x1f)])?_0x2dd6f4:(console[_0x5186(0x14)]('Error\x20disconnecting\x20platform\x20'+_0x3ff950+':',_0x4bc068),![]);}},[]),_0x1e3929=_0x2169eb[_0x5186(0x20)](useCallback,async()=>{if(_0x2169eb[_0x5186(0x21)]===_0x2169eb[_0x5186(0x21)])return _0x291ac0;else _0x2169eb[_0x5186(0xa)](_0x2515d4,![]);},[_0x291ac0]);return{'connections':_0x291ac0,'connectPlatform':_0x33cbda,'disconnectPlatform':_0x5dbfb0,'getConnectionStatus':_0x1e3929,'isConnecting':_0x245965};};function _0x2907(){const _0x28e9a8=['ℹ️\x20NOTE:\x20Backend\x20sync\x20removed\x20from\x20SDK\x20-\x20app\x20should\x20call\x20/enoch/users/update\x20if\x20needed','lbTee','youtube','pSMmg','yKtyn','EVfdF','zVcmb','EqFiF','PloBf','Tnwbz','ScghD','YwDzs','WEEDb','liKPh','oCpOM','gNzKK','log','✅\x20Platform\x20','\x20connected\x20locally','Gbobc','error','Error\x20connecting\x20platform\x20','AzblQ','SMNhd','Error\x20disconnecting\x20platform\x20','RTJlT','\x20disconnected\x20locally','qYDkW','apjAb','aPhwh','MnTgk','bgVny','DTcaT','ZLgcj'];_0x2907=function(){return _0x28e9a8;};return _0x2907();}
@@ -4,4 +4,4 @@ var __ONAIROS_REQ_REGISTRY__ = [
4
4
  require('react-native-keychain')
5
5
  ];
6
6
  function __ONAIROS_REQ_FUNC__(i) { return __ONAIROS_REQ_REGISTRY__[i]; }
7
- import{useCallback}from'react';import{STORAGE_KEYS}from'../constants';function _0x1fe3(_0xa88e9b,_0x1fe31f){_0xa88e9b=_0xa88e9b-0x0;const _0x54330b=_0xa88e();let _0x156a11=_0x54330b[_0xa88e9b];return _0x156a11;}import{API_CONFIG}from'../config/api';const mockCredentialStorage={};function _0xa88e(){const _0x261dd8=['warn','Keychain\x20access\x20failed,\x20using\x20mock\x20storage','default','mvxIj','function','YbZoL','ZUZpK','gKWAE','aKzJd','kmbYh','bfRTI','TVDSC','VFTpq','error','WRtJe','uRciR','service','GvWXB','abznD','GUSrN','ekZaT','ZivEv','BkUcT','PkIeO','DKlGe','setGenericPassword','HaIAs','RvGtS','JIGWi','getGenericPassword','RsYWC','MjYlJ','QUAoG','resetGenericPassword','cxPKM','LkEPZ','Error\x20checking\x20credentials:','siIXJ','fkjIW','WPfkf','DhnyD','Error\x20clearing\x20credentials:','SDrqc','TzWKb','mLLfo','jhJOA','ewcEo','TKZhk','wCWKO','GYpCY','ixDxZ','LgrqB','credentials','parse','password','Error\x20getting\x20credentials:','tTKzv','accessControl','BIOMETRY_ANY','ACCESSIBLE','WHEN_UNLOCKED','asBjD','stringify','toVXq','qUurH','PiODv','OqpdB','xGXAH','yiAsP','nOXDn','valid','Error\x20validating\x20credentials:'];_0xa88e=function(){return _0x261dd8;};return _0xa88e();}let Keychain=null;try{Keychain=__ONAIROS_REQ_FUNC__(0x0);}catch(_0x271248){console[_0x1fe3(0x0)]('react-native-keychain module not available in useCredentials, using mock storage');}const isKeychainAvailable=()=>{const _0x189004={'kheDz':_0x1fe3(0x1),'aKzJd':function(_0x3c1c6a,_0x2aaa7c){return _0x3c1c6a===_0x2aaa7c;},'BxbSB':_0x1fe3(0x2),'YbZoL':function(_0x1d0909,_0x5fbe7a){return _0x1d0909===_0x5fbe7a;},'ZUZpK':_0x1fe3(0x3),'gKWAE':_0x1fe3(0x4)};try{if(_0x189004[_0x1fe3(0x5)](_0x189004['ZUZpK'],_0x189004[_0x1fe3(0x6)]))return Keychain&&typeof Keychain['getGenericPassword']===_0x189004[_0x1fe3(0x7)];else{_0x1b0451[_0x1fe3(0x0)](_0x189004['kheDz'],_0x220c64);const _0x22e5f8=(_0x189004[_0x1fe3(0x8)](_0x3f5024,null)||_0x189004[_0x1fe3(0x8)](_0x46834e,void 0x0)?void 0x0:_0x50390a['service'])||_0x189004['BxbSB'];return _0x53c6b5[_0x22e5f8]={'username':_0x49f988,'password':_0x2c2033},!![];}}catch(_0x390dc8){return![];}},safeGetGenericPassword=async _0x26951a=>{const _0x52adac={'bfRTI':function(_0x1523c1){return _0x1523c1();},'WRtJe':function(_0x2eca03,_0x169d13){return _0x2eca03===_0x169d13;},'TVDSC':_0x1fe3(0x9),'VFTpq':'zzBjn','uRciR':function(_0x471ca4,_0x223ae7){return _0x471ca4===_0x223ae7;},'GvWXB':_0x1fe3(0x2),'abznD':'Keychain\x20access\x20failed,\x20using\x20mock\x20storage'};try{if(_0x52adac[_0x1fe3(0xa)](isKeychainAvailable))return _0x52adac['WRtJe'](_0x52adac[_0x1fe3(0xb)],_0x52adac[_0x1fe3(0xc)])?(_0x13e97f[_0x1fe3(0xd)]('Error\x20storing\x20credentials:',_0xcc312e),![]):await Keychain['getGenericPassword'](_0x26951a);else{const _0x30d707=(_0x52adac[_0x1fe3(0xe)](_0x26951a,null)||_0x52adac[_0x1fe3(0xf)](_0x26951a,void 0x0)?void 0x0:_0x26951a[_0x1fe3(0x10)])||_0x52adac[_0x1fe3(0x11)];return mockCredentialStorage[_0x30d707]||null;}}catch(_0x5a63cb){console[_0x1fe3(0x0)](_0x52adac[_0x1fe3(0x12)],_0x5a63cb);const _0x359e91=(_0x26951a===null||_0x26951a===void 0x0?void 0x0:_0x26951a[_0x1fe3(0x10)])||_0x52adac[_0x1fe3(0x11)];return mockCredentialStorage[_0x359e91]||null;}},safeSetGenericPassword=async(_0x140b2d,_0x2bb0ac,_0x3d5d93)=>{const _0x3b0305={'PkIeO':function(_0x26749a,_0x5e5eab){return _0x26749a===_0x5e5eab;},'JIGWi':function(_0xdf11da,_0x2b0c65){return _0xdf11da===_0x2b0c65;},'ZRVwd':_0x1fe3(0x4),'ZivEv':_0x1fe3(0x13),'BkUcT':_0x1fe3(0x14),'DKlGe':function(_0x4d82cf){return _0x4d82cf();},'WmLjB':function(_0xa735fc,_0x4d0456){return _0xa735fc===_0x4d0456;},'HaIAs':_0x1fe3(0x2),'PtLAQ':function(_0x51adce,_0x13575d){return _0x51adce!==_0x13575d;},'RvGtS':'EcFSc','RsYWC':_0x1fe3(0x1),'MjYlJ':function(_0xe5bc20,_0x5d31a6){return _0xe5bc20===_0x5d31a6;}};try{if(_0x3b0305['PkIeO'](_0x3b0305[_0x1fe3(0x15)],_0x3b0305[_0x1fe3(0x16)])){const _0x2cdcc8=(_0x3b0305[_0x1fe3(0x17)](_0x5150bb,null)||_0x527a0a===void 0x0?void 0x0:_0x9abfd1['service'])||_0x1fe3(0x2);return _0x588cdb[_0x2cdcc8]={'username':_0x51fe28,'password':_0x57fd8d},!![];}else{if(_0x3b0305[_0x1fe3(0x18)](isKeychainAvailable))return await Keychain[_0x1fe3(0x19)](_0x140b2d,_0x2bb0ac,_0x3d5d93);else{const _0x38a9c0=(_0x3b0305[_0x1fe3(0x17)](_0x3d5d93,null)||_0x3b0305['WmLjB'](_0x3d5d93,void 0x0)?void 0x0:_0x3d5d93[_0x1fe3(0x10)])||_0x3b0305[_0x1fe3(0x1a)];return mockCredentialStorage[_0x38a9c0]={'username':_0x140b2d,'password':_0x2bb0ac},!![];}}}catch(_0x7282c1){if(_0x3b0305['PtLAQ'](_0x3b0305[_0x1fe3(0x1b)],_0x3b0305[_0x1fe3(0x1b)]))return Keychain&&_0x3b0305[_0x1fe3(0x1c)](typeof Keychain[_0x1fe3(0x1d)],_0x3b0305['ZRVwd']);else{console[_0x1fe3(0x0)](_0x3b0305[_0x1fe3(0x1e)],_0x7282c1);const _0x3d8024=(_0x3b0305[_0x1fe3(0x1f)](_0x3d5d93,null)||_0x3d5d93===void 0x0?void 0x0:_0x3d5d93[_0x1fe3(0x10)])||_0x3b0305['HaIAs'];return mockCredentialStorage[_0x3d8024]={'username':_0x140b2d,'password':_0x2bb0ac},!![];}}},safeResetGenericPassword=async _0x373180=>{const _0x17aa85={'QUAoG':function(_0x19cd40){return _0x19cd40();},'cxPKM':function(_0x1f7c3c,_0x48cbce){return _0x1f7c3c===_0x48cbce;},'bDllR':_0x1fe3(0x2),'AHjUF':'Keychain\x20access\x20failed,\x20using\x20mock\x20storage','LkEPZ':function(_0x509437,_0x125f43){return _0x509437===_0x125f43;}};try{if(_0x17aa85[_0x1fe3(0x20)](isKeychainAvailable))return await Keychain[_0x1fe3(0x21)](_0x373180);else{const _0x359198=(_0x17aa85['cxPKM'](_0x373180,null)||_0x17aa85[_0x1fe3(0x22)](_0x373180,void 0x0)?void 0x0:_0x373180['service'])||_0x17aa85['bDllR'];return delete mockCredentialStorage[_0x359198],!![];}}catch(_0x206083){console['warn'](_0x17aa85['AHjUF'],_0x206083);const _0x383134=(_0x17aa85[_0x1fe3(0x22)](_0x373180,null)||_0x17aa85[_0x1fe3(0x23)](_0x373180,void 0x0)?void 0x0:_0x373180[_0x1fe3(0x10)])||_0x1fe3(0x2);return delete mockCredentialStorage[_0x383134],!![];}};export const useCredentials=()=>{const _0x644a12={'SDrqc':_0x1fe3(0x24),'GchYz':function(_0x565284,_0x2998a1){return _0x565284===_0x2998a1;},'ByBfc':_0x1fe3(0x25),'TzWKb':function(_0x32d3ef,_0x3c7d3e){return _0x32d3ef===_0x3c7d3e;},'mLLfo':_0x1fe3(0x26),'jhJOA':function(_0x176903,_0x2f7a6d){return _0x176903(_0x2f7a6d);},'ixDxZ':'default','wCWKO':function(_0xb19717,_0x42edb){return _0xb19717!==_0x42edb;},'GYpCY':_0x1fe3(0x27),'LgrqB':_0x1fe3(0x28),'tTKzv':function(_0x2ecd55){return _0x2ecd55();},'HTvTS':function(_0x1fbe77,_0x577e6c){return _0x1fbe77===_0x577e6c;},'asBjD':function(_0x4dffe5,_0x3b8e11,_0xcb5d34,_0x47bf2d){return _0x4dffe5(_0x3b8e11,_0xcb5d34,_0x47bf2d);},'tqjYq':'Error\x20storing\x20credentials:','toVXq':_0x1fe3(0x4),'qUurH':function(_0x2ab903,_0x12e6e1){return _0x2ab903(_0x12e6e1);},'PiODv':function(_0x31226e,_0x35fc56){return _0x31226e===_0x35fc56;},'xGXAH':_0x1fe3(0x29),'TKZhk':function(_0x160943,_0x1ae617,_0x5af918){return _0x160943(_0x1ae617,_0x5af918);},'wnExO':function(_0x72a709,_0xf7f0aa,_0x548674){return _0x72a709(_0xf7f0aa,_0x548674);}},_0x2738dd=_0x644a12['TKZhk'](useCallback,async()=>{const _0x25fa2f={'ewcEo':_0x644a12[_0x1fe3(0x2a)]};if(_0x644a12['GchYz'](_0x1fe3(0x25),_0x644a12['ByBfc']))try{if(_0x644a12[_0x1fe3(0x2b)](_0x644a12[_0x1fe3(0x2c)],_0x644a12[_0x1fe3(0x2c)])){const _0x24d2c9=await _0x644a12[_0x1fe3(0x2d)](safeGetGenericPassword,{'service':STORAGE_KEYS['credentials']});return!!_0x24d2c9;}else Keychain=_0x1a5e3f(0x0);}catch(_0x1791e5){return console['error'](_0x644a12['SDrqc'],_0x1791e5),![];}else return _0x2c1079[_0x1fe3(0xd)](_0x25fa2f[_0x1fe3(0x2e)],_0x3dcd0d),![];},[]),_0x4be229=_0x644a12[_0x1fe3(0x2f)](useCallback,async()=>{if(_0x644a12[_0x1fe3(0x30)](_0x644a12['GYpCY'],_0x644a12[_0x1fe3(0x31)])){const _0x73f0e7=(_0x644a12[_0x1fe3(0x2b)](_0x4bdf37,null)||_0x644a12['TzWKb'](_0x79e23f,void 0x0)?void 0x0:_0x1171b6['service'])||_0x644a12[_0x1fe3(0x32)];return delete _0x5dc0bf[_0x73f0e7],!![];}else try{if(_0x644a12[_0x1fe3(0x2b)](_0x644a12[_0x1fe3(0x33)],_0x644a12[_0x1fe3(0x33)])){const _0x4b4cfe=await safeGetGenericPassword({'service':STORAGE_KEYS[_0x1fe3(0x34)]});if(_0x4b4cfe)return JSON[_0x1fe3(0x35)](_0x4b4cfe[_0x1fe3(0x36)]);return null;}else _0x26be7a['error'](_0x1fe3(0x29),_0x27d9e0);}catch(_0xa2d04d){return console['error'](_0x1fe3(0x37),_0xa2d04d),null;}},[]),_0x144571=_0x644a12[_0x1fe3(0x2f)](useCallback,async(_0x21a214,_0x22629e,_0x5f511a)=>{try{const _0x51ab94={'service':STORAGE_KEYS[_0x1fe3(0x34)]};if(_0x644a12[_0x1fe3(0x38)](isKeychainAvailable)){var _0x281c9c,_0x205915;_0x51ab94[_0x1fe3(0x39)]=_0x644a12['HTvTS'](_0x281c9c=Keychain['ACCESS_CONTROL'],null)||_0x644a12[_0x1fe3(0x2b)](_0x281c9c,void 0x0)?void 0x0:_0x281c9c[_0x1fe3(0x3a)],_0x51ab94['accessible']=_0x644a12[_0x1fe3(0x2b)](_0x205915=Keychain[_0x1fe3(0x3b)],null)||_0x644a12[_0x1fe3(0x2b)](_0x205915,void 0x0)?void 0x0:_0x205915[_0x1fe3(0x3c)];}return await _0x644a12[_0x1fe3(0x3d)](safeSetGenericPassword,_0x21a214,JSON[_0x1fe3(0x3e)]({'userPin':_0x22629e,'accessToken':_0x5f511a}),_0x51ab94),!![];}catch(_0x1aed86){return console['error'](_0x644a12['tqjYq'],_0x1aed86),![];}},[]),_0x29b562=_0x644a12['wnExO'](useCallback,async()=>{const _0x1fc745={'yiAsP':function(_0x444cff,_0x1c9a8d){return _0x444cff===_0x1c9a8d;},'nOXDn':_0x644a12[_0x1fe3(0x3f)]};try{await _0x644a12[_0x1fe3(0x40)](safeResetGenericPassword,{'service':STORAGE_KEYS['credentials']});}catch(_0x1cd96e){if(_0x644a12[_0x1fe3(0x41)](_0x1fe3(0x42),_0x1fe3(0x42)))console[_0x1fe3(0xd)](_0x644a12[_0x1fe3(0x43)],_0x1cd96e);else try{return Keychain&&_0x1fc745[_0x1fe3(0x44)](typeof Keychain[_0x1fe3(0x1d)],_0x1fc745[_0x1fe3(0x45)]);}catch(_0x434a31){return![];}}},[]),_0x494b84=_0x644a12[_0x1fe3(0x2f)](useCallback,async _0x2a61f4=>{try{const _0x4c218d=await fetch(API_CONFIG['BASE_URL']+'/validate',{'method':'POST','headers':{'Content-Type':'application/json'},'body':JSON[_0x1fe3(0x3e)]({'username':_0x2a61f4})}),_0xe0cb6a=await _0x4c218d['json']();return{'success':!![],'isValid':_0xe0cb6a[_0x1fe3(0x46)],'credentials':_0xe0cb6a[_0x1fe3(0x34)]};}catch(_0x4c9de0){return console[_0x1fe3(0xd)](_0x1fe3(0x47),_0x4c9de0),{'success':![],'isValid':![]};}},[]);return{'hasCredentials':_0x2738dd,'getCredentials':_0x4be229,'storeCredentials':_0x144571,'clearCredentials':_0x29b562,'validateCredentials':_0x494b84};};
7
+ import{useCallback}from'react';function _0x1e93(_0x5915bb,_0x1e9330){_0x5915bb=_0x5915bb-0x0;const _0x216cd7=_0x5915();let _0x393641=_0x216cd7[_0x5915bb];return _0x393641;}function _0x5915(){const _0x3f97ba=['warn','Error\x20validating\x20credentials:','function','hQQFv','IkwjT','JHzqu','rUtan','SWAoC','BNEQR','error','ivmQd','fhtni','axMUB','default','JiAmF','GaTNv','lcRqS','fGNbx','JrbgK','service','accessControl','ACCESS_CONTROL','OupwR','BIOMETRY_ANY','accessible','ACCESSIBLE','WHEN_UNLOCKED','KabVx','Keychain\x20access\x20failed,\x20using\x20mock\x20storage','LuiGE','setGenericPassword','Sgsbr','qybjZ','anSXq','GMlWI','wCfdt','zUspp','sTkoC','mstSo','Ylbgy','onZEB','wMGOv','resetGenericPassword','RDQFx','RbKAF','cOXxX','MccQB','Error\x20storing\x20credentials:','SpAWp','iAbmX','PEuBM','Error\x20checking\x20credentials:','NuWYl','fdMsE','zZTLT','Error\x20getting\x20credentials:','YDLKy','keITX','zszTj','Error\x20clearing\x20credentials:','FBhdW','FFDpp','TQzKs','YcIEe','URESh','credentials','ofSrS','FiKUl','olQGC','trKCB','DzuzO','Gvnph','parse','ieqnh','bRvRJ','rdfdr','pYoMx','fOIpU','vaBHa','khdsv','tPFql','nOoNa','IOdIQ','nAsfN','RuLFy','jCGVd','dvfAw','rjDHO','stringify','ODogm','GDHoS','udORw','sepPq','YmEEG','dGSBc','pGAKG','lPjWS','ZjvJl','jrDyE','BASE_URL','valid','uDGTT','LfcnL','Ppubq','getGenericPassword'];_0x5915=function(){return _0x3f97ba;};return _0x5915();}import{STORAGE_KEYS}from'../constants';import{API_CONFIG}from'../config/api';const mockCredentialStorage={};let Keychain=null;try{Keychain=__ONAIROS_REQ_FUNC__(0x0);}catch(_0x511bd7){console[_0x1e93(0x0)]('react-native-keychain module not available in useCredentials, using mock storage');}const isKeychainAvailable=()=>{const _0x49c5c2={'ivmQd':_0x1e93(0x1),'IkwjT':function(_0x31259e,_0x304723){return _0x31259e===_0x304723;},'JHzqu':_0x1e93(0x2),'rUtan':function(_0x3f3f8b,_0xa42b6b){return _0x3f3f8b===_0xa42b6b;},'BNEQR':_0x1e93(0x3)};try{return Keychain&&_0x49c5c2[_0x1e93(0x4)](typeof Keychain['getGenericPassword'],_0x49c5c2[_0x1e93(0x5)]);}catch(_0x3b4083){return _0x49c5c2[_0x1e93(0x6)](_0x1e93(0x7),_0x49c5c2[_0x1e93(0x8)])?(_0x4ba26c[_0x1e93(0x9)](_0x49c5c2[_0x1e93(0xa)],_0x58edf5),{'success':![],'isValid':![]}):![];}},safeGetGenericPassword=async _0x49ce50=>{const _0x44dddd={'OupwR':function(_0x2c0107,_0x14b323){return _0x2c0107===_0x14b323;},'JiAmF':function(_0x303af9){return _0x303af9();},'GaTNv':function(_0x1a1f4d,_0x1650bd){return _0x1a1f4d!==_0x1650bd;},'lcRqS':_0x1e93(0xb),'nkUef':_0x1e93(0xc),'fGNbx':function(_0x22bc2f,_0x75521e){return _0x22bc2f===_0x75521e;},'JrbgK':function(_0x5f5369,_0x2102f2){return _0x5f5369===_0x2102f2;},'kpJxp':_0x1e93(0xd)};try{if(_0x44dddd[_0x1e93(0xe)](isKeychainAvailable))return await Keychain['getGenericPassword'](_0x49ce50);else{if(_0x44dddd[_0x1e93(0xf)](_0x44dddd[_0x1e93(0x10)],_0x44dddd['nkUef'])){const _0x101f7c=(_0x44dddd[_0x1e93(0x11)](_0x49ce50,null)||_0x44dddd[_0x1e93(0x12)](_0x49ce50,void 0x0)?void 0x0:_0x49ce50[_0x1e93(0x13)])||_0x1e93(0xd);return mockCredentialStorage[_0x101f7c]||null;}else{var _0x4989b0,_0x48929e;_0x456d98[_0x1e93(0x14)]=(_0x4989b0=Keychain[_0x1e93(0x15)])===null||_0x44dddd[_0x1e93(0x16)](_0x4989b0,void 0x0)?void 0x0:_0x4989b0[_0x1e93(0x17)],_0x20b7ac[_0x1e93(0x18)]=(_0x48929e=Keychain[_0x1e93(0x19)])===null||_0x48929e===void 0x0?void 0x0:_0x48929e[_0x1e93(0x1a)];}}}catch(_0x371bd8){console[_0x1e93(0x0)]('Keychain\x20access\x20failed,\x20using\x20mock\x20storage',_0x371bd8);const _0x327e7d=(_0x44dddd[_0x1e93(0x12)](_0x49ce50,null)||_0x44dddd[_0x1e93(0x11)](_0x49ce50,void 0x0)?void 0x0:_0x49ce50[_0x1e93(0x13)])||_0x44dddd['kpJxp'];return mockCredentialStorage[_0x327e7d]||null;}},safeSetGenericPassword=async(_0x53c6ee,_0x43aacc,_0x2a7006)=>{const _0x4656a4={'qybjZ':function(_0x34dd9e,_0x55b315){return _0x34dd9e===_0x55b315;},'LuiGE':function(_0x52f3ba){return _0x52f3ba();},'Sgsbr':function(_0xadf996,_0x60710c){return _0xadf996===_0x60710c;},'anSXq':_0x1e93(0xd),'XNoiW':function(_0x13c6ed,_0x1cbe3a){return _0x13c6ed!==_0x1cbe3a;},'wCfdt':_0x1e93(0x1b),'zUspp':_0x1e93(0x1c),'sTkoC':function(_0x272603,_0x3d2b81){return _0x272603===_0x3d2b81;},'mstSo':function(_0x2ec42f,_0x32a013){return _0x2ec42f===_0x32a013;}};try{if(_0x4656a4[_0x1e93(0x1d)](isKeychainAvailable))return await Keychain[_0x1e93(0x1e)](_0x53c6ee,_0x43aacc,_0x2a7006);else{const _0x3f46b9=(_0x4656a4[_0x1e93(0x1f)](_0x2a7006,null)||_0x4656a4[_0x1e93(0x20)](_0x2a7006,void 0x0)?void 0x0:_0x2a7006[_0x1e93(0x13)])||_0x4656a4[_0x1e93(0x21)];return mockCredentialStorage[_0x3f46b9]={'username':_0x53c6ee,'password':_0x43aacc},!![];}}catch(_0x15a370){if(_0x4656a4['XNoiW'](_0x1e93(0x22),_0x4656a4[_0x1e93(0x23)])){console[_0x1e93(0x0)](_0x4656a4[_0x1e93(0x24)],_0x15a370);const _0xb130b9=(_0x4656a4[_0x1e93(0x25)](_0x2a7006,null)||_0x4656a4[_0x1e93(0x26)](_0x2a7006,void 0x0)?void 0x0:_0x2a7006[_0x1e93(0x13)])||_0x1e93(0xd);return mockCredentialStorage[_0xb130b9]={'username':_0x53c6ee,'password':_0x43aacc},!![];}else{const _0x5eb284=(_0x4656a4[_0x1e93(0x20)](_0x370e87,null)||_0x4656a4[_0x1e93(0x20)](_0x3023b9,void 0x0)?void 0x0:_0x29407b[_0x1e93(0x13)])||_0x1e93(0xd);return _0x48299c[_0x5eb284]||null;}}},safeResetGenericPassword=async _0x4b0e35=>{const _0x2d21c6={'wMGOv':function(_0x5c3a76){return _0x5c3a76();},'RDQFx':function(_0x35162f,_0xec9e44){return _0x35162f!==_0xec9e44;},'RbKAF':_0x1e93(0x27),'SpAWp':function(_0x5873f2,_0x5798c2){return _0x5873f2===_0x5798c2;},'cOXxX':_0x1e93(0xd),'Wjldj':_0x1e93(0x28),'MccQB':'IWeod','XeNpo':'Keychain\x20access\x20failed,\x20using\x20mock\x20storage'};try{if(_0x2d21c6[_0x1e93(0x29)](isKeychainAvailable))return await Keychain[_0x1e93(0x2a)](_0x4b0e35);else{if(_0x2d21c6[_0x1e93(0x2b)](_0x2d21c6[_0x1e93(0x2c)],'WqMjr')){const _0x3d9e8b=(_0x2d21c6['SpAWp'](_0x4b0e35,null)||_0x2d21c6['SpAWp'](_0x4b0e35,void 0x0)?void 0x0:_0x4b0e35['service'])||_0x2d21c6[_0x1e93(0x2d)];return delete mockCredentialStorage[_0x3d9e8b],!![];}else{const _0xb9122f=(_0x2c0772===null||_0x19994e===void 0x0?void 0x0:_0x6deb54[_0x1e93(0x13)])||_0x1e93(0xd);return delete _0x2515b8[_0xb9122f],!![];}}}catch(_0x3a8c79){if(_0x2d21c6['Wjldj']===_0x2d21c6[_0x1e93(0x2e)])return _0x4f4bf4['error'](_0x1e93(0x2f),_0x65603a),![];else{console[_0x1e93(0x0)](_0x2d21c6['XeNpo'],_0x3a8c79);const _0x5a81c0=(_0x2d21c6[_0x1e93(0x30)](_0x4b0e35,null)||_0x2d21c6['SpAWp'](_0x4b0e35,void 0x0)?void 0x0:_0x4b0e35[_0x1e93(0x13)])||_0x2d21c6[_0x1e93(0x2d)];return delete mockCredentialStorage[_0x5a81c0],!![];}}};export const useCredentials=()=>{const _0x318607={'FiKUl':function(_0x3d6da3,_0x5213f9){return _0x3d6da3===_0x5213f9;},'olQGC':function(_0x433bad,_0x5e089f){return _0x433bad===_0x5e089f;},'tPFql':_0x1e93(0xd),'TQzKs':function(_0x1d6483,_0x33c46c){return _0x1d6483!==_0x33c46c;},'YcIEe':_0x1e93(0x31),'URESh':function(_0x595e7b,_0x45681c){return _0x595e7b(_0x45681c);},'ofSrS':_0x1e93(0x32),'fOIpU':_0x1e93(0x33),'trKCB':'aKQrw','DzuzO':_0x1e93(0x34),'Gvnph':function(_0x36906e,_0x404e76){return _0x36906e(_0x404e76);},'ieqnh':function(_0x571d6f,_0x16504e){return _0x571d6f!==_0x16504e;},'bRvRJ':_0x1e93(0x35),'rdfdr':_0x1e93(0x36),'pYoMx':_0x1e93(0x37),'khdsv':_0x1e93(0x1c),'nOoNa':function(_0x271be4,_0x547cb0){return _0x271be4===_0x547cb0;},'IOdIQ':function(_0x24c465,_0x14595e){return _0x24c465===_0x14595e;},'nAsfN':_0x1e93(0x38),'XSQGQ':'SqvXh','jCGVd':function(_0x699d9c){return _0x699d9c();},'dvfAw':function(_0x299487,_0x1e3418){return _0x299487===_0x1e3418;},'rjDHO':function(_0x321ace,_0x102a1a,_0xdfd947,_0x154cb2){return _0x321ace(_0x102a1a,_0xdfd947,_0x154cb2);},'Nuqvx':_0x1e93(0x2f),'tjuPl':function(_0x47644c,_0x4fffe2){return _0x47644c===_0x4fffe2;},'YmEEG':_0x1e93(0x39),'dGSBc':_0x1e93(0x3a),'pGAKG':function(_0x3fb6f5,_0x1136e7){return _0x3fb6f5(_0x1136e7);},'lPjWS':_0x1e93(0x3b),'DIvND':function(_0x5e47fe,_0xbaf446){return _0x5e47fe===_0xbaf446;},'gjZUo':_0x1e93(0x3c),'ZjvJl':'cadDB','vaBHa':function(_0x586837,_0x5062f3,_0x1f2484){return _0x586837(_0x5062f3,_0x1f2484);},'uDGTT':function(_0x477c8a,_0x386223){return _0x477c8a!==_0x386223;},'ikyfM':'kEiCT','LfcnL':_0x1e93(0x3d),'Ppubq':_0x1e93(0x1),'sepPq':function(_0x578498,_0x122785,_0x9b0a1f){return _0x578498(_0x122785,_0x9b0a1f);}},_0x18b4dc=_0x318607['vaBHa'](useCallback,async()=>{try{if(_0x318607[_0x1e93(0x3e)]('iAbmX',_0x318607[_0x1e93(0x3f)]))_0x3e3919[_0x1e93(0x0)]('react-native-keychain module not available in useCredentials, using mock storage');else{const _0x51eb40=await _0x318607[_0x1e93(0x40)](safeGetGenericPassword,{'service':STORAGE_KEYS[_0x1e93(0x41)]});return!!_0x51eb40;}}catch(_0x245648){if(_0x318607[_0x1e93(0x3e)](_0x318607[_0x1e93(0x42)],_0x318607['ofSrS'])){const _0x2a0de0=(_0x318607[_0x1e93(0x43)](_0x112471,null)||_0x318607[_0x1e93(0x44)](_0x30fd1b,void 0x0)?void 0x0:_0x357c1e[_0x1e93(0x13)])||_0x318607['tPFql'];return _0x2fc9cb[_0x2a0de0]={'username':_0x2cc2dd,'password':_0xd6aa5b},!![];}else return console['error'](_0x1e93(0x33),_0x245648),![];}},[]),_0xd32b36=useCallback(async()=>{if(_0x318607[_0x1e93(0x43)](_0x318607[_0x1e93(0x45)],_0x318607[_0x1e93(0x46)]))Keychain=_0x41bb47(0x0);else try{const _0x2a372f=await _0x318607[_0x1e93(0x47)](safeGetGenericPassword,{'service':STORAGE_KEYS[_0x1e93(0x41)]});if(_0x2a372f)return JSON[_0x1e93(0x48)](_0x2a372f['password']);return null;}catch(_0x13088b){return _0x318607[_0x1e93(0x49)](_0x318607[_0x1e93(0x4a)],_0x318607[_0x1e93(0x4b)])?(console[_0x1e93(0x9)](_0x318607[_0x1e93(0x4c)],_0x13088b),null):(_0x49b523[_0x1e93(0x9)](_0x318607[_0x1e93(0x4d)],_0x1d48e8),![]);}},[]),_0x2d77f1=_0x318607[_0x1e93(0x4e)](useCallback,async(_0x4d04a0,_0x136822,_0x3484da)=>{const _0x1ee7c5={'RuLFy':_0x318607[_0x1e93(0x4f)],'udORw':_0x318607[_0x1e93(0x50)],'GDHoS':function(_0x2d11b1,_0x4b3fb5){return _0x318607[_0x1e93(0x51)](_0x2d11b1,_0x4b3fb5);}};try{if(_0x318607[_0x1e93(0x52)](_0x318607[_0x1e93(0x53)],_0x318607['XSQGQ'])){_0x16dafa[_0x1e93(0x0)](_0x1ee7c5[_0x1e93(0x54)],_0x4b6ffc);const _0x165858=(_0x3e7679===null||_0x584811===void 0x0?void 0x0:_0x245480[_0x1e93(0x13)])||_0x1ee7c5['udORw'];return _0x1f4ffa[_0x165858]={'username':_0x3018b3,'password':_0x610fbd},!![];}else{const _0x163442={'service':STORAGE_KEYS[_0x1e93(0x41)]};if(_0x318607[_0x1e93(0x55)](isKeychainAvailable)){var _0x28a6e3,_0x5393b9;_0x163442[_0x1e93(0x14)]=_0x318607[_0x1e93(0x52)](_0x28a6e3=Keychain['ACCESS_CONTROL'],null)||_0x28a6e3===void 0x0?void 0x0:_0x28a6e3[_0x1e93(0x17)],_0x163442[_0x1e93(0x18)]=_0x318607[_0x1e93(0x43)](_0x5393b9=Keychain['ACCESSIBLE'],null)||_0x318607[_0x1e93(0x56)](_0x5393b9,void 0x0)?void 0x0:_0x5393b9[_0x1e93(0x1a)];}return await _0x318607[_0x1e93(0x57)](safeSetGenericPassword,_0x4d04a0,JSON[_0x1e93(0x58)]({'userPin':_0x136822,'accessToken':_0x3484da}),_0x163442),!![];}}catch(_0x2d9ccd){if(_0x1e93(0x59)!==_0x1e93(0x59)){_0x1daea4[_0x1e93(0x0)](_0x1e93(0x1c),_0x581aca);const _0x564a25=(_0x1ee7c5[_0x1e93(0x5a)](_0x4ed4df,null)||_0x1ee7c5[_0x1e93(0x5a)](_0x1fff9a,void 0x0)?void 0x0:_0x145acb[_0x1e93(0x13)])||_0x1ee7c5[_0x1e93(0x5b)];return delete _0x1b5497[_0x564a25],!![];}else return console['error'](_0x318607['Nuqvx'],_0x2d9ccd),![];}},[]),_0x551f43=_0x318607[_0x1e93(0x5c)](useCallback,async()=>{const _0x556435={'jiNlK':_0x1e93(0x1c),'byMgV':function(_0x4d6a4b,_0x45bee3){return _0x318607['tjuPl'](_0x4d6a4b,_0x45bee3);}};if(_0x318607[_0x1e93(0x49)](_0x318607[_0x1e93(0x5d)],_0x318607[_0x1e93(0x5d)]))return![];else try{if(_0x1e93(0x3a)!==_0x318607[_0x1e93(0x5e)]){_0x3b480d[_0x1e93(0x0)](_0x556435['jiNlK'],_0x123168);const _0x51f930=(_0x556435['byMgV'](_0xbc1676,null)||_0x3e4c51===void 0x0?void 0x0:_0x32fe92[_0x1e93(0x13)])||_0x1e93(0xd);return _0x4cd49a[_0x51f930]||null;}else await _0x318607[_0x1e93(0x5f)](safeResetGenericPassword,{'service':STORAGE_KEYS[_0x1e93(0x41)]});}catch(_0x7ec61a){console[_0x1e93(0x9)](_0x318607[_0x1e93(0x60)],_0x7ec61a);}},[]),_0x4b848c=useCallback(async _0x2e58a4=>{const _0x2fc707={'jrDyE':function(_0x380a45,_0xf5db02){return _0x318607['DIvND'](_0x380a45,_0xf5db02);},'zUaeR':function(_0x55b92a,_0x170a4a){return _0x55b92a===_0x170a4a;}};if(_0x318607['tjuPl'](_0x318607['gjZUo'],_0x318607[_0x1e93(0x61)]))return Keychain&&_0x2fc707[_0x1e93(0x62)](typeof Keychain['getGenericPassword'],_0x1e93(0x2));else try{const _0x5e734c=await _0x318607[_0x1e93(0x4e)](fetch,API_CONFIG[_0x1e93(0x63)]+'/validate',{'method':'POST','headers':{'Content-Type':'application/json'},'body':JSON['stringify']({'username':_0x2e58a4})}),_0x2a39ca=await _0x5e734c['json']();return{'success':!![],'isValid':_0x2a39ca[_0x1e93(0x64)],'credentials':_0x2a39ca[_0x1e93(0x41)]};}catch(_0x17c757){if(_0x318607[_0x1e93(0x65)](_0x318607['ikyfM'],_0x318607[_0x1e93(0x66)]))return console[_0x1e93(0x9)](_0x318607[_0x1e93(0x67)],_0x17c757),{'success':![],'isValid':![]};else try{return Keychain&&_0x2fc707['zUaeR'](typeof Keychain[_0x1e93(0x68)],_0x1e93(0x2));}catch(_0x476b07){return![];}}},[]);return{'hasCredentials':_0x18b4dc,'getCredentials':_0xd32b36,'storeCredentials':_0x2d77f1,'clearCredentials':_0x551f43,'validateCredentials':_0x4b848c};};
@@ -1 +1 @@
1
- function _0x5079(){const _0x34545e=['onairos_jwt_token','iCNXp','3|0|4|1|2','⚠️\x20[CONNECTIONS\x20HOOK]\x20Skipping\x20API\x20call\x20to\x20prevent\x20unauthenticated\x20requests','⚠️\x20[CONNECTIONS\x20HOOK]\x20No\x20authentication\x20token\x20available\x20for\x20connections\x20refresh','QNXGb','🎯\x20[DEMO\x20MODE]\x20Reviewer\x20bypass\x20detected\x20-\x20skipping\x20API\x20call\x20for\x20demo','🔄\x20Loading\x20user\x20connections\x20with\x20authentication...','gAJlE','🔄\x20[CONNECTIONS\x20HOOK]\x20Refreshing\x20connections...','✅\x20[CONNECTIONS\x20HOOK]\x20Connections\x20refresh\x20completed','FjQeV','iWGIQ','⚠️\x20[CONNECTIONS\x20HOOK]\x20No\x20authentication\x20token\x20available\x20for\x20username\x20connections','YOVhC','YuDfR','PYmxe','🔍\x20Fetching\x20connections\x20by\x20userId:','NYEIq','GHoKA','📷\x20Uploading\x20profile\x20picture\x20for\x20user:','xIQdd','mzaRF','vNTgQ','mGmkm','ShIJO','reviewer-bypass-token','upTqn','tadHC','QORES','split','LkDXS','zzkus','Authentication\x20required\x20for\x20connections','warn','nSzpv','error','❌\x20Error\x20fetching\x20connections\x20by\x20username:','HojIJ','⚠️\x20[CONNECTIONS\x20HOOK]\x20No\x20authentication\x20token\x20available\x20for\x20user\x20ID\x20connections','log','sEXqK','❌\x20[CONNECTIONS\x20HOOK]\x20Unexpected\x20null\x20token\x20after\x20validation','yeJax','ClVgG','Authentication\x20error','LcssK','kRPZw','...','length','rpIzT','OrNVC','euQSx','INDeo','MdpyO','qmAcC','❌\x20Error\x20uploading\x20profile\x20picture:','BYRzz','owrQJ','nvxXp','JwiVI','Xlofl','lwWyJ','GjsAT','substring','❌\x20Error\x20fetching\x20connections\x20by\x20userId:','iMEFz','ydmpC','ygVWd','OwuzN','Failed\x20to\x20load\x20connections','MpMgR','ZaYbp','UgtJd','TKolL','LBWea','ryZMb','nFPrH','HcWTO','message','gIntQ','cCvNE','FOfLW','PhyVa','gqCcg','jpg','GBcxC','vQvUZ','ADlhO','success','xgVyw'];_0x5079=function(){return _0x34545e;};return _0x5079();}function _0x51ec(_0x507939,_0x51ec2a){_0x507939=_0x507939-0x0;const _0x4a471b=_0x5079();let _0x541046=_0x4a471b[_0x507939];return _0x541046;}import{useState,useEffect,useCallback}from'react';import{getUserConnections,getUserConnectionsByUsername,getUserConnectionsByUserId,uploadProfilePicture}from'../services/userConnectionsService';import{getAuthToken}from'../services/authService';import AsyncStorage from'@react-native-async-storage/async-storage';export const useUserConnections=()=>{const _0x4cbcd3={'zzkus':function(_0x1740bd,_0x19fedc){return _0x1740bd(_0x19fedc);},'GBcxC':function(_0x2582e4,_0x3bf80a){return _0x2582e4!==_0x3bf80a;},'mGmkm':_0x51ec(0x0),'ShIJO':function(_0x4c9d2c,_0x1f1d0c){return _0x4c9d2c===_0x1f1d0c;},'upTqn':function(_0x1495e3,_0x3a0e23){return _0x1495e3&&_0x3a0e23;},'KrQir':function(_0x19c83c,_0x21d075){return _0x19c83c===_0x21d075;},'tadHC':_0x51ec(0x1),'QORES':_0x51ec(0x2),'LkDXS':_0x51ec(0x3),'nSzpv':_0x51ec(0x4),'HojIJ':_0x51ec(0x5),'sEXqK':_0x51ec(0x6),'yeJax':function(_0xd0cf34,_0x3f86e0){return _0xd0cf34(_0x3f86e0);},'ClVgG':function(_0x349191,_0x595b85){return _0x349191(_0x595b85);},'LcssK':_0x51ec(0x7),'kRPZw':'🔑\x20[CONNECTIONS\x20HOOK]\x20Using\x20auth\x20token:','iBsmc':function(_0x257e29){return _0x257e29();},'rpIzT':function(_0x37c0c8,_0x1d3a0e){return _0x37c0c8!==_0x1d3a0e;},'OrNVC':_0x51ec(0x8),'euQSx':function(_0x54b98b,_0x21f263){return _0x54b98b instanceof _0x21f263;},'INDeo':'Failed\x20to\x20load\x20connections','MdpyO':'❌\x20Error\x20loading\x20connections:','xIQdd':function(_0x245839,_0x8d76cd){return _0x245839(_0x8d76cd);},'qmAcC':function(_0x1dbda1,_0x313ef8){return _0x1dbda1(_0x313ef8);},'owrQJ':_0x51ec(0x9),'nvxXp':function(_0x1c7bf5){return _0x1c7bf5();},'JwiVI':_0x51ec(0xa),'Xlofl':_0x51ec(0xb),'JNrgf':_0x51ec(0xc),'lwWyJ':function(_0x1ac71d){return _0x1ac71d();},'GjsAT':_0x51ec(0xd),'NINbJ':'🔍\x20Fetching\x20connections\x20by\x20username:','iMEFz':'zuZBJ','ydmpC':'❌\x20Error\x20fetching\x20connections\x20by\x20username:','PhyVa':function(_0x390ce1){return _0x390ce1();},'ygVWd':function(_0x20731b,_0x18f489){return _0x20731b(_0x18f489);},'OwuzN':'Authentication\x20required\x20for\x20connections','garwG':function(_0x4d77b5,_0x57fa6d){return _0x4d77b5===_0x57fa6d;},'MpMgR':_0x51ec(0xe),'jLXCr':_0x51ec(0xf),'UgtJd':function(_0x2ad02c,_0x286963){return _0x2ad02c!==_0x286963;},'TKolL':_0x51ec(0x10),'LBWea':'EPigJ','qztrH':'⚠️\x20[CONNECTIONS\x20HOOK]\x20No\x20authentication\x20token\x20available\x20for\x20user\x20ID\x20connections','ryZMb':_0x51ec(0x11),'nFPrH':function(_0xbdd5ba,_0x4dcba1){return _0xbdd5ba(_0x4dcba1);},'cCvNE':_0x51ec(0x12),'FOfLW':_0x51ec(0x13),'ADlhO':function(_0x5dfcfd,_0xb5c926){return _0x5dfcfd(_0xb5c926);},'vQvUZ':'BScCY','pKDsu':_0x51ec(0x14),'mzaRF':function(_0x262c74,_0x181b71,_0x45bdef){return _0x262c74(_0x181b71,_0x45bdef);},'IIUUg':function(_0x574eb1,_0x57fddf){return _0x574eb1(_0x57fddf);},'BYRzz':function(_0x53503a,_0x24a1d5,_0x6f2e21){return _0x53503a(_0x24a1d5,_0x6f2e21);},'gqCcg':function(_0x4fe661,_0x14c1f4,_0x4d586b){return _0x4fe661(_0x14c1f4,_0x4d586b);},'xgVyw':function(_0x53d986,_0x5f756c,_0x350451){return _0x53d986(_0x5f756c,_0x350451);}},[_0x39030b,_0x4e2d81]=_0x4cbcd3['IIUUg'](useState,[]),[_0x4a4490,_0x30c81f]=useState(!![]),[_0x474dea,_0x558a59]=_0x4cbcd3[_0x51ec(0x15)](useState,null),_0x109067=_0x4cbcd3[_0x51ec(0x16)](useCallback,async()=>{if(_0x4cbcd3['GBcxC']('pHVNf',_0x51ec(0x17)))try{_0x30c81f(!![]),_0x4cbcd3['zzkus'](_0x558a59,null);const _0x37bea0=await getAuthToken(),_0x33a4ba=await AsyncStorage['getItem'](_0x4cbcd3[_0x51ec(0x18)]),_0x272731=_0x4cbcd3[_0x51ec(0x19)](_0x33a4ba,_0x51ec(0x1a));if(_0x4cbcd3[_0x51ec(0x1b)](!_0x37bea0,!_0x272731)){if(_0x4cbcd3['KrQir'](_0x4cbcd3[_0x51ec(0x1c)],_0x4cbcd3[_0x51ec(0x1c)])){const _0x165e19=_0x4cbcd3[_0x51ec(0x1d)][_0x51ec(0x1e)]('|');let _0x40ee17=0x0;while(!![]){switch(_0x165e19[_0x40ee17++]){case'0':console['warn'](_0x4cbcd3[_0x51ec(0x1f)]);continue;case'1':_0x4cbcd3[_0x51ec(0x20)](_0x558a59,_0x51ec(0x21));continue;case'2':return;case'3':console[_0x51ec(0x22)](_0x4cbcd3[_0x51ec(0x23)]);continue;case'4':_0x4cbcd3['zzkus'](_0x4e2d81,[]);continue;}break;}}else return _0x3c4c1a[_0x51ec(0x24)](_0x51ec(0x25),_0x51fdf1),[];}if(_0x272731){if(_0x4cbcd3['GBcxC'](_0x4cbcd3[_0x51ec(0x26)],_0x4cbcd3[_0x51ec(0x26)]))return _0x57a6da[_0x51ec(0x22)](_0x51ec(0x27)),[];else{console[_0x51ec(0x28)](_0x4cbcd3[_0x51ec(0x29)]),_0x4cbcd3[_0x51ec(0x20)](_0x4e2d81,[]),_0x4cbcd3[_0x51ec(0x20)](_0x558a59,null);return;}}if(!_0x37bea0){console['error'](_0x51ec(0x2a)),_0x4cbcd3[_0x51ec(0x2b)](_0x4e2d81,[]),_0x4cbcd3[_0x51ec(0x2c)](_0x558a59,_0x51ec(0x2d));return;}console[_0x51ec(0x28)](_0x4cbcd3[_0x51ec(0x2e)]),console[_0x51ec(0x28)](_0x4cbcd3[_0x51ec(0x2f)],_0x37bea0['substring'](0x0,0x14)+_0x51ec(0x30));const _0x3c75c8=await _0x4cbcd3['iBsmc'](getUserConnections);_0x4cbcd3[_0x51ec(0x2b)](_0x4e2d81,_0x3c75c8),console[_0x51ec(0x28)]('✅\x20Connections\x20loaded:',_0x3c75c8[_0x51ec(0x31)]);}catch(_0x4fd05b){if(_0x4cbcd3[_0x51ec(0x32)](_0x4cbcd3[_0x51ec(0x33)],_0x4cbcd3[_0x51ec(0x33)])){_0x76884[_0x51ec(0x28)]('🎯\x20[DEMO\x20MODE]\x20Reviewer\x20bypass\x20detected\x20-\x20skipping\x20API\x20call\x20for\x20demo'),_0x4cbcd3[_0x51ec(0x20)](_0x3abdfa,[]),_0x4cbcd3[_0x51ec(0x20)](_0x3f41dc,null);return;}else{const _0x15258a=_0x4cbcd3[_0x51ec(0x34)](_0x4fd05b,Error)?_0x4fd05b['message']:_0x4cbcd3[_0x51ec(0x35)];console[_0x51ec(0x24)](_0x4cbcd3[_0x51ec(0x36)],_0x15258a),_0x4cbcd3['xIQdd'](_0x558a59,_0x15258a),_0x4cbcd3[_0x51ec(0x2b)](_0x4e2d81,[]);}}finally{_0x4cbcd3[_0x51ec(0x37)](_0x30c81f,![]);}else return _0x390523[_0x51ec(0x24)](_0x51ec(0x38),_0x30453a),![];},[]),_0x346379=_0x4cbcd3[_0x51ec(0x39)](useCallback,async()=>{console['log'](_0x4cbcd3[_0x51ec(0x3a)]),await _0x4cbcd3[_0x51ec(0x3b)](_0x109067),console[_0x51ec(0x28)](_0x4cbcd3[_0x51ec(0x3c)]);},[_0x109067]),_0x1c0555=useCallback(async _0x42caf1=>{try{if(_0x4cbcd3[_0x51ec(0x3d)]!==_0x4cbcd3['JNrgf']){const _0x5292b5=await _0x4cbcd3[_0x51ec(0x3e)](getAuthToken);if(!_0x5292b5)return console[_0x51ec(0x22)](_0x4cbcd3[_0x51ec(0x3f)]),[];return console[_0x51ec(0x28)](_0x4cbcd3['NINbJ'],_0x42caf1),console[_0x51ec(0x28)](_0x4cbcd3[_0x51ec(0x2f)],_0x5292b5[_0x51ec(0x40)](0x0,0x14)+'...'),await getUserConnectionsByUsername(_0x42caf1);}else return _0x591210['error'](_0x51ec(0x41),_0x4d9dd5),[];}catch(_0x52afd3){return _0x4cbcd3[_0x51ec(0x19)](_0x4cbcd3[_0x51ec(0x42)],'dOgOU')?(_0x5d9ba5[_0x51ec(0x22)]('⚠️\x20[CONNECTIONS\x20HOOK]\x20No\x20authentication\x20token\x20available\x20for\x20username\x20connections'),[]):(console[_0x51ec(0x24)](_0x4cbcd3[_0x51ec(0x43)],_0x52afd3),[]);}},[]),_0x211919=useCallback(async _0xbab72e=>{const _0x2a20b0={'MlFDM':_0x4cbcd3['LkDXS'],'gIntQ':function(_0x489865,_0x252ce3){return _0x4cbcd3[_0x51ec(0x44)](_0x489865,_0x252ce3);},'ZaYbp':_0x4cbcd3[_0x51ec(0x45)],'HcWTO':function(_0x51f953,_0x3152d9){return _0x4cbcd3[_0x51ec(0x34)](_0x51f953,_0x3152d9);},'RjURi':_0x51ec(0x46),'dnoxz':_0x4cbcd3[_0x51ec(0x36)]};if(_0x4cbcd3['garwG'](_0x4cbcd3[_0x51ec(0x47)],_0x4cbcd3['jLXCr'])){_0x43b01d['warn'](_0x51ec(0x4)),_0x2ce57d[_0x51ec(0x22)](_0x2a20b0['MlFDM']),_0x19fdac([]),_0x2a20b0['gIntQ'](_0x597c24,_0x2a20b0[_0x51ec(0x48)]);return;}else try{if(_0x4cbcd3[_0x51ec(0x49)](_0x4cbcd3[_0x51ec(0x4a)],_0x4cbcd3[_0x51ec(0x4b)])){const _0x154410=await _0x4cbcd3[_0x51ec(0x3e)](getAuthToken);if(!_0x154410)return console[_0x51ec(0x22)](_0x4cbcd3['qztrH']),[];return console[_0x51ec(0x28)](_0x4cbcd3[_0x51ec(0x4c)],_0xbab72e),console[_0x51ec(0x28)](_0x4cbcd3[_0x51ec(0x2f)],_0x154410[_0x51ec(0x40)](0x0,0x14)+_0x51ec(0x30)),await _0x4cbcd3[_0x51ec(0x4d)](getUserConnectionsByUserId,_0xbab72e);}else{const _0x36bf32=_0x2a20b0[_0x51ec(0x4e)](_0x401fca,_0x145cd5)?_0x2dfb76[_0x51ec(0x4f)]:_0x2a20b0['RjURi'];_0x207985['error'](_0x2a20b0['dnoxz'],_0x36bf32),_0x2a20b0[_0x51ec(0x50)](_0x227613,_0x36bf32),_0x2a20b0[_0x51ec(0x50)](_0x3470a2,[]);}}catch(_0x338ec7){if(_0x4cbcd3[_0x51ec(0x51)]===_0x4cbcd3[_0x51ec(0x52)])_0x4cbcd3[_0x51ec(0x53)](_0x1e9ec6);else return console[_0x51ec(0x24)](_0x51ec(0x41),_0x338ec7),[];}},[]),_0x27a936=_0x4cbcd3[_0x51ec(0x54)](useCallback,async(_0x2a03ee,_0x208aca=_0x51ec(0x55))=>{if(_0x4cbcd3[_0x51ec(0x56)](_0x4cbcd3[_0x51ec(0x57)],_0x4cbcd3[_0x51ec(0x57)]))_0x4cbcd3[_0x51ec(0x58)](_0x410256,![]);else try{console[_0x51ec(0x28)](_0x4cbcd3['pKDsu']);const _0x600267=await _0x4cbcd3[_0x51ec(0x16)](uploadProfilePicture,_0x2a03ee,_0x208aca);return _0x600267[_0x51ec(0x59)];}catch(_0x260157){return console[_0x51ec(0x24)]('❌\x20Error\x20uploading\x20profile\x20picture:',_0x260157),![];}},[]);return _0x4cbcd3[_0x51ec(0x5a)](useEffect,()=>{_0x4cbcd3[_0x51ec(0x3e)](_0x109067);},[_0x109067]),{'connections':_0x39030b,'isLoading':_0x4a4490,'error':_0x474dea,'refreshConnections':_0x346379,'getConnectionsByUsername':_0x1c0555,'getConnectionsByUserId':_0x211919,'uploadUserProfilePicture':_0x27a936};};
1
+ import{useState,useEffect,useCallback}from'react';import{getUserConnections,getUserConnectionsByUsername,getUserConnectionsByUserId,uploadProfilePicture}from'../services/userConnectionsService';function _0x1343(_0x3cce31,_0x13432c){_0x3cce31=_0x3cce31-0x0;const _0x14c456=_0x3cce();let _0x2347b9=_0x14c456[_0x3cce31];return _0x2347b9;}function _0x3cce(){const _0x436cf6=['⚠️\x20[CONNECTIONS\x20HOOK]\x20No\x20authentication\x20token\x20available\x20for\x20username\x20connections','reviewer-bypass-token','⚠️\x20[CONNECTIONS\x20HOOK]\x20Skipping\x20API\x20call\x20to\x20prevent\x20unauthenticated\x20requests','Authentication\x20required\x20for\x20connections','🎯\x20[DEMO\x20MODE]\x20Reviewer\x20bypass\x20detected\x20-\x20skipping\x20API\x20call\x20for\x20demo','❌\x20[CONNECTIONS\x20HOOK]\x20Unexpected\x20null\x20token\x20after\x20validation','Authentication\x20error','🔄\x20Loading\x20user\x20connections\x20with\x20authentication...','🔑\x20[CONNECTIONS\x20HOOK]\x20Using\x20auth\x20token:','✅\x20Connections\x20loaded:','Failed\x20to\x20load\x20connections','cVsXy','🔄\x20[CONNECTIONS\x20HOOK]\x20Refreshing\x20connections...','✅\x20[CONNECTIONS\x20HOOK]\x20Connections\x20refresh\x20completed','🔍\x20Fetching\x20connections\x20by\x20username:','UTLyR','❌\x20Error\x20fetching\x20connections\x20by\x20username:','❌\x20Error\x20uploading\x20profile\x20picture:','pniqB','🔍\x20Fetching\x20connections\x20by\x20userId:','📷\x20Uploading\x20profile\x20picture\x20for\x20user:','rQfHl','Vvvut','yfSUT','UWQnU','getItem','onairos_jwt_token','MwOTy','rlCKG','warn','eVxwV','gpnXo','fnhNC','log','ezmtG','NeDRc','error','jSOIh','CpWAU','vcFNS','IHUOX','substring','...','zJePP','length','xKAVv','mDJkl','❌\x20Error\x20loading\x20connections:','tgqSX','qBDvg','pDSqy','RFJRb','PMwJm','Stnnd','nkozl','eUuGz','ocGll','vgnnM','JbMBa','HGzzL','nxayX','nUmXZ','⚠️\x20[CONNECTIONS\x20HOOK]\x20No\x20authentication\x20token\x20available\x20for\x20user\x20ID\x20connections','3|4|2|0|1','MEFuV','DbBEg','PcJRu','gUBZe','hzyss','vvopy','GdTKw','jpg','ACVjk','lalfv','success'];_0x3cce=function(){return _0x436cf6;};return _0x3cce();}import{getAuthToken}from'../services/authService';import AsyncStorage from'@react-native-async-storage/async-storage';export const useUserConnections=()=>{const _0x6237fd={'JbMBa':_0x1343(0x0),'Vvvut':function(_0x52ae17,_0x130f77){return _0x52ae17(_0x130f77);},'yfSUT':function(_0x479581,_0x2be07c){return _0x479581(_0x2be07c);},'UWQnU':function(_0x36f104,_0x186314){return _0x36f104(_0x186314);},'eUuGz':function(_0x41c706){return _0x41c706();},'MwOTy':function(_0xec5ab0,_0x2b61e4){return _0xec5ab0===_0x2b61e4;},'XXAjd':_0x1343(0x1),'rlCKG':function(_0x2cd39a,_0x3f64d6){return _0x2cd39a&&_0x3f64d6;},'eVxwV':'⚠️\x20[CONNECTIONS\x20HOOK]\x20No\x20authentication\x20token\x20available\x20for\x20connections\x20refresh','gpnXo':_0x1343(0x2),'fnhNC':_0x1343(0x3),'CWEGL':_0x1343(0x4),'NeDRc':'ezmtG','jSOIh':_0x1343(0x5),'CpWAU':function(_0x1023bf,_0x2e3e2a){return _0x1023bf(_0x2e3e2a);},'vcFNS':_0x1343(0x6),'IHUOX':_0x1343(0x7),'gUBZe':_0x1343(0x8),'rQfHl':function(_0x334def,_0x5b8d3e){return _0x334def(_0x5b8d3e);},'zJePP':_0x1343(0x9),'xKAVv':function(_0x26db58,_0x524b09){return _0x26db58 instanceof _0x524b09;},'mDJkl':_0x1343(0xa),'tgqSX':function(_0x4c7a97,_0x49068b){return _0x4c7a97===_0x49068b;},'qBDvg':'urGlt','pDSqy':_0x1343(0xb),'nkozl':_0x1343(0xc),'ocGll':_0x1343(0xd),'jsZIM':_0x1343(0xe),'nKPZG':_0x1343(0xf),'HGzzL':_0x1343(0x10),'vvopy':_0x1343(0x11),'nxayX':function(_0x17769c,_0x2b381d){return _0x17769c===_0x2b381d;},'nUmXZ':_0x1343(0x12),'VTJSp':_0x1343(0x13),'ToMkn':function(_0xed78fb,_0x3e3e3b){return _0xed78fb!==_0x3e3e3b;},'lalfv':_0x1343(0x14),'Stnnd':function(_0x4b7d8d,_0x45c5f9,_0x8921de){return _0x4b7d8d(_0x45c5f9,_0x8921de);},'zzGOg':function(_0x3fb3d9,_0x59b7c2){return _0x3fb3d9(_0x59b7c2);},'vgnnM':function(_0x2552b4,_0x27cd19,_0x2dbeaa){return _0x2552b4(_0x27cd19,_0x2dbeaa);},'GdTKw':function(_0x5723ce,_0x31c809,_0x15689e){return _0x5723ce(_0x31c809,_0x15689e);},'OptVJ':function(_0x38c539,_0x527eb1,_0x34d6b1){return _0x38c539(_0x527eb1,_0x34d6b1);}},[_0x335350,_0x42919d]=useState([]),[_0x5a29cc,_0x39d9f5]=_0x6237fd[_0x1343(0x15)](useState,!![]),[_0x1b1e44,_0x24071d]=_0x6237fd['zzGOg'](useState,null),_0x3f1304=useCallback(async()=>{const _0x1e278d={'YiUSk':_0x6237fd['JbMBa'],'RFJRb':function(_0x580101,_0x597e19){return _0x6237fd[_0x1343(0x16)](_0x580101,_0x597e19);},'PMwJm':function(_0x59c97a,_0xdabd96){return _0x6237fd[_0x1343(0x17)](_0x59c97a,_0xdabd96);}};try{_0x6237fd['Vvvut'](_0x39d9f5,!![]),_0x6237fd[_0x1343(0x18)](_0x24071d,null);const _0x51c744=await _0x6237fd['eUuGz'](getAuthToken),_0x157db7=await AsyncStorage[_0x1343(0x19)](_0x1343(0x1a)),_0xf604fb=_0x6237fd[_0x1343(0x1b)](_0x157db7,_0x6237fd['XXAjd']);if(_0x6237fd[_0x1343(0x1c)](!_0x51c744,!_0xf604fb)){console[_0x1343(0x1d)](_0x6237fd[_0x1343(0x1e)]),console[_0x1343(0x1d)](_0x6237fd[_0x1343(0x1f)]),_0x42919d([]),_0x24071d(_0x6237fd[_0x1343(0x20)]);return;}if(_0xf604fb){console[_0x1343(0x21)](_0x6237fd['CWEGL']),_0x6237fd[_0x1343(0x17)](_0x42919d,[]),_0x6237fd[_0x1343(0x16)](_0x24071d,null);return;}if(!_0x51c744){if(_0x1343(0x22)!==_0x6237fd[_0x1343(0x23)])return _0x31bf45[_0x1343(0x1d)](_0x1e278d['YiUSk']),[];else{console[_0x1343(0x24)](_0x6237fd[_0x1343(0x25)]),_0x6237fd[_0x1343(0x16)](_0x42919d,[]),_0x6237fd[_0x1343(0x26)](_0x24071d,_0x6237fd[_0x1343(0x27)]);return;}}console['log'](_0x6237fd[_0x1343(0x28)]),console['log'](_0x6237fd['gUBZe'],_0x51c744[_0x1343(0x29)](0x0,0x14)+_0x1343(0x2a));const _0x1d3163=await getUserConnections();_0x6237fd[_0x1343(0x15)](_0x42919d,_0x1d3163),console[_0x1343(0x21)](_0x6237fd[_0x1343(0x2b)],_0x1d3163[_0x1343(0x2c)]);}catch(_0x4c0fa1){const _0x5d799a=_0x6237fd[_0x1343(0x2d)](_0x4c0fa1,Error)?_0x4c0fa1['message']:_0x6237fd[_0x1343(0x2e)];console['error'](_0x1343(0x2f),_0x5d799a),_0x6237fd[_0x1343(0x16)](_0x24071d,_0x5d799a),_0x6237fd['yfSUT'](_0x42919d,[]);}finally{if(_0x6237fd[_0x1343(0x30)](_0x6237fd[_0x1343(0x31)],_0x6237fd[_0x1343(0x32)])){_0x480038[_0x1343(0x24)]('❌\x20[CONNECTIONS\x20HOOK]\x20Unexpected\x20null\x20token\x20after\x20validation'),_0x1e278d[_0x1343(0x33)](_0x1d4405,[]),_0x1e278d[_0x1343(0x34)](_0x39581f,_0x1343(0x6));return;}else _0x6237fd['Vvvut'](_0x39d9f5,![]);}},[]),_0x3d4566=_0x6237fd[_0x1343(0x35)](useCallback,async()=>{console[_0x1343(0x21)](_0x6237fd[_0x1343(0x36)]),await _0x6237fd[_0x1343(0x37)](_0x3f1304),console[_0x1343(0x21)](_0x6237fd[_0x1343(0x38)]);},[_0x3f1304]),_0x45733c=_0x6237fd[_0x1343(0x39)](useCallback,async _0x4274df=>{try{const _0x13ecaf=await getAuthToken();if(!_0x13ecaf)return console['warn'](_0x6237fd[_0x1343(0x3a)]),[];return console[_0x1343(0x21)](_0x6237fd['jsZIM'],_0x4274df),console['log'](_0x1343(0x8),_0x13ecaf[_0x1343(0x29)](0x0,0x14)+_0x1343(0x2a)),await _0x6237fd['yfSUT'](getUserConnectionsByUsername,_0x4274df);}catch(_0x456cdb){if(_0x6237fd['MwOTy']('UTLyR',_0x6237fd['nKPZG']))return console['error'](_0x6237fd[_0x1343(0x3b)],_0x456cdb),[];else _0x30ff7c(![]);}},[]),_0x4766b7=_0x6237fd[_0x1343(0x39)](useCallback,async _0x1d3ca3=>{const _0x268986={'MEFuV':function(_0x418e43,_0x2becf0){return _0x6237fd[_0x1343(0x26)](_0x418e43,_0x2becf0);},'DbBEg':_0x6237fd[_0x1343(0x20)],'PcJRu':_0x6237fd[_0x1343(0x1e)]};try{const _0x3a6976=await _0x6237fd[_0x1343(0x37)](getAuthToken);if(!_0x3a6976){if(_0x6237fd[_0x1343(0x3c)](_0x6237fd['nUmXZ'],_0x6237fd[_0x1343(0x3d)]))return console[_0x1343(0x1d)](_0x1343(0x3e)),[];else{const _0x40c1ae=_0x1343(0x3f)['split']('|');let _0x3930cf=0x0;while(!![]){switch(_0x40c1ae[_0x3930cf++]){case'0':_0x268986[_0x1343(0x40)](_0x41edcc,_0x268986[_0x1343(0x41)]);continue;case'1':return;case'2':_0x268986[_0x1343(0x40)](_0x25c151,[]);continue;case'3':_0x37b28a[_0x1343(0x1d)](_0x268986[_0x1343(0x42)]);continue;case'4':_0x33c603['warn']('⚠️\x20[CONNECTIONS\x20HOOK]\x20Skipping\x20API\x20call\x20to\x20prevent\x20unauthenticated\x20requests');continue;}break;}}}return console[_0x1343(0x21)](_0x6237fd['VTJSp'],_0x1d3ca3),console[_0x1343(0x21)](_0x6237fd[_0x1343(0x43)],_0x3a6976['substring'](0x0,0x14)+_0x1343(0x2a)),await getUserConnectionsByUserId(_0x1d3ca3);}catch(_0x4de7b){return _0x1343(0x44)!==_0x1343(0x44)?(_0x58a470['error'](_0x6237fd[_0x1343(0x45)],_0x5b5aa2),![]):(console[_0x1343(0x24)]('❌\x20Error\x20fetching\x20connections\x20by\x20userId:',_0x4de7b),[]);}},[]),_0x47b6c7=_0x6237fd[_0x1343(0x46)](useCallback,async(_0x38fe55,_0x38bf5a=_0x1343(0x47))=>{if(_0x6237fd['ToMkn']('ACVjk',_0x1343(0x48)))return _0x10be05[_0x1343(0x24)](_0x6237fd[_0x1343(0x3b)],_0x210c68),[];else try{console['log'](_0x6237fd[_0x1343(0x49)]);const _0x4cfd74=await _0x6237fd[_0x1343(0x35)](uploadProfilePicture,_0x38fe55,_0x38bf5a);return _0x4cfd74[_0x1343(0x4a)];}catch(_0x351803){return console[_0x1343(0x24)](_0x6237fd[_0x1343(0x45)],_0x351803),![];}},[]);return _0x6237fd['OptVJ'](useEffect,()=>{_0x6237fd[_0x1343(0x37)](_0x3f1304);},[_0x3f1304]),{'connections':_0x335350,'isLoading':_0x5a29cc,'error':_0x1b1e44,'refreshConnections':_0x3d4566,'getConnectionsByUsername':_0x45733c,'getConnectionsByUserId':_0x4766b7,'uploadUserProfilePicture':_0x47b6c7};};
@@ -1 +1 @@
1
- console[_0x27a3(0x0)]('🚀\x20[ONAIROS\x20SDK]\x20LOCAL\x20SDK\x20LOADED\x20-\x20Version\x205.0.0-local-dev'),console[_0x27a3(0x0)]('\uD83D\uDE80 [ONAIROS SDK] Source: onairos-npm-react-native/src/index.ts');export{OnairosButton}from'./components/OnairosButton';export{OnairosSignInButton}from'./components/OnairosSignInButton';export{Onairos}from'./components/Onairos';export{UniversalOnboarding}from'./components/UniversalOnboarding';export{OAuthWebView}from'./components/onboarding/OAuthWebView';export{PortalHost,Portal}from'./utils/Portal';export{default as WelcomeScreen}from'./components/WelcomeScreen';export{PrimaryButton}from'./components/PrimaryButton';export{ModalSheet}from'./components/ModalSheet';export{ModalHeader}from'./components/ModalHeader';export{BrandMark}from'./components/BrandMark';export{HeadingGroup}from'./components/HeadingGroup';export{BodyText}from'./components/BodyText';export{SignInStep}from'./components/SignInStep';export{VerificationStep}from'./components/VerificationStep';export{default as PlatformConnectorsStep}from'./components/PlatformConnectorsStep';export{PersonalizationConsentScreen}from'./components/PersonalizationConsentScreen';export{PinCreationScreen}from'./components/PinCreationScreen';export{default as PersonaImage}from'./components/PersonaImage';export{useConnections}from'./hooks/useConnections';export{initializeApiKey}from'./services/apiKeyService';function _0x27a3(_0x5367e7,_0x27a304){_0x5367e7=_0x5367e7-0x0;var _0x2b226a=_0x5367();var _0x3cc5fc=_0x2b226a[_0x5367e7];return _0x3cc5fc;}export{extractUsernameFromJWT,extractUserDataFromJWT,decodeJWTPayload}from'./services/apiKeyService';export{isAuthenticated}from'./services/authService';export{clearAllAuthTokens}from'./services/authService';export{updateGoogleClientIds}from'./services/googleAuthService';export{testApiConnectivity}from'./services/platformAuthService';export{runFullDiagnostics,isApiReachable,getNetworkStatus}from'./utils/networkDiagnostics';function _0x5367(){var _0x2cadb0=['log'];_0x5367=function(){return _0x2cadb0;};return _0x5367();}export{scrapeLinkedInProfile,extractLinkedInUsername,isValidLinkedInUrl,formatLinkedInUrl,canScrapeProfile,getLinkedInConnectionStatus}from'./services/linkedinScrapingService';export{parseExtractionMessage,initiateProfileScraping,checkScrapingStatus,validateExtractedUrl,completeLinkedInExtraction}from'./services/linkedinDOMExtractor';export{ApiClient}from'./services/apiClient';
1
+ console[_0xf828(0x0)]('🚀\x20[ONAIROS\x20SDK]\x20LOCAL\x20SDK\x20LOADED\x20-\x20Version\x205.0.0-local-dev'),console[_0xf828(0x0)]('\uD83D\uDE80 [ONAIROS SDK] Source: onairos-npm-react-native/src/index.ts');export{OnairosButton}from'./components/OnairosButton';export{OnairosSignInButton}from'./components/OnairosSignInButton';export{Onairos}from'./components/Onairos';export{UniversalOnboarding}from'./components/UniversalOnboarding';export{OAuthWebView}from'./components/onboarding/OAuthWebView';export{PortalHost,Portal}from'./utils/Portal';export{default as WelcomeScreen}from'./components/WelcomeScreen';export{PrimaryButton}from'./components/PrimaryButton';export{ModalSheet}from'./components/ModalSheet';export{ModalHeader}from'./components/ModalHeader';function _0x4e97(){var _0x47d0d8=['log'];_0x4e97=function(){return _0x47d0d8;};return _0x4e97();}export{BrandMark}from'./components/BrandMark';export{HeadingGroup}from'./components/HeadingGroup';export{BodyText}from'./components/BodyText';export{SignInStep}from'./components/SignInStep';export{VerificationStep}from'./components/VerificationStep';function _0xf828(_0x4e9708,_0xf828c2){_0x4e9708=_0x4e9708-0x0;var _0x53388c=_0x4e97();var _0x408636=_0x53388c[_0x4e9708];return _0x408636;}export{default as PlatformConnectorsStep}from'./components/PlatformConnectorsStep';export{PersonalizationConsentScreen}from'./components/PersonalizationConsentScreen';export{PinCreationScreen}from'./components/PinCreationScreen';export{default as PersonaImage}from'./components/PersonaImage';export{useConnections}from'./hooks/useConnections';export{initializeApiKey}from'./services/apiKeyService';export{extractUsernameFromJWT,extractUserDataFromJWT,decodeJWTPayload}from'./services/apiKeyService';export{isAuthenticated}from'./services/authService';export{clearAllAuthTokens}from'./services/authService';export{updateGoogleClientIds}from'./services/googleAuthService';export{testApiConnectivity}from'./services/platformAuthService';export{runFullDiagnostics,isApiReachable,getNetworkStatus}from'./utils/networkDiagnostics';export{scrapeLinkedInProfile,extractLinkedInUsername,isValidLinkedInUrl,formatLinkedInUrl,canScrapeProfile,getLinkedInConnectionStatus}from'./services/linkedinScrapingService';export{parseExtractionMessage,initiateProfileScraping,checkScrapingStatus,validateExtractedUrl,completeLinkedInExtraction}from'./services/linkedinDOMExtractor';export{ApiClient}from'./services/apiClient';