@onairos/react-native 3.6.2 → 3.6.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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 +1 -1
  55. package/lib/commonjs/services/authService.js +1 -1
  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 +1 -1
  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 +1 -1
  166. package/lib/module/services/authService.js +1 -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 +1 -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 _0x302436 from'react-native-vector-icons/MaterialIcons';function _0x3ad8(){const _0x3246d5=['#000','close','backButton','createElement','arrow-back','titleContainer','title','closeButton','LBtyl','create','row','center','headerBg','600'];_0x3ad8=function(){return _0x3246d5;};return _0x3ad8();}import{COLORS}from'../../constants';function _0x4318(_0x3ad88b,_0x43184b){_0x3ad88b=_0x3ad88b-0x0;const _0x206483=_0x3ad8();let _0x2ef658=_0x206483[_0x3ad88b];return _0x2ef658;}export const OnboardingHeader=({title:_0x53df87,subtitle:_0x548703,showBackButton:showBackButton=![],onBack:_0x2ce69b,onClose:_0x2294ac})=>{const _0x3670aa={'KcQyR':_0x4318(0x0),'LBtyl':_0x4318(0x1)};return React['createElement'](View,{'style':styles['header']},showBackButton&&React['createElement'](TouchableOpacity,{'style':styles[_0x4318(0x2)],'onPress':_0x2ce69b},React[_0x4318(0x3)](_0x302436,{'name':_0x4318(0x4),'size':0x18,'color':_0x3670aa['KcQyR']})),React['createElement'](View,{'style':styles[_0x4318(0x5)]},React[_0x4318(0x3)](Text,{'style':styles[_0x4318(0x6)]},_0x53df87),_0x548703&&React[_0x4318(0x3)](Text,{'style':styles['subtitle']},_0x548703)),React['createElement'](TouchableOpacity,{'style':styles[_0x4318(0x7)],'onPress':_0x2294ac},React[_0x4318(0x3)](_0x302436,{'name':_0x3670aa[_0x4318(0x8)],'size':0x18,'color':_0x3670aa['KcQyR']})));};const styles=StyleSheet[_0x4318(0x9)]({'header':{'flexDirection':_0x4318(0xa),'alignItems':_0x4318(0xb),'padding':0x10,'backgroundColor':COLORS[_0x4318(0xc)],'borderTopLeftRadius':0x10,'borderTopRightRadius':0x10},'backButton':{'padding':0x8,'marginRight':0x8},'titleContainer':{'flex':0x1},'title':{'fontSize':0x12,'fontWeight':_0x4318(0xd),'color':_0x4318(0x0)},'subtitle':{'fontSize':0xe,'color':'#666','marginTop':0x4},'closeButton':{'padding':0x8}});
1
+ function _0x426e(_0xdbb4be,_0x426e59){_0xdbb4be=_0xdbb4be-0x0;const _0xac42f9=_0xdbb4();let _0x47e576=_0xac42f9[_0xdbb4be];return _0x47e576;}import React from'react';import{View,Text,StyleSheet,TouchableOpacity}from'react-native';function _0xdbb4(){const _0x293ef3=['#000','createElement','header','backButton','arrow-back','titleContainer','subtitle','close','RByxI','create','row','headerBg','600','#666'];_0xdbb4=function(){return _0x293ef3;};return _0xdbb4();}import _0x1bc685 from'react-native-vector-icons/MaterialIcons';import{COLORS}from'../../constants';export const OnboardingHeader=({title:_0x49b270,subtitle:_0x7591b0,showBackButton:showBackButton=![],onBack:_0x4a7038,onClose:_0x2f8b5e})=>{const _0x5c42b5={'RByxI':_0x426e(0x0)};return React[_0x426e(0x1)](View,{'style':styles[_0x426e(0x2)]},showBackButton&&React[_0x426e(0x1)](TouchableOpacity,{'style':styles[_0x426e(0x3)],'onPress':_0x4a7038},React[_0x426e(0x1)](_0x1bc685,{'name':_0x426e(0x4),'size':0x18,'color':_0x426e(0x0)})),React['createElement'](View,{'style':styles[_0x426e(0x5)]},React['createElement'](Text,{'style':styles['title']},_0x49b270),_0x7591b0&&React[_0x426e(0x1)](Text,{'style':styles[_0x426e(0x6)]},_0x7591b0)),React[_0x426e(0x1)](TouchableOpacity,{'style':styles['closeButton'],'onPress':_0x2f8b5e},React[_0x426e(0x1)](_0x1bc685,{'name':_0x426e(0x7),'size':0x18,'color':_0x5c42b5[_0x426e(0x8)]})));};const styles=StyleSheet[_0x426e(0x9)]({'header':{'flexDirection':_0x426e(0xa),'alignItems':'center','padding':0x10,'backgroundColor':COLORS[_0x426e(0xb)],'borderTopLeftRadius':0x10,'borderTopRightRadius':0x10},'backButton':{'padding':0x8,'marginRight':0x8},'titleContainer':{'flex':0x1},'title':{'fontSize':0x12,'fontWeight':_0x426e(0xc),'color':'#000'},'subtitle':{'fontSize':0xe,'color':_0x426e(0xd),'marginTop':0x4},'closeButton':{'padding':0x8}});
@@ -1 +1 @@
1
- function _0x4c4a(_0x1cb056,_0x4c4a6a){_0x1cb056=_0x1cb056-0x0;const _0x5388ec=_0x1cb0();let _0x4bf74f=_0x5388ec[_0x1cb056];return _0x4bf74f;}function _0x1cb0(){const _0x192573=['lcyfT','QqWcX','PIN\x20must\x20include\x20at\x20least\x20one\x20number','PINs\x20do\x20not\x20match','YXBKD','nGjux','OykCx','confirm','ios','height','Confirm\x20your\x20PIN','This\x20PIN\x20will\x20protect\x20your\x20Onairos\x20account','Please\x20re-enter\x20your\x20PIN\x20to\x20confirm','default','Enter\x20PIN','#999','done','PIN\x20Requirements:','radio-button-unchecked','#4caf50','At\x20least\x20','Include\x20at\x20least\x20one\x20number','arrow-back','Back','Submit','#fff','juhMh','LOVdF','yxcdU','gDvjX','gPxIM','jlxFu','mfDyv','VGDbO','grYmD','create','OqkMy','LgEri','YGbhK','rAyAz','fwpiZ','dismiss','LmcrI','push','PIN\x20must\x20be\x20at\x20least\x20','test','RPuTa','hHban','DtSJT','length','wqkUp','UbSLO','LEMLM','ybhrq','ZHoTk','iYCml','xcivl','lADyK','BTsoS','utYsn','dzYfq','oglZz','createElement','OqeXm','yXWSV','padding','container','content','title','pBDkv','CVYms','subtitle','mdoYe','SVoFl','inputContainer','input','cuYcO','GicpI','kdPXq','qUFAr','yBwPB','visibility','map','errorItem','error-outline','#f44336','errorText','requirementsContainer','vEfxB','requirement','RtqAU','YdQDR','Sqwov','requirementText','aURtZ','\x20characters','LWzxb','dzLQP','Include\x20at\x20least\x20one\x20special\x20character','OuTaw','backButton','PGejN','primary','buttonText','backButtonText','sHxdb','button','nextButton','dbrZH','YVRPp','mAPnC','FwxmE','ExmXq','arrow-forward','LBeyq','bold','#000','#666','center','#f9f9f9','row','#f5f5f5','space-between','transparent','600'];_0x1cb0=function(){return _0x192573;};return _0x1cb0();}import React,{useState,useCallback,useEffect}from'react';import{View,Text,StyleSheet,TextInput,TouchableOpacity,Keyboard,KeyboardAvoidingView,Platform}from'react-native';import _0x1ab0b8 from'react-native-vector-icons/MaterialIcons';import{COLORS}from'../../constants';export const PinInput=({onSubmit:_0x388d8c,minLength:minLength=0x6,requireSpecialChar:requireSpecialChar=!![],requireNumber:requireNumber=!![]})=>{const _0x4765b6={'grYmD':function(_0x2cdc25,_0x29b30e){return _0x2cdc25(_0x29b30e);},'mfDyv':function(_0xe4933d,_0x26060f){return _0xe4933d!==_0x26060f;},'VGDbO':_0x4c4a(0x0),'DtSJT':function(_0xbfdb56,_0x42f5f4){return _0xbfdb56===_0x42f5f4;},'OqkMy':function(_0x169dfb,_0x20afeb){return _0x169dfb(_0x20afeb);},'LgEri':function(_0x5d7e45,_0x2514fc){return _0x5d7e45(_0x2514fc);},'YGbhK':function(_0x2bcbd4,_0xf3efac){return _0x2bcbd4<_0xf3efac;},'rAyAz':function(_0x2136d0,_0x5ac4d8){return _0x2136d0!==_0x5ac4d8;},'fwpiZ':_0x4c4a(0x1),'RPuTa':_0x4c4a(0x2),'hHban':'PIN\x20must\x20include\x20at\x20least\x20one\x20special\x20character','wqkUp':function(_0x20c5a7,_0x1610ae){return _0x20c5a7(_0x1610ae);},'RpjXP':_0x4c4a(0x3),'UbSLO':function(_0x11b72,_0x514969){return _0x11b72!==_0x514969;},'LEMLM':_0x4c4a(0x4),'ybhrq':_0x4c4a(0x5),'ZHoTk':function(_0x4f9627,_0x2afb25){return _0x4f9627===_0x2afb25;},'iYCml':_0x4c4a(0x6),'xcivl':_0x4c4a(0x7),'LOVdF':function(_0x38302c,_0x1e3cb8){return _0x38302c(_0x1e3cb8);},'BTsoS':'create','gPxIM':function(_0x2b0326,_0x2b6b18){return _0x2b0326(_0x2b6b18);},'utYsn':'amBlW','dzYfq':function(_0xcda797,_0x3f8481){return _0xcda797(_0x3f8481);},'juhMh':function(_0x38eefa,_0x3c1a5f){return _0x38eefa(_0x3c1a5f);},'yxcdU':function(_0x3953c2,_0x273448){return _0x3953c2(_0x273448);},'gDvjX':function(_0x14fef8,_0x424e1a){return _0x14fef8(_0x424e1a);},'jlxFu':function(_0x50f956,_0x5c0dd3,_0x4dcbdf){return _0x50f956(_0x5c0dd3,_0x4dcbdf);},'OqeXm':function(_0x50e77d,_0x5d4461){return _0x50e77d===_0x5d4461;},'yXWSV':_0x4c4a(0x8),'Gyzvg':_0x4c4a(0x9),'pBDkv':'Create\x20a\x20PIN','CVYms':_0x4c4a(0xa),'mdoYe':_0x4c4a(0xb),'SVoFl':_0x4c4a(0xc),'cuYcO':function(_0x128312,_0x3666b3){return _0x128312===_0x3666b3;},'GicpI':_0x4c4a(0xd),'kdPXq':_0x4c4a(0xe),'qUFAr':'Confirm\x20PIN','yBwPB':_0x4c4a(0xf),'wOEVL':_0x4c4a(0x10),'rkGkR':'visibility-off','vEfxB':_0x4c4a(0x11),'RtqAU':function(_0x428425,_0x2b821f){return _0x428425>=_0x2b821f;},'YdQDR':'check-circle','dzLQP':_0x4c4a(0x12),'Sqwov':_0x4c4a(0x13),'aURtZ':_0x4c4a(0x14),'LWzxb':_0x4c4a(0x15),'OuTaw':function(_0x4db6f8,_0x1c6ccf){return _0x4db6f8===_0x1c6ccf;},'PGejN':_0x4c4a(0x16),'sHxdb':_0x4c4a(0x17),'dbrZH':function(_0x3044a5,_0x379586){return _0x3044a5>_0x379586;},'YVRPp':function(_0x2b59e0,_0x1640d7){return _0x2b59e0===_0x1640d7;},'mJjWg':function(_0x3e52c6,_0x49916a){return _0x3e52c6>_0x49916a;},'mAPnC':function(_0x5256e9,_0x4836f9){return _0x5256e9===_0x4836f9;},'FwxmE':'Next','ExmXq':_0x4c4a(0x18),'LBeyq':_0x4c4a(0x19)},[_0x35a537,_0x24a548]=_0x4765b6[_0x4c4a(0x1a)](useState,''),[_0x313683,_0x2a4416]=_0x4765b6[_0x4c4a(0x1b)](useState,''),[_0xa68405,_0x9dc1ac]=_0x4765b6[_0x4c4a(0x1c)](useState,![]),[_0x5c7d4e,_0x2eecc6]=_0x4765b6[_0x4c4a(0x1d)](useState,[]),[_0x5e529b,_0x1a076b]=_0x4765b6[_0x4c4a(0x1e)](useState,_0x4765b6['BTsoS']);_0x4765b6[_0x4c4a(0x1f)](useEffect,()=>{_0x4765b6[_0x4c4a(0x20)](_0x4765b6[_0x4c4a(0x21)],_0x4c4a(0x0))?_0xc4e311(_0x5725fc)&&_0x4765b6[_0x4c4a(0x22)](_0x593697,'confirm'):_0x4765b6['DtSJT'](_0x5e529b,_0x4c4a(0x23))&&_0x4765b6[_0x4c4a(0x24)](_0x6a7e7,_0x35a537);},[_0x35a537,_0x5e529b]);const _0x6a7e7=_0x4765b6[_0x4c4a(0x1f)](useCallback,_0x5dee2d=>{const _0x31593b={'LmcrI':function(_0x1ec237,_0x4d6329){return _0x4765b6[_0x4c4a(0x25)](_0x1ec237,_0x4d6329);}},_0x4f5a72=[];return _0x4765b6[_0x4c4a(0x26)](_0x5dee2d['length'],minLength)&&(_0x4765b6[_0x4c4a(0x27)](_0x4765b6[_0x4c4a(0x28)],_0x4765b6[_0x4c4a(0x28)])?_0x3dc893===_0x5c80b5?(_0x365dbc[_0x4c4a(0x29)](),_0x31593b[_0x4c4a(0x2a)](_0x565417,_0x33b5b7)):(_0x31593b[_0x4c4a(0x2a)](_0x3f1702,['PINs\x20do\x20not\x20match']),_0x31593b[_0x4c4a(0x2a)](_0x1bb93b,'')):_0x4f5a72[_0x4c4a(0x2b)](_0x4c4a(0x2c)+minLength+'\x20characters')),requireNumber&&!/\d/[_0x4c4a(0x2d)](_0x5dee2d)&&_0x4f5a72[_0x4c4a(0x2b)](_0x4765b6[_0x4c4a(0x2e)]),requireSpecialChar&&!/[!@#$%^&*(),.?":{}|<>]/[_0x4c4a(0x2d)](_0x5dee2d)&&_0x4f5a72[_0x4c4a(0x2b)](_0x4765b6[_0x4c4a(0x2f)]),_0x2eecc6(_0x4f5a72),_0x4765b6[_0x4c4a(0x30)](_0x4f5a72[_0x4c4a(0x31)],0x0);},[minLength,requireNumber,requireSpecialChar]),_0x889d54=_0x4765b6['jlxFu'](useCallback,()=>{const _0x4509ab={'TzkdC':_0x4765b6[_0x4c4a(0x2e)],'YBpnd':function(_0x4893ad,_0x58286f){return _0x4765b6[_0x4c4a(0x32)](_0x4893ad,_0x58286f);},'lADyK':_0x4765b6['RpjXP']};_0x4765b6[_0x4c4a(0x33)](_0x4765b6[_0x4c4a(0x34)],_0x4765b6[_0x4c4a(0x35)])?_0x4765b6[_0x4c4a(0x36)](_0x5e529b,'create')?_0x4765b6[_0x4c4a(0x32)](_0x6a7e7,_0x35a537)&&(_0x4765b6[_0x4c4a(0x27)](_0x4765b6[_0x4c4a(0x37)],_0x4765b6[_0x4c4a(0x37)])?_0x4bfa82[_0x4c4a(0x2b)](_0x4509ab['TzkdC']):_0x4765b6[_0x4c4a(0x32)](_0x1a076b,_0x4765b6[_0x4c4a(0x38)])):_0x35a537===_0x313683?(Keyboard['dismiss'](),_0x4765b6['LOVdF'](_0x388d8c,_0x35a537)):(_0x2eecc6([_0x4c4a(0x3)]),_0x4765b6[_0x4c4a(0x32)](_0x2a4416,'')):(_0x4509ab['YBpnd'](_0x5d791b,[_0x4509ab[_0x4c4a(0x39)]]),_0x50b738(''));},[_0x35a537,_0x313683,_0x5e529b,_0x6a7e7,_0x388d8c]),_0x2edc39=useCallback(()=>{_0x1a076b(_0x4765b6[_0x4c4a(0x3a)]),_0x4765b6[_0x4c4a(0x1b)](_0x2a4416,''),_0x4765b6['gPxIM'](_0x2eecc6,[]);},[]),_0x2cc405=_0x4765b6[_0x4c4a(0x1f)](useCallback,()=>{const _0x367049={'oglZz':_0x4765b6[_0x4c4a(0x2f)]};_0x4765b6[_0x4c4a(0x30)](_0x4765b6[_0x4c4a(0x3b)],_0x4765b6['utYsn'])?_0x4765b6[_0x4c4a(0x3c)](_0x9dc1ac,!_0xa68405):_0x2c9094[_0x4c4a(0x2b)](_0x367049[_0x4c4a(0x3d)]);},[_0xa68405]);return React[_0x4c4a(0x3e)](KeyboardAvoidingView,{'behavior':_0x4765b6[_0x4c4a(0x3f)](Platform['OS'],_0x4765b6[_0x4c4a(0x40)])?_0x4c4a(0x41):_0x4765b6['Gyzvg'],'style':styles[_0x4c4a(0x42)]},React[_0x4c4a(0x3e)](View,{'style':styles[_0x4c4a(0x43)]},React['createElement'](Text,{'style':styles[_0x4c4a(0x44)]},_0x4765b6[_0x4c4a(0x30)](_0x5e529b,_0x4765b6[_0x4c4a(0x3a)])?_0x4765b6[_0x4c4a(0x45)]:_0x4765b6[_0x4c4a(0x46)]),React[_0x4c4a(0x3e)](Text,{'style':styles[_0x4c4a(0x47)]},_0x5e529b===_0x4c4a(0x23)?_0x4765b6[_0x4c4a(0x48)]:_0x4765b6[_0x4c4a(0x49)]),React[_0x4c4a(0x3e)](View,{'style':styles[_0x4c4a(0x4a)]},React['createElement'](TextInput,{'style':styles[_0x4c4a(0x4b)],'value':_0x4765b6[_0x4c4a(0x4c)](_0x5e529b,_0x4765b6[_0x4c4a(0x3a)])?_0x35a537:_0x313683,'onChangeText':_0x5e529b===_0x4765b6[_0x4c4a(0x3a)]?_0x24a548:_0x2a4416,'secureTextEntry':!_0xa68405,'keyboardType':_0x4765b6[_0x4c4a(0x4d)],'autoCapitalize':'none','autoCorrect':![],'placeholder':_0x4765b6[_0x4c4a(0x3f)](_0x5e529b,'create')?_0x4765b6[_0x4c4a(0x4e)]:_0x4765b6[_0x4c4a(0x4f)],'placeholderTextColor':_0x4765b6[_0x4c4a(0x50)],'returnKeyType':_0x4765b6['wOEVL'],'onSubmitEditing':_0x889d54}),React[_0x4c4a(0x3e)](TouchableOpacity,{'style':styles['visibilityToggle'],'onPress':_0x2cc405},React[_0x4c4a(0x3e)](_0x1ab0b8,{'name':_0xa68405?_0x4765b6['rkGkR']:_0x4c4a(0x51),'size':0x18,'color':_0x4765b6[_0x4c4a(0x50)]}))),_0x5c7d4e[_0x4c4a(0x31)]>0x0&&React[_0x4c4a(0x3e)](View,{'style':styles['errorContainer']},_0x5c7d4e[_0x4c4a(0x52)]((_0x53f116,_0x22e3f7)=>React[_0x4c4a(0x3e)](View,{'key':_0x22e3f7,'style':styles[_0x4c4a(0x53)]},React[_0x4c4a(0x3e)](_0x1ab0b8,{'name':_0x4c4a(0x54),'size':0x10,'color':_0x4c4a(0x55)}),React[_0x4c4a(0x3e)](Text,{'style':styles[_0x4c4a(0x56)]},_0x53f116)))),_0x4765b6[_0x4c4a(0x36)](_0x5e529b,_0x4765b6[_0x4c4a(0x3a)])&&React['createElement'](View,{'style':styles[_0x4c4a(0x57)]},React[_0x4c4a(0x3e)](Text,{'style':styles['requirementsTitle']},_0x4765b6[_0x4c4a(0x58)]),React[_0x4c4a(0x3e)](View,{'style':styles[_0x4c4a(0x59)]},React[_0x4c4a(0x3e)](_0x1ab0b8,{'name':_0x4765b6[_0x4c4a(0x5a)](_0x35a537[_0x4c4a(0x31)],minLength)?_0x4765b6[_0x4c4a(0x5b)]:_0x4765b6['dzLQP'],'size':0x10,'color':_0x4765b6[_0x4c4a(0x5a)](_0x35a537[_0x4c4a(0x31)],minLength)?_0x4765b6[_0x4c4a(0x5c)]:_0x4c4a(0xf)}),React[_0x4c4a(0x3e)](Text,{'style':[styles[_0x4c4a(0x5d)],{'color':_0x4765b6[_0x4c4a(0x5a)](_0x35a537[_0x4c4a(0x31)],minLength)?_0x4765b6[_0x4c4a(0x5c)]:_0x4765b6[_0x4c4a(0x50)]}]},_0x4765b6[_0x4c4a(0x5e)],minLength,_0x4c4a(0x5f))),requireNumber&&React[_0x4c4a(0x3e)](View,{'style':styles[_0x4c4a(0x59)]},React[_0x4c4a(0x3e)](_0x1ab0b8,{'name':/\d/[_0x4c4a(0x2d)](_0x35a537)?_0x4765b6[_0x4c4a(0x5b)]:_0x4765b6['dzLQP'],'size':0x10,'color':/\d/[_0x4c4a(0x2d)](_0x35a537)?_0x4c4a(0x13):_0x4765b6['yBwPB']}),React[_0x4c4a(0x3e)](Text,{'style':[styles[_0x4c4a(0x5d)],{'color':/\d/['test'](_0x35a537)?_0x4765b6['Sqwov']:_0x4765b6['yBwPB']}]},_0x4765b6[_0x4c4a(0x60)])),requireSpecialChar&&React['createElement'](View,{'style':styles[_0x4c4a(0x59)]},React[_0x4c4a(0x3e)](_0x1ab0b8,{'name':/[!@#$%^&*(),.?":{}|<>]/[_0x4c4a(0x2d)](_0x35a537)?_0x4765b6[_0x4c4a(0x5b)]:_0x4765b6[_0x4c4a(0x61)],'size':0x10,'color':/[!@#$%^&*(),.?":{}|<>]/[_0x4c4a(0x2d)](_0x35a537)?_0x4765b6[_0x4c4a(0x5c)]:_0x4c4a(0xf)}),React[_0x4c4a(0x3e)](Text,{'style':[styles[_0x4c4a(0x5d)],{'color':/[!@#$%^&*(),.?":{}|<>]/[_0x4c4a(0x2d)](_0x35a537)?_0x4765b6['Sqwov']:_0x4c4a(0xf)}]},_0x4c4a(0x62)))),React[_0x4c4a(0x3e)](View,{'style':styles['buttonContainer']},_0x4765b6[_0x4c4a(0x63)](_0x5e529b,_0x4765b6[_0x4c4a(0x38)])&&React['createElement'](TouchableOpacity,{'style':[styles['button'],styles[_0x4c4a(0x64)]],'onPress':_0x2edc39},React[_0x4c4a(0x3e)](_0x1ab0b8,{'name':_0x4765b6[_0x4c4a(0x65)],'size':0x14,'color':COLORS[_0x4c4a(0x66)]}),React[_0x4c4a(0x3e)](Text,{'style':[styles[_0x4c4a(0x67)],styles[_0x4c4a(0x68)]]},_0x4765b6[_0x4c4a(0x69)])),React[_0x4c4a(0x3e)](TouchableOpacity,{'style':[styles[_0x4c4a(0x6a)],styles[_0x4c4a(0x6b)],_0x5e529b===_0x4765b6[_0x4c4a(0x3a)]&&_0x4765b6[_0x4c4a(0x6c)](_0x5c7d4e[_0x4c4a(0x31)],0x0)||_0x4765b6[_0x4c4a(0x6d)](_0x5e529b,_0x4765b6[_0x4c4a(0x38)])&&!_0x313683?styles['disabledButton']:null],'onPress':_0x889d54,'disabled':_0x5e529b===_0x4c4a(0x23)&&_0x4765b6['mJjWg'](_0x5c7d4e[_0x4c4a(0x31)],0x0)||_0x4765b6[_0x4c4a(0x6d)](_0x5e529b,_0x4765b6['xcivl'])&&!_0x313683},React['createElement'](Text,{'style':[styles[_0x4c4a(0x67)],styles['nextButtonText']]},_0x4765b6[_0x4c4a(0x6e)](_0x5e529b,_0x4765b6[_0x4c4a(0x3a)])?_0x4765b6[_0x4c4a(0x6f)]:_0x4765b6[_0x4c4a(0x70)]),React[_0x4c4a(0x3e)](_0x1ab0b8,{'name':_0x4c4a(0x71),'size':0x14,'color':_0x4765b6[_0x4c4a(0x72)]})))));};const styles=StyleSheet[_0x4c4a(0x23)]({'container':{'flex':0x1},'content':{'padding':0x18},'title':{'fontSize':0x18,'fontWeight':_0x4c4a(0x73),'marginBottom':0x8,'color':_0x4c4a(0x74)},'subtitle':{'fontSize':0x10,'color':_0x4c4a(0x75),'marginBottom':0x18},'inputContainer':{'flexDirection':'row','alignItems':_0x4c4a(0x76),'borderWidth':0x1,'borderColor':'#ddd','borderRadius':0x8,'backgroundColor':_0x4c4a(0x77),'marginBottom':0x10},'input':{'flex':0x1,'paddingHorizontal':0x10,'paddingVertical':0xc,'fontSize':0x10,'color':'#000'},'visibilityToggle':{'padding':0xc},'errorContainer':{'marginBottom':0x10},'errorItem':{'flexDirection':_0x4c4a(0x78),'alignItems':_0x4c4a(0x76),'marginBottom':0x4},'errorText':{'color':_0x4c4a(0x55),'marginLeft':0x6},'requirementsContainer':{'backgroundColor':_0x4c4a(0x79),'padding':0x10,'borderRadius':0x8,'marginBottom':0x18},'requirementsTitle':{'fontSize':0xe,'fontWeight':'600','marginBottom':0x8,'color':_0x4c4a(0x74)},'requirement':{'flexDirection':_0x4c4a(0x78),'alignItems':_0x4c4a(0x76),'marginBottom':0x8},'requirementText':{'marginLeft':0x8,'fontSize':0xe},'buttonContainer':{'flexDirection':_0x4c4a(0x78),'justifyContent':_0x4c4a(0x7a)},'button':{'flexDirection':_0x4c4a(0x78),'alignItems':_0x4c4a(0x76),'paddingVertical':0xc,'paddingHorizontal':0x14,'borderRadius':0x19},'backButton':{'backgroundColor':_0x4c4a(0x7b),'borderWidth':0x1,'borderColor':COLORS[_0x4c4a(0x66)]},'nextButton':{'backgroundColor':COLORS[_0x4c4a(0x66)],'minWidth':0x78,'justifyContent':_0x4c4a(0x76)},'disabledButton':{'backgroundColor':'#ccc'},'buttonText':{'fontSize':0x10,'fontWeight':_0x4c4a(0x7c)},'backButtonText':{'color':COLORS['primary'],'marginLeft':0x8},'nextButtonText':{'color':_0x4c4a(0x19),'marginRight':0x8}});
1
+ import React,{useState,useCallback,useEffect}from'react';function _0x4b19(){const _0x3d595b=['create','jhZHj','PINs\x20do\x20not\x20match','PIN\x20must\x20include\x20at\x20least\x20one\x20special\x20character','confirm','zcgOe','WTycL','UlJKM','cvJwA','ygSvc','VfwHa','srjaU','padding','Create\x20a\x20PIN','Please\x20re-enter\x20your\x20PIN\x20to\x20confirm','default','Enter\x20PIN','Confirm\x20PIN','#999','done','visibility-off','visibility','PIN\x20Requirements:','#4caf50','At\x20least\x20','\x20characters','check-circle','radio-button-unchecked','Include\x20at\x20least\x20one\x20special\x20character','arrow-back','Back','Next','Submit','arrow-forward','#fff','zGuwD','VNvPe','rCEib','pNTCF','dYJdr','TyuDi','TIhOe','rtvpG','yXjTi','DkNhn','length','push','test','PIN\x20must\x20include\x20at\x20least\x20one\x20number','bNTww','lgyvt','ZUtdH','dismiss','XsAPB','WIyba','aJCTu','dGOFS','dtUjT','owHdk','uFVSF','WGdDp','dRONu','fWhnJ','CBUTy','PIN\x20must\x20be\x20at\x20least\x20','yFfBn','fAWAn','yNhLg','createElement','ios','mFIUV','height','content','title','lKhZK','Confirm\x20your\x20PIN','igNJB','inputContainer','input','lrkSa','zBnXb','none','dWBEM','ExwID','DUlfR','visibilityToggle','gUSar','kDjEv','errorContainer','map','errorItem','#f44336','errorText','iLbor','zqBoD','requirement','oJwVa','pLdMz','ndGsL','iHddN','wlbaB','requirementText','Include\x20at\x20least\x20one\x20number','sHgCR','JMoIA','buttonContainer','button','backButton','hdYZT','buttonText','backButtonText','nextButton','disabledButton','iLGMH','nextButtonText','iIpzh','iHoNH','lUKzn','center','#000','row','#f5f5f5','primary','#ccc','600'];_0x4b19=function(){return _0x3d595b;};return _0x4b19();}function _0x485b(_0x4b1934,_0x485b88){_0x4b1934=_0x4b1934-0x0;const _0x50046f=_0x4b19();let _0x445cbd=_0x50046f[_0x4b1934];return _0x445cbd;}import{View,Text,StyleSheet,TextInput,TouchableOpacity,Keyboard,KeyboardAvoidingView,Platform}from'react-native';import _0x4c4b6e from'react-native-vector-icons/MaterialIcons';import{COLORS}from'../../constants';export const PinInput=({onSubmit:_0x4e1c97,minLength:minLength=0x6,requireSpecialChar:requireSpecialChar=!![],requireNumber:requireNumber=!![]})=>{const _0x427d8={'dYJdr':function(_0x53b5e4,_0x24a773){return _0x53b5e4===_0x24a773;},'rCEib':_0x485b(0x0),'zGuwD':function(_0x455e70,_0x2536e3){return _0x455e70(_0x2536e3);},'TyuDi':function(_0x1af717,_0x13879e){return _0x1af717===_0x13879e;},'TIhOe':_0x485b(0x1),'DkNhn':function(_0x585525,_0x3eab5b){return _0x585525<_0x3eab5b;},'FfByW':_0x485b(0x2),'bNTww':_0x485b(0x3),'lgyvt':function(_0x463595,_0xa7b665){return _0x463595(_0xa7b665);},'MzjZk':function(_0x23f62d,_0x189fb6){return _0x23f62d(_0x189fb6);},'yCiiF':_0x485b(0x4),'vobcP':function(_0x193ee2,_0x23da66){return _0x193ee2===_0x23da66;},'ZUtdH':_0x485b(0x5),'zuJFX':_0x485b(0x6),'XsAPB':function(_0x52d6e7,_0x34db77){return _0x52d6e7===_0x34db77;},'WIyba':function(_0x10e966,_0x2eb99f){return _0x10e966===_0x2eb99f;},'aJCTu':_0x485b(0x7),'vnpiU':function(_0xbe5e6f,_0x5daf28){return _0xbe5e6f(_0x5daf28);},'dGOFS':function(_0x7b13bc,_0x4158f3){return _0x7b13bc!==_0x4158f3;},'YgZHV':_0x485b(0x8),'dtUjT':_0x485b(0x9),'owHdk':function(_0x2b5701,_0x5a08bc){return _0x2b5701(_0x5a08bc);},'uFVSF':function(_0x199482,_0x4312c0){return _0x199482(_0x4312c0);},'WGdDp':'PIN\x20must\x20include\x20at\x20least\x20one\x20number','dRONu':_0x485b(0xa),'fWhnJ':_0x485b(0xb),'yNhLg':function(_0x301024,_0x2364bf){return _0x301024(_0x2364bf);},'VNvPe':function(_0x455c60,_0x1d3971){return _0x455c60(_0x1d3971);},'pNTCF':function(_0x53e45d,_0xf918e1,_0x429e66){return _0x53e45d(_0xf918e1,_0x429e66);},'mFIUV':_0x485b(0xc),'lKhZK':_0x485b(0xd),'igNJB':_0x485b(0xe),'lrkSa':function(_0x23fdb7,_0x41e02d){return _0x23fdb7===_0x41e02d;},'zBnXb':_0x485b(0xf),'dWBEM':_0x485b(0x10),'tWasN':_0x485b(0x11),'ExwID':_0x485b(0x12),'DUlfR':_0x485b(0x13),'gUSar':_0x485b(0x14),'hOsHI':_0x485b(0x15),'kDjEv':function(_0x3ed3a0,_0x47a8c8){return _0x3ed3a0>_0x47a8c8;},'iLbor':function(_0x3121a9,_0x5b54f8){return _0x3121a9===_0x5b54f8;},'zqBoD':_0x485b(0x16),'oJwVa':function(_0x4af358,_0x2208cc){return _0x4af358>=_0x2208cc;},'pLdMz':_0x485b(0x17),'ndGsL':_0x485b(0x18),'iHddN':_0x485b(0x19),'wlbaB':_0x485b(0x1a),'sHgCR':_0x485b(0x1b),'JMoIA':_0x485b(0x1c),'hdYZT':_0x485b(0x1d),'NUFkW':_0x485b(0x1e),'iLGMH':function(_0x4cbe26,_0x1d7cbb){return _0x4cbe26===_0x1d7cbb;},'VCuMe':function(_0x127b7a,_0x40eaa8){return _0x127b7a===_0x40eaa8;},'iIpzh':_0x485b(0x1f),'iHoNH':_0x485b(0x20),'THnYc':_0x485b(0x21),'lUKzn':_0x485b(0x22)},[_0x3fae80,_0x21b87e]=_0x427d8[_0x485b(0x23)](useState,''),[_0x3a900e,_0x4ce3d3]=useState(''),[_0x5eafa7,_0x5dc684]=useState(![]),[_0x143b58,_0x452a78]=_0x427d8[_0x485b(0x24)](useState,[]),[_0x59ab22,_0x42d67a]=_0x427d8['uFVSF'](useState,_0x427d8[_0x485b(0x25)]);_0x427d8[_0x485b(0x26)](useEffect,()=>{_0x427d8[_0x485b(0x27)](_0x59ab22,_0x427d8[_0x485b(0x25)])&&_0x427d8[_0x485b(0x23)](_0xcab3bb,_0x3fae80);},[_0x3fae80,_0x59ab22]);const _0xcab3bb=_0x427d8[_0x485b(0x26)](useCallback,_0x20bc0c=>{const _0x3655a5={'yXjTi':function(_0x39573e,_0x28fe38){return _0x39573e(_0x28fe38);}};if(_0x427d8[_0x485b(0x28)](_0x427d8[_0x485b(0x29)],_0x485b(0x2a)))_0x3655a5[_0x485b(0x2b)](_0x20a2d3,!_0x59315c);else{const _0xb6f4f9=[];return _0x427d8[_0x485b(0x2c)](_0x20bc0c[_0x485b(0x2d)],minLength)&&_0xb6f4f9[_0x485b(0x2e)]('PIN\x20must\x20be\x20at\x20least\x20'+minLength+_0x485b(0x19)),requireNumber&&!/\d/[_0x485b(0x2f)](_0x20bc0c)&&_0xb6f4f9[_0x485b(0x2e)](_0x485b(0x30)),requireSpecialChar&&!/[!@#$%^&*(),.?":{}|<>]/[_0x485b(0x2f)](_0x20bc0c)&&_0xb6f4f9['push'](_0x485b(0x3)),_0x427d8[_0x485b(0x23)](_0x452a78,_0xb6f4f9),_0xb6f4f9[_0x485b(0x2d)]===0x0;}},[minLength,requireNumber,requireSpecialChar]),_0x7386ef=_0x427d8[_0x485b(0x26)](useCallback,()=>{const _0x2e4cd7={'xWDxi':_0x427d8[_0x485b(0x31)]};_0x427d8['dYJdr'](_0x59ab22,_0x427d8[_0x485b(0x25)])?_0x427d8[_0x485b(0x32)](_0xcab3bb,_0x3fae80)&&_0x427d8['MzjZk'](_0x42d67a,_0x427d8['yCiiF']):_0x427d8['vobcP'](_0x427d8[_0x485b(0x33)],_0x427d8['zuJFX'])?_0x427d8[_0x485b(0x27)](_0x2319bb,_0x5692ae)?(_0x4f548f[_0x485b(0x34)](),_0x427d8['zGuwD'](_0x21cd48,_0x3619ce)):(_0x427d8[_0x485b(0x23)](_0x178348,[_0x427d8['FfByW']]),_0x427d8['zGuwD'](_0x106f87,'')):_0x427d8[_0x485b(0x35)](_0x3fae80,_0x3a900e)?(Keyboard[_0x485b(0x34)](),_0x4e1c97(_0x3fae80)):_0x427d8[_0x485b(0x36)](_0x485b(0x7),_0x427d8[_0x485b(0x37)])?(_0x452a78([_0x485b(0x2)]),_0x427d8['vnpiU'](_0x4ce3d3,'')):_0x42de2c[_0x485b(0x2e)](_0x2e4cd7['xWDxi']);},[_0x3fae80,_0x3a900e,_0x59ab22,_0xcab3bb,_0x4e1c97]),_0x29bf73=useCallback(()=>{_0x427d8[_0x485b(0x38)](_0x427d8['YgZHV'],_0x427d8[_0x485b(0x39)])?(_0x427d8[_0x485b(0x3a)](_0x42d67a,_0x427d8[_0x485b(0x25)]),_0x427d8[_0x485b(0x3b)](_0x4ce3d3,''),_0x452a78([])):(_0x3d8817[_0x485b(0x34)](),_0x623de0(_0x329e64));},[]),_0xd74062=useCallback(()=>{const _0x519098={'CBUTy':function(_0x22eb16,_0x59200d){return _0x427d8['DkNhn'](_0x22eb16,_0x59200d);},'yFfBn':_0x427d8[_0x485b(0x3c)],'fAWAn':_0x485b(0x3)};if(_0x427d8['vobcP'](_0x427d8[_0x485b(0x3d)],_0x427d8[_0x485b(0x3e)])){const _0x5d3dee=[];return _0x519098[_0x485b(0x3f)](_0x4e6840[_0x485b(0x2d)],_0x18ef07)&&_0x5d3dee[_0x485b(0x2e)](_0x485b(0x40)+_0xe0135d+'\x20characters'),_0x324bba&&!/\d/[_0x485b(0x2f)](_0x3d2182)&&_0x5d3dee[_0x485b(0x2e)](_0x519098[_0x485b(0x41)]),_0x5c7996&&!/[!@#$%^&*(),.?":{}|<>]/[_0x485b(0x2f)](_0x479ade)&&_0x5d3dee[_0x485b(0x2e)](_0x519098[_0x485b(0x42)]),_0x5659df(_0x5d3dee),_0x5d3dee[_0x485b(0x2d)]===0x0;}else _0x427d8[_0x485b(0x43)](_0x5dc684,!_0x5eafa7);},[_0x5eafa7]);return React[_0x485b(0x44)](KeyboardAvoidingView,{'behavior':Platform['OS']===_0x485b(0x45)?_0x427d8[_0x485b(0x46)]:_0x485b(0x47),'style':styles['container']},React[_0x485b(0x44)](View,{'style':styles[_0x485b(0x48)]},React[_0x485b(0x44)](Text,{'style':styles[_0x485b(0x49)]},_0x59ab22===_0x427d8[_0x485b(0x25)]?_0x427d8[_0x485b(0x4a)]:_0x485b(0x4b)),React[_0x485b(0x44)](Text,{'style':styles['subtitle']},_0x427d8[_0x485b(0x28)](_0x59ab22,_0x427d8['rCEib'])?'This\x20PIN\x20will\x20protect\x20your\x20Onairos\x20account':_0x427d8[_0x485b(0x4c)]),React[_0x485b(0x44)](View,{'style':styles[_0x485b(0x4d)]},React[_0x485b(0x44)](TextInput,{'style':styles[_0x485b(0x4e)],'value':_0x427d8[_0x485b(0x4f)](_0x59ab22,_0x427d8[_0x485b(0x25)])?_0x3fae80:_0x3a900e,'onChangeText':_0x427d8['lrkSa'](_0x59ab22,_0x427d8[_0x485b(0x25)])?_0x21b87e:_0x4ce3d3,'secureTextEntry':!_0x5eafa7,'keyboardType':_0x427d8[_0x485b(0x50)],'autoCapitalize':_0x485b(0x51),'autoCorrect':![],'placeholder':_0x59ab22===_0x427d8[_0x485b(0x25)]?_0x427d8[_0x485b(0x52)]:_0x427d8['tWasN'],'placeholderTextColor':_0x427d8[_0x485b(0x53)],'returnKeyType':_0x427d8[_0x485b(0x54)],'onSubmitEditing':_0x7386ef}),React[_0x485b(0x44)](TouchableOpacity,{'style':styles[_0x485b(0x55)],'onPress':_0xd74062},React[_0x485b(0x44)](_0x4c4b6e,{'name':_0x5eafa7?_0x427d8[_0x485b(0x56)]:_0x427d8['hOsHI'],'size':0x18,'color':_0x427d8['ExwID']}))),_0x427d8[_0x485b(0x57)](_0x143b58['length'],0x0)&&React[_0x485b(0x44)](View,{'style':styles[_0x485b(0x58)]},_0x143b58[_0x485b(0x59)]((_0x59d7a2,_0x1ad9ae)=>React[_0x485b(0x44)](View,{'key':_0x1ad9ae,'style':styles[_0x485b(0x5a)]},React['createElement'](_0x4c4b6e,{'name':'error-outline','size':0x10,'color':_0x485b(0x5b)}),React[_0x485b(0x44)](Text,{'style':styles[_0x485b(0x5c)]},_0x59d7a2)))),_0x427d8[_0x485b(0x5d)](_0x59ab22,_0x485b(0x0))&&React[_0x485b(0x44)](View,{'style':styles['requirementsContainer']},React[_0x485b(0x44)](Text,{'style':styles['requirementsTitle']},_0x427d8[_0x485b(0x5e)]),React[_0x485b(0x44)](View,{'style':styles[_0x485b(0x5f)]},React[_0x485b(0x44)](_0x4c4b6e,{'name':_0x427d8[_0x485b(0x60)](_0x3fae80[_0x485b(0x2d)],minLength)?'check-circle':_0x485b(0x1b),'size':0x10,'color':_0x427d8[_0x485b(0x60)](_0x3fae80[_0x485b(0x2d)],minLength)?_0x427d8[_0x485b(0x61)]:_0x427d8[_0x485b(0x53)]}),React[_0x485b(0x44)](Text,{'style':[styles['requirementText'],{'color':_0x427d8[_0x485b(0x60)](_0x3fae80[_0x485b(0x2d)],minLength)?_0x427d8[_0x485b(0x61)]:'#999'}]},_0x427d8[_0x485b(0x62)],minLength,_0x427d8[_0x485b(0x63)])),requireNumber&&React[_0x485b(0x44)](View,{'style':styles['requirement']},React[_0x485b(0x44)](_0x4c4b6e,{'name':/\d/['test'](_0x3fae80)?_0x427d8[_0x485b(0x64)]:_0x427d8['sHgCR'],'size':0x10,'color':/\d/[_0x485b(0x2f)](_0x3fae80)?_0x427d8['pLdMz']:_0x427d8['ExwID']}),React[_0x485b(0x44)](Text,{'style':[styles[_0x485b(0x65)],{'color':/\d/[_0x485b(0x2f)](_0x3fae80)?_0x427d8[_0x485b(0x61)]:_0x427d8[_0x485b(0x53)]}]},_0x485b(0x66))),requireSpecialChar&&React[_0x485b(0x44)](View,{'style':styles['requirement']},React[_0x485b(0x44)](_0x4c4b6e,{'name':/[!@#$%^&*(),.?":{}|<>]/[_0x485b(0x2f)](_0x3fae80)?'check-circle':_0x427d8[_0x485b(0x67)],'size':0x10,'color':/[!@#$%^&*(),.?":{}|<>]/['test'](_0x3fae80)?_0x427d8[_0x485b(0x61)]:_0x427d8['ExwID']}),React[_0x485b(0x44)](Text,{'style':[styles['requirementText'],{'color':/[!@#$%^&*(),.?":{}|<>]/[_0x485b(0x2f)](_0x3fae80)?_0x427d8[_0x485b(0x61)]:_0x427d8[_0x485b(0x53)]}]},_0x427d8[_0x485b(0x68)]))),React[_0x485b(0x44)](View,{'style':styles[_0x485b(0x69)]},_0x427d8[_0x485b(0x35)](_0x59ab22,_0x485b(0x4))&&React[_0x485b(0x44)](TouchableOpacity,{'style':[styles[_0x485b(0x6a)],styles[_0x485b(0x6b)]],'onPress':_0x29bf73},React[_0x485b(0x44)](_0x4c4b6e,{'name':_0x427d8[_0x485b(0x6c)],'size':0x14,'color':COLORS['primary']}),React['createElement'](Text,{'style':[styles[_0x485b(0x6d)],styles[_0x485b(0x6e)]]},_0x427d8['NUFkW'])),React['createElement'](TouchableOpacity,{'style':[styles['button'],styles[_0x485b(0x6f)],_0x59ab22===_0x427d8[_0x485b(0x25)]&&_0x143b58[_0x485b(0x2d)]>0x0||_0x427d8[_0x485b(0x36)](_0x59ab22,_0x427d8['yCiiF'])&&!_0x3a900e?styles[_0x485b(0x70)]:null],'onPress':_0x7386ef,'disabled':_0x427d8[_0x485b(0x71)](_0x59ab22,_0x427d8[_0x485b(0x25)])&&_0x427d8[_0x485b(0x57)](_0x143b58[_0x485b(0x2d)],0x0)||_0x59ab22===_0x485b(0x4)&&!_0x3a900e},React[_0x485b(0x44)](Text,{'style':[styles[_0x485b(0x6d)],styles[_0x485b(0x72)]]},_0x427d8['VCuMe'](_0x59ab22,_0x427d8['rCEib'])?_0x427d8[_0x485b(0x73)]:_0x427d8[_0x485b(0x74)]),React[_0x485b(0x44)](_0x4c4b6e,{'name':_0x427d8['THnYc'],'size':0x14,'color':_0x427d8[_0x485b(0x75)]})))));};const styles=StyleSheet[_0x485b(0x0)]({'container':{'flex':0x1},'content':{'padding':0x18},'title':{'fontSize':0x18,'fontWeight':'bold','marginBottom':0x8,'color':'#000'},'subtitle':{'fontSize':0x10,'color':'#666','marginBottom':0x18},'inputContainer':{'flexDirection':'row','alignItems':_0x485b(0x76),'borderWidth':0x1,'borderColor':'#ddd','borderRadius':0x8,'backgroundColor':'#f9f9f9','marginBottom':0x10},'input':{'flex':0x1,'paddingHorizontal':0x10,'paddingVertical':0xc,'fontSize':0x10,'color':_0x485b(0x77)},'visibilityToggle':{'padding':0xc},'errorContainer':{'marginBottom':0x10},'errorItem':{'flexDirection':_0x485b(0x78),'alignItems':'center','marginBottom':0x4},'errorText':{'color':_0x485b(0x5b),'marginLeft':0x6},'requirementsContainer':{'backgroundColor':_0x485b(0x79),'padding':0x10,'borderRadius':0x8,'marginBottom':0x18},'requirementsTitle':{'fontSize':0xe,'fontWeight':'600','marginBottom':0x8,'color':_0x485b(0x77)},'requirement':{'flexDirection':'row','alignItems':_0x485b(0x76),'marginBottom':0x8},'requirementText':{'marginLeft':0x8,'fontSize':0xe},'buttonContainer':{'flexDirection':_0x485b(0x78),'justifyContent':'space-between'},'button':{'flexDirection':'row','alignItems':'center','paddingVertical':0xc,'paddingHorizontal':0x14,'borderRadius':0x19},'backButton':{'backgroundColor':'transparent','borderWidth':0x1,'borderColor':COLORS[_0x485b(0x7a)]},'nextButton':{'backgroundColor':COLORS[_0x485b(0x7a)],'minWidth':0x78,'justifyContent':_0x485b(0x76)},'disabledButton':{'backgroundColor':_0x485b(0x7b)},'buttonText':{'fontSize':0x10,'fontWeight':_0x485b(0x7c)},'backButtonText':{'color':COLORS[_0x485b(0x7a)],'marginLeft':0x8},'nextButtonText':{'color':_0x485b(0x22),'marginRight':0x8}});
@@ -1 +1 @@
1
- import React,{useState}from'react';import{View,Text,StyleSheet,TouchableOpacity,ActivityIndicator,ScrollView}from'react-native';import _0x4b1169 from'react-native-vector-icons/MaterialIcons';import{COLORS}from'../../constants';import{OAuthWebView}from'./OAuthWebView';const PLATFORMS={'instagram':{'name':_0x4666(0x0),'icon':_0x4666(0x1),'color':_0x4666(0x2),'description':'Connect\x20to\x20share\x20and\x20analyze\x20your\x20Instagram\x20content'},'youtube':{'name':_0x4666(0x3),'icon':_0x4666(0x4),'color':_0x4666(0x5),'description':_0x4666(0x6)},'pinterest':{'name':_0x4666(0x7),'icon':_0x4666(0x8),'color':_0x4666(0x9),'description':'Connect\x20to\x20enhance\x20Pinterest\x20board\x20recommendations'},'reddit':{'name':'Reddit','icon':'forum','color':'#FF4500','description':'Connect\x20to\x20personalize\x20Reddit\x20content\x20insights'}};export const PlatformConnector=({connections:_0xb9fa98,onConnect:_0xd383a8,onDisconnect:_0x43271b,isLoading:_0x53f808,canProceed:_0x22c4e2,onProceed:_0x57c995})=>{const _0x3493ba={'uwzny':function(_0x262604,_0x5e4bb4){return _0x262604(_0x5e4bb4);},'DOtDs':function(_0x3e3638,_0x4549b3){return _0x3e3638(_0x4549b3);},'Yznqa':function(_0x46d9ac,_0x161f74){return _0x46d9ac(_0x161f74);},'AtvCY':function(_0x595311,_0x576455){return _0x595311===_0x576455;},'tCHuD':_0x4666(0xa),'ptAGq':'Disconnect','rRYUZ':_0x4666(0xb),'pXLcA':_0x4666(0xc),'wqETe':function(_0x3a5324,_0x5d1e4c){return _0x3a5324===_0x5d1e4c;},'fForo':_0x4666(0xd),'wseKI':function(_0x3ef164,_0x5b0e7d){return _0x3ef164!==_0x5b0e7d;},'EUfil':'wmDig','GHHsA':function(_0x5051c2){return _0x5051c2();},'bIrSr':_0x4666(0xe),'yQNLc':_0x4666(0xf),'UfGuL':_0x4666(0x10),'evWwp':_0x4666(0x11),'PjpEx':_0x4666(0x12)},[_0x10b6ee,_0x11590d]=_0x3493ba['Yznqa'](useState,null),_0x49d64c=async _0x422305=>{_0x11590d(_0x422305);},_0x4d0a21=()=>{_0x3493ba[_0x4666(0x13)](_0x11590d,null);},_0x219555=()=>{_0x3493ba[_0x4666(0x14)](_0x11590d,null);},_0x55a8de=async _0x2de1cc=>{await _0x3493ba['DOtDs'](_0x43271b,_0x2de1cc);},_0x1b9ef4=_0x5efcea=>{if(_0x3493ba[_0x4666(0x15)](_0x3493ba[_0x4666(0x16)],_0x3493ba[_0x4666(0x16)])){const _0x852578=_0x5efcea;return _0xb9fa98[_0x852578]?!![]:![];}else{var _0xd9160a;const _0x2e10ad=_0x126c38[_0xa7b94a],_0xebc23f=_0x3493ba['Yznqa'](_0x40ae52,_0x583aa9),_0x4d561c=_0xebc23f?(_0xd9160a=_0x1dc1dc[_0x2ed350])===null||_0x3493ba['AtvCY'](_0xd9160a,void 0x0)?void 0x0:_0xd9160a[_0x4666(0x17)]:null;return React['createElement'](View,{'key':_0x10f99c,'style':_0xd0227c[_0x4666(0x18)]},React[_0x4666(0x19)](View,{'style':_0x167fcb['platformInfo']},React[_0x4666(0x19)](View,{'style':[_0x1ff927['platformIcon'],{'backgroundColor':_0x2e10ad[_0x4666(0x1a)]}]},React[_0x4666(0x19)](_0x16eee3,{'name':_0x2e10ad[_0x4666(0x1b)],'size':0x18,'color':_0x3493ba[_0x4666(0x1c)]})),React[_0x4666(0x19)](View,{'style':_0x3eea65[_0x4666(0x1d)]},React[_0x4666(0x19)](Text,{'style':_0x4a7ac2[_0x4666(0x1e)]},_0x2e10ad[_0x4666(0x1f)]),React[_0x4666(0x19)](Text,{'style':_0x2e495b[_0x4666(0x20)]},_0xebc23f?_0x4666(0x21)+_0x4d561c:_0x2e10ad[_0x4666(0x22)]))),React[_0x4666(0x19)](TouchableOpacity,{'style':[_0x5ddcff[_0x4666(0x23)],_0xebc23f?_0x43366d[_0x4666(0x24)]:_0x503268[_0x4666(0x25)]],'onPress':()=>_0xebc23f?_0x557fd8(_0x1dcaec):_0x48ae9d(_0x1a0849),'disabled':_0x290c6e},_0x3ab37b?React['createElement'](ActivityIndicator,{'size':_0x4666(0xd),'color':_0x3493ba['tCHuD']}):React[_0x4666(0x19)](Text,{'style':_0xb34c4b[_0x4666(0x26)]},_0xebc23f?_0x3493ba[_0x4666(0x27)]:_0x3493ba[_0x4666(0x28)])));}},_0x3c82a4=()=>{return Object[_0x4666(0x29)](_0xb9fa98)[_0x4666(0x2a)](Boolean)[_0x4666(0x2b)];};return React[_0x4666(0x19)](View,{'style':styles['container']},React[_0x4666(0x19)](Text,{'style':styles['title']},_0x3493ba[_0x4666(0x2c)]),React[_0x4666(0x19)](Text,{'style':styles[_0x4666(0x2d)]},_0x3493ba['yQNLc']),React[_0x4666(0x19)](ScrollView,{'style':styles[_0x4666(0x2e)]},Object[_0x4666(0x2f)](PLATFORMS)[_0x4666(0x30)](_0x4c6268=>{var _0x5f1ab6;const _0x239693=PLATFORMS[_0x4c6268],_0x74eadf=_0x1b9ef4(_0x4c6268),_0x5d2edb=_0x74eadf?_0x3493ba[_0x4666(0x31)](_0x5f1ab6=_0xb9fa98[_0x4c6268],null)||_0x3493ba[_0x4666(0x31)](_0x5f1ab6,void 0x0)?void 0x0:_0x5f1ab6[_0x4666(0x17)]:null;return React[_0x4666(0x19)](View,{'key':_0x4c6268,'style':styles[_0x4666(0x18)]},React[_0x4666(0x19)](View,{'style':styles[_0x4666(0x32)]},React[_0x4666(0x19)](View,{'style':[styles[_0x4666(0x33)],{'backgroundColor':_0x239693[_0x4666(0x1a)]}]},React[_0x4666(0x19)](_0x4b1169,{'name':_0x239693[_0x4666(0x1b)],'size':0x18,'color':_0x3493ba[_0x4666(0x1c)]})),React[_0x4666(0x19)](View,{'style':styles[_0x4666(0x1d)]},React['createElement'](Text,{'style':styles[_0x4666(0x1e)]},_0x239693[_0x4666(0x1f)]),React[_0x4666(0x19)](Text,{'style':styles[_0x4666(0x20)]},_0x74eadf?_0x4666(0x21)+_0x5d2edb:_0x239693[_0x4666(0x22)]))),React[_0x4666(0x19)](TouchableOpacity,{'style':[styles[_0x4666(0x23)],_0x74eadf?styles[_0x4666(0x24)]:styles['connectButton']],'onPress':()=>_0x74eadf?_0x55a8de(_0x4c6268):_0x49d64c(_0x4c6268),'disabled':_0x53f808},_0x53f808?React[_0x4666(0x19)](ActivityIndicator,{'size':_0x3493ba[_0x4666(0x34)],'color':_0x3493ba['tCHuD']}):React[_0x4666(0x19)](Text,{'style':styles[_0x4666(0x26)]},_0x74eadf?_0x4666(0x35):_0x4666(0xb))));})),React[_0x4666(0x19)](View,{'style':styles[_0x4666(0x36)]},React[_0x4666(0x19)](Text,{'style':styles[_0x4666(0x37)]},_0x3493ba[_0x4666(0x38)](_0x3c82a4),_0x3493ba['UfGuL'],Object['keys'](PLATFORMS)[_0x4666(0x2b)],_0x4666(0x39)),React[_0x4666(0x19)](TouchableOpacity,{'style':[styles[_0x4666(0x3a)],_0x22c4e2?styles[_0x4666(0x3b)]:styles['proceedInactive']],'onPress':_0x57c995,'disabled':!_0x22c4e2},React[_0x4666(0x19)](Text,{'style':[styles[_0x4666(0x3c)],_0x22c4e2?styles[_0x4666(0x3d)]:styles[_0x4666(0x3e)]]},_0x3493ba[_0x4666(0x3f)]),React[_0x4666(0x19)](_0x4b1169,{'name':_0x4666(0x40),'size':0x14,'color':_0x22c4e2?_0x3493ba[_0x4666(0x1c)]:_0x3493ba[_0x4666(0x41)]}))),_0x10b6ee&&React[_0x4666(0x19)](OAuthWebView,{'url':_0x4666(0x42)+_0x10b6ee,'platform':_0x10b6ee,'onComplete':_0x4d0a21,'onClose':_0x219555,'onSuccess':_0x2912ab=>{_0x3493ba['wseKI'](_0x3493ba[_0x4666(0x43)],_0x3493ba[_0x4666(0x43)])?(_0x2d83c1[_0x4666(0x44)](_0x4666(0x45)+_0x4a9219+':\x20'+_0x4912ed),_0x133c4b()):(console[_0x4666(0x44)](_0x4666(0x45)+_0x10b6ee+':\x20'+_0x2912ab),_0x3493ba[_0x4666(0x38)](_0x4d0a21));}}));};const styles=StyleSheet['create']({'container':{'flex':0x1,'padding':0x10},'title':{'fontSize':0x18,'fontWeight':_0x4666(0x46),'marginBottom':0x8,'color':_0x4666(0x47)},'subtitle':{'fontSize':0x10,'color':'#666','marginBottom':0x18},'platformList':{'flex':0x1},'platformItem':{'flexDirection':_0x4666(0x48),'alignItems':_0x4666(0x49),'marginBottom':0x10,'padding':0xc,'backgroundColor':_0x4666(0x4a),'borderRadius':0xc,'borderWidth':0x1,'borderColor':'#eee'},'platformInfo':{'flex':0x1,'flexDirection':_0x4666(0x48),'alignItems':'center'},'platformIcon':{'width':0x28,'height':0x28,'borderRadius':0x14,'justifyContent':_0x4666(0x49),'alignItems':'center','marginRight':0xc},'platformText':{'flex':0x1},'platformName':{'fontSize':0x10,'fontWeight':_0x4666(0x4b),'marginBottom':0x4,'color':_0x4666(0x47)},'platformDescription':{'fontSize':0xe,'color':_0x4666(0x4c)},'platformButton':{'paddingHorizontal':0x10,'paddingVertical':0x8,'borderRadius':0x14,'justifyContent':'center','alignItems':_0x4666(0x49),'minWidth':0x64},'connectButton':{'backgroundColor':COLORS[_0x4666(0x4d)]},'disconnectButton':{'backgroundColor':_0x4666(0x4e)},'buttonText':{'color':'#fff','fontWeight':'600'},'footer':{'flexDirection':'row','alignItems':'center','justifyContent':_0x4666(0x4f),'paddingTop':0x10,'borderTopWidth':0x1,'borderTopColor':'#eee','marginTop':0x10},'connectionStatus':{'fontSize':0xe,'color':'#666'},'proceedButton':{'flexDirection':_0x4666(0x48),'alignItems':_0x4666(0x49),'paddingHorizontal':0x10,'paddingVertical':0xa,'borderRadius':0x18},'proceedActive':{'backgroundColor':COLORS[_0x4666(0x4d)]},'proceedInactive':{'backgroundColor':_0x4666(0x50)},'proceedText':{'fontWeight':_0x4666(0x4b),'marginRight':0x8},'proceedTextActive':{'color':_0x4666(0xa)},'proceedTextInactive':{'color':_0x4666(0x12)}});function _0x4666(_0x1dd94f,_0x466630){_0x1dd94f=_0x1dd94f-0x0;const _0x540016=_0x1dd9();let _0x3f087c=_0x540016[_0x1dd94f];return _0x3f087c;}function _0x1dd9(){const _0x155aad=['Instagram','photo-camera','#E1306C','YouTube','smart-display','#FF0000','Connect\x20for\x20YouTube\x20video\x20recommendations\x20and\x20analysis','Pinterest','push-pin','#E60023','#fff','Connect','cMSde','small','Connect\x20Your\x20Platforms','Connect\x20at\x20least\x202\x20platforms\x20to\x20create\x20your\x20Onairos\x20account','\x20of\x20','Continue','#999','uwzny','DOtDs','AtvCY','pXLcA','userName','platformItem','createElement','color','icon','tCHuD','platformText','platformName','name','platformDescription','Connected\x20as\x20','description','platformButton','disconnectButton','connectButton','buttonText','ptAGq','rRYUZ','values','filter','length','bIrSr','subtitle','platformList','keys','map','wqETe','platformInfo','platformIcon','fForo','Disconnect','footer','connectionStatus','GHHsA','\x20platforms\x20connected','proceedButton','proceedActive','proceedText','proceedTextActive','proceedTextInactive','evWwp','arrow-forward','PjpEx','https://oauth.example.com/','EUfil','log','Received\x20authorization\x20code\x20for\x20','bold','#000','row','center','#f8f8f8','600','#666','primary','#f44336','space-between','#eee'];_0x1dd9=function(){return _0x155aad;};return _0x1dd9();}
1
+ import React,{useState}from'react';function _0x5e0f(_0x11e22b,_0x5e0fbd){_0x11e22b=_0x11e22b-0x0;const _0x114128=_0x11e2();let _0xf2fe92=_0x114128[_0x11e22b];return _0xf2fe92;}import{View,Text,StyleSheet,TouchableOpacity,ActivityIndicator,ScrollView}from'react-native';import _0x51e397 from'react-native-vector-icons/MaterialIcons';import{COLORS}from'../../constants';import{OAuthWebView}from'./OAuthWebView';const PLATFORMS={'instagram':{'name':_0x5e0f(0x0),'icon':_0x5e0f(0x1),'color':_0x5e0f(0x2),'description':_0x5e0f(0x3)},'youtube':{'name':_0x5e0f(0x4),'icon':_0x5e0f(0x5),'color':_0x5e0f(0x6),'description':_0x5e0f(0x7)},'pinterest':{'name':_0x5e0f(0x8),'icon':_0x5e0f(0x9),'color':_0x5e0f(0xa),'description':_0x5e0f(0xb)},'reddit':{'name':_0x5e0f(0xc),'icon':_0x5e0f(0xd),'color':_0x5e0f(0xe),'description':_0x5e0f(0xf)}};export const PlatformConnector=({connections:_0x1dff4e,onConnect:_0x58e96a,onDisconnect:_0x1087ec,isLoading:_0x3e8056,canProceed:_0x140cff,onProceed:_0x20e2e3})=>{const _0x3e01b7={'lmUan':function(_0x327b06,_0x2be443){return _0x327b06!==_0x2be443;},'xxeJO':function(_0x1901ab,_0x345067){return _0x1901ab(_0x345067);},'CUndq':function(_0x50e1de,_0x131c9d){return _0x50e1de===_0x131c9d;},'rgHfA':_0x5e0f(0x10),'FIChu':_0x5e0f(0x11),'fshyN':'Disconnect','ZCFRD':_0x5e0f(0x12),'wdSZE':_0x5e0f(0x13),'ZDJbq':function(_0x33da51,_0x5f7f31){return _0x33da51(_0x5f7f31);},'BMFEn':function(_0x5e557c){return _0x5e557c();},'zNJCq':function(_0x40ea88,_0xc4ee2f){return _0x40ea88!==_0xc4ee2f;},'drpit':_0x5e0f(0x14),'slQuS':_0x5e0f(0x15),'GDSzz':function(_0xdcc379,_0x4b81db){return _0xdcc379(_0x4b81db);},'gmjQI':_0x5e0f(0x16),'eUKPE':_0x5e0f(0x17),'Rskhi':function(_0x8537e9){return _0x8537e9();},'WYjvC':'\x20of\x20','Nlblp':'Continue','spWEi':_0x5e0f(0x18),'ezWMN':'#999'},[_0x3d729c,_0x31f05b]=_0x3e01b7[_0x5e0f(0x19)](useState,null),_0x4ef5db=async _0x16743d=>{if(_0x3e01b7[_0x5e0f(0x1a)](_0x5e0f(0x1b),_0x5e0f(0x1b)))return _0x205e92[_0x5e0f(0x1c)](_0x2e4f37)[_0x5e0f(0x1d)](_0x18e049)[_0x5e0f(0x1e)];else _0x31f05b(_0x16743d);},_0x2259c5=()=>{if(_0x3e01b7[_0x5e0f(0x1a)](_0x3e01b7[_0x5e0f(0x1f)],_0x3e01b7['wdSZE']))_0x3e01b7[_0x5e0f(0x20)](_0x31f05b,null);else{var _0x21c034;const _0xbcb9ee=_0x53b7e4[_0x2d70bb],_0x1237af=_0x3e01b7['xxeJO'](_0x461b32,_0x3ee2b8),_0x1a3560=_0x1237af?_0x3e01b7[_0x5e0f(0x21)](_0x21c034=_0x3b26e3[_0x122240],null)||_0x21c034===void 0x0?void 0x0:_0x21c034[_0x5e0f(0x22)]:null;return React[_0x5e0f(0x23)](View,{'key':_0x581858,'style':_0x4fe46d[_0x5e0f(0x24)]},React[_0x5e0f(0x23)](View,{'style':_0xfbc6a7[_0x5e0f(0x25)]},React[_0x5e0f(0x23)](View,{'style':[_0x46250a[_0x5e0f(0x26)],{'backgroundColor':_0xbcb9ee[_0x5e0f(0x27)]}]},React[_0x5e0f(0x23)](_0x4111f3,{'name':_0xbcb9ee[_0x5e0f(0x28)],'size':0x18,'color':_0x3e01b7[_0x5e0f(0x29)]})),React[_0x5e0f(0x23)](View,{'style':_0x1c2463[_0x5e0f(0x2a)]},React[_0x5e0f(0x23)](Text,{'style':_0xb4575f[_0x5e0f(0x2b)]},_0xbcb9ee['name']),React[_0x5e0f(0x23)](Text,{'style':_0x175d7e['platformDescription']},_0x1237af?_0x5e0f(0x2c)+_0x1a3560:_0xbcb9ee[_0x5e0f(0x2d)]))),React['createElement'](TouchableOpacity,{'style':[_0x498ddb[_0x5e0f(0x2e)],_0x1237af?_0x2dcab1[_0x5e0f(0x2f)]:_0x27a2ff[_0x5e0f(0x30)]],'onPress':()=>_0x1237af?_0x2fafe2(_0x8da507):_0x54b86a(_0x3b9bbd),'disabled':_0x2e3cee},_0x44876d?React['createElement'](ActivityIndicator,{'size':_0x3e01b7[_0x5e0f(0x31)],'color':_0x3e01b7['rgHfA']}):React[_0x5e0f(0x23)](Text,{'style':_0x35dc7f[_0x5e0f(0x32)]},_0x1237af?_0x3e01b7[_0x5e0f(0x33)]:_0x5e0f(0x34))));}},_0x196a3f=()=>{_0x3e01b7[_0x5e0f(0x35)](_0x31f05b,null);},_0x4c4318=async _0x12d7cc=>{await _0x1087ec(_0x12d7cc);},_0x3788a9=_0x481375=>{const _0x320670=_0x481375;return _0x1dff4e[_0x320670]?!![]:![];},_0x284a7a=()=>{if(_0x3e01b7[_0x5e0f(0x36)](_0x3e01b7[_0x5e0f(0x37)],_0x3e01b7[_0x5e0f(0x38)]))return Object[_0x5e0f(0x1c)](_0x1dff4e)[_0x5e0f(0x1d)](Boolean)['length'];else _0x131f76['log']('Received\x20authorization\x20code\x20for\x20'+_0x1885f9+':\x20'+_0x167904),_0x3e01b7['BMFEn'](_0x77c7f6);};return React[_0x5e0f(0x23)](View,{'style':styles['container']},React[_0x5e0f(0x23)](Text,{'style':styles[_0x5e0f(0x39)]},_0x3e01b7[_0x5e0f(0x3a)]),React[_0x5e0f(0x23)](Text,{'style':styles[_0x5e0f(0x3b)]},_0x3e01b7[_0x5e0f(0x3c)]),React[_0x5e0f(0x23)](ScrollView,{'style':styles[_0x5e0f(0x3d)]},Object['keys'](PLATFORMS)[_0x5e0f(0x3e)](_0x2f73d3=>{var _0x33b4c3;const _0x46a982=PLATFORMS[_0x2f73d3],_0x2b95ba=_0x3e01b7['GDSzz'](_0x3788a9,_0x2f73d3),_0xd224ce=_0x2b95ba?(_0x33b4c3=_0x1dff4e[_0x2f73d3])===null||_0x3e01b7[_0x5e0f(0x21)](_0x33b4c3,void 0x0)?void 0x0:_0x33b4c3[_0x5e0f(0x22)]:null;return React['createElement'](View,{'key':_0x2f73d3,'style':styles['platformItem']},React['createElement'](View,{'style':styles[_0x5e0f(0x25)]},React[_0x5e0f(0x23)](View,{'style':[styles[_0x5e0f(0x26)],{'backgroundColor':_0x46a982[_0x5e0f(0x27)]}]},React['createElement'](_0x51e397,{'name':_0x46a982[_0x5e0f(0x28)],'size':0x18,'color':_0x3e01b7['rgHfA']})),React[_0x5e0f(0x23)](View,{'style':styles[_0x5e0f(0x2a)]},React[_0x5e0f(0x23)](Text,{'style':styles['platformName']},_0x46a982[_0x5e0f(0x3f)]),React[_0x5e0f(0x23)](Text,{'style':styles[_0x5e0f(0x40)]},_0x2b95ba?_0x5e0f(0x2c)+_0xd224ce:_0x46a982[_0x5e0f(0x2d)]))),React[_0x5e0f(0x23)](TouchableOpacity,{'style':[styles['platformButton'],_0x2b95ba?styles[_0x5e0f(0x2f)]:styles['connectButton']],'onPress':()=>_0x2b95ba?_0x4c4318(_0x2f73d3):_0x4ef5db(_0x2f73d3),'disabled':_0x3e8056},_0x3e8056?React[_0x5e0f(0x23)](ActivityIndicator,{'size':_0x3e01b7[_0x5e0f(0x31)],'color':_0x5e0f(0x10)}):React['createElement'](Text,{'style':styles[_0x5e0f(0x32)]},_0x2b95ba?_0x5e0f(0x41):_0x5e0f(0x34))));})),React['createElement'](View,{'style':styles[_0x5e0f(0x42)]},React[_0x5e0f(0x23)](Text,{'style':styles[_0x5e0f(0x43)]},_0x3e01b7['Rskhi'](_0x284a7a),_0x3e01b7['WYjvC'],Object[_0x5e0f(0x44)](PLATFORMS)['length'],_0x5e0f(0x45)),React['createElement'](TouchableOpacity,{'style':[styles[_0x5e0f(0x46)],_0x140cff?styles[_0x5e0f(0x47)]:styles['proceedInactive']],'onPress':_0x20e2e3,'disabled':!_0x140cff},React[_0x5e0f(0x23)](Text,{'style':[styles['proceedText'],_0x140cff?styles['proceedTextActive']:styles[_0x5e0f(0x48)]]},_0x3e01b7[_0x5e0f(0x49)]),React[_0x5e0f(0x23)](_0x51e397,{'name':_0x3e01b7[_0x5e0f(0x4a)],'size':0x14,'color':_0x140cff?_0x3e01b7[_0x5e0f(0x29)]:_0x3e01b7[_0x5e0f(0x4b)]}))),_0x3d729c&&React['createElement'](OAuthWebView,{'url':_0x5e0f(0x4c)+_0x3d729c,'platform':_0x3d729c,'onComplete':_0x2259c5,'onClose':_0x196a3f,'onSuccess':_0x15cdf9=>{console[_0x5e0f(0x4d)](_0x5e0f(0x4e)+_0x3d729c+':\x20'+_0x15cdf9),_0x3e01b7[_0x5e0f(0x4f)](_0x2259c5);}}));};const styles=StyleSheet[_0x5e0f(0x50)]({'container':{'flex':0x1,'padding':0x10},'title':{'fontSize':0x18,'fontWeight':_0x5e0f(0x51),'marginBottom':0x8,'color':_0x5e0f(0x52)},'subtitle':{'fontSize':0x10,'color':_0x5e0f(0x53),'marginBottom':0x18},'platformList':{'flex':0x1},'platformItem':{'flexDirection':_0x5e0f(0x54),'alignItems':_0x5e0f(0x55),'marginBottom':0x10,'padding':0xc,'backgroundColor':_0x5e0f(0x56),'borderRadius':0xc,'borderWidth':0x1,'borderColor':'#eee'},'platformInfo':{'flex':0x1,'flexDirection':_0x5e0f(0x54),'alignItems':_0x5e0f(0x55)},'platformIcon':{'width':0x28,'height':0x28,'borderRadius':0x14,'justifyContent':_0x5e0f(0x55),'alignItems':_0x5e0f(0x55),'marginRight':0xc},'platformText':{'flex':0x1},'platformName':{'fontSize':0x10,'fontWeight':_0x5e0f(0x57),'marginBottom':0x4,'color':_0x5e0f(0x52)},'platformDescription':{'fontSize':0xe,'color':_0x5e0f(0x53)},'platformButton':{'paddingHorizontal':0x10,'paddingVertical':0x8,'borderRadius':0x14,'justifyContent':_0x5e0f(0x55),'alignItems':_0x5e0f(0x55),'minWidth':0x64},'connectButton':{'backgroundColor':COLORS[_0x5e0f(0x58)]},'disconnectButton':{'backgroundColor':_0x5e0f(0x59)},'buttonText':{'color':_0x5e0f(0x10),'fontWeight':_0x5e0f(0x57)},'footer':{'flexDirection':_0x5e0f(0x54),'alignItems':'center','justifyContent':_0x5e0f(0x5a),'paddingTop':0x10,'borderTopWidth':0x1,'borderTopColor':'#eee','marginTop':0x10},'connectionStatus':{'fontSize':0xe,'color':'#666'},'proceedButton':{'flexDirection':_0x5e0f(0x54),'alignItems':_0x5e0f(0x55),'paddingHorizontal':0x10,'paddingVertical':0xa,'borderRadius':0x18},'proceedActive':{'backgroundColor':COLORS[_0x5e0f(0x58)]},'proceedInactive':{'backgroundColor':_0x5e0f(0x5b)},'proceedText':{'fontWeight':_0x5e0f(0x57),'marginRight':0x8},'proceedTextActive':{'color':_0x5e0f(0x10)},'proceedTextInactive':{'color':'#999'}});function _0x11e2(){const _0x323051=['Instagram','photo-camera','#E1306C','Connect\x20to\x20share\x20and\x20analyze\x20your\x20Instagram\x20content','YouTube','smart-display','#FF0000','Connect\x20for\x20YouTube\x20video\x20recommendations\x20and\x20analysis','Pinterest','push-pin','#E60023','Connect\x20to\x20enhance\x20Pinterest\x20board\x20recommendations','Reddit','forum','#FF4500','Connect\x20to\x20personalize\x20Reddit\x20content\x20insights','#fff','small','aTnof','zCcGE','fHmbT','NUOnl','Connect\x20Your\x20Platforms','Connect\x20at\x20least\x202\x20platforms\x20to\x20create\x20your\x20Onairos\x20account','arrow-forward','GDSzz','lmUan','hiqVU','values','filter','length','ZCFRD','ZDJbq','CUndq','userName','createElement','platformItem','platformInfo','platformIcon','color','icon','rgHfA','platformText','platformName','Connected\x20as\x20','description','platformButton','disconnectButton','connectButton','FIChu','buttonText','fshyN','Connect','xxeJO','zNJCq','drpit','slQuS','title','gmjQI','subtitle','eUKPE','platformList','map','name','platformDescription','Disconnect','footer','connectionStatus','keys','\x20platforms\x20connected','proceedButton','proceedActive','proceedTextInactive','Nlblp','spWEi','ezWMN','https://oauth.example.com/','log','Received\x20authorization\x20code\x20for\x20','BMFEn','create','bold','#000','#666','row','center','#f8f8f8','600','primary','#f44336','space-between','#eee'];_0x11e2=function(){return _0x323051;};return _0x11e2();}
@@ -1 +1 @@
1
- import{getAuthToken}from'../services/authService';export const API_CONFIG={'BASE_URL':'https://api2.onairos.uk','ENDPOINTS':{'AUTH':'/auth','USER':_0x168c(0x0),'CONNECTIONS':_0x168c(0x1),'TRAINING':'/training','OAUTH':_0x168c(0x2)},'TIMEOUT':0x7530};export const getApiHeaders=()=>({'Content-Type':'application/json','Accept':'application/json'});function _0x5c58(){const _0x1df847=['/user','/connections','/oauth','Bearer\x20','User\x20not\x20authenticated\x20-\x20no\x20JWT\x20token\x20found','ziTnZ'];_0x5c58=function(){return _0x1df847;};return _0x5c58();}function _0x168c(_0x5c58c4,_0x168c47){_0x5c58c4=_0x5c58c4-0x0;const _0x569c0b=_0x5c58();let _0x4127d4=_0x569c0b[_0x5c58c4];return _0x4127d4;}export const getAuthHeaders=_0x7937e4=>({...getApiHeaders(),..._0x7937e4&&{'Authorization':_0x168c(0x3)+_0x7937e4}});export const getUserAuthHeaders=async()=>{const _0x577e44={'hbdPk':_0x168c(0x4),'ziTnZ':function(_0x5ec391){return _0x5ec391();}},_0x34d2a9=await getAuthToken();if(!_0x34d2a9)throw new Error(_0x577e44['hbdPk']);return{..._0x577e44[_0x168c(0x5)](getApiHeaders),'Authorization':_0x168c(0x3)+_0x34d2a9};};
1
+ import{getAuthToken}from'../services/authService';function _0x1b23(_0x3b6a27,_0x1b23e9){_0x3b6a27=_0x3b6a27-0x0;const _0x5e396a=_0x3b6a();let _0x1c241d=_0x5e396a[_0x3b6a27];return _0x1c241d;}export const API_CONFIG={'BASE_URL':'https://api2.onairos.uk','ENDPOINTS':{'AUTH':_0x1b23(0x0),'USER':_0x1b23(0x1),'CONNECTIONS':_0x1b23(0x2),'TRAINING':'/training','OAUTH':_0x1b23(0x3)},'TIMEOUT':0x7530};export const getApiHeaders=()=>({'Content-Type':'application/json','Accept':'application/json'});function _0x3b6a(){const _0x5883f7=['/auth','/user','/connections','/oauth','Bearer\x20','tQLIN'];_0x3b6a=function(){return _0x5883f7;};return _0x3b6a();}export const getAuthHeaders=_0x3c4670=>({...getApiHeaders(),..._0x3c4670&&{'Authorization':_0x1b23(0x4)+_0x3c4670}});export const getUserAuthHeaders=async()=>{const _0x55679e={'YACBQ':function(_0x3b4e28){return _0x3b4e28();},'bXqEj':'User\x20not\x20authenticated\x20-\x20no\x20JWT\x20token\x20found','tQLIN':function(_0x535af8){return _0x535af8();}},_0x19b3f7=await _0x55679e['YACBQ'](getAuthToken);if(!_0x19b3f7)throw new Error(_0x55679e['bXqEj']);return{..._0x55679e[_0x1b23(0x5)](getApiHeaders),'Authorization':_0x1b23(0x4)+_0x19b3f7};};
@@ -1 +1 @@
1
- import{API_CONFIG}from'../config/api';function _0x39fc(_0x5df973,_0x39fc35){_0x5df973=_0x5df973-0x0;const _0x201681=_0x5df9();let _0x2de1b9=_0x201681[_0x5df973];return _0x2de1b9;}export const COLORS={'primary':'#1BA9D4','headerBg':_0x39fc(0x0),'text':{'primary':_0x39fc(0x1),'secondary':_0x39fc(0x2)},'border':'#E5E5E5','success':'#34C759','error':_0x39fc(0x3),'instagram':_0x39fc(0x4),'pinterest':_0x39fc(0x5),'reddit':_0x39fc(0x6),'youtube':_0x39fc(0x7),'chatgpt':_0x39fc(0x8),'llm':_0x39fc(0x8),'white':'#FFFFFF','black':_0x39fc(0x1),'gray':_0x39fc(0x2),'lightGray':_0x39fc(0x9)};function _0x5df9(){const _0x1ebde1=['#F8F9FA','#000000','#666666','#FF3B30','#E1306C','#E60023','#FF4500','#FF0000','#10A37F','#E5E5E5','Instagram','instagram','Connect\x20your\x20Instagram\x20account\x20to\x20train\x20your\x20AI\x20model','Pinterest','pinterest','Use\x20your\x20Pinterest\x20boards\x20for\x20AI\x20training','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','llm','/instagram/auth','/pinterest/auth','/youtube/auth','/chatgpt/auth','/instagram/callback','/pinterest/callback','/reddit/callback','/youtube/callback','/chatgpt/callback','/llmdata','onairos_credentials','onairosanime','onairosanime://auth/'];_0x5df9=function(){return _0x1ebde1;};return _0x5df9();}export const PLATFORMS={'instagram':{'name':_0x39fc(0xa),'icon':_0x39fc(0xb),'color':COLORS[_0x39fc(0xb)],'description':_0x39fc(0xc)},'pinterest':{'name':_0x39fc(0xd),'icon':_0x39fc(0xe),'color':COLORS[_0x39fc(0xe)],'description':_0x39fc(0xf)},'reddit':{'name':'Reddit','icon':_0x39fc(0x10),'color':COLORS[_0x39fc(0x10)],'description':_0x39fc(0x11)},'youtube':{'name':'YouTube','icon':'youtube','color':COLORS[_0x39fc(0x12)],'description':_0x39fc(0x13)},'chatgpt':{'name':_0x39fc(0x14),'icon':_0x39fc(0x15),'color':COLORS[_0x39fc(0x16)],'description':_0x39fc(0x17)},'llm':{'name':_0x39fc(0x18),'icon':'psychology','color':COLORS[_0x39fc(0x19)],'description':'Connect\x20your\x20AI\x20conversation\x20data'}};export const API_ENDPOINTS={'base':API_CONFIG['BASE_URL'],'oauth':{'instagram':_0x39fc(0x1a),'pinterest':_0x39fc(0x1b),'reddit':'/reddit/auth','youtube':_0x39fc(0x1c),'chatgpt':'/chatgpt/auth','llm':_0x39fc(0x1d)},'callback':{'instagram':_0x39fc(0x1e),'pinterest':_0x39fc(0x1f),'reddit':_0x39fc(0x20),'youtube':_0x39fc(0x21),'chatgpt':_0x39fc(0x22),'llm':_0x39fc(0x22)},'llm':{'dataIngest':_0x39fc(0x23),'dataRequest':'/llmdata/request'}};export const STORAGE_KEYS={'credentials':_0x39fc(0x24),'connections':'onairos_connections'};export const PIN_REQUIREMENTS={'minLength':0x8,'requireUppercase':!![],'requireLowercase':!![],'requireNumber':!![],'requireSpecialChar':!![]};export const DEEP_LINK_CONFIG={'scheme':_0x39fc(0x25),'host':'authenticate','redirectUri':_0x39fc(0x26)};
1
+ function _0x5a71(){const _0x4cab5a=['#1BA9D4','#F8F9FA','#000000','#666666','#E5E5E5','#34C759','#E1306C','#E60023','#FF0000','#10A37F','Instagram','instagram','Pinterest','pinterest','Reddit','reddit','Connect\x20Reddit\x20to\x20enhance\x20your\x20AI\x20model','YouTube','youtube','Use\x20YouTube\x20data\x20to\x20improve\x20AI\x20recommendations','ChatGPT','chat','Connect\x20your\x20ChatGPT\x20conversations\x20for\x20AI\x20insights','LLM\x20Data','psychology','llm','Connect\x20your\x20AI\x20conversation\x20data','BASE_URL','/instagram/auth','/pinterest/auth','/reddit/auth','/chatgpt/auth','/instagram/callback','/pinterest/callback','/reddit/callback','/youtube/callback','/chatgpt/callback','/llmdata','/llmdata/request','onairos_credentials','onairosanime'];_0x5a71=function(){return _0x4cab5a;};return _0x5a71();}import{API_CONFIG}from'../config/api';export const COLORS={'primary':_0x10c9(0x0),'headerBg':_0x10c9(0x1),'text':{'primary':_0x10c9(0x2),'secondary':_0x10c9(0x3)},'border':_0x10c9(0x4),'success':_0x10c9(0x5),'error':'#FF3B30','instagram':_0x10c9(0x6),'pinterest':_0x10c9(0x7),'reddit':'#FF4500','youtube':_0x10c9(0x8),'chatgpt':_0x10c9(0x9),'llm':_0x10c9(0x9),'white':'#FFFFFF','black':'#000000','gray':'#666666','lightGray':'#E5E5E5'};export const PLATFORMS={'instagram':{'name':_0x10c9(0xa),'icon':_0x10c9(0xb),'color':COLORS[_0x10c9(0xb)],'description':'Connect\x20your\x20Instagram\x20account\x20to\x20train\x20your\x20AI\x20model'},'pinterest':{'name':_0x10c9(0xc),'icon':_0x10c9(0xd),'color':COLORS['pinterest'],'description':'Use\x20your\x20Pinterest\x20boards\x20for\x20AI\x20training'},'reddit':{'name':_0x10c9(0xe),'icon':_0x10c9(0xf),'color':COLORS[_0x10c9(0xf)],'description':_0x10c9(0x10)},'youtube':{'name':_0x10c9(0x11),'icon':_0x10c9(0x12),'color':COLORS[_0x10c9(0x12)],'description':_0x10c9(0x13)},'chatgpt':{'name':_0x10c9(0x14),'icon':_0x10c9(0x15),'color':COLORS['chatgpt'],'description':_0x10c9(0x16)},'llm':{'name':_0x10c9(0x17),'icon':_0x10c9(0x18),'color':COLORS[_0x10c9(0x19)],'description':_0x10c9(0x1a)}};export const API_ENDPOINTS={'base':API_CONFIG[_0x10c9(0x1b)],'oauth':{'instagram':_0x10c9(0x1c),'pinterest':_0x10c9(0x1d),'reddit':_0x10c9(0x1e),'youtube':'/youtube/auth','chatgpt':_0x10c9(0x1f),'llm':_0x10c9(0x1f)},'callback':{'instagram':_0x10c9(0x20),'pinterest':_0x10c9(0x21),'reddit':_0x10c9(0x22),'youtube':_0x10c9(0x23),'chatgpt':_0x10c9(0x24),'llm':_0x10c9(0x24)},'llm':{'dataIngest':_0x10c9(0x25),'dataRequest':_0x10c9(0x26)}};function _0x10c9(_0x5a71de,_0x10c918){_0x5a71de=_0x5a71de-0x0;const _0x16a8da=_0x5a71();let _0x364899=_0x16a8da[_0x5a71de];return _0x364899;}export const STORAGE_KEYS={'credentials':_0x10c9(0x27),'connections':'onairos_connections'};export const PIN_REQUIREMENTS={'minLength':0x8,'requireUppercase':!![],'requireLowercase':!![],'requireNumber':!![],'requireSpecialChar':!![]};export const DEEP_LINK_CONFIG={'scheme':_0x10c9(0x28),'host':'authenticate','redirectUri':'onairosanime://auth/'};
@@ -1 +1 @@
1
- import React,{createContext,useState,useEffect,useContext}from'react';import AsyncStorage from'@react-native-async-storage/async-storage';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);export const AuthProvider=({children:_0x557ba7})=>{const _0x131c0c={'JdHuu':'🌐\x20Network\x20verification\x20failed,\x20using\x20local\x20token\x20validation:','BlFxc':_0x43e2(0x0),'qUnEe':'user','fHWVf':function(_0x53af3a,_0x5751de){return _0x53af3a&&_0x5751de;},'nmrjw':_0x43e2(0x1),'wNysZ':function(_0x24d49a,_0x4de6cc){return _0x24d49a(_0x4de6cc);},'FgbFG':_0x43e2(0x2),'flrmB':function(_0x115593){return _0x115593();},'dkrdz':_0x43e2(0x3),'PKggh':function(_0x260252){return _0x260252();},'JgCtg':_0x43e2(0x4),'NRlDG':function(_0x4829cd,_0xb15bd8){return _0x4829cd!==_0xb15bd8;},'kEAkT':'ROqif','YhKcD':function(_0x1009e4,_0x434347){return _0x1009e4(_0x434347);},'WkAfe':'NEzjv','ERRBp':_0x43e2(0x5),'MXryY':function(_0x86681f,_0x45e5b9){return _0x86681f(_0x45e5b9);},'zRngy':'LqQoA','mPqqv':_0x43e2(0x6),'LzPTM':_0x43e2(0x7),'SUoxT':function(_0x29f608,_0x1ed890){return _0x29f608 instanceof _0x1ed890;},'WQrOe':_0x43e2(0x8),'nEpLh':_0x43e2(0x9),'RfoRf':function(_0x2edfb9,_0x5c91fd){return _0x2edfb9!==_0x5c91fd;},'CIdAk':_0x43e2(0xa),'Cypaq':_0x43e2(0xb),'kwxhe':_0x43e2(0xc),'Btbtn':'user@onairos.com','FYXqL':function(_0x3f8156,_0x433051){return _0x3f8156(_0x433051);},'FJRwW':_0x43e2(0xd),'QWKJt':function(_0x48e811,_0x19542f){return _0x48e811===_0x19542f;},'QELXJ':function(_0x144624,_0x27c45c){return _0x144624!==_0x27c45c;},'MWzYw':_0x43e2(0xe),'AbpyR':_0x43e2(0xf),'uITxy':function(_0x20bd30,_0x3f5147){return _0x20bd30(_0x3f5147);},'FZEPH':function(_0x3d42b4,_0x4514ad){return _0x3d42b4(_0x4514ad);},'qNJvD':_0x43e2(0x10),'PRLKs':function(_0x2ebb5a,_0x287c8d){return _0x2ebb5a(_0x287c8d);},'IBwzc':'bTDKH','CwueI':function(_0x10bc4b,_0x2a6e09){return _0x10bc4b(_0x2a6e09);},'DSFCO':function(_0x1bcebb,_0x170742){return _0x1bcebb(_0x170742);},'awtDk':function(_0x44bdc7,_0x2d4a4d){return _0x44bdc7!==_0x2d4a4d;},'NPKyS':_0x43e2(0x11),'utCwe':'onairos','ukPwu':_0x43e2(0x12),'WBEKi':_0x43e2(0x13),'XcnWZ':_0x43e2(0x14),'AGOxW':function(_0x275540,_0x82abad){return _0x275540(_0x82abad);},'pZwgB':'Failed\x20to\x20update\x20onboarded\x20status:','ZrzIk':'Failed\x20to\x20load\x20authentication\x20state:','ipLlZ':function(_0x8d241e,_0x3c1195){return _0x8d241e(_0x3c1195);},'ZUVrS':'auth_method','kLIZB':_0x43e2(0x15),'kAlIy':_0x43e2(0x16),'tXqYu':function(_0x284290,_0x128adf){return _0x284290===_0x128adf;},'UINSX':_0x43e2(0x17),'pFhqN':_0x43e2(0x18),'zQLqK':_0x43e2(0x19),'HyUnN':_0x43e2(0x1a),'wAYMW':_0x43e2(0x1b),'KIhDv':_0x43e2(0x1c),'EvZut':'wZcLf','aelYL':_0x43e2(0x1d),'rnwcU':_0x43e2(0x1e),'hNaEe':_0x43e2(0x1f),'oRxHo':_0x43e2(0x20),'YjMvd':function(_0x19ff07,_0x107a29){return _0x19ff07(_0x107a29);},'lznUx':_0x43e2(0x21),'YblYb':_0x43e2(0x22),'SqpVG':_0x43e2(0x23),'OBUdn':function(_0x2a3a86,_0x51a53c){return _0x2a3a86(_0x51a53c);},'cuBNI':_0x43e2(0x24),'boSYU':function(_0x4fcf9a,_0x413895){return _0x4fcf9a===_0x413895;},'Crdcj':_0x43e2(0x25),'BtIXA':_0x43e2(0x26),'rnsNV':function(_0x3c4fc8,_0x3690aa){return _0x3c4fc8(_0x3690aa);},'NdnTS':function(_0x205249,_0x63bf55){return _0x205249(_0x63bf55);},'vLYXn':_0x43e2(0x27),'aHFVT':_0x43e2(0x28),'jhqIr':_0x43e2(0x29),'azGoh':function(_0x6e7d17,_0x5bc9a2){return _0x6e7d17(_0x5bc9a2);},'nKIDd':'hVUTM','OaOeA':_0x43e2(0x2a),'buphM':function(_0x16c23d){return _0x16c23d();},'roClm':_0x43e2(0x2b),'jpYwH':function(_0x5dc328,_0xcae304){return _0x5dc328(_0xcae304);},'wnTRX':'OaSNe','Oyxjw':_0x43e2(0x2c),'zYIum':'Failed\x20to\x20delete\x20account:','JhtDR':function(_0x597c6e,_0x38ed34){return _0x597c6e!==_0x38ed34;},'HkPyU':'YIyFc','svSED':function(_0x76c569,_0x293798){return _0x76c569!==_0x293798;},'PWBdf':_0x43e2(0x2d),'njurv':_0x43e2(0x2e),'aRXKF':'Failed\x20to\x20update\x20user\x20data:','mANjo':_0x43e2(0x2f),'kUCdW':function(_0x3c4f3a){return _0x3c4f3a();},'dvINF':function(_0x5be4d6,_0x362edd){return _0x5be4d6(_0x362edd);},'twDVV':function(_0x16ac75,_0x58a6bf){return _0x16ac75(_0x58a6bf);},'rEbhC':function(_0x8a59a3,_0x37b064){return _0x8a59a3(_0x37b064);},'RhvUo':function(_0x2c8e7e,_0x184da5){return _0x2c8e7e(_0x184da5);},'tSmHZ':function(_0x455d4c,_0x3a224a,_0x3c0863){return _0x455d4c(_0x3a224a,_0x3c0863);}},[_0x3ad70e,_0x29ba50]=_0x131c0c[_0x43e2(0x30)](useState,null),[_0x4a360c,_0x1168d8]=_0x131c0c[_0x43e2(0x31)](useState,!![]),[_0x4310c8,_0x339574]=_0x131c0c[_0x43e2(0x32)](useState,![]),[_0x3a2957,_0x4ff763]=_0x131c0c['AGOxW'](useState,![]);_0x131c0c[_0x43e2(0x33)](useEffect,()=>{const _0xd71c71={'TtnFG':function(_0x56f514,_0x546119){return _0x56f514(_0x546119);},'xAKrW':function(_0x5dfd8d,_0x1d88a6){return _0x131c0c[_0x43e2(0x34)](_0x5dfd8d,_0x1d88a6);},'GeQnf':_0x131c0c['qNJvD'],'aVGcG':_0x43e2(0x35)},_0x1425c3=async()=>{const _0x1f4a56={'xwipr':function(_0x38d57d,_0x1534ff){return _0x38d57d(_0x1534ff);},'hfEPM':_0x131c0c[_0x43e2(0x36)],'kmrQI':_0x131c0c[_0x43e2(0x37)]};try{const _0x57e343=await hasEventAccessToken(),_0x7d7d65=await AsyncStorage[_0x43e2(0x38)](_0x131c0c[_0x43e2(0x39)]);if(_0x131c0c[_0x43e2(0x3a)](_0x57e343,_0x7d7d65)){const _0x465b60=_0x131c0c[_0x43e2(0x3b)][_0x43e2(0x3c)]('|');let _0x1aa576=0x0;while(!![]){switch(_0x465b60[_0x1aa576++]){case'0':_0x131c0c[_0x43e2(0x3d)](_0x4ff763,!![]);continue;case'1':_0x29ba50(JSON[_0x43e2(0x3e)](_0x7d7d65));continue;case'2':return;case'3':console[_0x43e2(0x3f)](_0x131c0c['FgbFG']);continue;case'4':_0x131c0c['wNysZ'](_0x1168d8,![]);continue;case'5':_0x339574(!![]);continue;}break;}}const _0x274552=await _0x131c0c['flrmB'](getAuthToken);if(_0x274552){if(_0x131c0c[_0x43e2(0x40)]===_0x131c0c[_0x43e2(0x40)]){let _0x366e82=![];try{_0x366e82=await _0x131c0c[_0x43e2(0x41)](verifyToken);}catch(_0x143da0){_0x43e2(0x42)!==_0x131c0c['JgCtg']?(console[_0x43e2(0x43)](_0x131c0c[_0x43e2(0x36)],_0x143da0),_0x7d7d65&&(console[_0x43e2(0x3f)](_0x131c0c[_0x43e2(0x37)]),_0x366e82=!![])):_0xd71c71[_0x43e2(0x44)](_0x9746b3,![]);}if(_0x366e82){if(_0x7d7d65)_0x131c0c[_0x43e2(0x45)](_0x131c0c['kEAkT'],_0x131c0c['kEAkT'])?_0xd71c71['xAKrW'](_0x3c8ead,![]):(_0x131c0c[_0x43e2(0x46)](_0x29ba50,JSON[_0x43e2(0x3e)](_0x7d7d65)),_0x131c0c[_0x43e2(0x46)](_0x4ff763,!![]));else try{if(_0x131c0c[_0x43e2(0x45)](_0x131c0c[_0x43e2(0x47)],_0x131c0c[_0x43e2(0x48)])){const _0x336599=await getUserProfile();await AsyncStorage[_0x43e2(0x49)](_0x43e2(0x4a),JSON['stringify'](_0x336599)),_0x131c0c[_0x43e2(0x4b)](_0x29ba50,_0x336599),_0x131c0c[_0x43e2(0x4b)](_0x4ff763,!![]);}else _0x1f4a56[_0x43e2(0x4c)](_0x5542b8,![]);}catch(_0x3a1302){if(_0x131c0c[_0x43e2(0x4d)]===_0x131c0c[_0x43e2(0x4e)])_0x1a3217[_0x43e2(0x4f)](_0xd71c71[_0x43e2(0x50)],_0x5d215d);else{console[_0x43e2(0x4f)](_0x131c0c[_0x43e2(0x51)],_0x3a1302);const _0x824127=_0x131c0c[_0x43e2(0x52)](_0x3a1302,Error)?_0x3a1302[_0x43e2(0x53)]:_0x131c0c[_0x43e2(0x46)](String,_0x3a1302);if(_0x824127[_0x43e2(0x54)](_0x131c0c['WQrOe'])||_0x824127[_0x43e2(0x54)](_0x131c0c[_0x43e2(0x55)]))await removeAuthToken();else{if(_0x131c0c['RfoRf'](_0x131c0c[_0x43e2(0x56)],_0x131c0c[_0x43e2(0x57)])){console['log'](_0x131c0c['kwxhe']);if(_0x274552){const _0x46711c={'id':_0x43e2(0x58),'name':_0x43e2(0x20),'email':_0x131c0c[_0x43e2(0x59)],'onboarded':![]};await AsyncStorage[_0x43e2(0x49)](_0x43e2(0x4a),JSON[_0x43e2(0x5a)](_0x46711c)),_0x29ba50(_0x46711c),_0x131c0c[_0x43e2(0x5b)](_0x4ff763,!![]);}}else _0x5b6bc0['error'](_0x43e2(0x14),_0x3eb3df);}}}}else await _0x131c0c['PKggh'](removeAuthToken);}else throw new _0x358344(_0xd71c71[_0x43e2(0x5c)]);}const _0x52e1f4=await AsyncStorage[_0x43e2(0x38)](_0x131c0c[_0x43e2(0x5d)]);_0x131c0c[_0x43e2(0x5e)](_0x52e1f4,_0x43e2(0x5f))&&(_0x131c0c[_0x43e2(0x60)](_0x131c0c[_0x43e2(0x61)],_0x131c0c[_0x43e2(0x62)])?_0x131c0c['uITxy'](_0x339574,!![]):(_0x57caa0[_0x43e2(0x43)](_0x1f4a56[_0x43e2(0x63)],_0x14851a),_0x404477&&(_0xcf3cd3[_0x43e2(0x3f)](_0x1f4a56[_0x43e2(0x64)]),_0x1274c9=!![])));}catch(_0x208bf3){console['error'](_0x43e2(0x65),_0x208bf3);}finally{_0x131c0c['wNysZ'](_0x1168d8,![]);}};_0x1425c3();},[]);const _0xeeb2e9=async _0xf9aadc=>{const _0x3932c4={'Atcda':function(_0x48d6a5,_0x841a7c){return _0x131c0c[_0x43e2(0x66)](_0x48d6a5,_0x841a7c);},'oiByF':function(_0x1808ba,_0x5b468a){return _0x131c0c['QWKJt'](_0x1808ba,_0x5b468a);},'xGBJh':_0x43e2(0x35)};try{if(_0x131c0c[_0x43e2(0x5e)](_0x131c0c['IBwzc'],_0x131c0c[_0x43e2(0x67)])){var _0x32fe5d;const _0x28d379={..._0xf9aadc,'onboarded':![]};await AsyncStorage[_0x43e2(0x49)](_0x131c0c['qUnEe'],JSON[_0x43e2(0x5a)](_0x28d379)),_0x131c0c[_0x43e2(0x68)](_0x29ba50,_0x28d379),_0x131c0c[_0x43e2(0x69)](_0x4ff763,!![]),await saveAuthState({'isAuthenticated':!![],'authMethod':_0x131c0c[_0x43e2(0x6a)](_0x32fe5d=_0xf9aadc[_0x43e2(0x6b)],null)&&_0x131c0c[_0x43e2(0x60)](_0x32fe5d,void 0x0)&&_0x32fe5d[_0x43e2(0x54)](_0x131c0c[_0x43e2(0x6c)])?_0x131c0c[_0x43e2(0x6c)]:_0x131c0c[_0x43e2(0x6d)],'hasValidToken':!![],'userEmail':_0xf9aadc[_0x43e2(0x6b)],'userName':_0xf9aadc[_0x43e2(0x6e)]}),await _0x131c0c[_0x43e2(0x6f)](markStepCompleted,_0x131c0c['ukPwu']),console[_0x43e2(0x3f)](_0x131c0c[_0x43e2(0x70)],_0x28d379);}else{const _0x1d34af=_0x3932c4[_0x43e2(0x71)](useContext,_0x22c65c);if(_0x3932c4[_0x43e2(0x72)](_0x1d34af,_0x185eae))throw new _0x1998fe(_0x3932c4['xGBJh']);return _0x1d34af;}}catch(_0xa4f725){console[_0x43e2(0x4f)](_0x131c0c[_0x43e2(0x73)],_0xa4f725);}},_0x4921a7=async _0x1c3de2=>{const _0x2dc209={'FroVu':_0x43e2(0x28),'QfkOT':_0x131c0c[_0x43e2(0x74)],'LTgaU':_0x131c0c[_0x43e2(0x75)]};try{_0x1168d8(!![]);const _0x122daa=await authenticateWithApple(_0x1c3de2);await _0x131c0c[_0x43e2(0x76)](saveAuthToken,_0x122daa['token']),await AsyncStorage[_0x43e2(0x49)](_0x131c0c[_0x43e2(0x77)],_0x131c0c[_0x43e2(0x6c)]);if(_0x122daa[_0x43e2(0x78)]){if(_0x131c0c[_0x43e2(0x5e)](_0x131c0c[_0x43e2(0x79)],_0x131c0c[_0x43e2(0x7a)])){_0x536f43[_0x43e2(0x4f)](_0x2dc209[_0x43e2(0x7b)],_0x2307bc);throw _0x2893d4;}else{await AsyncStorage[_0x43e2(0x49)](_0x43e2(0x1e),_0x122daa['onairos'][_0x43e2(0x1e)][_0x43e2(0x7c)]());_0x122daa[_0x43e2(0x78)]['onairosUserId']&&(_0x131c0c[_0x43e2(0x7d)](_0x131c0c[_0x43e2(0x7e)],_0x131c0c[_0x43e2(0x7f)])?(_0x2d3366[_0x43e2(0x3f)](_0x131c0c['BlFxc']),_0x40a57a=!![]):await AsyncStorage[_0x43e2(0x49)](_0x131c0c[_0x43e2(0x80)],_0x122daa[_0x43e2(0x78)][_0x43e2(0x19)]));if(_0x122daa[_0x43e2(0x78)][_0x43e2(0x1b)]){if(_0x131c0c['QWKJt'](_0x131c0c[_0x43e2(0x81)],_0x43e2(0x1a)))await AsyncStorage[_0x43e2(0x49)](_0x131c0c[_0x43e2(0x82)],_0x122daa[_0x43e2(0x78)][_0x43e2(0x1b)]);else{_0x2c6194[_0x43e2(0x4f)]('Failed\x20to\x20complete\x20onboarding:',_0x4202f5);throw _0x1daae9;}}console[_0x43e2(0x3f)](_0x131c0c[_0x43e2(0x83)],_0x122daa['onairos'][_0x43e2(0x1e)]);}}else{if(_0x131c0c[_0x43e2(0x7d)](_0x131c0c[_0x43e2(0x84)],_0x131c0c['aelYL'])){_0x56fe02[_0x43e2(0x4f)](_0x2dc209[_0x43e2(0x85)],_0x2a5e12);throw _0x544c48;}else await AsyncStorage[_0x43e2(0x49)](_0x131c0c[_0x43e2(0x86)],_0x43e2(0x87)),console[_0x43e2(0x3f)](_0x131c0c['hNaEe']);}const _0x391bea={'id':_0x122daa[_0x43e2(0x4a)]['id'],'name':_0x122daa[_0x43e2(0x4a)][_0x43e2(0x6e)]||_0x131c0c['oRxHo'],'email':_0x122daa[_0x43e2(0x4a)]['email'],'profilePicture':_0x122daa[_0x43e2(0x4a)]['profilePicture'],'onboarded':![]};return await AsyncStorage['setItem'](_0x131c0c[_0x43e2(0x39)],JSON[_0x43e2(0x5a)](_0x391bea)),_0x131c0c[_0x43e2(0x32)](_0x29ba50,_0x391bea),_0x131c0c[_0x43e2(0x32)](_0x4ff763,!![]),console[_0x43e2(0x3f)](_0x131c0c['lznUx']),_0x391bea;}catch(_0x4a27fd){if('ysEwL'!==_0x43e2(0x88))_0x131c0c[_0x43e2(0x89)](_0x3542a3,![]);else{console['error']('Apple\x20sign-in\x20failed:',_0x4a27fd);throw _0x4a27fd;}}finally{_0x131c0c['awtDk'](_0x131c0c[_0x43e2(0x8a)],_0x131c0c[_0x43e2(0x8b)])?_0x131c0c[_0x43e2(0x8c)](_0x1168d8,![]):_0x162a89[_0x43e2(0x4f)](_0x2dc209[_0x43e2(0x8d)],_0x4df1c4);}},_0x30ef4d=async _0x39b630=>{try{if(_0x131c0c[_0x43e2(0x8e)](_0x131c0c['Crdcj'],_0x131c0c[_0x43e2(0x8f)])){_0x22fc81[_0x43e2(0x4f)](_0x131c0c[_0x43e2(0x90)],_0x545f78);throw _0x17802d;}else{_0x1168d8(!![]);const _0x4c8a2b=await _0x131c0c['rnsNV'](authenticateWithOnairos,_0x39b630);await _0x131c0c[_0x43e2(0x5b)](saveAuthToken,_0x4c8a2b['token']),await AsyncStorage[_0x43e2(0x49)](_0x131c0c[_0x43e2(0x77)],_0x131c0c[_0x43e2(0x6d)]);const _0x4610e6={'id':_0x4c8a2b[_0x43e2(0x4a)]['id'],'name':_0x4c8a2b[_0x43e2(0x4a)][_0x43e2(0x6e)]||_0x131c0c[_0x43e2(0x91)],'email':_0x4c8a2b['user'][_0x43e2(0x6b)],'profilePicture':_0x4c8a2b[_0x43e2(0x4a)]['profilePicture'],'onboarded':![]};return await AsyncStorage[_0x43e2(0x49)](_0x43e2(0x4a),JSON[_0x43e2(0x5a)](_0x4610e6)),_0x131c0c[_0x43e2(0x92)](_0x29ba50,_0x4610e6),_0x131c0c[_0x43e2(0x92)](_0x4ff763,!![]),console[_0x43e2(0x3f)](_0x131c0c[_0x43e2(0x93)]),_0x4610e6;}}catch(_0x3223bf){console[_0x43e2(0x4f)](_0x131c0c[_0x43e2(0x94)],_0x3223bf);throw _0x3223bf;}finally{_0x131c0c[_0x43e2(0x95)](_0x1168d8,![]);}},_0x5805f0=async()=>{const _0x753292={'ldRBK':_0x131c0c['jhqIr'],'bQzLL':function(_0x53bfb0,_0x292675){return _0x131c0c['MXryY'](_0x53bfb0,_0x292675);},'bmOlj':function(_0x3321f9,_0x1b1824){return _0x131c0c['FYXqL'](_0x3321f9,_0x1b1824);}};try{await clearUserData(),_0x131c0c[_0x43e2(0x30)](_0x29ba50,null),_0x131c0c['ipLlZ'](_0x4ff763,![]);}catch(_0xfbd707){if(_0x131c0c[_0x43e2(0x60)](_0x131c0c['nKIDd'],_0x131c0c[_0x43e2(0x96)]))console[_0x43e2(0x4f)](_0x131c0c['qNJvD'],_0xfbd707);else{const _0x56a69d=_0x753292['ldRBK'][_0x43e2(0x3c)]('|');let _0x37e34d=0x0;while(!![]){switch(_0x56a69d[_0x37e34d++]){case'0':return;case'1':_0x753292[_0x43e2(0x97)](_0x37ffe6,![]);continue;case'2':_0x753292['bQzLL'](_0x12f2a3,!![]);continue;case'3':_0x39413a[_0x43e2(0x3f)](_0x43e2(0x2));continue;case'4':_0x753292[_0x43e2(0x97)](_0x19ba46,!![]);continue;case'5':_0x753292['bmOlj'](_0x1f075a,_0x388207[_0x43e2(0x3e)](_0x322e58));continue;}break;}}}},_0x310de=async _0x4fe1d5=>{try{const _0xfbf6ce={..._0x3ad70e,..._0x4fe1d5};await AsyncStorage[_0x43e2(0x49)](_0x131c0c[_0x43e2(0x39)],JSON['stringify'](_0xfbf6ce)),_0x131c0c[_0x43e2(0x4b)](_0x29ba50,_0xfbf6ce),await _0x131c0c['buphM'](_0x3654c7);}catch(_0x59a1f2){console['error'](_0x131c0c[_0x43e2(0x98)],_0x59a1f2);throw _0x59a1f2;}},_0x2d75e2=async _0x2df384=>{try{if(!_0x3ad70e)return;const _0x1648e0={..._0x3ad70e,..._0x2df384};await AsyncStorage['setItem'](_0x131c0c[_0x43e2(0x39)],JSON[_0x43e2(0x5a)](_0x1648e0)),_0x29ba50(_0x1648e0);}catch(_0x4c802a){_0x131c0c['wnTRX']!==_0x131c0c[_0x43e2(0x99)]?console['error'](_0x43e2(0x9a),_0x4c802a):_0x131c0c[_0x43e2(0x9b)](_0x187d78,!![]);}},_0x3654c7=async()=>{const _0xd0f99e={'ljcvb':function(_0x3723c8,_0x3eeb1e){return _0x3723c8(_0x3eeb1e);},'PPeHP':function(_0x3e2593,_0x4aebb2){return _0x3e2593(_0x4aebb2);}};try{_0x131c0c[_0x43e2(0x89)](_0x1168d8,!![]),await _0x131c0c['flrmB'](updateUserOnboardedStatus);if(_0x3ad70e){if(_0x131c0c[_0x43e2(0x9c)](_0x131c0c[_0x43e2(0x9d)],'YIyFc'))_0xd0f99e[_0x43e2(0x9e)](_0x407e92,_0x2b7c08[_0x43e2(0x3e)](_0x1dbc56)),_0xd0f99e['PPeHP'](_0x10239a,!![]);else{const _0x500868={..._0x3ad70e,'onboarded':!![]};await AsyncStorage[_0x43e2(0x49)](_0x131c0c['qUnEe'],JSON[_0x43e2(0x5a)](_0x500868)),_0x29ba50(_0x500868);}}}catch(_0x29fdad){console[_0x43e2(0x4f)](_0x43e2(0x9f),_0x29fdad);throw _0x29fdad;}finally{if(_0x131c0c[_0x43e2(0xa0)](_0x131c0c[_0x43e2(0xa1)],_0x131c0c[_0x43e2(0xa2)]))_0x1168d8(![]);else{_0x5ded20[_0x43e2(0x4f)](_0x131c0c['zYIum'],_0x272f54);throw _0x140342;}}},_0x11c835=async()=>{const _0x1504a3={'sPWBK':_0x131c0c[_0x43e2(0xa3)]};if(_0x43e2(0x2f)===_0x131c0c[_0x43e2(0xa4)])try{const _0x5b083f=_0x43e2(0xa5)['split']('|');let _0x33b552=0x0;while(!![]){switch(_0x5b083f[_0x33b552++]){case'0':await _0x131c0c[_0x43e2(0xa6)](removeAuthToken);continue;case'1':await AsyncStorage[_0x43e2(0xa7)](_0x131c0c[_0x43e2(0x5d)]);continue;case'2':console[_0x43e2(0x3f)](_0x43e2(0xa8));continue;case'3':_0x131c0c[_0x43e2(0xa9)](_0x4ff763,![]);continue;case'4':await AsyncStorage['removeItem'](_0x43e2(0x4a));continue;case'5':_0x131c0c['twDVV'](_0x339574,![]);continue;case'6':_0x131c0c[_0x43e2(0xaa)](_0x29ba50,null);continue;}break;}}catch(_0x2baa1c){console[_0x43e2(0x4f)](_0x131c0c[_0x43e2(0xab)],_0x2baa1c);throw _0x2baa1c;}else _0xe6c278['error'](_0x1504a3['sPWBK'],_0x1fd3cb);};return React[_0x43e2(0xac)](AuthContext[_0x43e2(0xad)],{'value':{'user':_0x3ad70e,'isLoading':_0x4a360c,'hasCompletedOnboarding':_0x4310c8,'login':_0xeeb2e9,'logout':_0x5805f0,'deleteAccount':_0x11c835,'completeOnboarding':_0x310de,'updateUser':_0x2d75e2,'appleSignIn':_0x4921a7,'onairosSignIn':_0x30ef4d,'isAuthenticated':_0x3a2957,'updateOnboardedStatus':_0x3654c7,'getResumeTarget':getResumeTarget,'markStepCompleted':markStepCompleted,'updateLastScreen':updateLastScreen,'isReturningUser':isReturningUser,'markEventPageReached':markEventPageReached,'hasEventAccessToken':hasEventAccessToken}},_0x557ba7);};function _0x43e2(_0x2d8ac9,_0x43e261){_0x2d8ac9=_0x2d8ac9-0x0;const _0x4cf3aa=_0x2d8a();let _0x381214=_0x4cf3aa[_0x2d8ac9];return _0x381214;}export const useAuth=()=>{const _0x22a0f6={'zqgmN':function(_0x31b53c,_0x17eb05){return _0x31b53c(_0x17eb05);},'fkKlr':function(_0x4c0ec3,_0x3edf04){return _0x4c0ec3===_0x3edf04;}},_0x10a77a=_0x22a0f6['zqgmN'](useContext,AuthContext);if(_0x22a0f6[_0x43e2(0xae)](_0x10a77a,undefined))throw new Error(_0x43e2(0x35));return _0x10a77a;};function _0x2d8a(){const _0x3d16df=['💾\x20Network\x20unreachable,\x20trusting\x20local\x20authentication\x20state','3|1|0|5|4|2','🎯\x20Found\x20event\x20access\x20token\x20-\x20user\x20has\x20completed\x20onboarding,\x20authentication\x20confirmed','DMTOl','gJLfO','YHKOC','chcVr','Failed\x20to\x20fetch\x20user\x20profile:','401','403','YJhlC','UuEZJ','🌐\x20Profile\x20fetch\x20failed\x20(likely\x20network),\x20keeping\x20authentication\x20state','onboardingCompleted','MvqSR','dHPLJ','Failed\x20to\x20remove\x20user\x20data:','apple','authentication','User\x20logged\x20in\x20with\x20onboarded=false:','Failed\x20to\x20save\x20user\x20data:','unPdn','hYRoX','Zuapu','jalqR','onairosUserId','dsNYP','lastConnectedAt','🔗\x20Stored\x20Onairos\x20connection\x20status:','pgFfM','hasConnectedOnairos','🔗\x20No\x20Onairos\x20connection\x20info\x20from\x20backend,\x20defaulting\x20to\x20false','Onairos\x20User','🍎\x20Apple\x20sign-in\x20completed\x20-\x20auth_method\x20set\x20to\x20\x22apple\x22','TBrQI','oGeCZ','Apple\x20sign-in\x20failed:','vMGXi','dXmmi','🔑\x20Onairos\x20sign-in\x20completed\x20-\x20auth_method\x20set\x20to\x20\x22onairos\x22','Onairos\x20sign-in\x20failed:','3|5|4|2|1|0','DsmjT','Failed\x20to\x20complete\x20onboarding:','SScom','VkYXK','rSuJo','EInxD','azGoh','RhvUo','YjMvd','tSmHZ','FZEPH','useAuth\x20must\x20be\x20used\x20within\x20an\x20AuthProvider','JdHuu','BlFxc','getItem','qUnEe','fHWVf','nmrjw','split','wNysZ','parse','log','dkrdz','PKggh','czYqB','warn','TtnFG','NRlDG','YhKcD','WkAfe','ERRBp','setItem','user','MXryY','xwipr','zRngy','mPqqv','error','GeQnf','LzPTM','SUoxT','message','includes','nEpLh','CIdAk','Cypaq','offline_user','Btbtn','stringify','FYXqL','aVGcG','FJRwW','QWKJt','true','QELXJ','MWzYw','AbpyR','hfEPM','kmrQI','Failed\x20to\x20load\x20authentication\x20state:','PRLKs','IBwzc','CwueI','DSFCO','awtDk','email','NPKyS','utCwe','name','uITxy','WBEKi','Atcda','oiByF','XcnWZ','pZwgB','ZrzIk','ipLlZ','ZUVrS','onairos','kLIZB','kAlIy','FroVu','toString','tXqYu','UINSX','pFhqN','zQLqK','HyUnN','wAYMW','KIhDv','EvZut','QfkOT','rnwcU','false','ysEwL','AGOxW','YblYb','SqpVG','OBUdn','LTgaU','boSYU','BtIXA','cuBNI','oRxHo','NdnTS','vLYXn','aHFVT','rnsNV','OaOeA','bQzLL','roClm','Oyxjw','Failed\x20to\x20update\x20user\x20data:','jpYwH','JhtDR','HkPyU','ljcvb','Failed\x20to\x20update\x20onboarded\x20status:','svSED','PWBdf','njurv','aRXKF','mANjo','4|0|1|6|3|5|2','kUCdW','removeItem','Account\x20deleted\x20successfully','dvINF','rEbhC','zYIum','createElement','Provider','fkKlr'];_0x2d8a=function(){return _0x3d16df;};return _0x2d8a();}
1
+ function _0x3bf1(_0x42f879,_0x3bf174){_0x42f879=_0x42f879-0x0;const _0x37735e=_0x42f8();let _0x5772fa=_0x37735e[_0x42f879];return _0x5772fa;}import React,{createContext,useState,useEffect,useContext}from'react';function _0x42f8(){const _0xdf6db5=['Failed\x20to\x20load\x20authentication\x20state:','Apple\x20sign-in\x20failed:','Failed\x20to\x20update\x20onboarded\x20status:','🌐\x20Network\x20verification\x20failed,\x20using\x20local\x20token\x20validation:','💾\x20Network\x20unreachable,\x20trusting\x20local\x20authentication\x20state','XGuxQ','dYGTS','user','2|0|4|3|5|1','khfXM','FwMiT','403','qAKcu','QzhVM','🌐\x20Profile\x20fetch\x20failed\x20(likely\x20network),\x20keeping\x20authentication\x20state','offline_user','user@onairos.com','true','Failed\x20to\x20save\x20user\x20data:','kclZE','Failed\x20to\x20remove\x20user\x20data:','RwMnB','zvQYm','apple','authentication','User\x20logged\x20in\x20with\x20onboarded=false:','5|0|2|1|3|4','🎯\x20Found\x20event\x20access\x20token\x20-\x20user\x20has\x20completed\x20onboarding,\x20authentication\x20confirmed','Failed\x20to\x20update\x20user\x20data:','LHHnz','bJCdQ','hasConnectedOnairos','MhEDF','VEEEG','CUpiy','lastConnectedAt','🔗\x20Stored\x20Onairos\x20connection\x20status:','false','Onairos\x20User','iahFq','onairos','cKNpT','CsYWX','ATKBh','xvMRs','pBjCb','neRpV','2|3|0|4|5|1|6','Account\x20deleted\x20successfully','KKNPZ','hDrDo','KXDTb','MMkkg','OBYon','hBVjk','whBNb','drQoD','dVStX','vLqnH','lTGKj','etpjz','XKcGU','iNDuT','raUYb','MvYhu','DVxWI','gCteC','sHiao','sblco','parse','log','zwMGl','uaUvs','mcLOm','error','MhuEd','warn','setItem','stringify','SLhrO','eRYwU','WUWVv','Failed\x20to\x20fetch\x20user\x20profile:','iclGW','message','GRDNx','includes','XxBHB','qTSsm','cKjJr','QKySj','ncPMy','WGVXV','FBgUE','SbDkH','sAiac','Failed\x20to\x20complete\x20onboarding:','rFsAl','MCYXT','VsixW','BItgU','CVmUr','CvkwC','getItem','onboardingCompleted','caobC','yKscS','jobbJ','oQnCe','GwnOH','xISNt','yuwcl','pVkAt','bAiPI','email','name','djnUb','rUCcy','kpwXk','vpOxs','tZYjQ','NFsxH','token','sizNY','Klulp','bpsBd','toString','onairosUserId','KSVBc','CorfY','qpddg','oJoHV','HnGjI','TDSbr','split','WYGOp','UvZZs','dClEz','gXgln','profilePicture','🍎\x20Apple\x20sign-in\x20completed\x20-\x20auth_method\x20set\x20to\x20\x22apple\x22','qZwiL','gHNAg','vUCcm','useAuth\x20must\x20be\x20used\x20within\x20an\x20AuthProvider','LVzzF','lrVPk','vyCCc','FryaD','qdgTk','NpMCG','Onairos\x20sign-in\x20failed:','nmEyp','FXeeK','janvh','OuMmP','odndV','CmLRJ','aLViW','mfZMc','NpeUc','kDXIV','snoQB','kbbQl','EIVdx','wzmEk','RsdCm','csDqc','uJBBm','wgJMn','JQlUO','removeItem','Provider','hrCTl'];_0x42f8=function(){return _0xdf6db5;};return _0x42f8();}import AsyncStorage from'@react-native-async-storage/async-storage';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);export const AuthProvider=({children:_0x20ed61})=>{const _0x29d9a2={'dVStX':_0x3bf1(0x0),'vLqnH':_0x3bf1(0x1),'lTGKj':_0x3bf1(0x2),'etpjz':_0x3bf1(0x3),'XKcGU':_0x3bf1(0x4),'iNDuT':_0x3bf1(0x5),'raUYb':_0x3bf1(0x6),'MvYhu':function(_0x178a03){return _0x178a03();},'DVxWI':_0x3bf1(0x7),'gCteC':function(_0x3f43f8,_0x3fe748){return _0x3f43f8&&_0x3fe748;},'sHiao':_0x3bf1(0x8),'sblco':function(_0xde6ba3,_0x4b8bd9){return _0xde6ba3(_0x4b8bd9);},'KXDTb':function(_0x5b1f07,_0x44872f){return _0x5b1f07(_0x44872f);},'zwMGl':function(_0x201234,_0x3d8b9a){return _0x201234===_0x3d8b9a;},'uaUvs':'mcLOm','MhuEd':'dTCMx','BMTmv':'OuvIg','hDrDo':function(_0x2749bd,_0x10ec04){return _0x2749bd(_0x10ec04);},'SLhrO':function(_0xd003be,_0x36314c){return _0xd003be(_0x36314c);},'uAkGo':function(_0x21ca75,_0x10d7a8){return _0x21ca75(_0x10d7a8);},'eRYwU':_0x3bf1(0x9),'uawyK':_0x3bf1(0xa),'iclGW':function(_0x9da9c,_0x1d96a3){return _0x9da9c instanceof _0x1d96a3;},'GRDNx':function(_0x1a9a67,_0x1d6167){return _0x1a9a67(_0x1d6167);},'XxBHB':'401','qTSsm':_0x3bf1(0xb),'cKKNr':function(_0x329427){return _0x329427();},'cKjJr':_0x3bf1(0xc),'QKySj':_0x3bf1(0xd),'WGVXV':_0x3bf1(0xe),'FBgUE':function(_0x42e8c5,_0x14df18){return _0x42e8c5===_0x14df18;},'sAiac':'dQisc','rFsAl':_0x3bf1(0xf),'MCYXT':_0x3bf1(0x10),'VsixW':'OZPhg','CvkwC':function(_0x3d3f59){return _0x3d3f59();},'caobC':_0x3bf1(0x11),'KKNPZ':function(_0x732d4e,_0x241e2d){return _0x732d4e(_0x241e2d);},'GwnOH':_0x3bf1(0x12),'hBVjk':function(_0x494ddd,_0x49d781){return _0x494ddd!==_0x49d781;},'whBNb':'qoGAX','drQoD':_0x3bf1(0x13),'oQnCe':function(_0x4dec0e){return _0x4dec0e();},'mfZMc':_0x3bf1(0x14),'xISNt':function(_0x5381a2,_0x55310c){return _0x5381a2!==_0x55310c;},'nyjot':_0x3bf1(0x15),'yuwcl':_0x3bf1(0x16),'pVkAt':function(_0x2b4a97,_0x5800d6){return _0x2b4a97!==_0x5800d6;},'bAiPI':_0x3bf1(0x17),'djnUb':function(_0x19e470,_0x319a82){return _0x19e470(_0x319a82);},'rUCcy':_0x3bf1(0x18),'kpwXk':_0x3bf1(0x19),'TDSbr':_0x3bf1(0x1a),'WYGOp':function(_0x3c2a42,_0x5dfafd){return _0x3c2a42(_0x5dfafd);},'yItYQ':_0x3bf1(0x1b),'NFsxH':function(_0x5279e9,_0x3330ef){return _0x5279e9(_0x3330ef);},'vpOxs':_0x3bf1(0x1c),'tZYjQ':function(_0x4d90f2,_0x1475ff){return _0x4d90f2(_0x1475ff);},'sizNY':'auth_method','Klulp':_0x3bf1(0x1d),'bpsBd':_0x3bf1(0x1e),'bivLW':_0x3bf1(0x1f),'KSVBc':_0x3bf1(0x20),'qpddg':'onairosUserId','oJoHV':_0x3bf1(0x21),'GXVjt':_0x3bf1(0x22),'HnGjI':_0x3bf1(0x23),'UvZZs':_0x3bf1(0x24),'fRgGO':_0x3bf1(0x25),'dClEz':'🔗\x20No\x20Onairos\x20connection\x20info\x20from\x20backend,\x20defaulting\x20to\x20false','gXgln':_0x3bf1(0x26),'MMkkg':function(_0x23b970,_0x16f37d){return _0x23b970(_0x16f37d);},'yjZNX':function(_0x3f2e9e,_0x59104f){return _0x3f2e9e(_0x59104f);},'qZwiL':_0x3bf1(0x27),'LVzzF':function(_0x4f6fd1,_0x48de29){return _0x4f6fd1(_0x48de29);},'lrVPk':_0x3bf1(0x28),'vyCCc':function(_0x4b657f,_0x44df5c){return _0x4b657f(_0x44df5c);},'FryaD':'🔑\x20Onairos\x20sign-in\x20completed\x20-\x20auth_method\x20set\x20to\x20\x22onairos\x22','qdgTk':'oCCqD','NpMCG':_0x3bf1(0x29),'FXeeK':_0x3bf1(0x2a),'OuMmP':function(_0xeaa884,_0x21a437){return _0xeaa884(_0x21a437);},'odndV':'hERzj','qNNms':'gGYkO','aLViW':function(_0xc01732,_0x4720cf){return _0xc01732(_0x4720cf);},'NpeUc':_0x3bf1(0x2b),'kDXIV':'wkNEa','EIVdx':function(_0x3c5c7f,_0x2bac9a){return _0x3c5c7f(_0x2bac9a);},'kbbQl':function(_0x3e4819,_0x5e850e){return _0x3e4819(_0x5e850e);},'atmKy':function(_0x4553cc,_0x2b10a0){return _0x4553cc(_0x2b10a0);},'wzmEk':'OzyrL','RsdCm':_0x3bf1(0x2c),'QsVjO':function(_0x56ba7e,_0x29d1e0){return _0x56ba7e(_0x29d1e0);},'csDqc':function(_0x3e85f0,_0x4efc2e){return _0x3e85f0===_0x4efc2e;},'uJBBm':_0x3bf1(0x2d),'HpnoU':_0x3bf1(0x2e),'JQlUO':_0x3bf1(0x2f),'ygghr':function(_0x42d8d2,_0x4e4c1c){return _0x42d8d2(_0x4e4c1c);},'YplgJ':_0x3bf1(0x30),'mtnRZ':'Failed\x20to\x20delete\x20account:','OBYon':function(_0x34cf6c,_0x58236e,_0x457be6){return _0x34cf6c(_0x58236e,_0x457be6);}},[_0x2df1b3,_0x474b78]=_0x29d9a2[_0x3bf1(0x31)](useState,null),[_0x93ea8c,_0x460d59]=_0x29d9a2[_0x3bf1(0x32)](useState,!![]),[_0x11a41d,_0x1afdef]=_0x29d9a2[_0x3bf1(0x33)](useState,![]),[_0x405b87,_0x50f7e9]=_0x29d9a2[_0x3bf1(0x34)](useState,![]);_0x29d9a2[_0x3bf1(0x35)](useEffect,()=>{if(_0x29d9a2[_0x3bf1(0x36)](_0x29d9a2[_0x3bf1(0x37)],_0x29d9a2[_0x3bf1(0x38)])){const _0x134078=async()=>{const _0x53d33b={'WUWVv':_0x29d9a2[_0x3bf1(0x39)],'ncPMy':_0x29d9a2[_0x3bf1(0x3a)],'CVmUr':_0x29d9a2[_0x3bf1(0x3b)],'yKscS':_0x29d9a2[_0x3bf1(0x3c)],'jobbJ':_0x29d9a2[_0x3bf1(0x3d)]};try{if(_0x29d9a2[_0x3bf1(0x3e)]!==_0x29d9a2[_0x3bf1(0x3f)]){const _0x58bb14=await _0x29d9a2[_0x3bf1(0x40)](hasEventAccessToken),_0x5055a2=await AsyncStorage['getItem'](_0x29d9a2[_0x3bf1(0x41)]);if(_0x29d9a2[_0x3bf1(0x42)](_0x58bb14,_0x5055a2)){const _0x578e56=_0x29d9a2[_0x3bf1(0x43)]['split']('|');let _0x2b391e=0x0;while(!![]){switch(_0x578e56[_0x2b391e++]){case'0':_0x29d9a2[_0x3bf1(0x44)](_0x474b78,JSON[_0x3bf1(0x45)](_0x5055a2));continue;case'1':return;case'2':console[_0x3bf1(0x46)](_0x3bf1(0x1b));continue;case'3':_0x29d9a2[_0x3bf1(0x44)](_0x1afdef,!![]);continue;case'4':_0x29d9a2[_0x3bf1(0x44)](_0x50f7e9,!![]);continue;case'5':_0x29d9a2[_0x3bf1(0x33)](_0x460d59,![]);continue;}break;}}const _0x5ef190=await _0x29d9a2[_0x3bf1(0x40)](getAuthToken);if(_0x5ef190){let _0x3fad64=![];try{if(_0x29d9a2[_0x3bf1(0x47)](_0x29d9a2[_0x3bf1(0x48)],_0x3bf1(0x49)))_0x3fad64=await _0x29d9a2[_0x3bf1(0x40)](verifyToken);else{_0x594bc4[_0x3bf1(0x4a)]('Onairos\x20sign-in\x20failed:',_0x4e9206);throw _0xce8f8c;}}catch(_0x283342){if(_0x29d9a2[_0x3bf1(0x4b)]!==_0x29d9a2['BMTmv'])console[_0x3bf1(0x4c)](_0x3bf1(0x3),_0x283342),_0x5055a2&&(console[_0x3bf1(0x46)](_0x29d9a2[_0x3bf1(0x3d)]),_0x3fad64=!![]);else{_0x3bedea[_0x3bf1(0x4a)]('Failed\x20to\x20delete\x20account:',_0x354f72);throw _0x278198;}}if(_0x3fad64){if(_0x5055a2)_0x29d9a2[_0x3bf1(0x32)](_0x474b78,JSON[_0x3bf1(0x45)](_0x5055a2)),_0x29d9a2[_0x3bf1(0x33)](_0x50f7e9,!![]);else try{const _0x13995c=await _0x29d9a2[_0x3bf1(0x40)](getUserProfile);await AsyncStorage[_0x3bf1(0x4d)](_0x29d9a2[_0x3bf1(0x41)],JSON[_0x3bf1(0x4e)](_0x13995c)),_0x29d9a2[_0x3bf1(0x4f)](_0x474b78,_0x13995c),_0x29d9a2['uAkGo'](_0x50f7e9,!![]);}catch(_0x382e3e){if(_0x29d9a2[_0x3bf1(0x50)]===_0x29d9a2['uawyK'])_0x2832de[_0x3bf1(0x4a)](_0x53d33b[_0x3bf1(0x51)],_0x16e8d9);else{console[_0x3bf1(0x4a)](_0x3bf1(0x52),_0x382e3e);const _0x3464f7=_0x29d9a2[_0x3bf1(0x53)](_0x382e3e,Error)?_0x382e3e[_0x3bf1(0x54)]:_0x29d9a2[_0x3bf1(0x55)](String,_0x382e3e);if(_0x3464f7[_0x3bf1(0x56)](_0x29d9a2[_0x3bf1(0x57)])||_0x3464f7[_0x3bf1(0x56)](_0x29d9a2[_0x3bf1(0x58)]))await _0x29d9a2['cKKNr'](removeAuthToken);else{if(_0x29d9a2[_0x3bf1(0x59)]===_0x29d9a2[_0x3bf1(0x5a)]){_0x9c4c9e[_0x3bf1(0x4a)](_0x53d33b[_0x3bf1(0x5b)],_0x36a053);throw _0x40bb39;}else{console[_0x3bf1(0x46)](_0x29d9a2[_0x3bf1(0x5c)]);if(_0x5ef190){if(_0x29d9a2[_0x3bf1(0x5d)](_0x3bf1(0x5e),_0x29d9a2[_0x3bf1(0x5f)])){_0x167af4[_0x3bf1(0x4a)](_0x3bf1(0x60),_0x43e47b);throw _0x3c9561;}else{const _0x56cec0={'id':_0x29d9a2[_0x3bf1(0x61)],'name':_0x3bf1(0x26),'email':_0x29d9a2[_0x3bf1(0x62)],'onboarded':![]};await AsyncStorage[_0x3bf1(0x4d)](_0x3bf1(0x7),JSON[_0x3bf1(0x4e)](_0x56cec0)),_0x29d9a2['KXDTb'](_0x474b78,_0x56cec0),_0x29d9a2[_0x3bf1(0x4f)](_0x50f7e9,!![]);}}}}}}}else{if(_0x29d9a2[_0x3bf1(0x63)]===_0x3bf1(0x64)){_0x6ed2df[_0x3bf1(0x4a)](_0x53d33b[_0x3bf1(0x65)],_0x46d3d9);throw _0x24d751;}else await _0x29d9a2[_0x3bf1(0x66)](removeAuthToken);}}const _0x19835d=await AsyncStorage[_0x3bf1(0x67)](_0x3bf1(0x68));_0x29d9a2[_0x3bf1(0x47)](_0x19835d,_0x29d9a2[_0x3bf1(0x69)])&&_0x1afdef(!![]);}else _0x4a05d8[_0x3bf1(0x4c)](_0x53d33b[_0x3bf1(0x6a)],_0x23ff35),_0x30bafe&&(_0x226882[_0x3bf1(0x46)](_0x53d33b[_0x3bf1(0x6b)]),_0x50b0b4=!![]);}catch(_0x23b76c){console[_0x3bf1(0x4a)](_0x29d9a2['dVStX'],_0x23b76c);}finally{_0x29d9a2[_0x3bf1(0x31)](_0x460d59,![]);}};_0x29d9a2[_0x3bf1(0x6c)](_0x134078);}else _0x57ab70[_0x3bf1(0x4a)](_0x29d9a2[_0x3bf1(0x6d)],_0x147a3a);},[]);const _0x449764=async _0x3e7893=>{if(_0x29d9a2[_0x3bf1(0x6e)](_0x29d9a2['nyjot'],_0x29d9a2[_0x3bf1(0x6f)]))try{var _0x30a317;const _0x1b9c59={..._0x3e7893,'onboarded':![]};await AsyncStorage[_0x3bf1(0x4d)](_0x3bf1(0x7),JSON['stringify'](_0x1b9c59)),_0x29d9a2[_0x3bf1(0x4f)](_0x474b78,_0x1b9c59),_0x50f7e9(!![]),await _0x29d9a2['KXDTb'](saveAuthState,{'isAuthenticated':!![],'authMethod':(_0x30a317=_0x3e7893['email'])!==null&&_0x29d9a2[_0x3bf1(0x70)](_0x30a317,void 0x0)&&_0x30a317[_0x3bf1(0x56)](_0x29d9a2[_0x3bf1(0x71)])?_0x29d9a2[_0x3bf1(0x71)]:'onairos','hasValidToken':!![],'userEmail':_0x3e7893[_0x3bf1(0x72)],'userName':_0x3e7893[_0x3bf1(0x73)]}),await _0x29d9a2[_0x3bf1(0x74)](markStepCompleted,_0x29d9a2[_0x3bf1(0x75)]),console[_0x3bf1(0x46)](_0x29d9a2[_0x3bf1(0x76)],_0x1b9c59);}catch(_0x594609){console[_0x3bf1(0x4a)](_0x3bf1(0x12),_0x594609);}else _0x859cd1[_0x3bf1(0x4a)](_0x29d9a2['mfZMc'],_0x37577a);},_0x1f0b21=async _0x363712=>{const _0x251cf5={'mkAfk':_0x29d9a2[_0x3bf1(0x77)]};try{_0x29d9a2[_0x3bf1(0x78)](_0x460d59,!![]);const _0x2b6f91=await _0x29d9a2[_0x3bf1(0x79)](authenticateWithApple,_0x363712);await saveAuthToken(_0x2b6f91[_0x3bf1(0x7a)]),await AsyncStorage[_0x3bf1(0x4d)](_0x29d9a2[_0x3bf1(0x7b)],_0x29d9a2[_0x3bf1(0x71)]);if(_0x2b6f91[_0x3bf1(0x28)]){if(_0x29d9a2['hBVjk'](_0x29d9a2[_0x3bf1(0x7c)],_0x29d9a2[_0x3bf1(0x7d)])){await AsyncStorage['setItem'](_0x29d9a2['bivLW'],_0x2b6f91[_0x3bf1(0x28)]['hasConnectedOnairos'][_0x3bf1(0x7e)]());_0x2b6f91[_0x3bf1(0x28)][_0x3bf1(0x7f)]&&(_0x29d9a2[_0x3bf1(0x80)]===_0x3bf1(0x81)?_0x19a76f[_0x3bf1(0x4a)](_0x251cf5['mkAfk'],_0x322f42):await AsyncStorage[_0x3bf1(0x4d)](_0x29d9a2[_0x3bf1(0x82)],_0x2b6f91['onairos']['onairosUserId']));if(_0x2b6f91[_0x3bf1(0x28)][_0x3bf1(0x23)]){if(_0x29d9a2[_0x3bf1(0x83)]!==_0x29d9a2['GXVjt'])await AsyncStorage[_0x3bf1(0x4d)](_0x29d9a2[_0x3bf1(0x84)],_0x2b6f91[_0x3bf1(0x28)][_0x3bf1(0x23)]);else{const _0x1c8a74=_0x29d9a2[_0x3bf1(0x85)][_0x3bf1(0x86)]('|');let _0x4730b8=0x0;while(!![]){switch(_0x1c8a74[_0x4730b8++]){case'0':_0x29d9a2[_0x3bf1(0x32)](_0x3e2807,_0x1c1990[_0x3bf1(0x45)](_0xc043f2));continue;case'1':_0x29d9a2['SLhrO'](_0xe6ebc9,!![]);continue;case'2':_0x7c6df4(!![]);continue;case'3':_0x29d9a2[_0x3bf1(0x87)](_0x14204c,![]);continue;case'4':return;case'5':_0x514b40[_0x3bf1(0x46)](_0x29d9a2['yItYQ']);continue;}break;}}}console['log'](_0x29d9a2[_0x3bf1(0x88)],_0x2b6f91['onairos']['hasConnectedOnairos']);}else _0x29d9a2['NFsxH'](_0x4fd00e,![]);}else await AsyncStorage['setItem'](_0x3bf1(0x1f),_0x29d9a2['fRgGO']),console[_0x3bf1(0x46)](_0x29d9a2[_0x3bf1(0x89)]);const _0x4eea62={'id':_0x2b6f91['user']['id'],'name':_0x2b6f91[_0x3bf1(0x7)][_0x3bf1(0x73)]||_0x29d9a2[_0x3bf1(0x8a)],'email':_0x2b6f91[_0x3bf1(0x7)][_0x3bf1(0x72)],'profilePicture':_0x2b6f91[_0x3bf1(0x7)][_0x3bf1(0x8b)],'onboarded':![]};return await AsyncStorage['setItem'](_0x29d9a2['DVxWI'],JSON[_0x3bf1(0x4e)](_0x4eea62)),_0x29d9a2['MMkkg'](_0x474b78,_0x4eea62),_0x29d9a2[_0x3bf1(0x31)](_0x50f7e9,!![]),console[_0x3bf1(0x46)](_0x3bf1(0x8c)),_0x4eea62;}catch(_0x355402){console[_0x3bf1(0x4a)](_0x29d9a2[_0x3bf1(0x3a)],_0x355402);throw _0x355402;}finally{_0x29d9a2[_0x3bf1(0x4f)](_0x460d59,![]);}},_0x81ea81=async _0x422786=>{const _0x3a0a53={'BdWET':function(_0x16f12f,_0x55d934){return _0x29d9a2['yjZNX'](_0x16f12f,_0x55d934);},'vUCcm':function(_0x1419b4,_0x3fc893){return _0x29d9a2[_0x3bf1(0x5d)](_0x1419b4,_0x3fc893);},'nmEyp':function(_0x48b4e1,_0xc97e40){return _0x29d9a2[_0x3bf1(0x87)](_0x48b4e1,_0xc97e40);},'janvh':function(_0x17fae5,_0x374c86){return _0x17fae5(_0x374c86);}};if(_0x29d9a2[_0x3bf1(0x47)](_0x29d9a2[_0x3bf1(0x8d)],_0x3bf1(0x8e))){const _0x375314=_0x3a0a53['BdWET'](useContext,_0x554cec);if(_0x3a0a53[_0x3bf1(0x8f)](_0x375314,_0x149c1a))throw new _0x197190(_0x3bf1(0x90));return _0x375314;}else try{_0x29d9a2[_0x3bf1(0x91)](_0x460d59,!![]);const _0xbda9cc=await authenticateWithOnairos(_0x422786);await _0x29d9a2[_0x3bf1(0x33)](saveAuthToken,_0xbda9cc['token']),await AsyncStorage['setItem'](_0x29d9a2[_0x3bf1(0x7b)],_0x29d9a2[_0x3bf1(0x92)]);const _0x1fac7f={'id':_0xbda9cc[_0x3bf1(0x7)]['id'],'name':_0xbda9cc[_0x3bf1(0x7)][_0x3bf1(0x73)]||_0x29d9a2['gXgln'],'email':_0xbda9cc['user'][_0x3bf1(0x72)],'profilePicture':_0xbda9cc[_0x3bf1(0x7)][_0x3bf1(0x8b)],'onboarded':![]};return await AsyncStorage[_0x3bf1(0x4d)](_0x3bf1(0x7),JSON['stringify'](_0x1fac7f)),_0x29d9a2[_0x3bf1(0x93)](_0x474b78,_0x1fac7f),_0x50f7e9(!![]),console['log'](_0x29d9a2[_0x3bf1(0x94)]),_0x1fac7f;}catch(_0x72ee3d){if(_0x29d9a2[_0x3bf1(0x6e)](_0x29d9a2[_0x3bf1(0x95)],_0x29d9a2[_0x3bf1(0x96)])){console[_0x3bf1(0x4a)](_0x3bf1(0x97),_0x72ee3d);throw _0x72ee3d;}else _0x3a0a53[_0x3bf1(0x98)](_0x114147,!![]);}finally{_0x29d9a2[_0x3bf1(0x6e)](_0x29d9a2[_0x3bf1(0x99)],_0x29d9a2[_0x3bf1(0x99)])?(_0x3a0a53['BdWET'](_0x2ca15b,_0x4a4ffe['parse'](_0x59013d)),_0x3a0a53[_0x3bf1(0x9a)](_0x532583,!![])):_0x29d9a2[_0x3bf1(0x9b)](_0x460d59,![]);}},_0x37ff93=async()=>{const _0x220edf={'CmLRJ':'💾\x20Network\x20unreachable,\x20trusting\x20local\x20authentication\x20state'};try{_0x29d9a2[_0x3bf1(0x47)](_0x29d9a2[_0x3bf1(0x9c)],_0x29d9a2['qNNms'])?(_0x259d4e[_0x3bf1(0x46)](_0x220edf[_0x3bf1(0x9d)]),_0x1fdf21=!![]):(await clearUserData(),_0x474b78(null),_0x29d9a2[_0x3bf1(0x9e)](_0x50f7e9,![]));}catch(_0x2e933d){console[_0x3bf1(0x4a)](_0x29d9a2[_0x3bf1(0x9f)],_0x2e933d);}},_0x274893=async _0x5b05db=>{try{if(_0x29d9a2[_0x3bf1(0xa0)]===_0x29d9a2[_0x3bf1(0xa1)])_0x29d9a2[_0x3bf1(0x32)](_0x51e814,![]);else{const _0x1d4b40={..._0x2df1b3,..._0x5b05db};await AsyncStorage[_0x3bf1(0x4d)](_0x3bf1(0x7),JSON[_0x3bf1(0x4e)](_0x1d4b40)),_0x29d9a2[_0x3bf1(0x74)](_0x474b78,_0x1d4b40),await _0x174bf2();}}catch(_0x31ecc3){console[_0x3bf1(0x4a)](_0x3bf1(0x60),_0x31ecc3);throw _0x31ecc3;}},_0x5e8679=async _0x1e3cee=>{if(_0x3bf1(0xa2)!=='YlVQZ')try{if(!_0x2df1b3)return;const _0x9c370={..._0x2df1b3,..._0x1e3cee};await AsyncStorage[_0x3bf1(0x4d)](_0x29d9a2['DVxWI'],JSON[_0x3bf1(0x4e)](_0x9c370)),_0x29d9a2[_0x3bf1(0xa3)](_0x474b78,_0x9c370);}catch(_0x5bdf26){console['error'](_0x29d9a2[_0x3bf1(0x77)],_0x5bdf26);}else _0x29d9a2[_0x3bf1(0xa4)](_0x2aefb1,![]);},_0x174bf2=async()=>{const _0x3cc3b0={'wgJMn':_0x3bf1(0x90)};try{if(_0x29d9a2[_0x3bf1(0x47)](_0x29d9a2[_0x3bf1(0xa5)],_0x29d9a2[_0x3bf1(0xa6)]))_0x29d9a2['atmKy'](_0x505ed9,![]);else{_0x29d9a2['QsVjO'](_0x460d59,!![]),await _0x29d9a2['MvYhu'](updateUserOnboardedStatus);if(_0x2df1b3){if(_0x29d9a2[_0x3bf1(0xa7)](_0x29d9a2[_0x3bf1(0xa8)],_0x29d9a2['HpnoU']))throw new _0x44e3a8(_0x3cc3b0[_0x3bf1(0xa9)]);else{const _0x378858={..._0x2df1b3,'onboarded':!![]};await AsyncStorage['setItem'](_0x3bf1(0x7),JSON[_0x3bf1(0x4e)](_0x378858)),_0x474b78(_0x378858);}}}}catch(_0x532992){console[_0x3bf1(0x4a)]('Failed\x20to\x20update\x20onboarded\x20status:',_0x532992);throw _0x532992;}finally{_0x29d9a2['SLhrO'](_0x460d59,![]);}},_0x1b2d2d=async()=>{try{const _0x528ec3=_0x29d9a2[_0x3bf1(0xaa)][_0x3bf1(0x86)]('|');let _0x56f1ee=0x0;while(!![]){switch(_0x528ec3[_0x56f1ee++]){case'0':await AsyncStorage[_0x3bf1(0xab)](_0x3bf1(0x68));continue;case'1':_0x29d9a2['ygghr'](_0x1afdef,![]);continue;case'2':await AsyncStorage[_0x3bf1(0xab)](_0x3bf1(0x7));continue;case'3':await _0x29d9a2[_0x3bf1(0x40)](removeAuthToken);continue;case'4':_0x29d9a2['vyCCc'](_0x474b78,null);continue;case'5':_0x50f7e9(![]);continue;case'6':console[_0x3bf1(0x46)](_0x29d9a2['YplgJ']);continue;}break;}}catch(_0x3f5632){console[_0x3bf1(0x4a)](_0x29d9a2['mtnRZ'],_0x3f5632);throw _0x3f5632;}};return React['createElement'](AuthContext[_0x3bf1(0xac)],{'value':{'user':_0x2df1b3,'isLoading':_0x93ea8c,'hasCompletedOnboarding':_0x11a41d,'login':_0x449764,'logout':_0x37ff93,'deleteAccount':_0x1b2d2d,'completeOnboarding':_0x274893,'updateUser':_0x5e8679,'appleSignIn':_0x1f0b21,'onairosSignIn':_0x81ea81,'isAuthenticated':_0x405b87,'updateOnboardedStatus':_0x174bf2,'getResumeTarget':getResumeTarget,'markStepCompleted':markStepCompleted,'updateLastScreen':updateLastScreen,'isReturningUser':isReturningUser,'markEventPageReached':markEventPageReached,'hasEventAccessToken':hasEventAccessToken}},_0x20ed61);};export const useAuth=()=>{const _0x509d27={'hrCTl':function(_0x44012e,_0x16ac86){return _0x44012e(_0x16ac86);}},_0x40e92f=_0x509d27[_0x3bf1(0xad)](useContext,AuthContext);if(_0x40e92f===undefined)throw new Error(_0x3bf1(0x90));return _0x40e92f;};
@@ -1 +1 @@
1
- import{useState,useEffect,useCallback}from'react';import{getConnectedAccountsSmart}from'../services/connectedAccountsService';function _0x1978(_0x100014,_0x19788e){_0x100014=_0x100014-0x0;const _0x533673=_0x1000();let _0xa6cc73=_0x533673[_0x100014];return _0xa6cc73;}import{useAuth}from'../context/AuthContext';function _0x1000(){const _0x372a19=['QFeTe','XNMKi','🔍\x20No\x20user\x20available\x20for\x20fetching\x20connected\x20accounts','🚀\x20[HOOK]\x20Starting\x20connected\x20accounts\x20fetch\x20with\x20new\x20smart\x20API...','🚀\x20[HOOK]\x20User\x20info\x20available:','❌\x20[HOOK]\x20Error\x20fetching\x20connected\x20accounts:','Failed\x20to\x20load\x20connected\x20accounts','✅\x20[HOOK]\x20Account\x20removed\x20locally:','UyuRu','🔄\x20[HOOK]\x20Refreshing\x20connected\x20accounts...','rMkuE','✅\x20[HOOK]\x20Account\x20added\x20locally:','UZtfS','JofBx','JYXGH','pypmi','NwYns','uSpZc','oyhAZ','amqOn','log','KUsIA','dRIjE','DJFUE','zSTHg','MLyUw','avbNi','email','name','✅\x20[HOOK]\x20Connected\x20accounts\x20loaded\x20via\x20smart\x20API:\x20','length','\x20accounts','error','gGLkP','jbTzg','rLQCd','platform','toLowerCase','wgTmI','XidhX','qoOdn','couwx','TvVqF','some','map','.com/','OToZw','MkNbY','saAWy','eNoyZ','filter','DXksx','OIgXw','rggjC'];_0x1000=function(){return _0x372a19;};return _0x1000();}export const useConnectedAccounts=()=>{const _0x181808={'NwYns':function(_0x2445fa,_0x33d8af){return _0x2445fa(_0x33d8af);},'uSpZc':function(_0x219200,_0x16219f){return _0x219200!==_0x16219f;},'oyhAZ':_0x1978(0x0),'amqOn':_0x1978(0x1),'KUsIA':_0x1978(0x2),'JYXGH':function(_0x34eccc,_0x5e8bad){return _0x34eccc(_0x5e8bad);},'zSTHg':function(_0x29b456,_0x27db2c){return _0x29b456(_0x27db2c);},'MLyUw':_0x1978(0x3),'avbNi':_0x1978(0x4),'tamom':_0x1978(0x5),'CAjYs':_0x1978(0x6),'gGLkP':_0x1978(0x7),'jbTzg':function(_0x40db3f,_0x54b027){return _0x40db3f!==_0x54b027;},'rLQCd':_0x1978(0x8),'hRfDM':_0x1978(0x9),'JofBx':function(_0x2cc0eb){return _0x2cc0eb();},'mORUL':function(_0x29d4d7,_0x3dd8eb){return _0x29d4d7===_0x3dd8eb;},'qoOdn':_0x1978(0xa),'TvVqF':'kLAyh','eNoyZ':_0x1978(0xb),'DXksx':function(_0x59c8cd,_0xaf7bf2){return _0x59c8cd!==_0xaf7bf2;},'OIgXw':_0x1978(0xc),'pypmi':function(_0x18bc64,_0x25c37e){return _0x18bc64(_0x25c37e);},'BSYMu':function(_0x122f9b,_0x51b5aa,_0x50983f){return _0x122f9b(_0x51b5aa,_0x50983f);},'XidhX':function(_0x383554,_0x411b4f,_0x309293){return _0x383554(_0x411b4f,_0x309293);},'HdVLW':function(_0x3fd8f0,_0x128a31,_0x4d9541){return _0x3fd8f0(_0x128a31,_0x4d9541);}},{user:_0x495dab}=_0x181808[_0x1978(0xd)](useAuth),[_0x28e707,_0x580b6e]=_0x181808[_0x1978(0xe)](useState,[]),[_0x3430ca,_0x1e0c5f]=_0x181808['zSTHg'](useState,!![]),[_0x37e8aa,_0x4aacda]=_0x181808[_0x1978(0xf)](useState,null),_0xa781e4=useCallback(async()=>{const _0x383ea4={'dRIjE':_0x1978(0x2),'DJFUE':function(_0x55460a,_0x37ceef){return _0x181808[_0x1978(0x10)](_0x55460a,_0x37ceef);}};if(!_0x495dab){if(_0x181808[_0x1978(0x11)](_0x181808[_0x1978(0x12)],_0x181808[_0x1978(0x13)])){console[_0x1978(0x14)](_0x181808[_0x1978(0x15)]),_0x181808['NwYns'](_0x1e0c5f,![]);return;}else{_0x594bcb[_0x1978(0x14)](_0x383ea4[_0x1978(0x16)]),_0x383ea4[_0x1978(0x17)](_0x196f57,![]);return;}}try{_0x181808[_0x1978(0xe)](_0x1e0c5f,!![]),_0x181808[_0x1978(0x18)](_0x4aacda,null),console[_0x1978(0x14)](_0x181808[_0x1978(0x19)]),console[_0x1978(0x14)](_0x181808[_0x1978(0x1a)],{'email':_0x495dab[_0x1978(0x1b)],'id':_0x495dab['id'],'name':_0x495dab[_0x1978(0x1c)]});const _0x16b303=await getConnectedAccountsSmart(_0x495dab[_0x1978(0x1b)],_0x495dab['id'],_0x495dab[_0x1978(0x1c)]);console['log'](_0x1978(0x1d)+_0x16b303[_0x1978(0x1e)]+_0x1978(0x1f)),_0x580b6e(_0x16b303);}catch(_0x165d46){console[_0x1978(0x20)](_0x181808['tamom'],_0x165d46),_0x4aacda(_0x181808['CAjYs']);}finally{_0x181808[_0x1978(0x18)](_0x1e0c5f,![]);}},[_0x495dab]),_0x2bff1d=_0x181808['BSYMu'](useCallback,async()=>{const _0x17225a={'OliyI':function(_0x17a6b2,_0x3bab59){return _0x181808['NwYns'](_0x17a6b2,_0x3bab59);},'wgTmI':_0x181808[_0x1978(0x21)]};_0x181808[_0x1978(0x22)](_0x181808['rLQCd'],_0x181808[_0x1978(0x23)])?(_0x17225a['OliyI'](_0x1ca167,_0xc86bd0=>_0xc86bd0['filter'](_0x2b5f11=>_0x2b5f11[_0x1978(0x24)]['toLowerCase']()!==_0x58a641[_0x1978(0x25)]())),_0x19e040[_0x1978(0x14)](_0x17225a[_0x1978(0x26)],_0xad6bab)):(console[_0x1978(0x14)](_0x181808['hRfDM']),await _0x181808[_0x1978(0xd)](_0xa781e4));},[_0xa781e4]),_0x5edd8a=_0x181808[_0x1978(0x27)](useCallback,(_0x48f619,_0x5f4cb4)=>{const _0x313494={'OToZw':function(_0x1dc268,_0x2a1b3a){return _0x181808['mORUL'](_0x1dc268,_0x2a1b3a);},'MkNbY':_0x181808[_0x1978(0x28)],'saAWy':_0x1978(0x29)};if(_0x181808[_0x1978(0x22)](_0x181808[_0x1978(0x2a)],_0x181808[_0x1978(0x2a)])){const _0x4918d0=_0x3a8c52[_0x1978(0x2b)](_0x254c87=>_0x254c87['platform'][_0x1978(0x25)]()===_0x33eaee[_0x1978(0x25)]());return _0x4918d0?_0x1dd0bd[_0x1978(0x2c)](_0x24cd59=>_0x24cd59[_0x1978(0x24)][_0x1978(0x25)]()===_0x3490a0[_0x1978(0x25)]()?_0x814866:_0x24cd59):[..._0x4c5faf,_0x2d964b];}else{const _0x411459='https://'+_0x48f619[_0x1978(0x25)]()+_0x1978(0x2d)+_0x5f4cb4,_0xc896a6={'platform':_0x48f619,'username':_0x5f4cb4,'url':_0x411459};_0x580b6e(_0x1978da=>{const _0x39f73e=_0x1978da[_0x1978(0x2b)](_0x85e187=>_0x85e187[_0x1978(0x24)][_0x1978(0x25)]()===_0x48f619[_0x1978(0x25)]());return _0x39f73e?_0x1978da[_0x1978(0x2c)](_0x37a4ca=>_0x37a4ca[_0x1978(0x24)][_0x1978(0x25)]()===_0x48f619[_0x1978(0x25)]()?_0xc896a6:_0x37a4ca):_0x313494[_0x1978(0x2e)](_0x313494[_0x1978(0x2f)],_0x313494[_0x1978(0x30)])?[..._0x3c6c62,_0x24df36]:[..._0x1978da,_0xc896a6];}),console['log'](_0x181808[_0x1978(0x31)],_0xc896a6);}},[]),_0x5be955=_0x181808[_0x1978(0x27)](useCallback,_0x41432c=>{_0x580b6e(_0x501ef9=>_0x501ef9[_0x1978(0x32)](_0x57f1e1=>_0x57f1e1[_0x1978(0x24)][_0x1978(0x25)]()!==_0x41432c[_0x1978(0x25)]())),console['log'](_0x1978(0x7),_0x41432c);},[]);return _0x181808['HdVLW'](useEffect,()=>{if(_0x181808[_0x1978(0x33)](_0x181808[_0x1978(0x34)],_0x1978(0x35)))_0x181808[_0x1978(0xd)](_0xa781e4);else return _0x26b032['map'](_0x13f2ad=>_0x13f2ad[_0x1978(0x24)][_0x1978(0x25)]()===_0x42a9b6[_0x1978(0x25)]()?_0x2ce6ad:_0x13f2ad);},[_0xa781e4]),{'connectedAccounts':_0x28e707,'isLoading':_0x3430ca,'error':_0x37e8aa,'refreshAccounts':_0x2bff1d,'addAccount':_0x5edd8a,'removeAccount':_0x5be955};};
1
+ function _0x4371(){const _0x188bbe=['🔍\x20No\x20user\x20available\x20for\x20fetching\x20connected\x20accounts','okvHL','🚀\x20[HOOK]\x20Starting\x20connected\x20accounts\x20fetch\x20with\x20new\x20smart\x20API...','HixdX','❌\x20[HOOK]\x20Error\x20fetching\x20connected\x20accounts:','Failed\x20to\x20load\x20connected\x20accounts','tYGHS','BkOAx','WaVQC','GvUie','✅\x20[HOOK]\x20Account\x20added\x20locally:','apHeh','RJgcj','uaNBZ','AqCcR','CbCHp','WHqhB','JGimO','UUfmp','filter','platform','toLowerCase','✅\x20[HOOK]\x20Account\x20removed\x20locally:','log','UGVoF','BTASm','lTNgd','IDHoc','🚀\x20[HOOK]\x20User\x20info\x20available:','email','name','✅\x20[HOOK]\x20Connected\x20accounts\x20loaded\x20via\x20smart\x20API:\x20','length','\x20accounts','ALlKO','IIeLy','PrVuE','jZpoe','error','fMNZP','HdhCR','map','wSSbK','BiNoa','zpQGl','pHDVY','ogpya','some','https://','.com/','MUseu','ItUpG','sPrLl','OSECF','Igbxh','SsORf','EfQdV','SxXIP'];_0x4371=function(){return _0x188bbe;};return _0x4371();}function _0x1b13(_0x4371dd,_0x1b1343){_0x4371dd=_0x4371dd-0x0;const _0x373258=_0x4371();let _0x5a42d4=_0x373258[_0x4371dd];return _0x5a42d4;}import{useState,useEffect,useCallback}from'react';import{getConnectedAccountsSmart}from'../services/connectedAccountsService';import{useAuth}from'../context/AuthContext';export const useConnectedAccounts=()=>{const _0x57f5fd={'UGVoF':_0x1b13(0x0),'IIeLy':function(_0x33685c,_0x134279){return _0x33685c(_0x134279);},'uaNBZ':function(_0x50a849,_0x43a762){return _0x50a849(_0x43a762);},'SsORf':function(_0x4aa248,_0x4aabcf){return _0x4aa248!==_0x4aabcf;},'JGimO':'buOTt','BTASm':function(_0xb6bfc,_0x10562f){return _0xb6bfc===_0x10562f;},'lTNgd':_0x1b13(0x1),'IDHoc':_0x1b13(0x2),'ALlKO':function(_0x166f5a,_0x280be6){return _0x166f5a(_0x280be6);},'PrVuE':function(_0x1a39b4,_0x147128){return _0x1a39b4===_0x147128;},'jZpoe':_0x1b13(0x3),'fMNZP':_0x1b13(0x4),'HdhCR':_0x1b13(0x5),'FlvVl':_0x1b13(0x6),'wSSbK':_0x1b13(0x7),'BiNoa':function(_0x25913b,_0x4a3ee8){return _0x25913b(_0x4a3ee8);},'kvKeO':_0x1b13(0x8),'pHDVY':'🔄\x20[HOOK]\x20Refreshing\x20connected\x20accounts...','RJgcj':function(_0x1f3c2e){return _0x1f3c2e();},'rOsMv':function(_0x2b92e4,_0x3f3694){return _0x2b92e4(_0x3f3694);},'MUseu':function(_0x9f64d7,_0x21784a){return _0x9f64d7===_0x21784a;},'ItUpG':'MOfPe','sPrLl':_0x1b13(0x9),'ogpya':'ovpDb','Igbxh':_0x1b13(0xa),'RvMtX':'mZVoV','dCqDo':_0x1b13(0xb),'SxXIP':function(_0x579507){return _0x579507();},'AqCcR':function(_0x4f5c0c,_0x4b54aa){return _0x4f5c0c(_0x4b54aa);},'CbCHp':function(_0x4cbbc4,_0x5d743d){return _0x4cbbc4(_0x5d743d);},'WHqhB':function(_0x5c71e7,_0xe7cfa0,_0x34efdf){return _0x5c71e7(_0xe7cfa0,_0x34efdf);},'zpQGl':function(_0x48688d,_0x3f5f6f,_0x15a8c4){return _0x48688d(_0x3f5f6f,_0x15a8c4);},'JeREe':function(_0x189030,_0x3b7902,_0x4ad5b9){return _0x189030(_0x3b7902,_0x4ad5b9);},'EfQdV':function(_0x3165bd,_0x28ae12,_0x437cf6){return _0x3165bd(_0x28ae12,_0x437cf6);}},{user:_0x2c2d43}=_0x57f5fd[_0x1b13(0xc)](useAuth),[_0x2127cf,_0x4dc624]=_0x57f5fd[_0x1b13(0xd)](useState,[]),[_0x3c2f72,_0x5fcd5]=_0x57f5fd[_0x1b13(0xe)](useState,!![]),[_0x1845c7,_0x2ee605]=_0x57f5fd[_0x1b13(0xf)](useState,null),_0x3796bb=_0x57f5fd[_0x1b13(0x10)](useCallback,async()=>{const _0x1cd828={'UUfmp':function(_0x3bd346,_0x5af608){return _0x57f5fd[_0x1b13(0xd)](_0x3bd346,_0x5af608);}};if(_0x57f5fd['SsORf']('buOTt',_0x57f5fd[_0x1b13(0x11)]))_0x1cd828[_0x1b13(0x12)](_0x2b573a,_0x2d3263=>_0x2d3263[_0x1b13(0x13)](_0x134fb4=>_0x134fb4[_0x1b13(0x14)][_0x1b13(0x15)]()!==_0x2fd7e6[_0x1b13(0x15)]())),_0x37f822['log'](_0x1b13(0x16),_0x55d624);else{if(!_0x2c2d43){console[_0x1b13(0x17)](_0x57f5fd[_0x1b13(0x18)]),_0x57f5fd[_0x1b13(0xd)](_0x5fcd5,![]);return;}try{if(_0x57f5fd[_0x1b13(0x19)](_0x57f5fd[_0x1b13(0x1a)],_0x57f5fd['lTNgd'])){_0x57f5fd[_0x1b13(0xd)](_0x5fcd5,!![]),_0x57f5fd[_0x1b13(0xd)](_0x2ee605,null),console[_0x1b13(0x17)](_0x57f5fd[_0x1b13(0x1b)]),console[_0x1b13(0x17)](_0x1b13(0x1c),{'email':_0x2c2d43[_0x1b13(0x1d)],'id':_0x2c2d43['id'],'name':_0x2c2d43['name']});const _0x2c684c=await getConnectedAccountsSmart(_0x2c2d43['email'],_0x2c2d43['id'],_0x2c2d43[_0x1b13(0x1e)]);console[_0x1b13(0x17)](_0x1b13(0x1f)+_0x2c684c[_0x1b13(0x20)]+_0x1b13(0x21)),_0x57f5fd[_0x1b13(0x22)](_0x4dc624,_0x2c684c);}else{_0x3d0a39[_0x1b13(0x17)](_0x57f5fd[_0x1b13(0x18)]),_0x57f5fd[_0x1b13(0x23)](_0x210780,![]);return;}}catch(_0x5945cf){if(_0x57f5fd[_0x1b13(0x24)](_0x1b13(0x3),_0x57f5fd[_0x1b13(0x25)]))console[_0x1b13(0x26)](_0x57f5fd[_0x1b13(0x27)],_0x5945cf),_0x2ee605(_0x57f5fd[_0x1b13(0x28)]);else return _0xfedb2a[_0x1b13(0x29)](_0x3e8893=>_0x3e8893[_0x1b13(0x14)][_0x1b13(0x15)]()===_0x598519[_0x1b13(0x15)]()?_0x287115:_0x3e8893);}finally{_0x57f5fd['FlvVl']!==_0x57f5fd[_0x1b13(0x2a)]?_0x57f5fd[_0x1b13(0x2b)](_0x5fcd5,![]):_0x312344(![]);}}},[_0x2c2d43]),_0xd30b8b=_0x57f5fd[_0x1b13(0x2c)](useCallback,async()=>{_0x1b13(0x8)!==_0x57f5fd['kvKeO']?_0x2106fb():(console[_0x1b13(0x17)](_0x57f5fd[_0x1b13(0x2d)]),await _0x57f5fd['RJgcj'](_0x3796bb));},[_0x3796bb]),_0x5b85b4=useCallback((_0x1904db,_0x48bd21)=>{if(_0x57f5fd[_0x1b13(0x2e)]!==_0x57f5fd[_0x1b13(0x2e)]){const _0x3e8f1f=_0x9d7e8d[_0x1b13(0x2f)](_0x24a074=>_0x24a074['platform'][_0x1b13(0x15)]()===_0x5f4adf[_0x1b13(0x15)]());return _0x3e8f1f?_0x48efae[_0x1b13(0x29)](_0x59a9fa=>_0x59a9fa[_0x1b13(0x14)][_0x1b13(0x15)]()===_0x28de71[_0x1b13(0x15)]()?_0x276256:_0x59a9fa):[..._0x50fba0,_0x59853];}else{const _0x518d2f=_0x1b13(0x30)+_0x1904db[_0x1b13(0x15)]()+_0x1b13(0x31)+_0x48bd21,_0x179d93={'platform':_0x1904db,'username':_0x48bd21,'url':_0x518d2f};_0x57f5fd[_0x1b13(0x23)](_0x4dc624,_0x3eabc0=>{const _0x384bf7={'gHtPN':_0x57f5fd[_0x1b13(0x27)],'OSECF':function(_0x380952,_0x4a0067){return _0x57f5fd['rOsMv'](_0x380952,_0x4a0067);}};if(_0x57f5fd[_0x1b13(0x32)](_0x57f5fd[_0x1b13(0x33)],_0x57f5fd['ItUpG'])){const _0x672a2b=_0x3eabc0[_0x1b13(0x2f)](_0x5fb818=>_0x5fb818[_0x1b13(0x14)][_0x1b13(0x15)]()===_0x1904db[_0x1b13(0x15)]());return _0x672a2b?_0x3eabc0[_0x1b13(0x29)](_0xb290b9=>_0xb290b9[_0x1b13(0x14)][_0x1b13(0x15)]()===_0x1904db['toLowerCase']()?_0x179d93:_0xb290b9):_0x1b13(0x9)!==_0x57f5fd[_0x1b13(0x34)]?[..._0x47ea06,_0x248e33]:[..._0x3eabc0,_0x179d93];}else _0x46fbc5[_0x1b13(0x26)](_0x384bf7['gHtPN'],_0x556eb3),_0x384bf7[_0x1b13(0x35)](_0x559715,_0x1b13(0x5));}),console[_0x1b13(0x17)](_0x57f5fd[_0x1b13(0x36)],_0x179d93);}},[]),_0x5ba119=_0x57f5fd['JeREe'](useCallback,_0x11f61a=>{if(_0x57f5fd[_0x1b13(0x37)](_0x57f5fd['RvMtX'],_0x57f5fd['dCqDo']))_0x57f5fd[_0x1b13(0x2b)](_0x4dc624,_0xa0d832=>_0xa0d832[_0x1b13(0x13)](_0x3f3661=>_0x3f3661[_0x1b13(0x14)][_0x1b13(0x15)]()!==_0x11f61a[_0x1b13(0x15)]())),console[_0x1b13(0x17)]('✅\x20[HOOK]\x20Account\x20removed\x20locally:',_0x11f61a);else{const _0x25a2ae=_0x1b13(0x30)+_0x561fa3['toLowerCase']()+_0x1b13(0x31)+_0x49cb03,_0x58e6a8={'platform':_0x5d9d55,'username':_0x2f35a8,'url':_0x25a2ae};_0x57f5fd['ALlKO'](_0x52f843,_0x3aa72c=>{const _0x374c44=_0x3aa72c['some'](_0x281bf2=>_0x281bf2[_0x1b13(0x14)][_0x1b13(0x15)]()===_0x303ef3['toLowerCase']());return _0x374c44?_0x3aa72c[_0x1b13(0x29)](_0x1b9c8f=>_0x1b9c8f[_0x1b13(0x14)][_0x1b13(0x15)]()===_0x179390[_0x1b13(0x15)]()?_0x58e6a8:_0x1b9c8f):[..._0x3aa72c,_0x58e6a8];}),_0x32c3cc[_0x1b13(0x17)](_0x57f5fd[_0x1b13(0x36)],_0x58e6a8);}},[]);return _0x57f5fd[_0x1b13(0x38)](useEffect,()=>{_0x57f5fd[_0x1b13(0x39)](_0x3796bb);},[_0x3796bb]),{'connectedAccounts':_0x2127cf,'isLoading':_0x3c2f72,'error':_0x1845c7,'refreshAccounts':_0xd30b8b,'addAccount':_0x5b85b4,'removeAccount':_0x5ba119};};
@@ -1 +1 @@
1
- import{useState,useCallback}from'react';import{initiateNativeAuth}from'../services/platformAuthService';function _0x560a(_0xc0be8b,_0x560af5){_0xc0be8b=_0xc0be8b-0x0;const _0x5aa451=_0xc0be();let _0x1570c1=_0x5aa451[_0xc0be8b];return _0x1570c1;}export const useConnections=()=>{const _0x5a95db={'AewWt':function(_0x3781b6,_0x3c4b4f){return _0x3781b6(_0x3c4b4f);},'TALbV':_0x560a(0x0),'wJDhG':function(_0x1de7bd,_0x2ef122){return _0x1de7bd(_0x2ef122);},'WcshM':function(_0xf90d33,_0x188ce9){return _0xf90d33===_0x188ce9;},'sVzMd':_0x560a(0x1),'DzqRU':function(_0x2bed78,_0x544bf5){return _0x2bed78===_0x544bf5;},'UMhQW':function(_0x5cb78b,_0x202271,_0x2aef68){return _0x5cb78b(_0x202271,_0x2aef68);},'kBeTE':function(_0x3a965a,_0x220be1){return _0x3a965a!==_0x220be1;},'qXSwn':_0x560a(0x2),'lUxKd':'eaqtu','QNvGu':'ornVT','HgtWY':function(_0x99c581,_0x593028){return _0x99c581(_0x593028);},'BLOaa':_0x560a(0x3),'FkDzA':_0x560a(0x4),'pfpxL':function(_0x3edcf5,_0x31260c){return _0x3edcf5!==_0x31260c;},'qPWiT':_0x560a(0x5),'wDsPI':function(_0x3976e3,_0x5c8ca9){return _0x3976e3(_0x5c8ca9);}},[_0x8ffa66,_0x10e8dc]=useState({}),[_0x4ee310,_0x534644]=_0x5a95db[_0x560a(0x6)](useState,![]),_0x39fa2f=useCallback(async(_0x32d7e3,_0x5d81aa)=>{const _0x160f58={'sSfqB':function(_0x4040b3,_0x17ca70){return _0x4040b3(_0x17ca70);},'ZOqgf':_0x560a(0x0),'ujTNJ':function(_0x2dbaca,_0x11a0b5){return _0x5a95db[_0x560a(0x7)](_0x2dbaca,_0x11a0b5);}};if(_0x5a95db[_0x560a(0x8)](_0x560a(0x1),_0x5a95db[_0x560a(0x9)]))try{_0x534644(!![]);const useNativeSDK=_0x5a95db['WcshM'](_0x32d7e3,_0x560a(0xa))||_0x5a95db[_0x560a(0xb)](_0x32d7e3,'instagram');let _0x51bad=![];if(useNativeSDK)_0x51bad=await _0x5a95db[_0x560a(0xc)](initiateNativeAuth,_0x32d7e3,_0x5d81aa);else{if(_0x5a95db[_0x560a(0xd)](_0x5a95db[_0x560a(0xe)],_0x560a(0xf)))await new Promise(_0x4838a2=>setTimeout(()=>_0x4838a2(undefined),0x3e8)),_0x51bad=!![];else return _0x5a95db['AewWt'](_0x2a2469,_0x2386de=>({..._0x2386de,[_0x2f364c]:{'userName':_0x4aac98,'connected':!![]}})),_0x43844f[_0x560a(0x10)](_0x560a(0x11)+_0x1edb44+'\x20connected\x20locally'),_0x563856['log'](_0x5a95db[_0x560a(0x12)]),!![];}if(_0x51bad)return _0x10e8dc(_0x5e238a=>({..._0x5e238a,[_0x32d7e3]:{'userName':_0x5d81aa,'connected':!![]}})),console[_0x560a(0x10)](_0x560a(0x11)+_0x32d7e3+_0x560a(0x13)),console[_0x560a(0x10)](_0x5a95db['TALbV']),!![];return![];}catch(_0x11379f){if(_0x5a95db[_0x560a(0xd)]('eaqtu',_0x5a95db[_0x560a(0x14)]))try{return _0x160f58[_0x560a(0x15)](_0x5ada5d,_0x172457=>{const _0x2331c9={..._0x172457};return delete _0x2331c9[_0x4a741f],_0x2331c9;}),_0xe37b45[_0x560a(0x10)](_0x560a(0x11)+_0x31d942+'\x20disconnected\x20locally'),_0x1cb0ce[_0x560a(0x10)](_0x160f58[_0x560a(0x16)]),!![];}catch(_0x391842){return _0x187411[_0x560a(0x17)]('Error\x20disconnecting\x20platform\x20'+_0x429b1a+':',_0x391842),![];}else return console['error'](_0x560a(0x18)+_0x32d7e3+':',_0x11379f),![];}finally{'jUrXl'!==_0x5a95db[_0x560a(0x19)]?_0x5a95db[_0x560a(0x7)](_0x534644,![]):_0x160f58['ujTNJ'](_0x59d150,![]);}else{const _0x1ebf57={..._0x52b5fa};return delete _0x1ebf57[_0xf12677],_0x1ebf57;}},[]),_0x1b458a=useCallback(async(_0x1a50b5,_0x1a8281)=>{try{return _0x5a95db[_0x560a(0x1a)](_0x10e8dc,_0x5b4930=>{const _0x14fcbc={'QxoXk':function(_0x5615f5,_0x2d36bd){return _0x5a95db['HgtWY'](_0x5615f5,_0x2d36bd);},'isCWy':_0x560a(0x0)};if(_0x5a95db['BLOaa']===_0x5a95db[_0x560a(0x1b)])return _0x14fcbc[_0x560a(0x1c)](_0x3150b3,_0x183b80=>{const _0x189d01={..._0x183b80};return delete _0x189d01[_0x1937d3],_0x189d01;}),_0x59bbc8['log'](_0x560a(0x11)+_0x532db0+_0x560a(0x1d)),_0x3ceef8[_0x560a(0x10)](_0x14fcbc[_0x560a(0x1e)]),!![];else{const _0x11e9ad={..._0x5b4930};return delete _0x11e9ad[_0x1a50b5],_0x11e9ad;}}),console[_0x560a(0x10)](_0x560a(0x11)+_0x1a50b5+_0x560a(0x1d)),console[_0x560a(0x10)](_0x5a95db[_0x560a(0x12)]),!![];}catch(_0x3358d3){return _0x5a95db[_0x560a(0x1f)](_0x5a95db[_0x560a(0x20)],_0x5a95db[_0x560a(0x20)])?(_0x49603e[_0x560a(0x17)](_0x560a(0x18)+_0x12b77e+':',_0x5588b0),![]):(console[_0x560a(0x17)](_0x560a(0x21)+_0x1a50b5+':',_0x3358d3),![]);}},[]),_0x50d43e=_0x5a95db[_0x560a(0xc)](useCallback,async()=>{return _0x8ffa66;},[_0x8ffa66]);return{'connections':_0x8ffa66,'connectPlatform':_0x39fa2f,'disconnectPlatform':_0x1b458a,'getConnectionStatus':_0x50d43e,'isConnecting':_0x4ee310};};function _0xc0be(){const _0x5242a8=['ℹ️\x20NOTE:\x20Backend\x20sync\x20removed\x20from\x20SDK\x20-\x20app\x20should\x20call\x20/enoch/users/update\x20if\x20needed','dHxWk','Smhrc','ooOPB','WusPI','FAkxn','wDsPI','wJDhG','WcshM','sVzMd','youtube','DzqRU','UMhQW','kBeTE','qXSwn','DQTNi','log','✅\x20Platform\x20','TALbV','\x20connected\x20locally','lUxKd','sSfqB','ZOqgf','error','Error\x20connecting\x20platform\x20','QNvGu','AewWt','FkDzA','QxoXk','\x20disconnected\x20locally','isCWy','pfpxL','qPWiT','Error\x20disconnecting\x20platform\x20'];_0xc0be=function(){return _0x5242a8;};return _0xc0be();}
1
+ import{useState,useCallback}from'react';import{initiateNativeAuth}from'../services/platformAuthService';function _0x3095(_0x19c678,_0x309518){_0x19c678=_0x19c678-0x0;const _0x4d062a=_0x19c6();let _0x176632=_0x4d062a[_0x19c678];return _0x176632;}export const useConnections=()=>{const _0x2c47c9={'pjvNd':function(_0x432e8c,_0x4ef18c){return _0x432e8c(_0x4ef18c);},'Yycfk':_0x3095(0x0),'FFyhx':function(_0x26e1f8,_0x191d90){return _0x26e1f8!==_0x191d90;},'KQmQN':_0x3095(0x1),'dfvyM':function(_0x55fd31,_0xa7afaa,_0x3ec882){return _0x55fd31(_0xa7afaa,_0x3ec882);},'XnFRB':_0x3095(0x2),'aONDY':function(_0xcba29,_0xd35e96){return _0xcba29(_0xd35e96);},'pkOvQ':function(_0x333bb6,_0x48b45d){return _0x333bb6!==_0x48b45d;},'FcUpU':_0x3095(0x3),'KbGbs':function(_0x168de5,_0x4b55f9,_0x1b869d){return _0x168de5(_0x4b55f9,_0x1b869d);}},[_0x74cf41,_0x2e2d0e]=_0x2c47c9[_0x3095(0x4)](useState,{}),[_0x145ed8,_0x10cfe2]=_0x2c47c9[_0x3095(0x4)](useState,![]),_0x4ba1d0=useCallback(async(_0x269ced,_0x2eff52)=>{try{_0x10cfe2(!![]);const useNativeSDK=_0x269ced==='youtube'||_0x269ced===_0x3095(0x5);let _0x2e64f3=![];if(useNativeSDK){if(_0x2c47c9[_0x3095(0x6)]('cpIFa',_0x2c47c9['KQmQN']))return _0x2c47c9[_0x3095(0x7)](_0x16d13a,_0x132280=>{const _0xaccdaa={..._0x132280};return delete _0xaccdaa[_0x5a9d82],_0xaccdaa;}),_0x19b325[_0x3095(0x8)]('✅\x20Platform\x20'+_0x4c02ac+_0x3095(0x9)),_0x1240f6[_0x3095(0x8)](_0x2c47c9[_0x3095(0xa)]),!![];else _0x2e64f3=await _0x2c47c9[_0x3095(0xb)](initiateNativeAuth,_0x269ced,_0x2eff52);}else await new Promise(_0x1b82dc=>setTimeout(()=>_0x1b82dc(undefined),0x3e8)),_0x2e64f3=!![];if(_0x2e64f3)return _0x2c47c9[_0x3095(0xc)]!==_0x2c47c9['XnFRB']?(_0x1224f3[_0x3095(0xd)](_0x3095(0xe)+_0x348f03+':',_0x2c2c02),![]):(_0x2c47c9[_0x3095(0x4)](_0x2e2d0e,_0x125a4f=>({..._0x125a4f,[_0x269ced]:{'userName':_0x2eff52,'connected':!![]}})),console[_0x3095(0x8)](_0x3095(0xf)+_0x269ced+'\x20connected\x20locally'),console[_0x3095(0x8)](_0x2c47c9[_0x3095(0xa)]),!![]);return![];}catch(_0x29b30c){return console[_0x3095(0xd)]('Error\x20connecting\x20platform\x20'+_0x269ced+':',_0x29b30c),![];}finally{_0x10cfe2(![]);}},[]),_0x23f846=_0x2c47c9[_0x3095(0x10)](useCallback,async(_0x49b739,_0x569e0f)=>{if(_0x2c47c9[_0x3095(0x11)](_0x3095(0x12),_0x2c47c9['FcUpU']))try{return _0x2c47c9[_0x3095(0x4)](_0x2e2d0e,_0x41e5e6=>{const _0x4b1501={..._0x41e5e6};return delete _0x4b1501[_0x49b739],_0x4b1501;}),console[_0x3095(0x8)](_0x3095(0xf)+_0x49b739+_0x3095(0x9)),console[_0x3095(0x8)](_0x2c47c9['Yycfk']),!![];}catch(_0x456d70){return console[_0x3095(0xd)]('Error\x20disconnecting\x20platform\x20'+_0x49b739+':',_0x456d70),![];}else return _0x3ad971[_0x3095(0xd)](_0x3095(0x13)+_0x11c512+':',_0x30f90c),![];},[]),_0x1f7f84=_0x2c47c9[_0x3095(0x10)](useCallback,async()=>{return _0x74cf41;},[_0x74cf41]);return{'connections':_0x74cf41,'connectPlatform':_0x4ba1d0,'disconnectPlatform':_0x23f846,'getConnectionStatus':_0x1f7f84,'isConnecting':_0x145ed8};};function _0x19c6(){const _0x5bed9e=['ℹ️\x20NOTE:\x20Backend\x20sync\x20removed\x20from\x20SDK\x20-\x20app\x20should\x20call\x20/enoch/users/update\x20if\x20needed','cpIFa','FHNoF','bTsQx','aONDY','instagram','FFyhx','pjvNd','log','\x20disconnected\x20locally','Yycfk','dfvyM','XnFRB','error','Error\x20connecting\x20platform\x20','✅\x20Platform\x20','KbGbs','pkOvQ','fMmfH','Error\x20disconnecting\x20platform\x20'];_0x19c6=function(){return _0x5bed9e;};return _0x19c6();}
@@ -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
- function _0x5424(_0x23b88d,_0x5424ef){_0x23b88d=_0x23b88d-0x0;const _0x1547cb=_0x23b8();let _0x2432bd=_0x1547cb[_0x23b88d];return _0x2432bd;}import{useCallback}from'react';import{STORAGE_KEYS}from'../constants';import{API_CONFIG}from'../config/api';const mockCredentialStorage={};let Keychain=null;try{Keychain=__ONAIROS_REQ_FUNC__(0x0);}catch(_0x45ae5b){console[_0x5424(0x0)]('react-native-keychain module not available in useCredentials, using mock storage');}const isKeychainAvailable=()=>{const _0x40a2d7={'etYCY':function(_0x176721,_0x457bf2){return _0x176721===_0x457bf2;},'KIyoP':_0x5424(0x1)};try{return Keychain&&_0x40a2d7[_0x5424(0x2)](typeof Keychain['getGenericPassword'],_0x40a2d7['KIyoP']);}catch(_0x5afe4c){return![];}},safeGetGenericPassword=async _0x4a2e74=>{const _0x4a67bb={'snicu':function(_0x2c3645,_0x47ff6a){return _0x2c3645===_0x47ff6a;},'miCrK':_0x5424(0x3),'cVdwu':_0x5424(0x4),'bPClt':function(_0xc16fc7){return _0xc16fc7();},'DBiIX':_0x5424(0x5),'JBGIu':'Keychain\x20access\x20failed,\x20using\x20mock\x20storage'};try{if(_0x4a67bb[_0x5424(0x6)]===_0x5424(0x7))_0x459703[_0x5424(0x0)]('react-native-keychain module not available in useCredentials, using mock storage');else{if(_0x4a67bb[_0x5424(0x8)](isKeychainAvailable))return await Keychain[_0x5424(0x9)](_0x4a2e74);else{if(_0x4a67bb['snicu']('aIauh',_0x4a67bb[_0x5424(0xa)])){_0x5f4e5c['warn']('Keychain\x20access\x20failed,\x20using\x20mock\x20storage',_0x1c41ef);const _0x45bff0=(_0x4a67bb[_0x5424(0xb)](_0x16a527,null)||_0x4a67bb[_0x5424(0xb)](_0x21c829,void 0x0)?void 0x0:_0x476908[_0x5424(0xc)])||_0x4a67bb['miCrK'];return delete _0x435287[_0x45bff0],!![];}else{const _0x414c40=(_0x4a2e74===null||_0x4a67bb[_0x5424(0xb)](_0x4a2e74,void 0x0)?void 0x0:_0x4a2e74[_0x5424(0xc)])||_0x4a67bb[_0x5424(0xd)];return mockCredentialStorage[_0x414c40]||null;}}}}catch(_0xe8eb41){console['warn'](_0x4a67bb[_0x5424(0xe)],_0xe8eb41);const _0x137a63=(_0x4a67bb[_0x5424(0xb)](_0x4a2e74,null)||_0x4a67bb[_0x5424(0xb)](_0x4a2e74,void 0x0)?void 0x0:_0x4a2e74[_0x5424(0xc)])||_0x5424(0x3);return mockCredentialStorage[_0x137a63]||null;}},safeSetGenericPassword=async(_0x335d05,_0xe5dd79,_0x225a69)=>{const _0x2773af={'gHfuI':_0x5424(0xf),'IDKWV':function(_0x592106){return _0x592106();},'tBjHg':_0x5424(0x10),'pmmFD':function(_0x3b80b9,_0x30e7e0){return _0x3b80b9===_0x30e7e0;},'AUAAN':_0x5424(0x3),'uTUoV':'Keychain\x20access\x20failed,\x20using\x20mock\x20storage','iYSiP':function(_0x59e2b7,_0x10bcf4){return _0x59e2b7===_0x10bcf4;},'HqxTN':function(_0x182116,_0x2c4b73){return _0x182116===_0x2c4b73;}};try{if(_0x2773af[_0x5424(0x11)](isKeychainAvailable)){if(_0x2773af[_0x5424(0x12)]===_0x5424(0x13))_0x6ed845['error'](_0x2773af[_0x5424(0x14)],_0x1c12ae);else return await Keychain['setGenericPassword'](_0x335d05,_0xe5dd79,_0x225a69);}else{const _0xfbf57f=(_0x2773af[_0x5424(0x15)](_0x225a69,null)||_0x225a69===void 0x0?void 0x0:_0x225a69[_0x5424(0xc)])||_0x2773af[_0x5424(0x16)];return mockCredentialStorage[_0xfbf57f]={'username':_0x335d05,'password':_0xe5dd79},!![];}}catch(_0x241aa2){console['warn'](_0x2773af['uTUoV'],_0x241aa2);const _0x485ed1=(_0x2773af[_0x5424(0x17)](_0x225a69,null)||_0x2773af[_0x5424(0x18)](_0x225a69,void 0x0)?void 0x0:_0x225a69[_0x5424(0xc)])||_0x2773af['AUAAN'];return mockCredentialStorage[_0x485ed1]={'username':_0x335d05,'password':_0xe5dd79},!![];}},safeResetGenericPassword=async _0x4d23fb=>{const _0x5820ec={'qTeYh':_0x5424(0x19),'uxbBy':_0x5424(0x1a),'tpTiJ':function(_0x3be050,_0xa8d5f){return _0x3be050===_0xa8d5f;},'iFAxC':_0x5424(0x3),'sdukM':'dyCVr','LzQKo':_0x5424(0x1b),'RSeVk':function(_0x54a097){return _0x54a097();},'jdBmn':function(_0x1ac2e9,_0x2afa91){return _0x1ac2e9===_0x2afa91;},'ckzgG':'PgCkf'};try{if(_0x5820ec['tpTiJ'](_0x5820ec[_0x5424(0x1c)],_0x5820ec[_0x5424(0x1d)]))return _0x1b2110[_0x5424(0x1e)](_0x5820ec[_0x5424(0x1f)],_0x1fd433),![];else{if(_0x5820ec['RSeVk'](isKeychainAvailable))return await Keychain['resetGenericPassword'](_0x4d23fb);else{const _0x18777b=(_0x4d23fb===null||_0x5820ec[_0x5424(0x20)](_0x4d23fb,void 0x0)?void 0x0:_0x4d23fb['service'])||_0x5820ec['iFAxC'];return delete mockCredentialStorage[_0x18777b],!![];}}}catch(_0x40b504){if(_0x5820ec[_0x5424(0x21)](_0x5820ec['ckzgG'],_0x5424(0x22))){_0x5cc5b5[_0x5424(0x0)](_0x5820ec[_0x5424(0x23)],_0x2d1bfc);const _0xd21062=(_0x2d36d9===null||_0x5820ec[_0x5424(0x20)](_0x31790b,void 0x0)?void 0x0:_0x33a0c9[_0x5424(0xc)])||_0x5820ec['iFAxC'];return _0x3d1bae[_0xd21062]||null;}else{console[_0x5424(0x0)](_0x5424(0x1a),_0x40b504);const _0x40a3a2=(_0x4d23fb===null||_0x5820ec[_0x5424(0x20)](_0x4d23fb,void 0x0)?void 0x0:_0x4d23fb[_0x5424(0xc)])||'default';return delete mockCredentialStorage[_0x40a3a2],!![];}}};function _0x23b8(){const _0x1a21f3=['warn','function','etYCY','default','VbaPu','uWZcv','cVdwu','osgyC','bPClt','getGenericPassword','DBiIX','snicu','service','miCrK','JBGIu','Error\x20clearing\x20credentials:','baTJf','IDKWV','tBjHg','OUaiR','gHfuI','pmmFD','AUAAN','iYSiP','HqxTN','Error\x20storing\x20credentials:','Keychain\x20access\x20failed,\x20using\x20mock\x20storage','TaiyV','sdukM','LzQKo','error','qTeYh','tpTiJ','jdBmn','YCqmi','uxbBy','Error\x20getting\x20credentials:','VPxlF','KqBXY','Error\x20checking\x20credentials:','Cavtz','FtaUl','Error\x20validating\x20credentials:','ufIXP','pTKjV','LkCVH','jDGit','eLrja','credentials','password','bIsLv','hFNoO','lPbJd','mqEym','zOwMm','OZNYn','dniwO','BIOMETRY_ANY','accessible','WHEN_UNLOCKED','tthrc','stringify','StVGK','vJWfm','QyTvN','XpXfx','lqqVR','vLAQV','ekdSV','tSXIh','GeZgd','WlGSN','iCUlv','AhaLS','xrvmP','bkEmR','ckIKt','BASE_URL','/validate','parse','QNhOO'];_0x23b8=function(){return _0x1a21f3;};return _0x23b8();}export const useCredentials=()=>{const _0x40705e={'ufIXP':function(_0x1cef60,_0x192283){return _0x1cef60(_0x192283);},'LkCVH':function(_0x10ee94,_0x3728bd){return _0x10ee94===_0x3728bd;},'eLrja':'giHNO','iQuiK':function(_0x249896,_0x51bd55){return _0x249896(_0x51bd55);},'lPbJd':_0x5424(0x24),'mqEym':function(_0x4c53c8,_0x13df3b){return _0x4c53c8===_0x13df3b;},'zOwMm':'dBBVH','ADpNi':'Ypdqw','piVGW':function(_0x30ad43){return _0x30ad43();},'dniwO':function(_0x16dbdf,_0x244ebf){return _0x16dbdf===_0x244ebf;},'tthrc':function(_0x436bdf,_0x4b622a,_0x168f44,_0x3d3c23){return _0x436bdf(_0x4b622a,_0x168f44,_0x3d3c23);},'StVGK':function(_0x812f89,_0x350119){return _0x812f89===_0x350119;},'vJWfm':_0x5424(0x25),'nQyfZ':_0x5424(0x26),'XpXfx':_0x5424(0x19),'vLAQV':function(_0x3e04a8,_0x43c0f4){return _0x3e04a8===_0x43c0f4;},'eMOvx':_0x5424(0x3),'ekdSV':function(_0xad3aba,_0x907b42){return _0xad3aba===_0x907b42;},'WljYT':'tMnVo','tSXIh':'cHcYD','WlGSN':function(_0x17e44c,_0x51fcbf){return _0x17e44c(_0x51fcbf);},'iCUlv':'Error\x20clearing\x20credentials:','HoIHV':_0x5424(0x27),'bkEmR':function(_0x19bcef,_0x1d63c4){return _0x19bcef!==_0x1d63c4;},'xrvmP':_0x5424(0x28),'ckIKt':_0x5424(0x29),'pTKjV':function(_0x1e2e32,_0x5e970e,_0x5bb42c){return _0x1e2e32(_0x5e970e,_0x5bb42c);},'QNhOO':_0x5424(0x2a),'KkAVz':function(_0x5f0e4c,_0x2e887b,_0x415ddb){return _0x5f0e4c(_0x2e887b,_0x415ddb);},'hFNoO':function(_0x490859,_0x32d99b,_0x301152){return _0x490859(_0x32d99b,_0x301152);},'lqqVR':function(_0x34fde0,_0x302957,_0x3a1949){return _0x34fde0(_0x302957,_0x3a1949);},'AhaLS':function(_0xc549ca,_0x56dd33,_0x2f7bdf){return _0xc549ca(_0x56dd33,_0x2f7bdf);}},_0x120826=_0x40705e['KkAVz'](useCallback,async()=>{try{const _0x28926e=await _0x40705e[_0x5424(0x2b)](safeGetGenericPassword,{'service':STORAGE_KEYS['credentials']});return!!_0x28926e;}catch(_0x527a6b){return console[_0x5424(0x1e)]('Error\x20checking\x20credentials:',_0x527a6b),![];}},[]),_0x470f0d=_0x40705e[_0x5424(0x2c)](useCallback,async()=>{const _0x3aab6f={'bIsLv':function(_0x30d983,_0x38acb4){return _0x40705e[_0x5424(0x2d)](_0x30d983,_0x38acb4);}};try{if(_0x5424(0x2e)!==_0x40705e[_0x5424(0x2f)]){const _0x512160=await _0x40705e['iQuiK'](safeGetGenericPassword,{'service':STORAGE_KEYS[_0x5424(0x30)]});if(_0x512160)return JSON['parse'](_0x512160[_0x5424(0x31)]);return null;}else{const _0x1d848b=(_0x3aab6f[_0x5424(0x32)](_0x944448,null)||_0x42433d===void 0x0?void 0x0:_0x2b84e2[_0x5424(0xc)])||_0x5424(0x3);return delete _0x293ea3[_0x1d848b],!![];}}catch(_0x4a0d9a){return console[_0x5424(0x1e)](_0x40705e['lPbJd'],_0x4a0d9a),null;}},[]),_0x27f507=_0x40705e[_0x5424(0x33)](useCallback,async(_0x3d1e92,_0x1e5e9b,_0x36a437)=>{const _0x288b42={'OZNYn':_0x40705e[_0x5424(0x34)],'QyTvN':function(_0x597704,_0x42131f){return _0x40705e[_0x5424(0x35)](_0x597704,_0x42131f);},'IOwsO':_0x5424(0x3)};try{if(_0x40705e[_0x5424(0x35)](_0x40705e[_0x5424(0x36)],_0x40705e['ADpNi']))return _0x31759c[_0x5424(0x1e)](_0x288b42[_0x5424(0x37)],_0x4e199f),null;else{const _0x2f8919={'service':STORAGE_KEYS[_0x5424(0x30)]};if(_0x40705e['piVGW'](isKeychainAvailable)){var _0x45cfec,_0x2cf9e9;_0x2f8919['accessControl']=_0x40705e[_0x5424(0x38)](_0x45cfec=Keychain['ACCESS_CONTROL'],null)||_0x40705e[_0x5424(0x2d)](_0x45cfec,void 0x0)?void 0x0:_0x45cfec[_0x5424(0x39)],_0x2f8919[_0x5424(0x3a)]=_0x40705e[_0x5424(0x35)](_0x2cf9e9=Keychain['ACCESSIBLE'],null)||_0x40705e[_0x5424(0x2d)](_0x2cf9e9,void 0x0)?void 0x0:_0x2cf9e9[_0x5424(0x3b)];}return await _0x40705e[_0x5424(0x3c)](safeSetGenericPassword,_0x3d1e92,JSON[_0x5424(0x3d)]({'userPin':_0x1e5e9b,'accessToken':_0x36a437}),_0x2f8919),!![];}}catch(_0x10a297){if(_0x40705e[_0x5424(0x3e)](_0x40705e[_0x5424(0x3f)],_0x40705e['nQyfZ'])){const _0x18a27c=(_0x288b42[_0x5424(0x40)](_0x683b66,null)||_0x288b42[_0x5424(0x40)](_0x1aa258,void 0x0)?void 0x0:_0xd2037e['service'])||_0x288b42['IOwsO'];return _0x28f191[_0x18a27c]||null;}else return console[_0x5424(0x1e)](_0x40705e[_0x5424(0x41)],_0x10a297),![];}},[]),_0x2cbe1f=_0x40705e[_0x5424(0x42)](useCallback,async()=>{const _0x40be5e={'LQBmI':function(_0x2e3ea4,_0x383b5a){return _0x40705e[_0x5424(0x43)](_0x2e3ea4,_0x383b5a);},'GeZgd':_0x40705e['eMOvx']};try{if(_0x40705e[_0x5424(0x44)](_0x40705e['WljYT'],_0x40705e[_0x5424(0x45)])){const _0x57f4b9=(_0x4d3786===null||_0x40be5e['LQBmI'](_0xb2fc0c,void 0x0)?void 0x0:_0x18f64e[_0x5424(0xc)])||_0x40be5e[_0x5424(0x46)];return _0x225437[_0x57f4b9]={'username':_0x328a1a,'password':_0x5c2354},!![];}else await _0x40705e[_0x5424(0x47)](safeResetGenericPassword,{'service':STORAGE_KEYS[_0x5424(0x30)]});}catch(_0x1365a5){console[_0x5424(0x1e)](_0x40705e[_0x5424(0x48)],_0x1365a5);}},[]),_0x3f1e71=_0x40705e[_0x5424(0x49)](useCallback,async _0x43dc92=>{const _0x283a5c={'iyPFL':_0x40705e['HoIHV']};if(_0x40705e['bkEmR'](_0x40705e[_0x5424(0x4a)],_0x40705e['xrvmP']))return _0x3a9ed7[_0x5424(0x1e)](_0x283a5c['iyPFL'],_0x371072),![];else try{if(_0x40705e[_0x5424(0x4b)](_0x40705e[_0x5424(0x4c)],'vaiZj')){const _0x357747=await _0x40705e[_0x5424(0x2c)](fetch,API_CONFIG[_0x5424(0x4d)]+_0x5424(0x4e),{'method':'POST','headers':{'Content-Type':'application/json'},'body':JSON['stringify']({'username':_0x43dc92})}),_0xc04d3c=await _0x357747['json']();return{'success':!![],'isValid':_0xc04d3c['valid'],'credentials':_0xc04d3c['credentials']};}else return _0x4c9957[_0x5424(0x4f)](_0x47406a[_0x5424(0x31)]);}catch(_0x32f75c){return console[_0x5424(0x1e)](_0x40705e[_0x5424(0x50)],_0x32f75c),{'success':![],'isValid':![]};}},[]);return{'hasCredentials':_0x120826,'getCredentials':_0x470f0d,'storeCredentials':_0x27f507,'clearCredentials':_0x2cbe1f,'validateCredentials':_0x3f1e71};};
7
+ import{useCallback}from'react';import{STORAGE_KEYS}from'../constants';function _0x2fa6(_0x1f8d8e,_0x2fa636){_0x1f8d8e=_0x1f8d8e-0x0;const _0x272c81=_0x1f8d();let _0x38d1bb=_0x272c81[_0x1f8d8e];return _0x38d1bb;}function _0x1f8d(){const _0x42804c=['AdUGZ','CNuCa','function','PotFB','parse','password','Error\x20storing\x20credentials:','JRotc','dzeNV','ZqBRY','default','Keychain\x20access\x20failed,\x20using\x20mock\x20storage','CiRjO','ASQLD','GQkPY','NWuUG','xZlzi','getGenericPassword','error','SLzLU','QRfAD','warn','uBvqB','NPTsn','service','Error\x20validating\x20credentials:','rpyuR','setGenericPassword','PVPSl','GRHZw','WNoRN','fJZtY','DgWpi','gwdof','resetGenericPassword','sCfql','TTEht','lHYFn','BnKRX','EJvbC','Ncydo','ttDGI','NjmlT','PYUMy','OPilY','OyefI','BwLrI','GVdMW','dQTsS','ELFzh','lRyUF','XCrZz','Error\x20getting\x20credentials:','hMmgh','reJVK','akcqU','yVFyk','ZKLED','LEHKU','fRFAm','credentials','XfQcd','accessControl','ACCESS_CONTROL','hFAtW','BIOMETRY_ANY','accessible','RKlbr','fDMHp','EunQt','NUNgj','npaEA','ESgqq','BASE_URL','/validate','stringify','valid','qpPhs'];_0x1f8d=function(){return _0x42804c;};return _0x1f8d();}import{API_CONFIG}from'../config/api';const mockCredentialStorage={};let Keychain=null;try{Keychain=__ONAIROS_REQ_FUNC__(0x0);}catch(_0x3622ae){console['warn']('react-native-keychain module not available in useCredentials, using mock storage');}const isKeychainAvailable=()=>{const _0x51718f={'CNuCa':function(_0x5415a9,_0x2ef9e8){return _0x5415a9===_0x2ef9e8;},'Zkibe':_0x2fa6(0x0)};try{return Keychain&&_0x51718f[_0x2fa6(0x1)](typeof Keychain['getGenericPassword'],_0x2fa6(0x2));}catch(_0x139266){return _0x51718f['Zkibe']!==_0x2fa6(0x3)?![]:_0x5f3164[_0x2fa6(0x4)](_0x3c152f[_0x2fa6(0x5)]);}},safeGetGenericPassword=async _0x5770c7=>{const _0x166d4a={'SLzLU':_0x2fa6(0x6),'CiRjO':function(_0x202be2,_0x510045){return _0x202be2===_0x510045;},'QRfAD':'function','ASQLD':_0x2fa6(0x7),'pmJJS':function(_0x4ef0cb){return _0x4ef0cb();},'GQkPY':function(_0x56a882,_0x37fd88){return _0x56a882!==_0x37fd88;},'NWuUG':_0x2fa6(0x8),'xZlzi':_0x2fa6(0x9),'KTSxW':_0x2fa6(0xa),'uBvqB':_0x2fa6(0xb),'NPTsn':function(_0x1a1ee8,_0x196643){return _0x1a1ee8===_0x196643;}};try{if(_0x166d4a[_0x2fa6(0xc)](_0x166d4a['ASQLD'],_0x166d4a[_0x2fa6(0xd)])){if(_0x166d4a['pmJJS'](isKeychainAvailable))return _0x166d4a[_0x2fa6(0xe)](_0x166d4a[_0x2fa6(0xf)],_0x166d4a[_0x2fa6(0x10)])?await Keychain[_0x2fa6(0x11)](_0x5770c7):(_0x58521c[_0x2fa6(0x12)](_0x166d4a[_0x2fa6(0x13)],_0x3ed9de),![]);else{const _0x32473e=(_0x5770c7===null||_0x166d4a[_0x2fa6(0xc)](_0x5770c7,void 0x0)?void 0x0:_0x5770c7['service'])||_0x166d4a['KTSxW'];return mockCredentialStorage[_0x32473e]||null;}}else return Keychain&&_0x166d4a[_0x2fa6(0xc)](typeof Keychain['getGenericPassword'],_0x166d4a[_0x2fa6(0x14)]);}catch(_0x4d3577){console[_0x2fa6(0x15)](_0x166d4a[_0x2fa6(0x16)],_0x4d3577);const _0xb0fd78=(_0x166d4a[_0x2fa6(0x17)](_0x5770c7,null)||_0x166d4a[_0x2fa6(0xc)](_0x5770c7,void 0x0)?void 0x0:_0x5770c7[_0x2fa6(0x18)])||_0x166d4a['KTSxW'];return mockCredentialStorage[_0xb0fd78]||null;}},safeSetGenericPassword=async(_0x375ad2,_0x4002bd,_0x4cbf3c)=>{const _0xb0f253={'DgWpi':_0x2fa6(0x19),'rpyuR':function(_0x305b7b){return _0x305b7b();},'PVPSl':function(_0xfa746b,_0x64f227){return _0xfa746b===_0x64f227;},'NkiSA':function(_0x131dfe,_0x536e96){return _0x131dfe===_0x536e96;},'GRHZw':'default','WNoRN':function(_0x2341eb,_0x34df5d){return _0x2341eb!==_0x34df5d;},'KklRy':_0x2fa6(0xb),'gwdof':function(_0x1103dd,_0x217dbf){return _0x1103dd===_0x217dbf;}};try{if(_0xb0f253[_0x2fa6(0x1a)](isKeychainAvailable))return await Keychain[_0x2fa6(0x1b)](_0x375ad2,_0x4002bd,_0x4cbf3c);else{const _0x408553=(_0xb0f253[_0x2fa6(0x1c)](_0x4cbf3c,null)||_0xb0f253['NkiSA'](_0x4cbf3c,void 0x0)?void 0x0:_0x4cbf3c[_0x2fa6(0x18)])||_0xb0f253[_0x2fa6(0x1d)];return mockCredentialStorage[_0x408553]={'username':_0x375ad2,'password':_0x4002bd},!![];}}catch(_0x332092){if(_0xb0f253[_0x2fa6(0x1e)](_0x2fa6(0x1f),_0x2fa6(0x1f)))return _0x2f3ef8[_0x2fa6(0x12)](_0xb0f253[_0x2fa6(0x20)],_0xaedf56),{'success':![],'isValid':![]};else{console[_0x2fa6(0x15)](_0xb0f253['KklRy'],_0x332092);const _0x430fce=(_0xb0f253[_0x2fa6(0x21)](_0x4cbf3c,null)||_0x4cbf3c===void 0x0?void 0x0:_0x4cbf3c[_0x2fa6(0x18)])||_0xb0f253[_0x2fa6(0x1d)];return mockCredentialStorage[_0x430fce]={'username':_0x375ad2,'password':_0x4002bd},!![];}}},safeResetGenericPassword=async _0x18b3f4=>{const _0x19fa46={'lHYFn':function(_0x530fe0,_0x35d060){return _0x530fe0===_0x35d060;},'BnKRX':_0x2fa6(0x2),'sCfql':'BVNhX','EJvbC':function(_0x1c7efe,_0x47c8ec){return _0x1c7efe===_0x47c8ec;},'Ncydo':_0x2fa6(0xa),'ttDGI':_0x2fa6(0xb)};try{if(isKeychainAvailable())return await Keychain[_0x2fa6(0x22)](_0x18b3f4);else{if(_0x19fa46['lHYFn'](_0x19fa46[_0x2fa6(0x23)],_0x2fa6(0x24)))try{return Keychain&&_0x19fa46[_0x2fa6(0x25)](typeof Keychain[_0x2fa6(0x11)],_0x19fa46[_0x2fa6(0x26)]);}catch(_0x1fba6c){return![];}else{const _0x2ddba3=(_0x19fa46[_0x2fa6(0x25)](_0x18b3f4,null)||_0x19fa46[_0x2fa6(0x27)](_0x18b3f4,void 0x0)?void 0x0:_0x18b3f4[_0x2fa6(0x18)])||_0x19fa46[_0x2fa6(0x28)];return delete mockCredentialStorage[_0x2ddba3],!![];}}}catch(_0x19fab1){console[_0x2fa6(0x15)](_0x19fa46[_0x2fa6(0x29)],_0x19fab1);const _0x405b98=(_0x19fa46[_0x2fa6(0x27)](_0x18b3f4,null)||_0x18b3f4===void 0x0?void 0x0:_0x18b3f4[_0x2fa6(0x18)])||'default';return delete mockCredentialStorage[_0x405b98],!![];}};export const useCredentials=()=>{const _0x5181b5={'ELFzh':function(_0x29c623,_0x3b52ed){return _0x29c623(_0x3b52ed);},'XKAEP':'mQgZZ','dQTsS':_0x2fa6(0x2a),'lRyUF':'Error\x20checking\x20credentials:','reJVK':function(_0x48b6ad,_0x56f9a7){return _0x48b6ad===_0x56f9a7;},'XCrZz':_0x2fa6(0x2b),'JtPlG':'SRhuU','EunQt':'Error\x20clearing\x20credentials:','WXnWd':_0x2fa6(0xa),'akcqU':_0x2fa6(0x2c),'yVFyk':_0x2fa6(0x2d),'LEHKU':function(_0x488221,_0x2e1f94){return _0x488221!==_0x2e1f94;},'fRFAm':_0x2fa6(0x2e),'XfQcd':function(_0x9c871d){return _0x9c871d();},'hFAtW':function(_0x42ac10,_0x290d54){return _0x42ac10===_0x290d54;},'RKlbr':function(_0x446351,_0xf214f1,_0xfd292d,_0x321bb5){return _0x446351(_0xf214f1,_0xfd292d,_0x321bb5);},'fDMHp':_0x2fa6(0x6),'NUNgj':function(_0xb22d4b,_0x3ea4c6){return _0xb22d4b===_0x3ea4c6;},'npaEA':_0x2fa6(0x2f),'hMmgh':function(_0x260c6c,_0x15f212,_0x5338c2){return _0x260c6c(_0x15f212,_0x5338c2);},'qpPhs':'Error\x20validating\x20credentials:','sEAmw':function(_0x465706,_0x40b3da,_0x159c3c){return _0x465706(_0x40b3da,_0x159c3c);}},_0x627bf3=_0x5181b5['hMmgh'](useCallback,async()=>{if(_0x5181b5['XKAEP']===_0x5181b5[_0x2fa6(0x30)])Keychain=_0x5181b5['ELFzh'](_0x573a2d,0x0);else try{const _0x4d3f8d=await _0x5181b5[_0x2fa6(0x31)](safeGetGenericPassword,{'service':STORAGE_KEYS['credentials']});return!!_0x4d3f8d;}catch(_0x451117){return console[_0x2fa6(0x12)](_0x5181b5[_0x2fa6(0x32)],_0x451117),![];}},[]),_0x27fc93=_0x5181b5['hMmgh'](useCallback,async()=>{try{if(_0x5181b5['reJVK'](_0x5181b5[_0x2fa6(0x33)],_0x5181b5['JtPlG']))return![];else{const _0x13058c=await _0x5181b5[_0x2fa6(0x31)](safeGetGenericPassword,{'service':STORAGE_KEYS['credentials']});if(_0x13058c)return JSON[_0x2fa6(0x4)](_0x13058c[_0x2fa6(0x5)]);return null;}}catch(_0x38b83c){return console[_0x2fa6(0x12)](_0x2fa6(0x34),_0x38b83c),null;}},[]),_0x4f77b7=_0x5181b5[_0x2fa6(0x35)](useCallback,async(_0x3b5f22,_0x24d0e6,_0x536ec8)=>{const _0x1c42f0={'ZKLED':_0x5181b5['WXnWd']};if(_0x5181b5[_0x2fa6(0x36)](_0x5181b5[_0x2fa6(0x37)],_0x5181b5[_0x2fa6(0x38)])){_0x3f237a[_0x2fa6(0x15)]('Keychain\x20access\x20failed,\x20using\x20mock\x20storage',_0x5a1999);const _0x5457c5=(_0x132a1c===null||_0x1472bd===void 0x0?void 0x0:_0xb81f28[_0x2fa6(0x18)])||_0x1c42f0[_0x2fa6(0x39)];return delete _0x50365e[_0x5457c5],!![];}else try{if(_0x5181b5[_0x2fa6(0x3a)](_0x5181b5[_0x2fa6(0x3b)],_0x5181b5[_0x2fa6(0x3b)]))_0x4c169c[_0x2fa6(0x12)](_0x5181b5['EunQt'],_0x4a386b);else{const _0x3372da={'service':STORAGE_KEYS[_0x2fa6(0x3c)]};if(_0x5181b5[_0x2fa6(0x3d)](isKeychainAvailable)){var _0xb053d3,_0x13157f;_0x3372da[_0x2fa6(0x3e)]=(_0xb053d3=Keychain[_0x2fa6(0x3f)])===null||_0x5181b5[_0x2fa6(0x40)](_0xb053d3,void 0x0)?void 0x0:_0xb053d3[_0x2fa6(0x41)],_0x3372da[_0x2fa6(0x42)]=(_0x13157f=Keychain['ACCESSIBLE'])===null||_0x5181b5[_0x2fa6(0x36)](_0x13157f,void 0x0)?void 0x0:_0x13157f['WHEN_UNLOCKED'];}return await _0x5181b5[_0x2fa6(0x43)](safeSetGenericPassword,_0x3b5f22,JSON['stringify']({'userPin':_0x24d0e6,'accessToken':_0x536ec8}),_0x3372da),!![];}}catch(_0x31c765){return console[_0x2fa6(0x12)](_0x5181b5[_0x2fa6(0x44)],_0x31c765),![];}},[]),_0x319281=_0x5181b5[_0x2fa6(0x35)](useCallback,async()=>{try{await safeResetGenericPassword({'service':STORAGE_KEYS[_0x2fa6(0x3c)]});}catch(_0x157442){console[_0x2fa6(0x12)](_0x5181b5[_0x2fa6(0x45)],_0x157442);}},[]),_0x556be3=_0x5181b5['sEAmw'](useCallback,async _0x1be3c3=>{try{if(_0x5181b5[_0x2fa6(0x46)](_0x5181b5[_0x2fa6(0x47)],_0x2fa6(0x48)))_0x232f64['warn']('react-native-keychain module not available in useCredentials, using mock storage');else{const _0x3a0a2c=await _0x5181b5[_0x2fa6(0x35)](fetch,API_CONFIG[_0x2fa6(0x49)]+_0x2fa6(0x4a),{'method':'POST','headers':{'Content-Type':'application/json'},'body':JSON[_0x2fa6(0x4b)]({'username':_0x1be3c3})}),_0x7677b1=await _0x3a0a2c['json']();return{'success':!![],'isValid':_0x7677b1[_0x2fa6(0x4c)],'credentials':_0x7677b1[_0x2fa6(0x3c)]};}}catch(_0x1e03c6){return console[_0x2fa6(0x12)](_0x5181b5[_0x2fa6(0x4d)],_0x1e03c6),{'success':![],'isValid':![]};}},[]);return{'hasCredentials':_0x627bf3,'getCredentials':_0x27fc93,'storeCredentials':_0x4f77b7,'clearCredentials':_0x319281,'validateCredentials':_0x556be3};};
@@ -1 +1 @@
1
- import{useState,useEffect,useCallback}from'react';function _0x54f5(_0x163ccb,_0x54f540){_0x163ccb=_0x163ccb-0x0;const _0x28fb19=_0x163c();let _0x257d43=_0x28fb19[_0x163ccb];return _0x257d43;}function _0x163c(){const _0x55419=['Failed\x20to\x20load\x20connections','⚠️\x20[CONNECTIONS\x20HOOK]\x20No\x20authentication\x20token\x20available\x20for\x20username\x20connections','🎯\x20[DEMO\x20MODE]\x20Reviewer\x20bypass\x20detected\x20-\x20skipping\x20API\x20call\x20for\x20demo','3|2|1|4|0','⚠️\x20[CONNECTIONS\x20HOOK]\x20Skipping\x20API\x20call\x20to\x20prevent\x20unauthenticated\x20requests','⚠️\x20[CONNECTIONS\x20HOOK]\x20No\x20authentication\x20token\x20available\x20for\x20connections\x20refresh','IqlBu','Authentication\x20error','🔄\x20Loading\x20user\x20connections\x20with\x20authentication...','nkFWf','CSPRB','🔄\x20[CONNECTIONS\x20HOOK]\x20Refreshing\x20connections...','fByDt','🔍\x20Fetching\x20connections\x20by\x20username:','❌\x20Error\x20fetching\x20connections\x20by\x20username:','⚠️\x20[CONNECTIONS\x20HOOK]\x20No\x20authentication\x20token\x20available\x20for\x20user\x20ID\x20connections','nOqDJ','🔍\x20Fetching\x20connections\x20by\x20userId:','🔑\x20[CONNECTIONS\x20HOOK]\x20Using\x20auth\x20token:','❌\x20Error\x20fetching\x20connections\x20by\x20userId:','IbFgE','📷\x20Uploading\x20profile\x20picture\x20for\x20user:','aKFYl','sbClB','ByGzp','vkTDv','KCqhG','QvSrT','oUeWQ','oezRF','getItem','reviewer-bypass-token','rVLmu','eZLVs','EWSwW','SOcXC','split','JBMjG','ZGErV','warn','YOTgY','Authentication\x20required\x20for\x20connections','aLimz','mnyuQ','PKAJl','oYKLX','log','XjMbl','message','qesbj','error','❌\x20Error\x20loading\x20connections:','EclPK','OZtKJ','substring','TRNUe','length','ogWeM','jwHyH','REtxN','Cwrkj','cMdEp','LKmOh','YIOUe','oiUCY','MzyIZ','HUTxL','TdNCF','DQncP','JJxps','TNaIu','lxRMI','druVB','KacbF','BxFKD','...','vAvQd','ZftXD','rJAKW','ypZaI','jpg','ZxkIR','woJAB','DGImZ','Yicxc','rIGaN','KpjwH','MJzHj','EJJgz','WnORv'];_0x163c=function(){return _0x55419;};return _0x163c();}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 _0x52ee3b={'XjMbl':function(_0x2450a8,_0x100781){return _0x2450a8 instanceof _0x100781;},'qesbj':_0x54f5(0x0),'oUeWQ':function(_0x10652b,_0x3948d5){return _0x10652b(_0x3948d5);},'KpjwH':'❌\x20Error\x20uploading\x20profile\x20picture:','KCqhG':_0x54f5(0x1),'QvSrT':_0x54f5(0x2),'cMdEp':function(_0x811c2b,_0xd603f8){return _0x811c2b(_0xd603f8);},'oezRF':function(_0x7fe1e3,_0x4ff853){return _0x7fe1e3(_0x4ff853);},'HVOco':function(_0x5742a8){return _0x5742a8();},'OnOjB':function(_0x6b9a54,_0x736652){return _0x6b9a54===_0x736652;},'rVLmu':function(_0x4d59c5,_0x5aba2b){return _0x4d59c5===_0x5aba2b;},'eZLVs':'EWSwW','SOcXC':_0x54f5(0x3),'JBMjG':function(_0x4ad8b4,_0x203bbe){return _0x4ad8b4(_0x203bbe);},'ZGErV':_0x54f5(0x4),'YOTgY':_0x54f5(0x5),'mnyuQ':function(_0x508f82,_0x1198c5){return _0x508f82!==_0x1198c5;},'PKAJl':_0x54f5(0x6),'oYKLX':'rILcf','oiUCY':function(_0x8765cb,_0x519634){return _0x8765cb(_0x519634);},'EclPK':'❌\x20[CONNECTIONS\x20HOOK]\x20Unexpected\x20null\x20token\x20after\x20validation','sbClB':function(_0xf91557,_0x5b825b){return _0xf91557(_0x5b825b);},'JJxps':_0x54f5(0x7),'OZtKJ':_0x54f5(0x8),'TRNUe':'✅\x20Connections\x20loaded:','ogWeM':_0x54f5(0x9),'YiZpk':_0x54f5(0xa),'REtxN':function(_0x5063f8,_0x27678e){return _0x5063f8 instanceof _0x27678e;},'Cwrkj':'❌\x20Error\x20loading\x20connections:','LKmOh':function(_0x5b851b,_0x7d9134){return _0x5b851b===_0x7d9134;},'YIOUe':'PwFeA','MzyIZ':_0x54f5(0xb),'rFrXE':function(_0x4365a7){return _0x4365a7();},'HUTxL':'✅\x20[CONNECTIONS\x20HOOK]\x20Connections\x20refresh\x20completed','TdNCF':'ApaEL','TNaIu':function(_0x1ac9d1){return _0x1ac9d1();},'lxRMI':function(_0x317c49,_0x2d249b){return _0x317c49!==_0x2d249b;},'KacbF':_0x54f5(0xc),'BxFKD':_0x54f5(0xd),'ByGzp':function(_0x5a6a85,_0x2359e5){return _0x5a6a85(_0x2359e5);},'awCkm':_0x54f5(0xe),'vAvQd':_0x54f5(0xf),'ZftXD':_0x54f5(0x10),'FdFny':function(_0x1d0659){return _0x1d0659();},'ypZaI':_0x54f5(0x11),'HuYZo':_0x54f5(0x12),'woJAB':_0x54f5(0x13),'TbkCs':_0x54f5(0x14),'ZxkIR':_0x54f5(0x15),'vkTDv':function(_0x882f1b,_0x453835,_0xd8bed1){return _0x882f1b(_0x453835,_0xd8bed1);},'DGImZ':function(_0x38b4bc,_0x2d0f73){return _0x38b4bc===_0x2d0f73;},'Yicxc':_0x54f5(0x16),'AeIiD':'pJouv','ajnRk':function(_0x328869,_0x142efd){return _0x328869(_0x142efd);},'MJzHj':function(_0x52aadb,_0x3c446e,_0x200fbf){return _0x52aadb(_0x3c446e,_0x200fbf);}},[_0x2426b7,_0x5ea82e]=_0x52ee3b[_0x54f5(0x17)](useState,[]),[_0x57bd16,_0x230071]=_0x52ee3b[_0x54f5(0x18)](useState,!![]),[_0x237269,_0x392ae1]=_0x52ee3b['ajnRk'](useState,null),_0x2d4da7=_0x52ee3b[_0x54f5(0x19)](useCallback,async()=>{const _0x179351={'aLimz':_0x52ee3b[_0x54f5(0x1a)],'jwHyH':_0x52ee3b[_0x54f5(0x1b)],'TsEyw':function(_0x48bc30,_0x1160ad){return _0x52ee3b[_0x54f5(0x1c)](_0x48bc30,_0x1160ad);}};try{_0x52ee3b['cMdEp'](_0x230071,!![]),_0x52ee3b[_0x54f5(0x1d)](_0x392ae1,null);const _0x4962a9=await _0x52ee3b['HVOco'](getAuthToken),_0x1e7496=await AsyncStorage[_0x54f5(0x1e)]('onairos_jwt_token'),_0x5522f3=_0x52ee3b['OnOjB'](_0x1e7496,_0x54f5(0x1f));if(!_0x4962a9&&!_0x5522f3){if(_0x52ee3b[_0x54f5(0x20)](_0x52ee3b[_0x54f5(0x21)],_0x54f5(0x22))){const _0x3466e2=_0x52ee3b[_0x54f5(0x23)][_0x54f5(0x24)]('|');let _0x3a6a4e=0x0;while(!![]){switch(_0x3466e2[_0x3a6a4e++]){case'0':return;case'1':_0x52ee3b[_0x54f5(0x25)](_0x5ea82e,[]);continue;case'2':console['warn'](_0x52ee3b[_0x54f5(0x26)]);continue;case'3':console[_0x54f5(0x27)](_0x52ee3b[_0x54f5(0x28)]);continue;case'4':_0x392ae1(_0x54f5(0x29));continue;}break;}}else return _0x104099['warn'](_0x179351[_0x54f5(0x2a)]),[];}if(_0x5522f3){if(_0x52ee3b[_0x54f5(0x2b)](_0x52ee3b[_0x54f5(0x2c)],_0x52ee3b[_0x54f5(0x2d)])){console[_0x54f5(0x2e)](_0x52ee3b[_0x54f5(0x1b)]),_0x52ee3b['oiUCY'](_0x5ea82e,[]),_0x52ee3b[_0x54f5(0x1d)](_0x392ae1,null);return;}else{const _0x700e5e=_0x52ee3b[_0x54f5(0x2f)](_0x33fc6a,_0x452c5a)?_0x29d2f5[_0x54f5(0x30)]:_0x52ee3b[_0x54f5(0x31)];_0x546a53[_0x54f5(0x32)](_0x54f5(0x33),_0x700e5e),_0x52ee3b[_0x54f5(0x1c)](_0x327fb9,_0x700e5e),_0x4b4c74([]);}}if(!_0x4962a9){console[_0x54f5(0x32)](_0x52ee3b[_0x54f5(0x34)]),_0x52ee3b['sbClB'](_0x5ea82e,[]),_0x392ae1(_0x52ee3b['JJxps']);return;}console[_0x54f5(0x2e)](_0x52ee3b[_0x54f5(0x35)]),console[_0x54f5(0x2e)](_0x54f5(0x12),_0x4962a9[_0x54f5(0x36)](0x0,0x14)+'...');const _0x14d409=await _0x52ee3b['HVOco'](getUserConnections);_0x52ee3b[_0x54f5(0x1d)](_0x5ea82e,_0x14d409),console['log'](_0x52ee3b[_0x54f5(0x37)],_0x14d409[_0x54f5(0x38)]);}catch(_0x3171f3){if(_0x52ee3b[_0x54f5(0x39)]===_0x52ee3b['YiZpk']){_0x1d0ee5['log'](_0x179351[_0x54f5(0x3a)]),_0x179351['TsEyw'](_0x3e434c,[]),_0x499fc7(null);return;}else{const _0x16465d=_0x52ee3b[_0x54f5(0x3b)](_0x3171f3,Error)?_0x3171f3[_0x54f5(0x30)]:_0x52ee3b[_0x54f5(0x31)];console[_0x54f5(0x32)](_0x52ee3b[_0x54f5(0x3c)],_0x16465d),_0x52ee3b[_0x54f5(0x3d)](_0x392ae1,_0x16465d),_0x5ea82e([]);}}finally{if(_0x52ee3b[_0x54f5(0x3e)](_0x52ee3b['YIOUe'],_0x52ee3b[_0x54f5(0x3f)]))_0x52ee3b[_0x54f5(0x40)](_0x230071,![]);else return _0x359197[_0x54f5(0x32)](_0x52ee3b['KpjwH'],_0x409138),![];}},[]),_0x29bea6=useCallback(async()=>{console[_0x54f5(0x2e)](_0x52ee3b[_0x54f5(0x41)]),await _0x52ee3b['rFrXE'](_0x2d4da7),console[_0x54f5(0x2e)](_0x52ee3b[_0x54f5(0x42)]);},[_0x2d4da7]),_0x453f46=_0x52ee3b['vkTDv'](useCallback,async _0x47fa44=>{try{if(_0x52ee3b[_0x54f5(0x43)]===_0x54f5(0x44)){_0x2d0793[_0x54f5(0x32)](_0x52ee3b['EclPK']),_0x52ee3b[_0x54f5(0x1d)](_0x53baa6,[]),_0x52ee3b[_0x54f5(0x1d)](_0x50d74e,_0x52ee3b[_0x54f5(0x45)]);return;}else{const _0x2c66a1=await _0x52ee3b[_0x54f5(0x46)](getAuthToken);if(!_0x2c66a1)return _0x52ee3b[_0x54f5(0x47)](_0x54f5(0x48),_0x52ee3b[_0x54f5(0x49)])?(console[_0x54f5(0x27)](_0x52ee3b[_0x54f5(0x1a)]),[]):(_0x118c76['error'](_0x54f5(0xe),_0xae6f93),[]);return console['log'](_0x52ee3b[_0x54f5(0x4a)],_0x47fa44),console[_0x54f5(0x2e)](_0x54f5(0x12),_0x2c66a1[_0x54f5(0x36)](0x0,0x14)+_0x54f5(0x4b)),await _0x52ee3b[_0x54f5(0x18)](getUserConnectionsByUsername,_0x47fa44);}}catch(_0x46d7fc){return console[_0x54f5(0x32)](_0x52ee3b['awCkm'],_0x46d7fc),[];}},[]),_0x7d2a71=_0x52ee3b[_0x54f5(0x19)](useCallback,async _0x5721ce=>{const _0x41c072={'rJAKW':_0x52ee3b[_0x54f5(0x4c)]};try{if(_0x52ee3b['mnyuQ'](_0x52ee3b[_0x54f5(0x4d)],_0x54f5(0x10)))return _0xcec6a7[_0x54f5(0x27)](_0x41c072[_0x54f5(0x4e)]),[];else{const _0xd67853=await _0x52ee3b['FdFny'](getAuthToken);if(!_0xd67853)return console[_0x54f5(0x27)](_0x52ee3b[_0x54f5(0x4c)]),[];return console[_0x54f5(0x2e)](_0x52ee3b[_0x54f5(0x4f)],_0x5721ce),console[_0x54f5(0x2e)](_0x52ee3b['HuYZo'],_0xd67853[_0x54f5(0x36)](0x0,0x14)+'...'),await getUserConnectionsByUserId(_0x5721ce);}}catch(_0x2c6d76){return console[_0x54f5(0x32)]('❌\x20Error\x20fetching\x20connections\x20by\x20userId:',_0x2c6d76),[];}},[]),_0x97125=_0x52ee3b[_0x54f5(0x19)](useCallback,async(_0x4583f6,_0x37fd2b=_0x54f5(0x50))=>{const _0x2f8c68={'rIGaN':function(_0x162ef3,_0x85c5f2){return _0x52ee3b[_0x54f5(0x17)](_0x162ef3,_0x85c5f2);}};try{if(_0x52ee3b[_0x54f5(0x20)]('IbFgE',_0x52ee3b['TbkCs'])){console[_0x54f5(0x2e)](_0x52ee3b[_0x54f5(0x51)]);const _0x5c6b0a=await _0x52ee3b[_0x54f5(0x19)](uploadProfilePicture,_0x4583f6,_0x37fd2b);return _0x5c6b0a['success'];}else return _0x47e59f['error'](_0x52ee3b[_0x54f5(0x52)],_0x88f15c),[];}catch(_0x41a724){if(_0x52ee3b[_0x54f5(0x53)](_0x52ee3b[_0x54f5(0x54)],_0x52ee3b['AeIiD']))_0x2f8c68[_0x54f5(0x55)](_0x1b2654,![]);else return console['error'](_0x52ee3b[_0x54f5(0x56)],_0x41a724),![];}},[]);return _0x52ee3b[_0x54f5(0x57)](useEffect,()=>{_0x54f5(0x58)!==_0x54f5(0x59)?_0x2d4da7():_0x4eda12();},[_0x2d4da7]),{'connections':_0x2426b7,'isLoading':_0x57bd16,'error':_0x237269,'refreshConnections':_0x29bea6,'getConnectionsByUsername':_0x453f46,'getConnectionsByUserId':_0x7d2a71,'uploadUserProfilePicture':_0x97125};};
1
+ import{useState,useEffect,useCallback}from'react';import{getUserConnections,getUserConnectionsByUsername,getUserConnectionsByUserId,uploadProfilePicture}from'../services/userConnectionsService';import{getAuthToken}from'../services/authService';function _0x5ea9(_0x153d72,_0x5ea9b8){_0x153d72=_0x153d72-0x0;const _0x749e36=_0x153d();let _0x33cef9=_0x749e36[_0x153d72];return _0x33cef9;}import AsyncStorage from'@react-native-async-storage/async-storage';function _0x153d(){const _0x3b81de=['Failed\x20to\x20load\x20connections','❌\x20Error\x20loading\x20connections:','onairos_jwt_token','reviewer-bypass-token','⚠️\x20[CONNECTIONS\x20HOOK]\x20Skipping\x20API\x20call\x20to\x20prevent\x20unauthenticated\x20requests','Authentication\x20required\x20for\x20connections','WkwgP','🎯\x20[DEMO\x20MODE]\x20Reviewer\x20bypass\x20detected\x20-\x20skipping\x20API\x20call\x20for\x20demo','rdHTZ','🔑\x20[CONNECTIONS\x20HOOK]\x20Using\x20auth\x20token:','✅\x20Connections\x20loaded:','🔄\x20[CONNECTIONS\x20HOOK]\x20Refreshing\x20connections...','✅\x20[CONNECTIONS\x20HOOK]\x20Connections\x20refresh\x20completed','❌\x20Error\x20uploading\x20profile\x20picture:','⚠️\x20[CONNECTIONS\x20HOOK]\x20No\x20authentication\x20token\x20available\x20for\x20username\x20connections','🔍\x20Fetching\x20connections\x20by\x20username:','cVggN','qvaUY','❌\x20Error\x20fetching\x20connections\x20by\x20userId:','zSNVr','📷\x20Uploading\x20profile\x20picture\x20for\x20user:','HIajV','CIyGx','OaZEn','LDGxZ','getItem','ESTUF','mraTi','split','warn','mXgVv','fJZAj','xZJxH','MtKDS','LcIOx','EgaZl','IETQq','error','❌\x20Error\x20fetching\x20connections\x20by\x20username:','WdoZS','iVgFB','FeAeo','umDgX','Authentication\x20error','log','qDoKo','substring','XkDzk','wTnXZ','length','zDTqs','SMfle','aiTXx','kOUwR','xlJKx','nPbPB','BqKek','...','JKbyS','PNjoV','⚠️\x20[CONNECTIONS\x20HOOK]\x20No\x20authentication\x20token\x20available\x20for\x20user\x20ID\x20connections','SOFJs','appoE','zswFz','jpg','lDveH','HmuwI','mXNRf','HmUYq','CESEz','EJYTU','❌\x20[CONNECTIONS\x20HOOK]\x20Unexpected\x20null\x20token\x20after\x20validation','Egnaq'];_0x153d=function(){return _0x3b81de;};return _0x153d();}export const useUserConnections=()=>{const _0x4be62d={'iVgFB':function(_0x229652,_0x3ad795){return _0x229652 instanceof _0x3ad795;},'FeAeo':_0x5ea9(0x0),'umDgX':_0x5ea9(0x1),'OaZEn':function(_0x3aff74,_0x5e04a9){return _0x3aff74(_0x5e04a9);},'LDGxZ':function(_0x9037c9,_0x31bb8b){return _0x9037c9(_0x31bb8b);},'HIajV':function(_0x5ba864,_0x5bfc68){return _0x5ba864(_0x5bfc68);},'ESTUF':_0x5ea9(0x2),'ATnRv':_0x5ea9(0x3),'qwAwO':function(_0x2ccd66,_0x22685c){return _0x2ccd66&&_0x22685c;},'mraTi':'1|0|4|2|3','mXgVv':_0x5ea9(0x4),'fJZAj':'⚠️\x20[CONNECTIONS\x20HOOK]\x20No\x20authentication\x20token\x20available\x20for\x20connections\x20refresh','xZJxH':function(_0x21febb,_0x14f99b){return _0x21febb(_0x14f99b);},'lrOGQ':_0x5ea9(0x5),'MtKDS':function(_0x3171ea,_0xb113ec){return _0x3171ea!==_0xb113ec;},'LcIOx':_0x5ea9(0x6),'EgaZl':'NsWPy','IETQq':_0x5ea9(0x7),'pMFbA':function(_0x228900,_0x388a03){return _0x228900(_0x388a03);},'WdoZS':_0x5ea9(0x8),'Egnaq':function(_0xaddbce,_0x121937){return _0xaddbce(_0x121937);},'CeJuS':'🔄\x20Loading\x20user\x20connections\x20with\x20authentication...','qDoKo':_0x5ea9(0x9),'XkDzk':function(_0x38fec0){return _0x38fec0();},'wTnXZ':_0x5ea9(0xa),'zDTqs':function(_0x22f705,_0x4384a0){return _0x22f705(_0x4384a0);},'SMfle':function(_0x4898e7,_0x3c5f23){return _0x4898e7(_0x3c5f23);},'aiTXx':_0x5ea9(0xb),'kOUwR':_0x5ea9(0xc),'nPbPB':_0x5ea9(0xd),'marbb':'xlJKx','BqKek':_0x5ea9(0xe),'BGOiM':_0x5ea9(0xf),'DPVNL':function(_0x3c2ae5,_0x3864d0){return _0x3c2ae5(_0x3864d0);},'JKbyS':'❌\x20Error\x20fetching\x20connections\x20by\x20username:','bWoeb':'⚠️\x20[CONNECTIONS\x20HOOK]\x20No\x20authentication\x20token\x20available\x20for\x20user\x20ID\x20connections','SOFJs':function(_0x586b10,_0x4d1e21){return _0x586b10===_0x4d1e21;},'HBZaN':'tJsIb','PNjoV':_0x5ea9(0x10),'appoE':_0x5ea9(0x11),'zswFz':_0x5ea9(0x12),'GHDlf':'RPxzv','lDveH':_0x5ea9(0x13),'HmuwI':_0x5ea9(0x14),'mXNRf':function(_0x4db05b,_0x1dc59c,_0xe613){return _0x4db05b(_0x1dc59c,_0xe613);},'EJYTU':'UxhIk','IPjrc':function(_0x26c51d){return _0x26c51d();},'CIyGx':function(_0xa98fc7,_0x288fc5){return _0xa98fc7(_0x288fc5);},'eARAX':function(_0x5d2fc1,_0x4244ed,_0x484fb8){return _0x5d2fc1(_0x4244ed,_0x484fb8);}},[_0x570f33,_0x49a2bb]=_0x4be62d[_0x5ea9(0x15)](useState,[]),[_0x2b1ff1,_0x1dd088]=_0x4be62d[_0x5ea9(0x16)](useState,!![]),[_0x36a838,_0x1874a1]=_0x4be62d[_0x5ea9(0x17)](useState,null),_0x13523e=useCallback(async()=>{try{_0x4be62d[_0x5ea9(0x18)](_0x1dd088,!![]),_0x4be62d[_0x5ea9(0x15)](_0x1874a1,null);const _0x523217=await getAuthToken(),_0x2683ef=await AsyncStorage[_0x5ea9(0x19)](_0x4be62d[_0x5ea9(0x1a)]),_0x4ad65f=_0x2683ef===_0x4be62d['ATnRv'];if(_0x4be62d['qwAwO'](!_0x523217,!_0x4ad65f)){const _0xf0acaf=_0x4be62d[_0x5ea9(0x1b)][_0x5ea9(0x1c)]('|');let _0x250ad1=0x0;while(!![]){switch(_0xf0acaf[_0x250ad1++]){case'0':console[_0x5ea9(0x1d)](_0x4be62d[_0x5ea9(0x1e)]);continue;case'1':console[_0x5ea9(0x1d)](_0x4be62d[_0x5ea9(0x1f)]);continue;case'2':_0x4be62d[_0x5ea9(0x20)](_0x1874a1,_0x4be62d['lrOGQ']);continue;case'3':return;case'4':_0x49a2bb([]);continue;}break;}}if(_0x4ad65f){if(_0x4be62d[_0x5ea9(0x21)](_0x4be62d[_0x5ea9(0x22)],_0x4be62d[_0x5ea9(0x23)])){console['log'](_0x4be62d[_0x5ea9(0x24)]),_0x4be62d['pMFbA'](_0x49a2bb,[]),_0x4be62d['xZJxH'](_0x1874a1,null);return;}else return _0x424463[_0x5ea9(0x25)](_0x5ea9(0x26),_0x1aa180),[];}if(!_0x523217){if(_0x4be62d[_0x5ea9(0x27)]!==_0x4be62d[_0x5ea9(0x27)]){const _0x4b813b=_0x4be62d[_0x5ea9(0x28)](_0x1380bc,_0x2e253a)?_0x4c4d38['message']:_0x4be62d[_0x5ea9(0x29)];_0x1313de[_0x5ea9(0x25)](_0x4be62d[_0x5ea9(0x2a)],_0x4b813b),_0x4be62d[_0x5ea9(0x17)](_0x1d59aa,_0x4b813b),_0xad74b7([]);}else{console[_0x5ea9(0x25)]('❌\x20[CONNECTIONS\x20HOOK]\x20Unexpected\x20null\x20token\x20after\x20validation'),_0x4be62d[_0x5ea9(0x15)](_0x49a2bb,[]),_0x4be62d['Egnaq'](_0x1874a1,_0x5ea9(0x2b));return;}}console[_0x5ea9(0x2c)](_0x4be62d['CeJuS']),console[_0x5ea9(0x2c)](_0x4be62d[_0x5ea9(0x2d)],_0x523217[_0x5ea9(0x2e)](0x0,0x14)+'...');const _0x3e86c9=await _0x4be62d[_0x5ea9(0x2f)](getUserConnections);_0x4be62d[_0x5ea9(0x15)](_0x49a2bb,_0x3e86c9),console['log'](_0x4be62d[_0x5ea9(0x30)],_0x3e86c9[_0x5ea9(0x31)]);}catch(_0x3845cf){const _0x48fa10=_0x3845cf instanceof Error?_0x3845cf['message']:_0x4be62d[_0x5ea9(0x29)];console[_0x5ea9(0x25)](_0x4be62d[_0x5ea9(0x2a)],_0x48fa10),_0x1874a1(_0x48fa10),_0x4be62d[_0x5ea9(0x32)](_0x49a2bb,[]);}finally{_0x4be62d[_0x5ea9(0x33)](_0x1dd088,![]);}},[]),_0x484d19=_0x4be62d['eARAX'](useCallback,async()=>{console[_0x5ea9(0x2c)](_0x4be62d[_0x5ea9(0x34)]),await _0x4be62d['XkDzk'](_0x13523e),console[_0x5ea9(0x2c)](_0x4be62d[_0x5ea9(0x35)]);},[_0x13523e]),_0x458720=_0x4be62d['eARAX'](useCallback,async _0x505615=>{try{if(_0x4be62d['MtKDS'](_0x4be62d['marbb'],_0x5ea9(0x36)))return _0x2cecbb[_0x5ea9(0x25)](_0x4be62d[_0x5ea9(0x37)],_0x181b86),![];else{const _0x2a2788=await _0x4be62d[_0x5ea9(0x2f)](getAuthToken);if(!_0x2a2788)return console[_0x5ea9(0x1d)](_0x4be62d[_0x5ea9(0x38)]),[];return console[_0x5ea9(0x2c)](_0x4be62d['BGOiM'],_0x505615),console[_0x5ea9(0x2c)](_0x4be62d[_0x5ea9(0x2d)],_0x2a2788[_0x5ea9(0x2e)](0x0,0x14)+_0x5ea9(0x39)),await _0x4be62d['DPVNL'](getUserConnectionsByUsername,_0x505615);}}catch(_0x19a059){return console[_0x5ea9(0x25)](_0x4be62d[_0x5ea9(0x3a)],_0x19a059),[];}},[]),_0x54f491=_0x4be62d['eARAX'](useCallback,async _0x5c0bfd=>{try{const _0x3c5996=await getAuthToken();if(!_0x3c5996){if(_0x4be62d['SOFJs'](_0x4be62d['HBZaN'],_0x4be62d[_0x5ea9(0x3b)])){_0x1ae6e1[_0x5ea9(0x2c)](_0x4be62d[_0x5ea9(0x24)]),_0x4be62d[_0x5ea9(0x17)](_0x3915b1,[]),_0x555910(null);return;}else return console[_0x5ea9(0x1d)](_0x5ea9(0x3c)),[];}return console[_0x5ea9(0x2c)]('🔍\x20Fetching\x20connections\x20by\x20userId:',_0x5c0bfd),console[_0x5ea9(0x2c)](_0x4be62d['qDoKo'],_0x3c5996[_0x5ea9(0x2e)](0x0,0x14)+_0x5ea9(0x39)),await _0x4be62d[_0x5ea9(0x32)](getUserConnectionsByUserId,_0x5c0bfd);}catch(_0x1c292c){return _0x4be62d[_0x5ea9(0x3d)](_0x4be62d[_0x5ea9(0x3e)],_0x4be62d[_0x5ea9(0x3e)])?(console[_0x5ea9(0x25)](_0x4be62d[_0x5ea9(0x3f)],_0x1c292c),[]):(_0x59c425[_0x5ea9(0x1d)](_0x4be62d['bWoeb']),[]);}},[]),_0x4b14bc=useCallback(async(_0xb73b44,_0x4eda6a=_0x5ea9(0x40))=>{const _0x152279={'HmUYq':_0x4be62d[_0x5ea9(0x3f)]};if(_0x4be62d['GHDlf']!==_0x4be62d[_0x5ea9(0x41)])try{console[_0x5ea9(0x2c)](_0x4be62d[_0x5ea9(0x42)]);const _0x328b17=await _0x4be62d[_0x5ea9(0x43)](uploadProfilePicture,_0xb73b44,_0x4eda6a);return _0x328b17['success'];}catch(_0x127efc){return console[_0x5ea9(0x25)](_0x4be62d['nPbPB'],_0x127efc),![];}else return _0x1937ba[_0x5ea9(0x25)](_0x152279[_0x5ea9(0x44)],_0x5c20fd),[];},[]);return useEffect(()=>{if(_0x5ea9(0x45)!==_0x4be62d[_0x5ea9(0x46)])_0x4be62d['IPjrc'](_0x13523e);else{_0x59b9ab['error'](_0x5ea9(0x47)),_0x4be62d[_0x5ea9(0x48)](_0x503315,[]),_0x4be62d[_0x5ea9(0x48)](_0x127850,_0x5ea9(0x2b));return;}},[_0x13523e]),{'connections':_0x570f33,'isLoading':_0x2b1ff1,'error':_0x36a838,'refreshConnections':_0x484d19,'getConnectionsByUsername':_0x458720,'getConnectionsByUserId':_0x54f491,'uploadUserProfilePicture':_0x4b14bc};};