@onairos/react-native 3.6.7 → 3.6.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (257) hide show
  1. package/README.md +423 -423
  2. package/lib/commonjs/api/index.js +1 -1
  3. package/lib/commonjs/assets/images/Checkbox.svg +3 -3
  4. package/lib/commonjs/assets/images/EnochE.svg +19 -19
  5. package/lib/commonjs/assets/images/Personalityprofile.svg +3 -3
  6. package/lib/commonjs/assets/images/Personalitytraits.svg +3 -3
  7. package/lib/commonjs/assets/images/Userpreferences.svg +3 -3
  8. package/lib/commonjs/assets/images/arrow.svg +20 -20
  9. package/lib/commonjs/assets/images/basicproficon.svg +43 -43
  10. package/lib/commonjs/assets/images/basicprofile.svg +3 -3
  11. package/lib/commonjs/assets/images/checkmark.svg +4 -4
  12. package/lib/commonjs/assets/images/contentanalysis.svg +3 -3
  13. package/lib/commonjs/assets/images/contenticon.svg +23 -23
  14. package/lib/commonjs/assets/images/personalityicon.svg +18 -18
  15. package/lib/commonjs/assets/images/x-close.svg +3 -3
  16. package/lib/commonjs/components/BodyText.js +1 -1
  17. package/lib/commonjs/components/BrandMark.js +1 -1
  18. package/lib/commonjs/components/CodeInput.js +1 -1
  19. package/lib/commonjs/components/EmailInput.js +1 -1
  20. package/lib/commonjs/components/GoogleButton.js +1 -1
  21. package/lib/commonjs/components/HeadingGroup.js +1 -1
  22. package/lib/commonjs/components/LLMDataInputModal.js +1 -1
  23. package/lib/commonjs/components/ModalHeader.js +1 -1
  24. package/lib/commonjs/components/ModalSheet.js +1 -1
  25. package/lib/commonjs/components/Onairos.js +1 -1
  26. package/lib/commonjs/components/OnairosButton.js +1 -1
  27. package/lib/commonjs/components/OnairosSignInButton.js +1 -1
  28. package/lib/commonjs/components/Overlay.js +1 -1
  29. package/lib/commonjs/components/PersonaImage.js +1 -1
  30. package/lib/commonjs/components/PersonaLoadingScreen.js +1 -1
  31. package/lib/commonjs/components/PersonalizationConsentScreen.js +1 -1
  32. package/lib/commonjs/components/PinCreationScreen.js +1 -1
  33. package/lib/commonjs/components/PinInput.js +1 -1
  34. package/lib/commonjs/components/PlatformConnectorsStep.js +1 -1
  35. package/lib/commonjs/components/PlatformList.js +1 -1
  36. package/lib/commonjs/components/PlatformToggle.js +1 -1
  37. package/lib/commonjs/components/PrimaryButton.js +1 -1
  38. package/lib/commonjs/components/SignInMatchAnimation.js +1 -1
  39. package/lib/commonjs/components/SignInStep.js +1 -1
  40. package/lib/commonjs/components/UniversalOnboarding.js +1 -1
  41. package/lib/commonjs/components/VerificationStep.js +1 -1
  42. package/lib/commonjs/components/WelcomeScreen.js +1 -1
  43. package/lib/commonjs/components/icons/Basicproficon.js +1 -1
  44. package/lib/commonjs/components/icons/Basicprofile.js +1 -1
  45. package/lib/commonjs/components/icons/Checkbox.js +1 -1
  46. package/lib/commonjs/components/icons/Checkmark.js +1 -1
  47. package/lib/commonjs/components/icons/Contentanalysis.js +1 -1
  48. package/lib/commonjs/components/icons/Contenticon.js +1 -1
  49. package/lib/commonjs/components/icons/EnochE.js +1 -1
  50. package/lib/commonjs/components/icons/Personalityicon.js +1 -1
  51. package/lib/commonjs/components/icons/Personalityprofile.js +1 -1
  52. package/lib/commonjs/components/icons/Personalitytraits.js +1 -1
  53. package/lib/commonjs/components/icons/Userpreferences.js +1 -1
  54. package/lib/commonjs/components/icons/index.js +1 -1
  55. package/lib/commonjs/components/onboarding/OAuthWebView.js +1 -1
  56. package/lib/commonjs/components/onboarding/OnboardingHeader.js +1 -1
  57. package/lib/commonjs/components/onboarding/PinInput.js +1 -1
  58. package/lib/commonjs/components/onboarding/PlatformConnector.js +1 -1
  59. package/lib/commonjs/config/PLATFORM_APIS.md +559 -0
  60. package/lib/commonjs/config/api.js +1 -1
  61. package/lib/commonjs/config/telegramConfig.js +8 -0
  62. package/lib/commonjs/config/webchangelog/md +607 -0
  63. package/lib/commonjs/constants/index.js +1 -1
  64. package/lib/commonjs/context/AuthContext.js +1 -1
  65. package/lib/commonjs/hooks/useConnectedAccounts.js +1 -1
  66. package/lib/commonjs/hooks/useConnections.js +1 -1
  67. package/lib/commonjs/hooks/useCredentials.js +1 -1
  68. package/lib/commonjs/hooks/useUserConnections.js +1 -1
  69. package/lib/commonjs/index.js +1 -1
  70. package/lib/commonjs/services/SDK_API_KEY_VALIDATION.md +421 -421
  71. package/lib/commonjs/services/apiClient.js +1 -1
  72. package/lib/commonjs/services/apiKeyService.js +99 -99
  73. package/lib/commonjs/services/authService.js +72 -72
  74. package/lib/commonjs/services/biometricPinService.js +1 -1
  75. package/lib/commonjs/services/chatGPTConversationExtractor.js +1 -1
  76. package/lib/commonjs/services/chatGPTConversationService.js +1 -1
  77. package/lib/commonjs/services/claudeConversationExtractor.js +1 -1
  78. package/lib/commonjs/services/claudeConversationService.js +1 -1
  79. package/lib/commonjs/services/connectedAccountsService.js +1 -1
  80. package/lib/commonjs/services/googleAuthService.js +1 -1
  81. package/lib/commonjs/services/hingeDataExtractor.js +1 -1
  82. package/lib/commonjs/services/hingeDataService.js +1 -1
  83. package/lib/commonjs/services/imageCompressionService.js +1 -1
  84. package/lib/commonjs/services/instagramDataExtractor.js +1 -1
  85. package/lib/commonjs/services/instagramDataService.js +1 -1
  86. package/lib/commonjs/services/jwtStorageService.js +1 -1
  87. package/lib/commonjs/services/linkedinDOMExtractor.js +1 -1
  88. package/lib/commonjs/services/linkedinProfileService.js +1 -1
  89. package/lib/commonjs/services/linkedinScrapingService.js +1 -1
  90. package/lib/commonjs/services/llmDataStorage.js +1 -1
  91. package/lib/commonjs/services/mobileTrainingService.js +1 -1
  92. package/lib/commonjs/services/oauthService.js +20 -20
  93. package/lib/commonjs/services/pinEncryptionService.js +1 -1
  94. package/lib/commonjs/services/pinStorageUtils.js +1 -1
  95. package/lib/commonjs/services/platformAuthService.js +1 -1
  96. package/lib/commonjs/services/sephoraDataExtractor.js +1 -1
  97. package/lib/commonjs/services/sephoraDataService.js +1 -1
  98. package/lib/commonjs/services/storageService.js +1 -1
  99. package/lib/commonjs/services/telegramDataExtractor.js +1 -1
  100. package/lib/commonjs/services/telegramDataService.js +1 -1
  101. package/lib/commonjs/services/trainingApiHelpers.js +1 -1
  102. package/lib/commonjs/services/userConnectionsService.js +1 -1
  103. package/lib/commonjs/services/youtubeMigrationService.js +1 -1
  104. package/lib/commonjs/theme/index.js +1 -1
  105. package/lib/commonjs/types/index.js +1 -1
  106. package/lib/commonjs/types.js +1 -1
  107. package/lib/commonjs/utils/Portal.js +1 -1
  108. package/lib/commonjs/utils/api.js +1 -1
  109. package/lib/commonjs/utils/assetRegistry.js +1 -1
  110. package/lib/commonjs/utils/auth.js +1 -1
  111. package/lib/commonjs/utils/connectorTests.js +1 -1
  112. package/lib/commonjs/utils/crypto.js +1 -1
  113. package/lib/commonjs/utils/debugHelper.js +1 -1
  114. package/lib/commonjs/utils/encryption.js +1 -1
  115. package/lib/commonjs/utils/eventUtils.js +1 -1
  116. package/lib/commonjs/utils/haptics.js +1 -1
  117. package/lib/commonjs/utils/imagePreloader.js +1 -1
  118. package/lib/commonjs/utils/networkDiagnostics.js +1 -1
  119. package/lib/commonjs/utils/onairosApi.js +1 -1
  120. package/lib/commonjs/utils/programmaticFlow.js +1 -1
  121. package/lib/commonjs/utils/retryHelper.js +1 -1
  122. package/lib/commonjs/utils/secureStorage.js +1 -1
  123. package/lib/commonjs/utils/webviewScripts/chatgpt.js +1 -1
  124. package/lib/commonjs/utils/webviewScripts/claude.js +1 -1
  125. package/lib/commonjs/utils/webviewScripts/hinge.js +1 -1
  126. package/lib/commonjs/utils/webviewScripts/index.js +1 -1
  127. package/lib/commonjs/utils/webviewScripts/instagram.js +1 -1
  128. package/lib/commonjs/utils/webviewScripts/linkedin.js +1 -1
  129. package/lib/commonjs/utils/webviewScripts/sephora.js +1 -1
  130. package/lib/commonjs/utils/webviewScripts/telegram.js +1 -1
  131. package/lib/module/api/index.js +1 -1
  132. package/lib/module/assets/images/Checkbox.svg +3 -3
  133. package/lib/module/assets/images/EnochE.svg +19 -19
  134. package/lib/module/assets/images/Personalityprofile.svg +3 -3
  135. package/lib/module/assets/images/Personalitytraits.svg +3 -3
  136. package/lib/module/assets/images/Userpreferences.svg +3 -3
  137. package/lib/module/assets/images/arrow.svg +20 -20
  138. package/lib/module/assets/images/basicproficon.svg +43 -43
  139. package/lib/module/assets/images/basicprofile.svg +3 -3
  140. package/lib/module/assets/images/checkmark.svg +4 -4
  141. package/lib/module/assets/images/contentanalysis.svg +3 -3
  142. package/lib/module/assets/images/contenticon.svg +23 -23
  143. package/lib/module/assets/images/personalityicon.svg +18 -18
  144. package/lib/module/assets/images/x-close.svg +3 -3
  145. package/lib/module/components/BodyText.js +1 -1
  146. package/lib/module/components/BrandMark.js +1 -1
  147. package/lib/module/components/CodeInput.js +1 -1
  148. package/lib/module/components/EmailInput.js +1 -1
  149. package/lib/module/components/GoogleButton.js +1 -1
  150. package/lib/module/components/HeadingGroup.js +1 -1
  151. package/lib/module/components/LLMDataInputModal.js +1 -1
  152. package/lib/module/components/ModalHeader.js +1 -1
  153. package/lib/module/components/ModalSheet.js +1 -1
  154. package/lib/module/components/Onairos.js +1 -1
  155. package/lib/module/components/OnairosButton.js +1 -1
  156. package/lib/module/components/OnairosSignInButton.js +1 -1
  157. package/lib/module/components/Overlay.js +1 -1
  158. package/lib/module/components/PersonaImage.js +1 -1
  159. package/lib/module/components/PersonaLoadingScreen.js +1 -1
  160. package/lib/module/components/PersonalizationConsentScreen.js +1 -1
  161. package/lib/module/components/PinCreationScreen.js +1 -1
  162. package/lib/module/components/PinInput.js +1 -1
  163. package/lib/module/components/PlatformConnectorsStep.js +1 -1
  164. package/lib/module/components/PlatformList.js +1 -1
  165. package/lib/module/components/PlatformToggle.js +1 -1
  166. package/lib/module/components/PrimaryButton.js +1 -1
  167. package/lib/module/components/SignInMatchAnimation.js +1 -1
  168. package/lib/module/components/SignInStep.js +1 -1
  169. package/lib/module/components/UniversalOnboarding.js +1 -1
  170. package/lib/module/components/VerificationStep.js +1 -1
  171. package/lib/module/components/WelcomeScreen.js +1 -1
  172. package/lib/module/components/icons/Basicproficon.js +1 -1
  173. package/lib/module/components/icons/Basicprofile.js +1 -1
  174. package/lib/module/components/icons/Checkbox.js +1 -1
  175. package/lib/module/components/icons/Checkmark.js +1 -1
  176. package/lib/module/components/icons/Contentanalysis.js +1 -1
  177. package/lib/module/components/icons/Contenticon.js +1 -1
  178. package/lib/module/components/icons/EnochE.js +1 -1
  179. package/lib/module/components/icons/Personalityicon.js +1 -1
  180. package/lib/module/components/icons/Personalityprofile.js +1 -1
  181. package/lib/module/components/icons/Personalitytraits.js +1 -1
  182. package/lib/module/components/icons/Userpreferences.js +1 -1
  183. package/lib/module/components/onboarding/OAuthWebView.js +1 -1
  184. package/lib/module/components/onboarding/OnboardingHeader.js +1 -1
  185. package/lib/module/components/onboarding/PinInput.js +1 -1
  186. package/lib/module/components/onboarding/PlatformConnector.js +1 -1
  187. package/lib/module/config/PLATFORM_APIS.md +559 -0
  188. package/lib/module/config/api.js +1 -1
  189. package/lib/module/config/telegramConfig.js +8 -0
  190. package/lib/module/config/webchangelog/md +607 -0
  191. package/lib/module/constants/index.js +1 -1
  192. package/lib/module/context/AuthContext.js +1 -1
  193. package/lib/module/hooks/useConnectedAccounts.js +1 -1
  194. package/lib/module/hooks/useConnections.js +1 -1
  195. package/lib/module/hooks/useCredentials.js +1 -1
  196. package/lib/module/hooks/useUserConnections.js +1 -1
  197. package/lib/module/index.js +1 -1
  198. package/lib/module/services/SDK_API_KEY_VALIDATION.md +421 -421
  199. package/lib/module/services/apiClient.js +1 -1
  200. package/lib/module/services/apiKeyService.js +99 -99
  201. package/lib/module/services/authService.js +72 -72
  202. package/lib/module/services/biometricPinService.js +1 -1
  203. package/lib/module/services/chatGPTConversationExtractor.js +1 -1
  204. package/lib/module/services/chatGPTConversationService.js +1 -1
  205. package/lib/module/services/claudeConversationExtractor.js +1 -1
  206. package/lib/module/services/claudeConversationService.js +1 -1
  207. package/lib/module/services/connectedAccountsService.js +1 -1
  208. package/lib/module/services/googleAuthService.js +1 -1
  209. package/lib/module/services/hingeDataExtractor.js +1 -1
  210. package/lib/module/services/hingeDataService.js +1 -1
  211. package/lib/module/services/imageCompressionService.js +1 -1
  212. package/lib/module/services/instagramDataExtractor.js +1 -1
  213. package/lib/module/services/instagramDataService.js +1 -1
  214. package/lib/module/services/jwtStorageService.js +1 -1
  215. package/lib/module/services/linkedinDOMExtractor.js +1 -1
  216. package/lib/module/services/linkedinProfileService.js +1 -1
  217. package/lib/module/services/linkedinScrapingService.js +1 -1
  218. package/lib/module/services/llmDataStorage.js +1 -1
  219. package/lib/module/services/mobileTrainingService.js +1 -1
  220. package/lib/module/services/oauthService.js +20 -20
  221. package/lib/module/services/pinEncryptionService.js +1 -1
  222. package/lib/module/services/pinStorageUtils.js +1 -1
  223. package/lib/module/services/platformAuthService.js +1 -1
  224. package/lib/module/services/sephoraDataExtractor.js +1 -1
  225. package/lib/module/services/sephoraDataService.js +1 -1
  226. package/lib/module/services/storageService.js +1 -1
  227. package/lib/module/services/telegramDataExtractor.js +1 -1
  228. package/lib/module/services/telegramDataService.js +1 -1
  229. package/lib/module/services/trainingApiHelpers.js +1 -1
  230. package/lib/module/services/userConnectionsService.js +1 -1
  231. package/lib/module/services/youtubeMigrationService.js +1 -1
  232. package/lib/module/theme/index.js +1 -1
  233. package/lib/module/types.js +1 -1
  234. package/lib/module/utils/Portal.js +1 -1
  235. package/lib/module/utils/api.js +1 -1
  236. package/lib/module/utils/assetRegistry.js +1 -1
  237. package/lib/module/utils/auth.js +1 -1
  238. package/lib/module/utils/connectorTests.js +1 -1
  239. package/lib/module/utils/crypto.js +1 -1
  240. package/lib/module/utils/debugHelper.js +1 -1
  241. package/lib/module/utils/encryption.js +1 -1
  242. package/lib/module/utils/eventUtils.js +1 -1
  243. package/lib/module/utils/haptics.js +1 -1
  244. package/lib/module/utils/networkDiagnostics.js +1 -1
  245. package/lib/module/utils/onairosApi.js +1 -1
  246. package/lib/module/utils/programmaticFlow.js +1 -1
  247. package/lib/module/utils/retryHelper.js +1 -1
  248. package/lib/module/utils/secureStorage.js +1 -1
  249. package/lib/module/utils/webviewScripts/chatgpt.js +1 -1
  250. package/lib/module/utils/webviewScripts/claude.js +1 -1
  251. package/lib/module/utils/webviewScripts/hinge.js +1 -1
  252. package/lib/module/utils/webviewScripts/index.js +1 -1
  253. package/lib/module/utils/webviewScripts/instagram.js +1 -1
  254. package/lib/module/utils/webviewScripts/linkedin.js +1 -1
  255. package/lib/module/utils/webviewScripts/sephora.js +1 -1
  256. package/lib/module/utils/webviewScripts/telegram.js +1 -1
  257. package/package.json +172 -172
@@ -14,9 +14,9 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
14
14
  // API base URL
15
15
  const API_BASE_URL = _api.API_CONFIG.BASE_URL;
16
16
 
17
- /**
18
- * Wait for SDK initialization to complete (up to maxWaitMs).
19
- * Polls isApiKeyInitialized() every 500ms.
17
+ /**
18
+ * Wait for SDK initialization to complete (up to maxWaitMs).
19
+ * Polls isApiKeyInitialized() every 500ms.
20
20
  */
21
21
  const waitForSDKInit = async (maxWaitMs = 8000) => {
22
22
  if ((0, _apiKeyService.isApiKeyInitialized)()) return true;
@@ -38,20 +38,20 @@ const waitForSDKInit = async (maxWaitMs = 8000) => {
38
38
 
39
39
  // Interface for Apple authentication payload
40
40
 
41
- /**
42
- * Generic SDK Authentication Response
43
- * Used by all auth methods (Google, Apple, Email)
41
+ /**
42
+ * Generic SDK Authentication Response
43
+ * Used by all auth methods (Google, Apple, Email)
44
44
  */
45
45
 
46
- /**
47
- * Authenticate with Apple
48
- * @param appleAuthData Data from Apple authentication
49
- * @returns Authentication response with token and user data
46
+ /**
47
+ * Authenticate with Apple
48
+ * @param appleAuthData Data from Apple authentication
49
+ * @returns Authentication response with token and user data
50
50
  */
51
- /**
52
- * Authenticate with Onairos (similar to Apple authentication)
53
- * @param onairosAuthData Data from Onairos authentication
54
- * @returns Authentication response with token and user data
51
+ /**
52
+ * Authenticate with Onairos (similar to Apple authentication)
53
+ * @param onairosAuthData Data from Onairos authentication
54
+ * @returns Authentication response with token and user data
55
55
  */
56
56
  const authenticateWithOnairos = async onairosAuthData => {
57
57
  try {
@@ -87,10 +87,10 @@ const authenticateWithOnairos = async onairosAuthData => {
87
87
  }
88
88
  };
89
89
 
90
- /**
91
- * Authenticate with Onairos using the standardized /login/signin endpoint
92
- * @param credentials Email and password for Onairos sign-in
93
- * @returns Authentication response with token and user data
90
+ /**
91
+ * Authenticate with Onairos using the standardized /login/signin endpoint
92
+ * @param credentials Email and password for Onairos sign-in
93
+ * @returns Authentication response with token and user data
94
94
  */
95
95
  exports.authenticateWithOnairos = authenticateWithOnairos;
96
96
  const authenticateWithOnairosSignIn = async credentials => {
@@ -137,10 +137,10 @@ const authenticateWithOnairosSignIn = async credentials => {
137
137
  }
138
138
  };
139
139
 
140
- /**
141
- * Authenticate with Apple using generic SDK endpoint
142
- * NOTE: This is generic SDK auth - does NOT create EnochUser
143
- * Consuming apps should call /enoch/users/register after this if needed
140
+ /**
141
+ * Authenticate with Apple using generic SDK endpoint
142
+ * NOTE: This is generic SDK auth - does NOT create EnochUser
143
+ * Consuming apps should call /enoch/users/register after this if needed
144
144
  */
145
145
  exports.authenticateWithOnairosSignIn = authenticateWithOnairosSignIn;
146
146
  const authenticateWithApple = async appleAuthData => {
@@ -200,9 +200,9 @@ const authenticateWithApple = async appleAuthData => {
200
200
  }
201
201
  };
202
202
 
203
- /**
204
- * Save authentication token
205
- * @param token JWT token
203
+ /**
204
+ * Save authentication token
205
+ * @param token JWT token
206
206
  */
207
207
  exports.authenticateWithApple = authenticateWithApple;
208
208
  const saveAuthToken = async token => {
@@ -214,8 +214,8 @@ const saveAuthToken = async token => {
214
214
  }
215
215
  };
216
216
 
217
- /**
218
- * Debug function to check all auth-related storage
217
+ /**
218
+ * Debug function to check all auth-related storage
219
219
  */
220
220
  exports.saveAuthToken = saveAuthToken;
221
221
  const debugAuthStorage = async () => {
@@ -236,8 +236,8 @@ const debugAuthStorage = async () => {
236
236
  }
237
237
  };
238
238
 
239
- /**
240
- * Clear all auth tokens and start fresh
239
+ /**
240
+ * Clear all auth tokens and start fresh
241
241
  */
242
242
  exports.debugAuthStorage = debugAuthStorage;
243
243
  const clearAllAuthTokens = async () => {
@@ -249,9 +249,9 @@ const clearAllAuthTokens = async () => {
249
249
  console.log('✅ [AUTH] All auth tokens and data cleared');
250
250
  };
251
251
 
252
- /**
253
- * Get saved authentication token
254
- * @returns Saved JWT token or null if not found
252
+ /**
253
+ * Get saved authentication token
254
+ * @returns Saved JWT token or null if not found
255
255
  */
256
256
  exports.clearAllAuthTokens = clearAllAuthTokens;
257
257
  const getAuthToken = async () => {
@@ -269,8 +269,8 @@ const getAuthToken = async () => {
269
269
  }
270
270
  };
271
271
 
272
- /**
273
- * Remove authentication token (logout)
272
+ /**
273
+ * Remove authentication token (logout)
274
274
  */
275
275
  exports.getAuthToken = getAuthToken;
276
276
  const removeAuthToken = async () => {
@@ -281,9 +281,9 @@ const removeAuthToken = async () => {
281
281
  }
282
282
  };
283
283
 
284
- /**
285
- * Validate if user is properly authenticated
286
- * @returns boolean indicating if user has valid authentication
284
+ /**
285
+ * Validate if user is properly authenticated
286
+ * @returns boolean indicating if user has valid authentication
287
287
  */
288
288
  exports.removeAuthToken = removeAuthToken;
289
289
  const isAuthenticated = async () => {
@@ -296,10 +296,10 @@ const isAuthenticated = async () => {
296
296
  }
297
297
  };
298
298
 
299
- /**
300
- * Ensure authentication is available before making API calls
301
- * @param apiName - Name of the API being called (for logging)
302
- * @returns boolean indicating if authentication is available
299
+ /**
300
+ * Ensure authentication is available before making API calls
301
+ * @param apiName - Name of the API being called (for logging)
302
+ * @returns boolean indicating if authentication is available
303
303
  */
304
304
  exports.isAuthenticated = isAuthenticated;
305
305
  const ensureAuthentication = async apiName => {
@@ -316,9 +316,9 @@ const ensureAuthentication = async apiName => {
316
316
  // SDK now uses a single simplified token. Enoch-specific token management
317
317
  // should be handled by the consuming app if needed.
318
318
 
319
- /**
320
- * Verify token with backend
321
- * @returns Boolean indicating if token is valid
319
+ /**
320
+ * Verify token with backend
321
+ * @returns Boolean indicating if token is valid
322
322
  */
323
323
  exports.ensureAuthentication = ensureAuthentication;
324
324
  const verifyToken = async () => {
@@ -356,10 +356,10 @@ const verifyToken = async () => {
356
356
  // NOTE: getEventTimer has been removed from SDK - it's Enoch-specific.
357
357
  // Consuming apps (like OnairosEvents) should call /enoch/event/timer directly.
358
358
 
359
- /**
360
- * Check if a user email has admin privileges
361
- * @param email User email to check
362
- * @returns True if user is an admin
359
+ /**
360
+ * Check if a user email has admin privileges
361
+ * @param email User email to check
362
+ * @returns True if user is an admin
363
363
  */
364
364
  exports.verifyToken = verifyToken;
365
365
  const isAdminEmail = email => {
@@ -377,9 +377,9 @@ const isAdminEmail = email => {
377
377
  return isAdmin;
378
378
  };
379
379
 
380
- /**
381
- * Get the current admin status from AsyncStorage
382
- * This could be used for caching admin status between sessions
380
+ /**
381
+ * Get the current admin status from AsyncStorage
382
+ * This could be used for caching admin status between sessions
383
383
  */
384
384
  exports.isAdminEmail = isAdminEmail;
385
385
  const getAdminStatus = async () => {
@@ -392,9 +392,9 @@ const getAdminStatus = async () => {
392
392
  }
393
393
  };
394
394
 
395
- /**
396
- * Save admin status to AsyncStorage
397
- * @param isAdmin Whether the user is an admin
395
+ /**
396
+ * Save admin status to AsyncStorage
397
+ * @param isAdmin Whether the user is an admin
398
398
  */
399
399
  exports.getAdminStatus = getAdminStatus;
400
400
  const saveAdminStatus = async isAdmin => {
@@ -405,10 +405,10 @@ const saveAdminStatus = async isAdmin => {
405
405
  }
406
406
  };
407
407
 
408
- /**
409
- * Get stored Onairos username for API calls
410
- * This is used for data connector APIs (Reddit, etc.) that need the username
411
- * @returns Stored username or null if not found
408
+ /**
409
+ * Get stored Onairos username for API calls
410
+ * This is used for data connector APIs (Reddit, etc.) that need the username
411
+ * @returns Stored username or null if not found
412
412
  */
413
413
  exports.saveAdminStatus = saveAdminStatus;
414
414
  const getOnairosUsername = async () => {
@@ -420,9 +420,9 @@ const getOnairosUsername = async () => {
420
420
  }
421
421
  };
422
422
 
423
- /**
424
- * Save Onairos username for API calls
425
- * @param username Username to store
423
+ /**
424
+ * Save Onairos username for API calls
425
+ * @param username Username to store
426
426
  */
427
427
  exports.getOnairosUsername = getOnairosUsername;
428
428
  const saveOnairosUsername = async username => {
@@ -433,10 +433,10 @@ const saveOnairosUsername = async username => {
433
433
  }
434
434
  };
435
435
 
436
- /**
437
- * Send email verification code
438
- * @param email Email address to send verification code to
439
- * @returns Result with success status and optional message
436
+ /**
437
+ * Send email verification code
438
+ * @param email Email address to send verification code to
439
+ * @returns Result with success status and optional message
440
440
  */
441
441
  exports.saveOnairosUsername = saveOnairosUsername;
442
442
  const sendEmailVerificationCode = async email => {
@@ -517,13 +517,13 @@ const sendEmailVerificationCode = async email => {
517
517
  };
518
518
  };
519
519
 
520
- /**
521
- * Confirm email verification code
522
- * NOTE: This is generic SDK email verification - does NOT create EnochUser
523
- * Consuming apps should call /enoch/users/register after this if needed
524
- * @param email Email address that received the code
525
- * @param code Verification code entered by user
526
- * @returns Result with success status, optional token, and message
520
+ /**
521
+ * Confirm email verification code
522
+ * NOTE: This is generic SDK email verification - does NOT create EnochUser
523
+ * Consuming apps should call /enoch/users/register after this if needed
524
+ * @param email Email address that received the code
525
+ * @param code Verification code entered by user
526
+ * @returns Result with success status, optional token, and message
527
527
  */
528
528
  exports.sendEmailVerificationCode = sendEmailVerificationCode;
529
529
  const confirmEmailVerificationCode = async (email, code) => {
@@ -5,4 +5,4 @@ var __ONAIROS_REQ_REGISTRY__ = [
5
5
  require("react-native")
6
6
  ];
7
7
  function __ONAIROS_REQ_FUNC__(i) { return __ONAIROS_REQ_REGISTRY__[i]; }
8
- Object['defineProperty'](exports,_0x1512(0x0),{'value':!![]}),exports['storePinWithBiometric']=exports[_0x1512(0x1)]=exports['removePinFromStorage']=exports[_0x1512(0x2)]=exports[_0x1512(0x3)]=exports['biometricPinService']=void 0x0;var Keychain=_interopRequireWildcard(__ONAIROS_REQ_FUNC__(0x0)),_reactNative=__ONAIROS_REQ_FUNC__(0x1);function _interopRequireWildcard(_0x4945d2,_0x3a5e48){const _0x20e409={'uBoJT':function(_0x8aa11b,_0x37e749){return _0x8aa11b&&_0x37e749;},'ASviB':function(_0x22649a,_0x2de803){return _0x22649a!=_0x2de803;},'YLhpO':_0x1512(0x4),'CdceT':_0x1512(0x5),'wVbbD':function(_0x1d7575,_0x37b980){return _0x1d7575!==_0x37b980;},'lgmCn':function(_0xb98e90,_0x51a96b,_0x1c62b1,_0x3d8eaa){return _0xb98e90(_0x51a96b,_0x1c62b1,_0x3d8eaa);},'nvhwg':function(_0x5378fa,_0x1abd3c){return _0x5378fa==_0x1abd3c;}};if(_0x20e409[_0x1512(0x6)](_0x20e409['CdceT'],typeof WeakMap))var _0x1e7e79=new WeakMap(),_0x299478=new WeakMap();return(_interopRequireWildcard=function(_0x5a05a3,_0x5370e2){if(_0x20e409['uBoJT'](!_0x5370e2,_0x5a05a3)&&_0x5a05a3[_0x1512(0x0)])return _0x5a05a3;var _0x2225db,_0x2079c8,_0x37b2e0={'__proto__':null,'default':_0x5a05a3};if(null===_0x5a05a3||_0x20e409[_0x1512(0x7)](_0x20e409[_0x1512(0x8)],typeof _0x5a05a3)&&_0x20e409['CdceT']!=typeof _0x5a05a3)return _0x37b2e0;if(_0x2225db=_0x5370e2?_0x299478:_0x1e7e79){if(_0x2225db['has'](_0x5a05a3))return _0x2225db['get'](_0x5a05a3);_0x2225db[_0x1512(0x9)](_0x5a05a3,_0x37b2e0);}for(const _0x5253bc in _0x5a05a3)_0x20e409[_0x1512(0xa)](_0x1512(0xb),_0x5253bc)&&{}[_0x1512(0xc)][_0x1512(0xd)](_0x5a05a3,_0x5253bc)&&((_0x2079c8=(_0x2225db=Object[_0x1512(0xe)])&&Object[_0x1512(0xf)](_0x5a05a3,_0x5253bc))&&(_0x2079c8[_0x1512(0x10)]||_0x2079c8['set'])?_0x20e409[_0x1512(0x11)](_0x2225db,_0x37b2e0,_0x5253bc,_0x2079c8):_0x37b2e0[_0x5253bc]=_0x5a05a3[_0x5253bc]);return _0x37b2e0;})(_0x4945d2,_0x3a5e48);}function _0x1512(_0x13d190,_0x151286){_0x13d190=_0x13d190-0x0;const _0x1eb706=_0x13d1();let _0x24699e=_0x1eb706[_0x13d190];return _0x24699e;}const PIN_SERVICE_KEY=_0x1512(0x12),PIN_USERNAME=_0x1512(0x13),isBiometricAvailable=async()=>{const _0x3fd991={'sMDdQ':function(_0x5dace3,_0x2d327c){return _0x5dace3!==_0x2d327c;},'YGGai':function(_0x2c1509,_0x439b61){return _0x2c1509!==_0x439b61;},'artKI':function(_0x511c06,_0x24792){return _0x511c06!==_0x24792;},'nEOUp':function(_0x321f71,_0x2d868f){return _0x321f71!==_0x2d868f;},'LNXjk':_0x1512(0x14),'cqCGT':function(_0x54298d,_0x215d24){return _0x54298d!==_0x215d24;},'COFlJ':function(_0x57f607,_0x308ee5){return _0x57f607!==_0x308ee5;},'urcTL':function(_0x467d00,_0x2e15a6){return _0x467d00!==_0x2e15a6;},'OGKLJ':_0x1512(0x15),'uKpGw':_0x1512(0x16),'GibXv':function(_0x79263b,_0xa832c6){return _0x79263b===_0xa832c6;},'TtOMK':function(_0x5c4ee2,_0xdb3f4f){return _0x5c4ee2===_0xdb3f4f;},'BulcB':function(_0x1c24b3,_0x13d450){return _0x1c24b3===_0x13d450;},'zbohS':_0x1512(0x17)};try{if(_0x3fd991[_0x1512(0x18)](_0x3fd991[_0x1512(0x19)],_0x1512(0x15))){var _0x275ec3,_0x441ded;_0x322cf3[_0x1512(0x1a)](_0x1512(0x1b),_0x2d5274);if(_0x3fd991['sMDdQ'](_0x4f0509,null)&&_0x3fd991[_0x1512(0x1c)](_0x350148,void 0x0)&&_0x3fd991[_0x1512(0x1d)](_0x275ec3=_0x1cf16b[_0x1512(0x1e)],null)&&_0x3fd991[_0x1512(0x1f)](_0x275ec3,void 0x0)&&_0x275ec3[_0x1512(0x20)](_0x3fd991[_0x1512(0x21)]))return _0x4cce83['log']('👤\x20User\x20cancelled\x20biometric\x20authentication'),null;else{if(_0x3fd991['cqCGT'](_0x13f97f,null)&&_0x3fd991[_0x1512(0x1f)](_0x4556f0,void 0x0)&&(_0x441ded=_0x44a28a['message'])!==null&&_0x3fd991[_0x1512(0x22)](_0x441ded,void 0x0)&&_0x441ded[_0x1512(0x20)]('BiometryNotAvailable'))return _0x3e710e['log'](_0x1512(0x23)),null;}return null;}else{const _0x134888=await Keychain[_0x1512(0x24)]();return console[_0x1512(0x25)](_0x3fd991[_0x1512(0x26)],_0x134888),_0x134888===Keychain[_0x1512(0x27)]['FACE_ID']||_0x3fd991[_0x1512(0x28)](_0x134888,Keychain[_0x1512(0x27)][_0x1512(0x29)])||_0x134888===Keychain['BIOMETRY_TYPE'][_0x1512(0x2a)]||_0x3fd991['TtOMK'](_0x134888,Keychain[_0x1512(0x27)][_0x1512(0x2b)])||_0x3fd991[_0x1512(0x2c)](_0x134888,Keychain[_0x1512(0x27)][_0x1512(0x2d)]);}}catch(_0x2288a0){return console[_0x1512(0x1a)](_0x3fd991[_0x1512(0x2e)],_0x2288a0),![];}};exports[_0x1512(0x3)]=isBiometricAvailable;const storePinWithBiometric=async _0x50a135=>{const _0x585d52={'AyIdN':_0x1512(0x2f),'RKeMy':'⚠️\x20No\x20PIN\x20found\x20in\x20secure\x20storage','oVpQS':_0x1512(0x30),'MYUqi':'📱\x20Face\x20ID/Touch\x20ID\x20not\x20available','OWCUA':'mEdtd','eWWGR':_0x1512(0x31),'wHWlo':function(_0x2e3115){return _0x2e3115();},'RtiZj':function(_0xd86a38,_0x126dc0){return _0xd86a38===_0x126dc0;},'QxLjh':_0x1512(0x32),'Fukqv':_0x1512(0x33),'ZHisi':function(_0x24904f,_0x2d6ed8){return _0x24904f===_0x2d6ed8;},'OctFs':_0x1512(0x34),'Zkrko':_0x1512(0x35),'zKQwu':function(_0xd5282d,_0x424396){return _0xd5282d===_0x424396;},'HlSZn':_0x1512(0x36),'vqMaj':_0x1512(0x37),'CUchG':_0x1512(0x38),'LbxTP':_0x1512(0x39),'wCPli':_0x1512(0x3a),'Hqlxt':_0x1512(0x3b),'NhhpK':_0x1512(0x3c),'SebsY':_0x1512(0x3d),'SGOaN':function(_0x57797d,_0x25257d){return _0x57797d!==_0x25257d;},'UyxpA':function(_0x290340,_0x26d35f){return _0x290340!==_0x26d35f;},'YWaYR':function(_0x2b86b3,_0x46d591){return _0x2b86b3!==_0x46d591;},'tkNZq':'UserCancel','EWtwU':function(_0x2dae42,_0x51df13){return _0x2dae42===_0x51df13;},'LAxRw':function(_0x1ee6b0,_0x3e79cb){return _0x1ee6b0===_0x3e79cb;},'zdmHJ':_0x1512(0x3e),'YBUFK':'QjaXl','LbxMQ':'👤\x20User\x20cancelled\x20Face\x20ID\x20authentication','WhVoA':function(_0x599458,_0x30cc95){return _0x599458!==_0x30cc95;},'HunYJ':function(_0x413fc5,_0x1fdf10){return _0x413fc5!==_0x1fdf10;},'kpllp':function(_0x9576a7,_0x1a2302){return _0x9576a7!==_0x1a2302;},'Tgroy':'AuthenticationFailed','biPuN':function(_0xec166c,_0x550571){return _0xec166c===_0x550571;},'qfzvV':function(_0xc0a8cd,_0xe0a36b){return _0xc0a8cd===_0xe0a36b;},'uMHHq':_0x1512(0x3f),'AtEEy':_0x1512(0x40),'QgDkk':function(_0x7412c,_0x186184){return _0x7412c!==_0x186184;},'GoIfk':function(_0x3cf872,_0xc5c2e4){return _0x3cf872===_0xc5c2e4;},'fpSKV':function(_0x3217b0,_0x2ef77e){return _0x3217b0===_0x2ef77e;},'JqAdy':_0x1512(0x41)};try{if(_0x585d52[_0x1512(0x42)]===_0x585d52[_0x1512(0x42)]){console['log'](_0x585d52[_0x1512(0x43)]);const _0x24a47e=await _0x585d52[_0x1512(0x44)](isBiometricAvailable);if(!_0x24a47e)return _0x585d52[_0x1512(0x45)](_0x1512(0x46),_0x1512(0x46))?(console[_0x1512(0x1a)](_0x585d52['QxLjh']),![]):(_0x30e82b[_0x1512(0x1a)](_0x585d52[_0x1512(0x47)],_0x23bfcb),![]);console[_0x1512(0x25)](_0x585d52['Fukqv']);const _0x5b76ea={'accessControl':Keychain[_0x1512(0x48)]['BIOMETRY_CURRENT_SET'],'authenticationType':Keychain[_0x1512(0x49)][_0x1512(0x4a)],'touchID':!![],'showModal':!![],'kLocalizedFallbackTitle':'',..._0x585d52[_0x1512(0x4b)](_reactNative['Platform']['OS'],_0x585d52[_0x1512(0x4c)])&&{'localizedPrompt':_0x1512(0x4d),'localizedCancel':_0x585d52['Zkrko']},..._0x585d52[_0x1512(0x4e)](_reactNative[_0x1512(0x4f)]['OS'],_0x585d52[_0x1512(0x50)])&&{'promptMessage':_0x1512(0x51),'cancelButtonText':_0x585d52[_0x1512(0x52)]}};console[_0x1512(0x25)](_0x585d52[_0x1512(0x53)]);const _0xa949d0=await Keychain[_0x1512(0x54)](PIN_USERNAME,_0x50a135,{'service':PIN_SERVICE_KEY,..._0x5b76ea});return console[_0x1512(0x25)](_0x585d52[_0x1512(0x55)]),console[_0x1512(0x25)](_0x585d52[_0x1512(0x56)],_0xa949d0),!![];}else return _0x326a90[_0x1512(0x25)](_0x585d52[_0x1512(0x57)]),null;}catch(_0x548465){if(_0x585d52[_0x1512(0x58)]!==_0x585d52[_0x1512(0x59)]){var _0x16d516,_0x579350,_0x1ece8f,_0x1cc9a1;console[_0x1512(0x1a)](_0x585d52[_0x1512(0x5a)],_0x548465),console[_0x1512(0x1a)](_0x585d52[_0x1512(0x5b)],{'message':_0x548465['message'],'code':_0x548465[_0x1512(0x5c)],'domain':_0x548465[_0x1512(0x5d)],'userInfo':_0x548465['userInfo']});if(_0x585d52[_0x1512(0x5e)](_0x548465,null)&&_0x585d52[_0x1512(0x5e)](_0x548465,void 0x0)&&_0x585d52['UyxpA'](_0x16d516=_0x548465[_0x1512(0x1e)],null)&&_0x585d52['YWaYR'](_0x16d516,void 0x0)&&_0x16d516[_0x1512(0x20)](_0x585d52[_0x1512(0x5f)])||_0x585d52[_0x1512(0x60)](_0x585d52['LAxRw'](_0x548465,null)||_0x585d52['EWtwU'](_0x548465,void 0x0)?void 0x0:_0x548465[_0x1512(0x5c)],-0x80))return _0x585d52[_0x1512(0x61)](_0x585d52[_0x1512(0x62)],_0x585d52[_0x1512(0x63)])?(console[_0x1512(0x25)](_0x585d52['LbxMQ']),![]):(_0x1c9118[_0x1512(0x25)](_0x1512(0x40)),![]);else{if(_0x585d52['WhVoA'](_0x548465,null)&&_0x548465!==void 0x0&&_0x585d52[_0x1512(0x64)](_0x579350=_0x548465['message'],null)&&_0x585d52[_0x1512(0x61)](_0x579350,void 0x0)&&_0x579350[_0x1512(0x20)](_0x1512(0x65))||(_0x548465===null||_0x585d52[_0x1512(0x45)](_0x548465,void 0x0)?void 0x0:_0x548465[_0x1512(0x5c)])===-0x6)return console[_0x1512(0x25)](_0x585d52[_0x1512(0x66)]),![];else{if(_0x548465!==null&&_0x585d52['UyxpA'](_0x548465,void 0x0)&&_0x585d52[_0x1512(0x67)](_0x1ece8f=_0x548465['message'],null)&&_0x585d52[_0x1512(0x68)](_0x1ece8f,void 0x0)&&_0x1ece8f[_0x1512(0x20)](_0x585d52[_0x1512(0x69)])||_0x585d52[_0x1512(0x4b)](_0x585d52['biPuN'](_0x548465,null)||_0x585d52[_0x1512(0x6a)](_0x548465,void 0x0)?void 0x0:_0x548465['code'],-0x1))return _0x585d52[_0x1512(0x6b)]===_0x1512(0x3f)?(console[_0x1512(0x25)](_0x585d52[_0x1512(0x6c)]),![]):(_0x1a8d3a[_0x1512(0x25)](_0x585d52[_0x1512(0x6d)]),![]);else{if(_0x585d52[_0x1512(0x5e)](_0x548465,null)&&_0x548465!==void 0x0&&(_0x1cc9a1=_0x548465[_0x1512(0x1e)])!==null&&_0x585d52[_0x1512(0x6e)](_0x1cc9a1,void 0x0)&&_0x1cc9a1['includes'](_0x1512(0x6f))||_0x585d52['GoIfk'](_0x585d52[_0x1512(0x6a)](_0x548465,null)||_0x585d52['fpSKV'](_0x548465,void 0x0)?void 0x0:_0x548465[_0x1512(0x5c)],-0x8))return console['log'](_0x585d52[_0x1512(0x6d)]),![];}}}return console[_0x1512(0x1a)](_0x585d52[_0x1512(0x70)],_0x548465[_0x1512(0x1e)]),![];}else return _0x2d73fa['log'](_0x585d52[_0x1512(0x66)]),![];}};exports[_0x1512(0x71)]=storePinWithBiometric;const retrievePinWithBiometric=async()=>{const _0x116667={'WCPVY':_0x1512(0x72),'UMGBf':function(_0x4b274b,_0x320aa7){return _0x4b274b&&_0x320aa7;},'Gohey':function(_0x494a5e,_0x5a2ac7){return _0x494a5e===_0x5a2ac7;},'paVyA':'object','jkcFm':function(_0x2c4246,_0x5ea4f6){return _0x2c4246!==_0x5ea4f6;},'gaBMM':function(_0x1d046f,_0x422f83){return _0x1d046f==_0x422f83;},'CLpxv':_0x1512(0x5),'vCXeM':'🔓\x20Retrieving\x20PIN\x20with\x20biometric\x20authentication...','eIJgB':_0x1512(0x73),'vRBme':_0x1512(0x74),'FlIIk':_0x1512(0x75),'FbBIY':'❌\x20Error\x20retrieving\x20PIN\x20with\x20biometric:','nCfAG':function(_0x2aab3a,_0x5a9425){return _0x2aab3a!==_0x5a9425;},'MiQfs':_0x1512(0x76),'QKmkO':_0x1512(0x77),'nxaGE':function(_0xf1f2eb,_0x2f4283){return _0xf1f2eb!==_0x2f4283;},'BtUKL':function(_0x35acf1,_0x2ab483){return _0x35acf1!==_0x2ab483;},'ZzGFp':_0x1512(0x23)};try{console[_0x1512(0x25)](_0x116667[_0x1512(0x78)]);const _0x4b75f6=await Keychain['getGenericPassword']({'service':PIN_SERVICE_KEY});return _0x4b75f6&&_0x4b75f6['password']?_0x116667['Gohey'](_0x116667[_0x1512(0x79)],_0x1512(0x7a))?(_0x4d4ff9['log'](_0x116667[_0x1512(0x7b)]),null):(console['log'](_0x116667[_0x1512(0x7c)]),_0x4b75f6[_0x1512(0x7d)]):(console[_0x1512(0x25)](_0x116667['FlIIk']),null);}catch(_0x57b8e8){var _0x44bfa8,_0x17a13e;console['error'](_0x116667[_0x1512(0x7e)],_0x57b8e8);if(_0x116667[_0x1512(0x7f)](_0x57b8e8,null)&&_0x57b8e8!==void 0x0&&_0x116667['nCfAG'](_0x44bfa8=_0x57b8e8[_0x1512(0x1e)],null)&&_0x116667[_0x1512(0x7f)](_0x44bfa8,void 0x0)&&_0x44bfa8[_0x1512(0x20)](_0x1512(0x14))){if(_0x116667[_0x1512(0x80)]!==_0x116667['QKmkO'])return console[_0x1512(0x25)](_0x1512(0x72)),null;else{const _0x36bf14={'aFkDZ':function(_0x372871,_0x5ea81c){return _0x116667[_0x1512(0x81)](_0x372871,_0x5ea81c);},'VCiwV':function(_0x238581,_0x3cecbd){return _0x116667['Gohey'](_0x238581,_0x3cecbd);},'lBiHb':function(_0x29dcb8,_0x3b56c3){return _0x29dcb8!=_0x3b56c3;},'dkoVK':_0x116667[_0x1512(0x82)],'xSZHF':function(_0x3b5417,_0x5a61c2){return _0x116667[_0x1512(0x83)](_0x3b5417,_0x5a61c2);},'wreyF':'default'};if(_0x116667[_0x1512(0x84)](_0x116667[_0x1512(0x85)],typeof _0x4731d2))var _0x5075d6=new _0x13d4e8(),_0x6b0070=new _0xcdb77a();return(_0x40ef39=function(_0x5944d3,_0x27067f){if(_0x36bf14[_0x1512(0x86)](!_0x27067f,_0x5944d3)&&_0x5944d3[_0x1512(0x0)])return _0x5944d3;var _0x584ac2,_0x4469a7,_0x32e5ed={'__proto__':null,'default':_0x5944d3};if(_0x36bf14['VCiwV'](null,_0x5944d3)||_0x36bf14[_0x1512(0x87)](_0x36bf14[_0x1512(0x88)],typeof _0x5944d3)&&_0x36bf14[_0x1512(0x87)](_0x1512(0x5),typeof _0x5944d3))return _0x32e5ed;if(_0x584ac2=_0x27067f?_0x6b0070:_0x5075d6){if(_0x584ac2[_0x1512(0x89)](_0x5944d3))return _0x584ac2[_0x1512(0x10)](_0x5944d3);_0x584ac2[_0x1512(0x9)](_0x5944d3,_0x32e5ed);}for(const _0x50b90a in _0x5944d3)_0x36bf14[_0x1512(0x8a)](_0x36bf14[_0x1512(0x8b)],_0x50b90a)&&{}[_0x1512(0xc)][_0x1512(0xd)](_0x5944d3,_0x50b90a)&&((_0x4469a7=(_0x584ac2=_0x59a688['defineProperty'])&&_0x2347e8['getOwnPropertyDescriptor'](_0x5944d3,_0x50b90a))&&(_0x4469a7['get']||_0x4469a7['set'])?_0x584ac2(_0x32e5ed,_0x50b90a,_0x4469a7):_0x32e5ed[_0x50b90a]=_0x5944d3[_0x50b90a]);return _0x32e5ed;})(_0x576c57,_0x804bd5);}}else{if(_0x116667['nxaGE'](_0x57b8e8,null)&&_0x116667['BtUKL'](_0x57b8e8,void 0x0)&&_0x116667['BtUKL'](_0x17a13e=_0x57b8e8[_0x1512(0x1e)],null)&&_0x116667[_0x1512(0x8c)](_0x17a13e,void 0x0)&&_0x17a13e[_0x1512(0x20)](_0x1512(0x65)))return console[_0x1512(0x25)](_0x116667[_0x1512(0x8d)]),null;}return null;}};exports[_0x1512(0x1)]=retrievePinWithBiometric;const isPinStored=async()=>{const _0x4a92a4={'LBwxU':function(_0x2fec05,_0x53fcfe){return _0x2fec05!==_0x53fcfe;},'VUrVN':'cWTYF','ZXLjR':_0x1512(0x8e)};try{if(_0x4a92a4['LBwxU']('cWTYF',_0x4a92a4[_0x1512(0x8f)])){if(_0x3586a8[_0x1512(0x89)](_0x16bd57))return _0xcdeb16[_0x1512(0x10)](_0x21454c);_0x1e7fe6['set'](_0x498da7,_0x47c6fc);}else{const _0x317b84=await Keychain['getGenericPassword']({'service':PIN_SERVICE_KEY});return!!(_0x317b84&&_0x317b84[_0x1512(0x7d)]);}}catch(_0xb4d36f){return console[_0x1512(0x1a)](_0x4a92a4['ZXLjR'],_0xb4d36f),![];}};exports[_0x1512(0x2)]=isPinStored;const removePinFromStorage=async()=>{const _0x15a521={'OdwjD':_0x1512(0x74),'ztEAV':function(_0xa3b941,_0x3d1517){return _0xa3b941!==_0x3d1517;},'BFdln':_0x1512(0x90),'SHwkt':_0x1512(0x91),'buEqL':_0x1512(0x92)};try{return _0x15a521[_0x1512(0x93)](_0x15a521[_0x1512(0x94)],_0x1512(0x90))?(_0x58fd0e[_0x1512(0x25)](_0x15a521[_0x1512(0x95)]),_0x27c30d[_0x1512(0x7d)]):(console['log'](_0x15a521['SHwkt']),await Keychain[_0x1512(0x96)]({'service':PIN_SERVICE_KEY}),console[_0x1512(0x25)](_0x15a521[_0x1512(0x97)]),!![]);}catch(_0x521be7){return console['error'](_0x1512(0x2f),_0x521be7),![];}};function _0x13d1(){const _0x132829=['__esModule','retrievePinWithBiometric','isPinStored','isBiometricAvailable','object','function','nvhwg','ASviB','YLhpO','set','wVbbD','default','hasOwnProperty','call','defineProperty','getOwnPropertyDescriptor','get','lgmCn','OnairosEventsPIN','user_pin','UserCancel','eKRKa','📱\x20Biometric\x20support:','❌\x20Error\x20checking\x20biometric\x20availability:','urcTL','OGKLJ','error','❌\x20Error\x20retrieving\x20PIN\x20with\x20biometric:','YGGai','artKI','message','nEOUp','includes','LNXjk','COFlJ','📱\x20Biometric\x20not\x20available','getSupportedBiometryType','log','uKpGw','BIOMETRY_TYPE','GibXv','TOUCH_ID','FINGERPRINT','FACE','BulcB','IRIS','zbohS','❌\x20Error\x20removing\x20PIN\x20from\x20storage:','🔒\x20Face\x20ID\x20locked\x20out\x20-\x20too\x20many\x20failed\x20attempts','🔐\x20Starting\x20Face\x20ID\x20authentication\x20for\x20PIN\x20storage...','❌\x20Face\x20ID/Touch\x20ID\x20not\x20available\x20on\x20this\x20device','📱\x20Face\x20ID\x20available,\x20showing\x20authentication\x20prompt...','ios','Cancel','android','👤\x20Requesting\x20Face\x20ID\x20authentication...','✅\x20Face\x20ID\x20authentication\x20successful\x20-\x20PIN\x20stored\x20securely','🔍\x20Keychain\x20storage\x20result:','CZvPJ','yNXvF','❌\x20Face\x20ID\x20authentication\x20failed:','❌\x20Error\x20details:','tRLrt','RdXYB','🚫\x20Face\x20ID\x20authentication\x20failed','❌\x20Unknown\x20Face\x20ID\x20error:','OWCUA','eWWGR','wHWlo','RtiZj','aBAXR','AyIdN','ACCESS_CONTROL','AUTHENTICATION_TYPE','BIOMETRICS','ZHisi','OctFs','Authenticate\x20with\x20Face\x20ID\x20to\x20secure\x20your\x20PIN','zKQwu','Platform','HlSZn','Authenticate\x20with\x20biometric\x20to\x20secure\x20your\x20PIN','Zkrko','vqMaj','setGenericPassword','CUchG','LbxTP','RKeMy','wCPli','Hqlxt','NhhpK','SebsY','code','domain','SGOaN','tkNZq','EWtwU','YWaYR','zdmHJ','YBUFK','HunYJ','BiometryNotAvailable','MYUqi','UyxpA','kpllp','Tgroy','qfzvV','uMHHq','AtEEy','oVpQS','QgDkk','BiometryLockout','JqAdy','storePinWithBiometric','👤\x20User\x20cancelled\x20biometric\x20authentication','pqxzW','✅\x20PIN\x20retrieved\x20successfully','⚠️\x20No\x20PIN\x20found\x20in\x20secure\x20storage','qCCkS','ZpWZW','vCXeM','eIJgB','yAkwt','WCPVY','vRBme','password','FbBIY','nCfAG','MiQfs','UMGBf','paVyA','jkcFm','gaBMM','CLpxv','aFkDZ','lBiHb','dkoVK','has','xSZHF','wreyF','BtUKL','ZzGFp','❌\x20Error\x20checking\x20PIN\x20storage:','VUrVN','oOXgH','🗑️\x20Removing\x20PIN\x20from\x20secure\x20storage...','✅\x20PIN\x20removed\x20successfully','ztEAV','BFdln','OdwjD','resetGenericPassword','buEqL','removePinFromStorage','biometricPinService'];_0x13d1=function(){return _0x132829;};return _0x13d1();}exports[_0x1512(0x98)]=removePinFromStorage;const biometricPinService=exports[_0x1512(0x99)]={'storePinWithBiometric':storePinWithBiometric,'retrievePinWithBiometric':retrievePinWithBiometric,'isPinStored':isPinStored,'removePinFromStorage':removePinFromStorage,'isBiometricAvailable':isBiometricAvailable};
8
+ Object[_0x3ac3(0x0)](exports,_0x3ac3(0x1),{'value':!![]}),exports[_0x3ac3(0x2)]=exports['retrievePinWithBiometric']=exports[_0x3ac3(0x3)]=exports[_0x3ac3(0x4)]=exports[_0x3ac3(0x5)]=exports[_0x3ac3(0x6)]=void 0x0;var Keychain=_interopRequireWildcard(__ONAIROS_REQ_FUNC__(0x0)),_reactNative=__ONAIROS_REQ_FUNC__(0x1);function _interopRequireWildcard(_0x48d6c4,_0x5d410e){const _0x319b8f={'dezTh':_0x3ac3(0x7),'qkSvH':function(_0x6b42,_0xc801e1){return _0x6b42===_0xc801e1;},'Qicfk':_0x3ac3(0x8),'oeHNb':function(_0x3b715f,_0x2280bb){return _0x3b715f&&_0x2280bb;},'xViNl':function(_0x4d6ae4,_0x12297f){return _0x4d6ae4!=_0x12297f;},'YxqaR':_0x3ac3(0x9),'oQIiF':function(_0x463de9,_0x44f1ca){return _0x463de9!==_0x44f1ca;},'WDXME':_0x3ac3(0xa),'HCLaT':_0x3ac3(0xb),'nsjFt':function(_0x517334,_0x5f3415,_0x32fdd1,_0x217c0f){return _0x517334(_0x5f3415,_0x32fdd1,_0x217c0f);},'zPZfD':function(_0xaaa667,_0x4a3757){return _0xaaa667==_0x4a3757;}};if(_0x319b8f['zPZfD'](_0x319b8f[_0x3ac3(0xc)],typeof WeakMap))var _0x1c15d6=new WeakMap(),_0x16e4ac=new WeakMap();return(_interopRequireWildcard=function(_0x3c908d,_0x5abf32){if(_0x319b8f[_0x3ac3(0xd)](_0x319b8f['Qicfk'],_0x319b8f[_0x3ac3(0xe)])){if(_0x319b8f[_0x3ac3(0xf)](!_0x5abf32,_0x3c908d)&&_0x3c908d[_0x3ac3(0x1)])return _0x3c908d;var _0x3c239b,_0x1ca08c,_0x5865cc={'__proto__':null,'default':_0x3c908d};if(null===_0x3c908d||_0x319b8f[_0x3ac3(0x10)](_0x3ac3(0x11),typeof _0x3c908d)&&_0x319b8f[_0x3ac3(0x10)](_0x319b8f['YxqaR'],typeof _0x3c908d))return _0x5865cc;if(_0x3c239b=_0x5abf32?_0x16e4ac:_0x1c15d6){if(_0x319b8f[_0x3ac3(0x12)](_0x3ac3(0xa),_0x319b8f['WDXME']))return _0x5b1233[_0x3ac3(0x13)](_0x3ac3(0x14)),null;else{if(_0x3c239b[_0x3ac3(0x15)](_0x3c908d))return _0x3c239b['get'](_0x3c908d);_0x3c239b[_0x3ac3(0x16)](_0x3c908d,_0x5865cc);}}for(const _0x3a3ffd in _0x3c908d)_0x319b8f[_0x3ac3(0x17)]!==_0x3a3ffd&&{}['hasOwnProperty'][_0x3ac3(0x18)](_0x3c908d,_0x3a3ffd)&&((_0x1ca08c=(_0x3c239b=Object[_0x3ac3(0x0)])&&Object[_0x3ac3(0x19)](_0x3c908d,_0x3a3ffd))&&(_0x1ca08c[_0x3ac3(0x1a)]||_0x1ca08c[_0x3ac3(0x16)])?_0x319b8f[_0x3ac3(0x1b)](_0x3c239b,_0x5865cc,_0x3a3ffd,_0x1ca08c):_0x5865cc[_0x3a3ffd]=_0x3c908d[_0x3a3ffd]);return _0x5865cc;}else return _0x2a178e[_0x3ac3(0x13)](_0x319b8f['dezTh']),null;})(_0x48d6c4,_0x5d410e);}const PIN_SERVICE_KEY=_0x3ac3(0x1c),PIN_USERNAME=_0x3ac3(0x1d),isBiometricAvailable=async()=>{const _0x1fbdc3={'GtzxH':'📱\x20Biometric\x20support:','zbDMW':function(_0x5f0984,_0x20272f){return _0x5f0984===_0x20272f;},'VDxtB':function(_0x13b76c,_0x13f8e3){return _0x13b76c===_0x13f8e3;},'ZjFrx':function(_0x2a9076,_0x233ea6){return _0x2a9076===_0x233ea6;},'Volnw':_0x3ac3(0x1e)};try{const _0x18f7a6=await Keychain[_0x3ac3(0x1f)]();return console[_0x3ac3(0x13)](_0x1fbdc3['GtzxH'],_0x18f7a6),_0x1fbdc3[_0x3ac3(0x20)](_0x18f7a6,Keychain[_0x3ac3(0x21)]['FACE_ID'])||_0x1fbdc3[_0x3ac3(0x22)](_0x18f7a6,Keychain[_0x3ac3(0x21)][_0x3ac3(0x23)])||_0x1fbdc3[_0x3ac3(0x24)](_0x18f7a6,Keychain[_0x3ac3(0x21)][_0x3ac3(0x25)])||_0x18f7a6===Keychain['BIOMETRY_TYPE'][_0x3ac3(0x26)]||_0x1fbdc3[_0x3ac3(0x20)](_0x18f7a6,Keychain[_0x3ac3(0x21)][_0x3ac3(0x27)]);}catch(_0x42d414){return console[_0x3ac3(0x28)](_0x1fbdc3[_0x3ac3(0x29)],_0x42d414),![];}};exports[_0x3ac3(0x5)]=isBiometricAvailable;const storePinWithBiometric=async _0x47c233=>{const _0x13a3ba={'JZjMc':_0x3ac3(0x2a),'ISvSz':_0x3ac3(0x2b),'RKlCm':_0x3ac3(0x2c),'NpJtr':_0x3ac3(0x2d),'cGETO':function(_0x5b8726,_0x341fd6){return _0x5b8726===_0x341fd6;},'WKkUh':_0x3ac3(0x2e),'NFOva':_0x3ac3(0x2f),'PHjdw':function(_0x32c8f7,_0xa03080){return _0x32c8f7===_0xa03080;},'Jjyvh':_0x3ac3(0x30),'dNfFc':'Authenticate\x20with\x20biometric\x20to\x20secure\x20your\x20PIN','YieCR':_0x3ac3(0x31),'qJUWd':_0x3ac3(0x32),'RoHEr':_0x3ac3(0x33),'zQiis':function(_0xc468f3,_0x10ce92){return _0xc468f3===_0x10ce92;},'OoqzV':_0x3ac3(0x34),'rdXKn':_0x3ac3(0x35),'Fsniy':_0x3ac3(0x36),'DVDmR':'❌\x20Error\x20details:','jXHvX':function(_0x3701cb,_0x24176a){return _0x3701cb!==_0x24176a;},'aMWOg':function(_0x2c0758,_0x9f7f52){return _0x2c0758!==_0x9f7f52;},'mGpJl':function(_0x4993ef,_0xf465b6){return _0x4993ef!==_0xf465b6;},'wWsco':_0x3ac3(0x37),'GhZzH':function(_0xec0963,_0x454a5d){return _0xec0963===_0x454a5d;},'lhRry':function(_0x3f6b41,_0x2a2b0d){return _0x3f6b41===_0x2a2b0d;},'spTfe':'MyvRo','itWVR':_0x3ac3(0x38),'NIpPp':function(_0xdf1a01,_0x31a295){return _0xdf1a01!==_0x31a295;},'YHcBp':function(_0x3dfba4,_0x16dffe){return _0x3dfba4!==_0x16dffe;},'Xkrap':_0x3ac3(0x39),'FXpWe':function(_0x9a51cb,_0x5a0ada){return _0x9a51cb===_0x5a0ada;},'fGonl':_0x3ac3(0x3a),'NrwHf':function(_0x4f6118,_0x9bab60){return _0x4f6118!==_0x9bab60;},'zGdRT':function(_0x57591e,_0x1bc417){return _0x57591e!==_0x1bc417;},'MeEVq':_0x3ac3(0x3b),'drqDJ':function(_0x40903,_0x58180b){return _0x40903===_0x58180b;},'XuTAU':function(_0x33c01d,_0x9732e5){return _0x33c01d!==_0x9732e5;},'LTmlC':function(_0x5d37e0,_0x2b4b88){return _0x5d37e0!==_0x2b4b88;},'kBeQL':_0x3ac3(0x3c),'ZoRbS':function(_0x2619a7,_0x2d502e){return _0x2619a7===_0x2d502e;},'UxOpz':'aWGJU','TsJuk':_0x3ac3(0x3d)};try{console['log'](_0x3ac3(0x3e));const _0x151866=await isBiometricAvailable();if(!_0x151866)return console[_0x3ac3(0x28)](_0x3ac3(0x3f)),![];console[_0x3ac3(0x13)](_0x13a3ba[_0x3ac3(0x40)]);const _0x65fef2={'accessControl':Keychain[_0x3ac3(0x41)]['BIOMETRY_CURRENT_SET'],'authenticationType':Keychain['AUTHENTICATION_TYPE'][_0x3ac3(0x42)],'touchID':!![],'showModal':!![],'kLocalizedFallbackTitle':'',..._0x13a3ba[_0x3ac3(0x43)](_reactNative['Platform']['OS'],_0x13a3ba['WKkUh'])&&{'localizedPrompt':'Authenticate\x20with\x20Face\x20ID\x20to\x20secure\x20your\x20PIN','localizedCancel':_0x13a3ba[_0x3ac3(0x44)]},..._0x13a3ba[_0x3ac3(0x45)](_reactNative['Platform']['OS'],_0x13a3ba['Jjyvh'])&&{'promptMessage':_0x13a3ba[_0x3ac3(0x46)],'cancelButtonText':_0x13a3ba[_0x3ac3(0x44)]}};console[_0x3ac3(0x13)](_0x13a3ba[_0x3ac3(0x47)]);const _0x4849a8=await Keychain[_0x3ac3(0x48)](PIN_USERNAME,_0x47c233,{'service':PIN_SERVICE_KEY,..._0x65fef2});return console[_0x3ac3(0x13)](_0x13a3ba[_0x3ac3(0x49)]),console['log'](_0x13a3ba['RoHEr'],_0x4849a8),!![];}catch(_0x1802b8){if(_0x13a3ba[_0x3ac3(0x4a)](_0x13a3ba['OoqzV'],_0x13a3ba[_0x3ac3(0x4b)]))return _0xca311d[_0x3ac3(0x28)](_0x13a3ba[_0x3ac3(0x4c)],_0x5ee397),![];else{var _0xb0acf4,_0x5ccb82,_0x3bf6a3,_0x4584c2;console[_0x3ac3(0x28)](_0x13a3ba['Fsniy'],_0x1802b8),console[_0x3ac3(0x28)](_0x13a3ba[_0x3ac3(0x4d)],{'message':_0x1802b8[_0x3ac3(0x4e)],'code':_0x1802b8['code'],'domain':_0x1802b8[_0x3ac3(0x4f)],'userInfo':_0x1802b8[_0x3ac3(0x50)]});if(_0x13a3ba[_0x3ac3(0x51)](_0x1802b8,null)&&_0x13a3ba[_0x3ac3(0x52)](_0x1802b8,void 0x0)&&_0x13a3ba[_0x3ac3(0x53)](_0xb0acf4=_0x1802b8[_0x3ac3(0x4e)],null)&&_0x13a3ba[_0x3ac3(0x52)](_0xb0acf4,void 0x0)&&_0xb0acf4[_0x3ac3(0x54)](_0x13a3ba[_0x3ac3(0x55)])||_0x13a3ba[_0x3ac3(0x56)](_0x13a3ba['lhRry'](_0x1802b8,null)||_0x13a3ba[_0x3ac3(0x43)](_0x1802b8,void 0x0)?void 0x0:_0x1802b8[_0x3ac3(0x57)],-0x80))return _0x13a3ba[_0x3ac3(0x58)]!==_0x13a3ba[_0x3ac3(0x59)]?(console[_0x3ac3(0x13)](_0x3ac3(0x5a)),![]):(_0x28937e[_0x3ac3(0x13)](_0x13a3ba[_0x3ac3(0x5b)]),![]);else{if(_0x13a3ba['NIpPp'](_0x1802b8,null)&&_0x13a3ba[_0x3ac3(0x5c)](_0x1802b8,void 0x0)&&_0x13a3ba[_0x3ac3(0x5d)](_0x5ccb82=_0x1802b8[_0x3ac3(0x4e)],null)&&_0x13a3ba['NIpPp'](_0x5ccb82,void 0x0)&&_0x5ccb82['includes'](_0x13a3ba[_0x3ac3(0x5e)])||_0x13a3ba[_0x3ac3(0x5f)](_0x13a3ba[_0x3ac3(0x60)](_0x1802b8,null)||_0x13a3ba[_0x3ac3(0x60)](_0x1802b8,void 0x0)?void 0x0:_0x1802b8[_0x3ac3(0x57)],-0x6))return console[_0x3ac3(0x13)](_0x13a3ba['fGonl']),![];else{if(_0x1802b8!==null&&_0x13a3ba['NrwHf'](_0x1802b8,void 0x0)&&(_0x3bf6a3=_0x1802b8[_0x3ac3(0x4e)])!==null&&_0x13a3ba[_0x3ac3(0x61)](_0x3bf6a3,void 0x0)&&_0x3bf6a3[_0x3ac3(0x54)](_0x13a3ba['MeEVq'])||_0x13a3ba[_0x3ac3(0x56)](_0x1802b8===null||_0x13a3ba[_0x3ac3(0x62)](_0x1802b8,void 0x0)?void 0x0:_0x1802b8[_0x3ac3(0x57)],-0x1))return console[_0x3ac3(0x13)](_0x3ac3(0x63)),![];else{if(_0x1802b8!==null&&_0x13a3ba['jXHvX'](_0x1802b8,void 0x0)&&_0x13a3ba['XuTAU'](_0x4584c2=_0x1802b8[_0x3ac3(0x4e)],null)&&_0x13a3ba['LTmlC'](_0x4584c2,void 0x0)&&_0x4584c2['includes'](_0x13a3ba[_0x3ac3(0x64)])||_0x13a3ba[_0x3ac3(0x65)](_0x13a3ba[_0x3ac3(0x65)](_0x1802b8,null)||_0x1802b8===void 0x0?void 0x0:_0x1802b8['code'],-0x8))return _0x13a3ba[_0x3ac3(0x66)](_0x13a3ba[_0x3ac3(0x67)],_0x13a3ba[_0x3ac3(0x67)])?(_0x225311[_0x3ac3(0x13)](_0x13a3ba[_0x3ac3(0x68)]),null):(console[_0x3ac3(0x13)](_0x13a3ba[_0x3ac3(0x5b)]),![]);}}}return console['error'](_0x13a3ba[_0x3ac3(0x69)],_0x1802b8['message']),![];}}};exports[_0x3ac3(0x2)]=storePinWithBiometric;const retrievePinWithBiometric=async()=>{const _0x53fc75={'XIWOm':function(_0x3ebf18,_0x40b9c7){return _0x3ebf18&&_0x40b9c7;},'QXkcr':function(_0x50a43a,_0x3d15f0){return _0x50a43a===_0x3d15f0;},'eBEwX':function(_0x3e7104,_0x3e8035){return _0x3e7104!=_0x3e8035;},'UBYeo':_0x3ac3(0x11),'FHXdT':_0x3ac3(0x9),'AeFZF':_0x3ac3(0xb),'ABZtr':_0x3ac3(0x6a),'xlLsh':_0x3ac3(0x6b),'wsuCw':'reoXL','ErGBF':'JdBfw','dCLmQ':_0x3ac3(0x6c),'qDwRy':_0x3ac3(0x6d),'OolvQ':function(_0xfc3f3,_0x45f552){return _0xfc3f3!==_0x45f552;},'Wbkzr':function(_0x4db4ba,_0x483140){return _0x4db4ba!==_0x483140;},'iAErn':'UserCancel','UbVTw':'BiometryNotAvailable','mXrki':'mBPmO','qGUxP':_0x3ac3(0x7)};try{console[_0x3ac3(0x13)](_0x3ac3(0x6e));const _0x50a8c1=await Keychain['getGenericPassword']({'service':PIN_SERVICE_KEY});if(_0x50a8c1&&_0x50a8c1[_0x3ac3(0x6f)])return console[_0x3ac3(0x13)](_0x53fc75[_0x3ac3(0x70)]),_0x50a8c1[_0x3ac3(0x6f)];else{if(_0x53fc75['QXkcr'](_0x53fc75[_0x3ac3(0x71)],_0x53fc75['ErGBF'])){if(_0x3ef342['has'](_0x418aad))return _0x2a206c[_0x3ac3(0x1a)](_0x7ba0bd);_0x511721[_0x3ac3(0x16)](_0x1ae8b1,_0x53d6c0);}else return console[_0x3ac3(0x13)](_0x3ac3(0x2c)),null;}}catch(_0x119493){if(_0x53fc75['dCLmQ']!=='YYGAT'){if(_0x53fc75[_0x3ac3(0x72)](!_0x3e5131,_0x52908b)&&_0x4b16af[_0x3ac3(0x1)])return _0x101abc;var _0x10c117,_0x16e59,_0x275485={'__proto__':null,'default':_0x1032f2};if(_0x53fc75[_0x3ac3(0x73)](null,_0x352446)||_0x53fc75[_0x3ac3(0x74)](_0x53fc75[_0x3ac3(0x75)],typeof _0x2fea31)&&_0x53fc75[_0x3ac3(0x74)](_0x53fc75[_0x3ac3(0x76)],typeof _0x4d0a43))return _0x275485;if(_0x10c117=_0xc10b08?_0x47625d:_0x157e73){if(_0x10c117[_0x3ac3(0x15)](_0x3ebd66))return _0x10c117['get'](_0x3bf17c);_0x10c117[_0x3ac3(0x16)](_0x3f1929,_0x275485);}for(const _0x9c02b0 in _0x57f03f)_0x53fc75[_0x3ac3(0x77)]!==_0x9c02b0&&{}[_0x3ac3(0x78)][_0x3ac3(0x18)](_0x923a30,_0x9c02b0)&&((_0x16e59=(_0x10c117=_0x52eb42[_0x3ac3(0x0)])&&_0x1bb7e9[_0x3ac3(0x19)](_0x50d973,_0x9c02b0))&&(_0x16e59['get']||_0x16e59['set'])?_0x10c117(_0x275485,_0x9c02b0,_0x16e59):_0x275485[_0x9c02b0]=_0x5e3328[_0x9c02b0]);return _0x275485;}else{var _0x31e6aa,_0x3b4bdd;console[_0x3ac3(0x28)](_0x53fc75[_0x3ac3(0x79)],_0x119493);if(_0x53fc75['OolvQ'](_0x119493,null)&&_0x119493!==void 0x0&&_0x53fc75[_0x3ac3(0x7a)](_0x31e6aa=_0x119493[_0x3ac3(0x4e)],null)&&_0x53fc75[_0x3ac3(0x7b)](_0x31e6aa,void 0x0)&&_0x31e6aa['includes'](_0x53fc75[_0x3ac3(0x7c)]))return console[_0x3ac3(0x13)](_0x3ac3(0x14)),null;else{if(_0x53fc75[_0x3ac3(0x7b)](_0x119493,null)&&_0x53fc75[_0x3ac3(0x7a)](_0x119493,void 0x0)&&(_0x3b4bdd=_0x119493[_0x3ac3(0x4e)])!==null&&_0x53fc75[_0x3ac3(0x7b)](_0x3b4bdd,void 0x0)&&_0x3b4bdd[_0x3ac3(0x54)](_0x53fc75[_0x3ac3(0x7d)]))return _0x53fc75[_0x3ac3(0x7e)]===_0x53fc75['mXrki']?(console['log'](_0x53fc75[_0x3ac3(0x7f)]),null):(_0x5ebcfd[_0x3ac3(0x28)](_0x53fc75[_0x3ac3(0x80)],_0x138782),![]);}return null;}}};exports[_0x3ac3(0x81)]=retrievePinWithBiometric;const isPinStored=async()=>{const _0x560bde={'GwOoq':_0x3ac3(0x6a)};try{const _0x165f13=await Keychain['getGenericPassword']({'service':PIN_SERVICE_KEY});return!!(_0x165f13&&_0x165f13['password']);}catch(_0xefd25b){return console[_0x3ac3(0x28)](_0x560bde[_0x3ac3(0x82)],_0xefd25b),![];}};function _0x1419(){const _0x53a008=['defineProperty','__esModule','storePinWithBiometric','removePinFromStorage','isPinStored','isBiometricAvailable','biometricPinService','📱\x20Biometric\x20not\x20available','mjEmA','function','qklud','default','YxqaR','qkSvH','Qicfk','oeHNb','xViNl','object','oQIiF','log','👤\x20User\x20cancelled\x20biometric\x20authentication','has','set','HCLaT','call','getOwnPropertyDescriptor','get','nsjFt','OnairosEventsPIN','user_pin','❌\x20Error\x20checking\x20biometric\x20availability:','getSupportedBiometryType','zbDMW','BIOMETRY_TYPE','VDxtB','TOUCH_ID','ZjFrx','FINGERPRINT','FACE','IRIS','error','Volnw','❌\x20Error\x20removing\x20PIN\x20from\x20storage:','🔒\x20Face\x20ID\x20locked\x20out\x20-\x20too\x20many\x20failed\x20attempts','⚠️\x20No\x20PIN\x20found\x20in\x20secure\x20storage','📱\x20Face\x20ID\x20available,\x20showing\x20authentication\x20prompt...','ios','Cancel','android','👤\x20Requesting\x20Face\x20ID\x20authentication...','✅\x20Face\x20ID\x20authentication\x20successful\x20-\x20PIN\x20stored\x20securely','🔍\x20Keychain\x20storage\x20result:','jSkve','XAWbV','❌\x20Face\x20ID\x20authentication\x20failed:','UserCancel','oHvkq','BiometryNotAvailable','📱\x20Face\x20ID/Touch\x20ID\x20not\x20available','AuthenticationFailed','BiometryLockout','❌\x20Unknown\x20Face\x20ID\x20error:','🔐\x20Starting\x20Face\x20ID\x20authentication\x20for\x20PIN\x20storage...','❌\x20Face\x20ID/Touch\x20ID\x20not\x20available\x20on\x20this\x20device','NpJtr','ACCESS_CONTROL','BIOMETRICS','cGETO','NFOva','PHjdw','dNfFc','YieCR','setGenericPassword','qJUWd','zQiis','rdXKn','JZjMc','DVDmR','message','domain','userInfo','jXHvX','aMWOg','mGpJl','includes','wWsco','GhZzH','code','spTfe','itWVR','👤\x20User\x20cancelled\x20Face\x20ID\x20authentication','ISvSz','YHcBp','NIpPp','Xkrap','lhRry','FXpWe','zGdRT','drqDJ','🚫\x20Face\x20ID\x20authentication\x20failed','kBeQL','ZoRbS','NrwHf','UxOpz','RKlCm','TsJuk','❌\x20Error\x20checking\x20PIN\x20storage:','✅\x20PIN\x20retrieved\x20successfully','YYGAT','❌\x20Error\x20retrieving\x20PIN\x20with\x20biometric:','🔓\x20Retrieving\x20PIN\x20with\x20biometric\x20authentication...','password','xlLsh','wsuCw','XIWOm','QXkcr','eBEwX','UBYeo','FHXdT','AeFZF','hasOwnProperty','qDwRy','OolvQ','Wbkzr','iAErn','UbVTw','mXrki','qGUxP','ABZtr','retrievePinWithBiometric','GwOoq','vlGTY','🗑️\x20Removing\x20PIN\x20from\x20secure\x20storage...','fnMRJ','VPnMe','Bfigy','pcZgj','qhDul','TzEjj','QCilB','dlSuV','kzTYl','mooFB','zmnVx','zCfdY','PiNAF','ZduoI'];_0x1419=function(){return _0x53a008;};return _0x1419();}exports[_0x3ac3(0x4)]=isPinStored;const removePinFromStorage=async()=>{const _0x2c5f7d={'qhDul':function(_0xc5e62f,_0x558e05){return _0xc5e62f===_0x558e05;},'TzEjj':function(_0x22e774,_0x4d69ef){return _0x22e774!=_0x4d69ef;},'kTRmT':_0x3ac3(0x11),'QCilB':function(_0x155598,_0x569530){return _0x155598!=_0x569530;},'pcZgj':_0x3ac3(0x9),'dlSuV':function(_0x3b0513,_0x17c394){return _0x3b0513!==_0x17c394;},'kzTYl':function(_0x36a055,_0x4648ae,_0x581a78,_0x3fd2e1){return _0x36a055(_0x4648ae,_0x581a78,_0x3fd2e1);},'Bfigy':function(_0x3f5dea,_0x2ec39f){return _0x3f5dea==_0x2ec39f;},'PiNAF':'❌\x20Error\x20checking\x20biometric\x20availability:','fIwjQ':function(_0x9968ad,_0x4e685f){return _0x9968ad!==_0x4e685f;},'VPnMe':_0x3ac3(0x83),'nDkGB':_0x3ac3(0x84),'mooFB':'✅\x20PIN\x20removed\x20successfully','zmnVx':function(_0x12c869,_0x911199){return _0x12c869!==_0x911199;},'zCfdY':_0x3ac3(0x85),'ZduoI':_0x3ac3(0x2a)};try{if(_0x2c5f7d['fIwjQ'](_0x2c5f7d[_0x3ac3(0x86)],_0x2c5f7d[_0x3ac3(0x86)])){if(_0x2c5f7d[_0x3ac3(0x87)](_0x2c5f7d[_0x3ac3(0x88)],typeof _0x5f33f2))var _0x568bd7=new _0x3065c0(),_0x338ab9=new _0x296ca5();return(_0x48006f=function(_0x5b2e3a,_0x37d5d9){if(!_0x37d5d9&&_0x5b2e3a&&_0x5b2e3a[_0x3ac3(0x1)])return _0x5b2e3a;var _0x4a854f,_0x1e173a,_0x2863aa={'__proto__':null,'default':_0x5b2e3a};if(_0x2c5f7d[_0x3ac3(0x89)](null,_0x5b2e3a)||_0x2c5f7d[_0x3ac3(0x8a)](_0x2c5f7d['kTRmT'],typeof _0x5b2e3a)&&_0x2c5f7d[_0x3ac3(0x8b)](_0x2c5f7d['pcZgj'],typeof _0x5b2e3a))return _0x2863aa;if(_0x4a854f=_0x37d5d9?_0x338ab9:_0x568bd7){if(_0x4a854f[_0x3ac3(0x15)](_0x5b2e3a))return _0x4a854f[_0x3ac3(0x1a)](_0x5b2e3a);_0x4a854f[_0x3ac3(0x16)](_0x5b2e3a,_0x2863aa);}for(const _0x1c56ea in _0x5b2e3a)_0x2c5f7d[_0x3ac3(0x8c)]('default',_0x1c56ea)&&{}[_0x3ac3(0x78)][_0x3ac3(0x18)](_0x5b2e3a,_0x1c56ea)&&((_0x1e173a=(_0x4a854f=_0x4bbc17['defineProperty'])&&_0x41db0d['getOwnPropertyDescriptor'](_0x5b2e3a,_0x1c56ea))&&(_0x1e173a[_0x3ac3(0x1a)]||_0x1e173a[_0x3ac3(0x16)])?_0x2c5f7d[_0x3ac3(0x8d)](_0x4a854f,_0x2863aa,_0x1c56ea,_0x1e173a):_0x2863aa[_0x1c56ea]=_0x5b2e3a[_0x1c56ea]);return _0x2863aa;})(_0x2b9294,_0x2da546);}else return console[_0x3ac3(0x13)](_0x2c5f7d['nDkGB']),await Keychain['resetGenericPassword']({'service':PIN_SERVICE_KEY}),console['log'](_0x2c5f7d[_0x3ac3(0x8e)]),!![];}catch(_0x2c9341){return _0x2c5f7d[_0x3ac3(0x8f)](_0x2c5f7d['zCfdY'],_0x2c5f7d[_0x3ac3(0x90)])?(_0x3ed1f4[_0x3ac3(0x28)](_0x2c5f7d[_0x3ac3(0x91)],_0x28b166),![]):(console[_0x3ac3(0x28)](_0x2c5f7d[_0x3ac3(0x92)],_0x2c9341),![]);}};function _0x3ac3(_0x141986,_0x3ac3a4){_0x141986=_0x141986-0x0;const _0x47efb3=_0x1419();let _0x1e0e2a=_0x47efb3[_0x141986];return _0x1e0e2a;}exports[_0x3ac3(0x3)]=removePinFromStorage;const biometricPinService=exports[_0x3ac3(0x6)]={'storePinWithBiometric':storePinWithBiometric,'retrievePinWithBiometric':retrievePinWithBiometric,'isPinStored':isPinStored,'removePinFromStorage':removePinFromStorage,'isBiometricAvailable':isBiometricAvailable};
@@ -5,4 +5,4 @@ var __ONAIROS_REQ_REGISTRY__ = [
5
5
  require("react-native")
6
6
  ];
7
7
  function __ONAIROS_REQ_FUNC__(i) { return __ONAIROS_REQ_REGISTRY__[i]; }
8
- Object[_0x4f6c(0x0)](exports,_0x4f6c(0x1),{'value':!![]}),exports[_0x4f6c(0x2)]=void 0x0;var _chatGPTConversationService=__ONAIROS_REQ_FUNC__(0x0),_reactNative=__ONAIROS_REQ_FUNC__(0x1);const useChatGPTConversationExtractor=()=>{const _0x138fd6={'QlNjm':_0x4f6c(0x3),'MaEIG':function(_0x2bc8bf,_0x48bee0){return _0x2bc8bf>_0x48bee0;},'lcdrm':_0x4f6c(0x4),'uJxid':_0x4f6c(0x5),'fYIJB':_0x4f6c(0x6),'kBJZm':_0x4f6c(0x7),'lahaw':_0x4f6c(0x8),'ovvem':_0x4f6c(0x9),'BFgOU':'Username\x20is\x20required\x20to\x20export\x20ChatGPT\x20conversations.','BLQRG':_0x4f6c(0xa),'NJmSO':'ℹ️\x20[CHATGPT_EXTRACTOR]\x20No\x20conversations\x20to\x20export\x20-\x20treating\x20as\x20success\x20(connected)','DRRUN':_0x4f6c(0xb),'tPtbh':_0x4f6c(0xc),'ZfhEt':function(_0x13a830,_0x524ded){return _0x13a830-_0x524ded;},'jmgrm':_0x4f6c(0xd),'wjQvQ':_0x4f6c(0xe),'nnYMH':_0x4f6c(0xf),'FzLTt':_0x4f6c(0x10),'lVqWq':_0x4f6c(0x11),'XsBwE':_0x4f6c(0x12),'AEoaS':_0x4f6c(0x13),'GaTHx':_0x4f6c(0x14),'qLrvR':_0x4f6c(0x15),'tfwzo':function(_0x208e8e,_0x483c53){return _0x208e8e!==_0x483c53;},'zGYmr':_0x4f6c(0x16),'iaDvO':_0x4f6c(0x17),'ZaYyg':function(_0x1925ec,_0x204964){return _0x1925ec===_0x204964;},'PNUeg':function(_0x15ccec,_0xea0d87){return _0x15ccec===_0xea0d87;},'IVQEi':function(_0x55e4d4,_0x5288c1){return _0x55e4d4===_0x5288c1;},'NVYSC':function(_0x3e573e,_0x2435fe){return _0x3e573e===_0x2435fe;},'EJkvK':function(_0x25d769,_0x5293c1){return _0x25d769===_0x5293c1;},'zVRqj':function(_0x5d35db,_0x2a5d9e){return _0x5d35db===_0x2a5d9e;},'KpxJA':_0x4f6c(0x18),'UqfwN':_0x4f6c(0x19),'zDpsz':function(_0x4ea2c6,_0x305a6e){return _0x4ea2c6!==_0x305a6e;},'LWUOP':function(_0x402949,_0x5de253){return _0x402949!==_0x5de253;},'TFhSw':_0x4f6c(0x1a)},_0x16340f=async(_0x20f32c,_0x1c045e)=>{const _0x529f8a={'tyrue':_0x138fd6[_0x4f6c(0x1b)],'nxTAB':_0x4f6c(0x1c),'bECSg':function(_0x4e8461,_0x487ca7){return _0x138fd6['MaEIG'](_0x4e8461,_0x487ca7);},'ibcth':_0x4f6c(0x1d),'RCLRM':_0x138fd6[_0x4f6c(0x1e)]};console[_0x4f6c(0x1f)](_0x138fd6[_0x4f6c(0x20)]),console[_0x4f6c(0x1f)](_0x4f6c(0x21),_0x20f32c),console[_0x4f6c(0x1f)](_0x138fd6[_0x4f6c(0x22)],_0x1c045e[_0x4f6c(0x23)]);if(!_0x20f32c)return _0x4f6c(0x7)!==_0x138fd6[_0x4f6c(0x24)]?(_0x56939f['warn'](_0x529f8a['tyrue']),![]):(console[_0x4f6c(0x25)](_0x138fd6[_0x4f6c(0x26)]),_reactNative['Alert'][_0x4f6c(0x27)](_0x138fd6['ovvem'],_0x138fd6['BFgOU'],[{'text':'OK','style':_0x138fd6[_0x4f6c(0x28)]}]),![]);if(!_0x1c045e||_0x1c045e[_0x4f6c(0x23)]===0x0)return console[_0x4f6c(0x1f)](_0x138fd6[_0x4f6c(0x29)]),!![];const _0x2b3a7d=_0x1c045e[_0x4f6c(0x2a)](_0x4335bf=>{const _0x297585=_0x4335bf[_0x4f6c(0x2b)]&&_0x4335bf[_0x4f6c(0x2c)]&&Array['isArray'](_0x4335bf[_0x4f6c(0x2d)])&&_0x529f8a[_0x4f6c(0x2e)](_0x4335bf[_0x4f6c(0x2d)][_0x4f6c(0x23)],0x0);if(!_0x297585){if(_0x4f6c(0x2f)===_0x529f8a[_0x4f6c(0x30)])return _0x2f79fd[_0x4f6c(0x1f)](_0x529f8a[_0x4f6c(0x31)]),!![];else console[_0x4f6c(0x32)](_0x529f8a[_0x4f6c(0x33)],_0x4335bf);}return _0x297585;});if(_0x2b3a7d[_0x4f6c(0x23)]===0x0)return console['error'](_0x4f6c(0x34)),_reactNative[_0x4f6c(0x35)][_0x4f6c(0x27)](_0x138fd6[_0x4f6c(0x36)],_0x138fd6[_0x4f6c(0x37)],[{'text':'OK','style':_0x138fd6[_0x4f6c(0x28)]}]),![];_0x2b3a7d[_0x4f6c(0x23)]<_0x1c045e[_0x4f6c(0x23)]&&console[_0x4f6c(0x32)](_0x4f6c(0x38)+_0x138fd6[_0x4f6c(0x39)](_0x1c045e['length'],_0x2b3a7d[_0x4f6c(0x23)])+_0x4f6c(0x3a));try{console[_0x4f6c(0x1f)](_0x138fd6[_0x4f6c(0x3b)]);const _0x468213=await(0x0,_chatGPTConversationService['storeChatGPTConversations'])(_0x20f32c,_0x2b3a7d);return _0x468213['success']?(console[_0x4f6c(0x1f)](_0x4f6c(0x15)),console['log'](_0x138fd6['wjQvQ'],_0x468213[_0x4f6c(0x3c)]),!![]):(console['error'](_0x138fd6[_0x4f6c(0x3d)],_0x468213[_0x4f6c(0x25)]),_reactNative[_0x4f6c(0x35)]['alert'](_0x138fd6['FzLTt'],_0x468213['error']||_0x138fd6[_0x4f6c(0x3e)],[{'text':'OK','style':_0x138fd6[_0x4f6c(0x28)]}]),![]);}catch(_0x1f8d10){return console[_0x4f6c(0x25)](_0x138fd6['XsBwE'],_0x1f8d10),_reactNative['Alert'][_0x4f6c(0x27)](_0x138fd6[_0x4f6c(0x3f)],'Failed\x20to\x20connect\x20to\x20the\x20conversation\x20storage\x20service.\x20Please\x20check\x20your\x20network\x20connection.',[{'text':'OK','style':_0x4f6c(0xa)}]),![];}},_0x2dcfaf=async _0x1d385a=>{const _0x3960e0={'vSRZh':_0x138fd6[_0x4f6c(0x40)],'vDsHq':_0x4f6c(0xe)};if(_0x138fd6[_0x4f6c(0x41)](_0x138fd6[_0x4f6c(0x42)],_0x4f6c(0x43))){var _0x13ca30,_0x104121,_0x30874c;console[_0x4f6c(0x1f)](_0x138fd6['iaDvO']);if(!_0x1d385a)return console['warn'](_0x4f6c(0x3)),![];const _0x3ef447=(_0x1d385a===null||_0x138fd6['ZaYyg'](_0x1d385a,void 0x0)||_0x138fd6[_0x4f6c(0x44)](_0x13ca30=_0x1d385a['items'],null)||_0x138fd6[_0x4f6c(0x45)](_0x13ca30,void 0x0)?void 0x0:_0x13ca30[_0x4f6c(0x23)])||0x0,_0xb9b40e=(_0x1d385a===null||_0x138fd6[_0x4f6c(0x46)](_0x1d385a,void 0x0)||(_0x104121=_0x1d385a[_0x4f6c(0x47)])===null||_0x138fd6[_0x4f6c(0x48)](_0x104121,void 0x0)?void 0x0:_0x104121[_0x4f6c(0x23)])||0x0,_0x426157=(_0x138fd6[_0x4f6c(0x45)](_0x1d385a,null)||_0x138fd6[_0x4f6c(0x45)](_0x1d385a,void 0x0)||_0x138fd6[_0x4f6c(0x44)](_0x30874c=_0x1d385a[_0x4f6c(0x49)],null)||_0x30874c===void 0x0?void 0x0:_0x30874c[_0x4f6c(0x23)])||0x0;console[_0x4f6c(0x1f)](_0x4f6c(0x4a)+_0x3ef447+_0x4f6c(0x4b)+_0xb9b40e+_0x4f6c(0x4c)+_0x426157+_0x4f6c(0x4d));if(_0x138fd6[_0x4f6c(0x48)](_0x3ef447,0x0)&&_0x138fd6[_0x4f6c(0x46)](_0xb9b40e,0x0)&&_0x138fd6[_0x4f6c(0x4e)](_0x426157,0x0))return _0x138fd6[_0x4f6c(0x4f)](_0x138fd6[_0x4f6c(0x50)],'pavAZ')?(console[_0x4f6c(0x1f)](_0x4f6c(0x1c)),!![]):(_0x456f62[_0x4f6c(0x1f)](_0x3960e0['vSRZh']),_0x1ff009[_0x4f6c(0x1f)](_0x3960e0[_0x4f6c(0x51)],_0x1d3e4d[_0x4f6c(0x3c)]),!![]);try{if(_0x138fd6[_0x4f6c(0x41)](_0x4f6c(0x52),_0x4f6c(0x52)))return _0x4f9843[_0x4f6c(0x25)]('❌\x20[CHATGPT_EXTRACTOR]\x20No\x20valid\x20conversations\x20after\x20filtering'),_0x5b457c['Alert'][_0x4f6c(0x27)](_0x4f6c(0xb),_0x4f6c(0xc),[{'text':'OK','style':_0x138fd6[_0x4f6c(0x28)]}]),![];else{console[_0x4f6c(0x1f)](_0x138fd6[_0x4f6c(0x53)]);const _0x578e7e=await(0x0,_chatGPTConversationService[_0x4f6c(0x54)])(_0x1d385a);if(_0x578e7e[_0x4f6c(0x55)]){var _0x4b8172;return console[_0x4f6c(0x1f)]('✅\x20[CHATGPT_EXTRACTOR]\x20Memories\x20stored\x20successfully'),_0x138fd6[_0x4f6c(0x56)](_0x4b8172=_0x578e7e[_0x4f6c(0x3c)],null)&&_0x138fd6[_0x4f6c(0x56)](_0x4b8172,void 0x0)&&_0x4b8172['memoriesCount']&&console[_0x4f6c(0x1f)]('📋\x20[CHATGPT_EXTRACTOR]\x20Backend\x20stored\x20'+_0x578e7e[_0x4f6c(0x3c)][_0x4f6c(0x57)]+_0x4f6c(0x4d)),!![];}else return _0x138fd6[_0x4f6c(0x58)]('zbOpm',_0x4f6c(0x59))?(console['error'](_0x4f6c(0x5a),_0x578e7e[_0x4f6c(0x25)]),![]):(_0x7a6884[_0x4f6c(0x25)](_0x138fd6[_0x4f6c(0x5b)],_0x61d6e0),_0x1c5128[_0x4f6c(0x35)][_0x4f6c(0x27)](_0x138fd6[_0x4f6c(0x3f)],_0x138fd6[_0x4f6c(0x5c)],[{'text':'OK','style':_0x138fd6['BLQRG']}]),![]);}}catch(_0x3041c9){return console[_0x4f6c(0x25)](_0x138fd6[_0x4f6c(0x5d)],_0x3041c9),![];}}else{const _0x32641e=_0x23e7eb[_0x4f6c(0x2b)]&&_0x3d5404['title']&&_0x3a4287['isArray'](_0x585f00['user_messages'])&&_0x3447a0[_0x4f6c(0x2d)]['length']>0x0;return!_0x32641e&&_0x2d7536['warn'](_0x138fd6['lcdrm'],_0x1f9039),_0x32641e;}};return{'initiateConversationExport':_0x16340f,'storeMemories':_0x2dcfaf};};function _0x4f6c(_0x22d934,_0x4f6ccf){_0x22d934=_0x22d934-0x0;const _0x4b4a44=_0x22d9();let _0x259e52=_0x4b4a44[_0x22d934];return _0x259e52;}exports[_0x4f6c(0x2)]=useChatGPTConversationExtractor;function _0x22d9(){const _0x26db32=['defineProperty','__esModule','useChatGPTConversationExtractor','⚠️\x20[CHATGPT_EXTRACTOR]\x20No\x20memories\x20data\x20provided','⚠️\x20[CHATGPT_EXTRACTOR]\x20Invalid\x20conversation:','🚀\x20[CHATGPT_EXTRACTOR]\x20Initiating\x20conversation\x20export','📊\x20[CHATGPT_EXTRACTOR]\x20Conversations\x20to\x20send:','yxmJF','❌\x20[CHATGPT_EXTRACTOR]\x20Username\x20is\x20required','Error','default','Data\x20Error','No\x20valid\x20conversations\x20found\x20to\x20export.','📡\x20[CHATGPT_EXTRACTOR]\x20Sending\x20to\x20backend...','📊\x20[CHATGPT_EXTRACTOR]\x20Backend\x20response:','❌\x20[CHATGPT_EXTRACTOR]\x20Backend\x20storage\x20failed:','Export\x20Failed','An\x20unknown\x20error\x20occurred\x20during\x20conversation\x20storage.','❌\x20[CHATGPT_EXTRACTOR]\x20Unexpected\x20error\x20during\x20export:','Export\x20Error','Failed\x20to\x20connect\x20to\x20the\x20conversation\x20storage\x20service.\x20Please\x20check\x20your\x20network\x20connection.','✅\x20[CHATGPT_EXTRACTOR]\x20Export\x20completed\x20successfully','MbhPE','🧠\x20[CHATGPT_EXTRACTOR]\x20Storing\x20ChatGPT\x20memories...','pavAZ','📡\x20[CHATGPT_EXTRACTOR]\x20Sending\x20memories\x20to\x20backend...','❌\x20[CHATGPT_EXTRACTOR]\x20Unexpected\x20error\x20storing\x20memories:','QlNjm','ℹ️\x20[CHATGPT_EXTRACTOR]\x20No\x20memories\x20to\x20store\x20-\x20treating\x20as\x20success','nmKvj','lcdrm','log','uJxid','👤\x20[CHATGPT_EXTRACTOR]\x20Username:','fYIJB','length','kBJZm','error','lahaw','alert','BLQRG','NJmSO','filter','conversation_id','title','user_messages','bECSg','PRNcu','ibcth','nxTAB','warn','RCLRM','❌\x20[CHATGPT_EXTRACTOR]\x20No\x20valid\x20conversations\x20after\x20filtering','Alert','DRRUN','tPtbh','⚠️\x20[CHATGPT_EXTRACTOR]\x20Filtered\x20out\x20','ZfhEt','\x20invalid\x20conversations','jmgrm','data','nnYMH','lVqWq','AEoaS','qLrvR','tfwzo','zGYmr','xxRUO','ZaYyg','PNUeg','IVQEi','memory_entries','NVYSC','memories','📋\x20[CHATGPT_EXTRACTOR]\x20Found\x20','\x20memory\x20items,\x20','\x20memory\x20entries,\x20','\x20memories','EJkvK','zVRqj','KpxJA','vDsHq','bLeeN','UqfwN','storeChatGPTMemories','success','zDpsz','memoriesCount','LWUOP','Kucju','❌\x20[CHATGPT_EXTRACTOR]\x20Memories\x20storage\x20failed:','XsBwE','GaTHx','TFhSw'];_0x22d9=function(){return _0x26db32;};return _0x22d9();}
8
+ Object[_0x1a91(0x0)](exports,'__esModule',{'value':!![]}),exports[_0x1a91(0x1)]=void 0x0;var _chatGPTConversationService=__ONAIROS_REQ_FUNC__(0x0),_reactNative=__ONAIROS_REQ_FUNC__(0x1);function _0x1a91(_0x3d5ddc,_0x1a91dc){_0x3d5ddc=_0x3d5ddc-0x0;const _0x558397=_0x3d5d();let _0x4907c7=_0x558397[_0x3d5ddc];return _0x4907c7;}function _0x3d5d(){const _0x22d073=['defineProperty','useChatGPTConversationExtractor','❌\x20[CHATGPT_EXTRACTOR]\x20Backend\x20storage\x20failed:','Export\x20Failed','default','ℹ️\x20[CHATGPT_EXTRACTOR]\x20No\x20conversations\x20to\x20export\x20-\x20treating\x20as\x20success\x20(connected)','👤\x20[CHATGPT_EXTRACTOR]\x20Username:','📊\x20[CHATGPT_EXTRACTOR]\x20Conversations\x20to\x20send:','Username\x20is\x20required\x20to\x20export\x20ChatGPT\x20conversations.','❌\x20[CHATGPT_EXTRACTOR]\x20No\x20valid\x20conversations\x20after\x20filtering','📡\x20[CHATGPT_EXTRACTOR]\x20Sending\x20to\x20backend...','✅\x20[CHATGPT_EXTRACTOR]\x20Export\x20completed\x20successfully','📊\x20[CHATGPT_EXTRACTOR]\x20Backend\x20response:','tBRvQ','❌\x20[CHATGPT_EXTRACTOR]\x20Unexpected\x20error\x20during\x20export:','Export\x20Error','Failed\x20to\x20connect\x20to\x20the\x20conversation\x20storage\x20service.\x20Please\x20check\x20your\x20network\x20connection.','Error','❌\x20[CHATGPT_EXTRACTOR]\x20Memories\x20storage\x20failed:','⚠️\x20[CHATGPT_EXTRACTOR]\x20No\x20memories\x20data\x20provided','✅\x20[CHATGPT_EXTRACTOR]\x20Memories\x20stored\x20successfully','kdSga','❌\x20[CHATGPT_EXTRACTOR]\x20Unexpected\x20error\x20storing\x20memories:','log','🚀\x20[CHATGPT_EXTRACTOR]\x20Initiating\x20conversation\x20export','UEqUe','length','❌\x20[CHATGPT_EXTRACTOR]\x20Username\x20is\x20required','alert','ziqDU','EwCcj','filter','conversation_id','title','isArray','user_messages','PZRnH','warn','⚠️\x20[CHATGPT_EXTRACTOR]\x20Invalid\x20conversation:','dWZmn','error','rfOGJ','Alert','esbNR','No\x20valid\x20conversations\x20found\x20to\x20export.','⚠️\x20[CHATGPT_EXTRACTOR]\x20Filtered\x20out\x20','\x20invalid\x20conversations','success','mwfNT','data','opWZX','rBsJi','An\x20unknown\x20error\x20occurred\x20during\x20conversation\x20storage.','CVCfe','eKSIH','bybbJ','NuamL','Vssil','IMsvu','jcGjC','🧠\x20[CHATGPT_EXTRACTOR]\x20Storing\x20ChatGPT\x20memories...','hVlqO','DRrSh','InHIK','items','ICtOR','memory_entries','FtfmA','HQYva','memories','\x20memory\x20items,\x20','\x20memory\x20entries,\x20','\x20memories','ℹ️\x20[CHATGPT_EXTRACTOR]\x20No\x20memories\x20to\x20store\x20-\x20treating\x20as\x20success','DiCIQ','EvMKb','📡\x20[CHATGPT_EXTRACTOR]\x20Sending\x20memories\x20to\x20backend...','storeChatGPTMemories','diHMq','WlYnH','memoriesCount','📋\x20[CHATGPT_EXTRACTOR]\x20Backend\x20stored\x20','MsOym','vbgGC','ItEGk','ZcdFn','VKvVE','QvLKG','cKSeM','ofjiw','eprKO','iNPmg'];_0x3d5d=function(){return _0x22d073;};return _0x3d5d();}const useChatGPTConversationExtractor=()=>{const _0x37353c={'PZRnH':function(_0x21b526,_0x157141){return _0x21b526>_0x157141;},'opWZX':_0x1a91(0x2),'rBsJi':_0x1a91(0x3),'EwCcj':_0x1a91(0x4),'DDkvT':_0x1a91(0x5),'EFvIy':_0x1a91(0x6),'UEqUe':_0x1a91(0x7),'ziqDU':_0x1a91(0x8),'dWZmn':function(_0x3d41b1,_0x5dfd7b){return _0x3d41b1===_0x5dfd7b;},'rfOGJ':_0x1a91(0x9),'esbNR':'Data\x20Error','OMXLE':function(_0x758148,_0x649ce){return _0x758148<_0x649ce;},'ILcIH':_0x1a91(0xa),'jcGjC':_0x1a91(0xb),'ygBfG':_0x1a91(0xc),'DiCIQ':function(_0xf95fb2,_0x49f428){return _0xf95fb2===_0x49f428;},'CVCfe':'sHdJO','eKSIH':_0x1a91(0xd),'bybbJ':_0x1a91(0xe),'NuamL':_0x1a91(0xf),'Vssil':_0x1a91(0x10),'XzuhL':_0x1a91(0x11),'IMsvu':_0x1a91(0x12),'DRrSh':_0x1a91(0x13),'InHIK':function(_0x4d1d67,_0x109e9d){return _0x4d1d67===_0x109e9d;},'ICtOR':function(_0x16b681,_0x7971d9){return _0x16b681===_0x7971d9;},'FtfmA':function(_0x419bcc,_0x3af3c2){return _0x419bcc===_0x3af3c2;},'HQYva':function(_0x3d1503,_0x1ba261){return _0x3d1503===_0x1ba261;},'diHMq':_0x1a91(0x14),'WlYnH':function(_0x1c7e59,_0x50cef7){return _0x1c7e59!==_0x50cef7;},'MsOym':'Vgcxw','vbgGC':_0x1a91(0x15),'tSLpH':function(_0x461aaf,_0xce96aa){return _0x461aaf!==_0xce96aa;},'QvLKG':'cKSeM','iNPmg':_0x1a91(0x16)},_0x9134f8=async(_0xd4d54f,_0x4e8002)=>{console[_0x1a91(0x17)](_0x1a91(0x18)),console[_0x1a91(0x17)](_0x37353c['EFvIy'],_0xd4d54f),console['log'](_0x37353c[_0x1a91(0x19)],_0x4e8002[_0x1a91(0x1a)]);if(!_0xd4d54f)return console['error'](_0x1a91(0x1b)),_reactNative['Alert'][_0x1a91(0x1c)](_0x1a91(0x11),_0x37353c[_0x1a91(0x1d)],[{'text':'OK','style':_0x37353c[_0x1a91(0x1e)]}]),![];if(!_0x4e8002||_0x4e8002[_0x1a91(0x1a)]===0x0)return console[_0x1a91(0x17)](_0x1a91(0x5)),!![];const _0x3c5561=_0x4e8002[_0x1a91(0x1f)](_0x4c1206=>{const _0x3e2a09=_0x4c1206[_0x1a91(0x20)]&&_0x4c1206[_0x1a91(0x21)]&&Array[_0x1a91(0x22)](_0x4c1206[_0x1a91(0x23)])&&_0x37353c[_0x1a91(0x24)](_0x4c1206['user_messages'][_0x1a91(0x1a)],0x0);return!_0x3e2a09&&console[_0x1a91(0x25)](_0x1a91(0x26),_0x4c1206),_0x3e2a09;});if(_0x37353c[_0x1a91(0x27)](_0x3c5561[_0x1a91(0x1a)],0x0))return console[_0x1a91(0x28)](_0x37353c[_0x1a91(0x29)]),_reactNative[_0x1a91(0x2a)][_0x1a91(0x1c)](_0x37353c[_0x1a91(0x2b)],_0x1a91(0x2c),[{'text':'OK','style':_0x37353c[_0x1a91(0x1e)]}]),![];_0x37353c['OMXLE'](_0x3c5561[_0x1a91(0x1a)],_0x4e8002[_0x1a91(0x1a)])&&console[_0x1a91(0x25)](_0x1a91(0x2d)+(_0x4e8002[_0x1a91(0x1a)]-_0x3c5561['length'])+_0x1a91(0x2e));try{console['log'](_0x37353c['ILcIH']);const _0x159d11=await(0x0,_chatGPTConversationService['storeChatGPTConversations'])(_0xd4d54f,_0x3c5561);return _0x159d11[_0x1a91(0x2f)]?_0x1a91(0x30)===_0x1a91(0x30)?(console[_0x1a91(0x17)](_0x37353c['jcGjC']),console[_0x1a91(0x17)](_0x37353c['ygBfG'],_0x159d11[_0x1a91(0x31)]),!![]):(_0x5a5579[_0x1a91(0x28)](_0x37353c[_0x1a91(0x32)],_0x1053f1[_0x1a91(0x28)]),_0x12a266[_0x1a91(0x2a)][_0x1a91(0x1c)](_0x37353c[_0x1a91(0x33)],_0x1ea2ca[_0x1a91(0x28)]||_0x1a91(0x34),[{'text':'OK','style':_0x37353c['EwCcj']}]),![]):_0x37353c['DiCIQ'](_0x37353c[_0x1a91(0x35)],_0x37353c[_0x1a91(0x36)])?(_0x5bf24f[_0x1a91(0x17)](_0x37353c['DDkvT']),!![]):(console[_0x1a91(0x28)](_0x37353c[_0x1a91(0x32)],_0x159d11['error']),_reactNative[_0x1a91(0x2a)]['alert'](_0x37353c[_0x1a91(0x33)],_0x159d11[_0x1a91(0x28)]||_0x1a91(0x34),[{'text':'OK','style':_0x37353c[_0x1a91(0x1e)]}]),![]);}catch(_0xfde9e5){return console['error'](_0x37353c[_0x1a91(0x37)],_0xfde9e5),_reactNative[_0x1a91(0x2a)][_0x1a91(0x1c)](_0x37353c[_0x1a91(0x38)],_0x37353c[_0x1a91(0x39)],[{'text':'OK','style':_0x37353c[_0x1a91(0x1e)]}]),![];}},_0xf280a3=async _0x53a0ef=>{const _0x4eee4d={'ItEGk':_0x37353c['XzuhL'],'IAQyU':_0x37353c['ziqDU'],'ZcdFn':'default','VKvVE':_0x37353c[_0x1a91(0x3a)],'ofjiw':_0x37353c[_0x1a91(0x3b)],'eprKO':_0x37353c['ygBfG']};var _0x4468be,_0x4818e7,_0x525a6d;console['log'](_0x1a91(0x3c));if(!_0x53a0ef)return'hVlqO'===_0x1a91(0x3d)?(console['warn'](_0x37353c[_0x1a91(0x3e)]),![]):(_0xafa924[_0x1a91(0x28)](_0x1a91(0xe),_0x3cacbf),_0x35d0ac[_0x1a91(0x2a)][_0x1a91(0x1c)](_0x37353c[_0x1a91(0x38)],_0x37353c[_0x1a91(0x39)],[{'text':'OK','style':_0x37353c[_0x1a91(0x1e)]}]),![]);const _0x262e28=(_0x53a0ef===null||_0x37353c[_0x1a91(0x27)](_0x53a0ef,void 0x0)||_0x37353c[_0x1a91(0x3f)](_0x4468be=_0x53a0ef[_0x1a91(0x40)],null)||_0x37353c[_0x1a91(0x41)](_0x4468be,void 0x0)?void 0x0:_0x4468be[_0x1a91(0x1a)])||0x0,_0x528cb2=(_0x53a0ef===null||_0x37353c[_0x1a91(0x41)](_0x53a0ef,void 0x0)||_0x37353c['ICtOR'](_0x4818e7=_0x53a0ef[_0x1a91(0x42)],null)||_0x37353c[_0x1a91(0x41)](_0x4818e7,void 0x0)?void 0x0:_0x4818e7[_0x1a91(0x1a)])||0x0,_0x53fd24=(_0x37353c[_0x1a91(0x43)](_0x53a0ef,null)||_0x37353c[_0x1a91(0x44)](_0x53a0ef,void 0x0)||_0x37353c[_0x1a91(0x27)](_0x525a6d=_0x53a0ef[_0x1a91(0x45)],null)||_0x37353c[_0x1a91(0x44)](_0x525a6d,void 0x0)?void 0x0:_0x525a6d[_0x1a91(0x1a)])||0x0;console[_0x1a91(0x17)]('📋\x20[CHATGPT_EXTRACTOR]\x20Found\x20'+_0x262e28+_0x1a91(0x46)+_0x528cb2+_0x1a91(0x47)+_0x53fd24+_0x1a91(0x48));if(_0x37353c['dWZmn'](_0x262e28,0x0)&&_0x528cb2===0x0&&_0x37353c[_0x1a91(0x41)](_0x53fd24,0x0))return console[_0x1a91(0x17)](_0x1a91(0x49)),!![];try{if(_0x37353c[_0x1a91(0x4a)]('EvMKb',_0x1a91(0x4b))){console[_0x1a91(0x17)](_0x1a91(0x4c));const _0x5e4ada=await(0x0,_chatGPTConversationService[_0x1a91(0x4d)])(_0x53a0ef);if(_0x5e4ada['success']){var _0x4ed795;return console['log'](_0x37353c[_0x1a91(0x4e)]),(_0x4ed795=_0x5e4ada[_0x1a91(0x31)])!==null&&_0x37353c[_0x1a91(0x4f)](_0x4ed795,void 0x0)&&_0x4ed795[_0x1a91(0x50)]&&console[_0x1a91(0x17)](_0x1a91(0x51)+_0x5e4ada[_0x1a91(0x31)][_0x1a91(0x50)]+_0x1a91(0x48)),!![];}else return _0x37353c[_0x1a91(0x52)]!==_0x37353c[_0x1a91(0x53)]?(console[_0x1a91(0x28)](_0x1a91(0x12),_0x5e4ada[_0x1a91(0x28)]),![]):(_0x39b0c8[_0x1a91(0x28)](_0x1a91(0x1b)),_0x3ab7e0[_0x1a91(0x2a)][_0x1a91(0x1c)](_0x4eee4d[_0x1a91(0x54)],_0x4eee4d['IAQyU'],[{'text':'OK','style':_0x4eee4d[_0x1a91(0x55)]}]),![]);}else return _0x39208b[_0x1a91(0x28)](_0x4eee4d[_0x1a91(0x56)],_0x1c4e76[_0x1a91(0x28)]),![];}catch(_0x5b3ea7){return _0x37353c['tSLpH'](_0x37353c[_0x1a91(0x57)],_0x1a91(0x58))?(_0x3c64d2[_0x1a91(0x17)](_0x4eee4d[_0x1a91(0x59)]),_0x57bfb9[_0x1a91(0x17)](_0x4eee4d[_0x1a91(0x5a)],_0x37de7b[_0x1a91(0x31)]),!![]):(console[_0x1a91(0x28)](_0x37353c[_0x1a91(0x5b)],_0x5b3ea7),![]);}};return{'initiateConversationExport':_0x9134f8,'storeMemories':_0xf280a3};};exports[_0x1a91(0x1)]=useChatGPTConversationExtractor;
@@ -6,4 +6,4 @@ var __ONAIROS_REQ_REGISTRY__ = [
6
6
  require("react-native")
7
7
  ];
8
8
  function __ONAIROS_REQ_FUNC__(i) { return __ONAIROS_REQ_REGISTRY__[i]; }
9
- Object[_0x4828(0x0)](exports,_0x4828(0x1),{'value':!![]}),exports[_0x4828(0x2)]=exports[_0x4828(0x3)]=void 0x0;var _api=__ONAIROS_REQ_FUNC__(0x0),_asyncStorage=_interopRequireDefault(__ONAIROS_REQ_FUNC__(0x1)),_reactNative=__ONAIROS_REQ_FUNC__(0x2);function _interopRequireDefault(_0x3eb176){return _0x3eb176&&_0x3eb176[_0x4828(0x1)]?_0x3eb176:{'default':_0x3eb176};}function _0x17c9(){const _0x2dcb4b=['defineProperty','__esModule','storeChatGPTMemories','storeChatGPTConversations','Invalid\x20input:\x20userId\x20or\x20conversations\x20missing.','Network\x20error.\x20Please\x20check\x20your\x20connection.','📊\x20[CHATGPT_SERVICE]\x20Total\x20messages:','❌\x20[CHATGPT_SERVICE]\x20Invalid\x20input','onairos_jwt_token','❌\x20[CHATGPT_SERVICE]\x20No\x20auth\x20token\x20found\x20in\x20any\x20storage\x20key','ios','17.0','iPhone','mobile-chatgpt','conversation','xAIBh','NgvPr','VzgRM','log','oCAcB','length','qcBEm','reduce','user_messages','error','vImPN','IxaJY','default','getItem','jLzYw','aorIw','QZcCQ','HqvKL','xuDgh','Platform','HDqoq','aNGAV','kwAdO','Android','HzCvX','IwmBY','now','map','conversation_id','-msg-','title','floor','oRYEZ','📡\x20[CHATGPT_SERVICE]\x20Sending\x20conversation\x20','jJNqj','API_CONFIG','BASE_URL','/llm-data/store','Bearer\x20','OnairosSDK/1.0.0\x20(','stringify','TQwdj','gGZvN','GQlIo','message','MsqaI','warn','⚠️\x20[CHATGPT_SERVICE]\x20Failed\x20conversation\x20','status','bVZma','hIWbl','⚠️\x20[CHATGPT_SERVICE]\x20Network\x20error\x20for\x20conversation\x20','Failed\x20to\x20store\x20conversations\x20(','XMaIm','Stored\x20','\x20of\x20','\x20conversations','📊\x20[CHATGPT_SERVICE]\x20Complete:\x20','\x20success,\x20','\x20failed','\x20errors)','KnEAT','Authentication\x20token\x20not\x20found.\x20Please\x20log\x20in\x20again.','❌\x20[CHATGPT_SERVICE]\x20Invalid\x20input:\x20memoriesData\x20missing','Invalid\x20input:\x20memoriesData\x20missing.','enoch_token','auth_token','🔑\x20[CHATGPT_SERVICE]\x20Auth\x20token\x20found\x20for\x20memories','✅\x20[CHATGPT_SERVICE]\x20Successfully\x20sent\x20memories\x20to\x20backend','nFBln','KNWoK','tqGKg','Unknown\x20error','🧠\x20[CHATGPT_SERVICE]\x20Storing\x20ChatGPT\x20memories...','YLIGr','WKZvy','nRGOJ','memory_entries','LepQF','QbkBr','memories','VHRpZ','📋\x20[CHATGPT_SERVICE]\x20Found\x20','\x20items,\x20','\x20entries,\x20','\x20memories\x20(total:\x20','dtnEg','RXcXU','JlixW','CKzJg','LmWnR','xsDex','toISOString','keys','YNUuW','📡\x20[CHATGPT_SERVICE]\x20Sending\x20memories\x20to\x20backend...','📦\x20[CHATGPT_SERVICE]\x20Raw\x20memoriesData\x20keys:\x20','join','/llm-data/store-memories','json','BxakM','data','GQwkY','UVCxO','❌\x20[CHATGPT_SERVICE]\x20Network\x20error:','Memories\x20stored\x20successfully','BXaTO','⚠️\x20[CHATGPT_SERVICE]\x20Memories\x20backend\x20returned\x20status:\x20','QWkqI','HTTP\x20','EqodY'];_0x17c9=function(){return _0x2dcb4b;};return _0x17c9();}const storeChatGPTConversations=async(_0x1aa102,_0xffe5b1)=>{const _0x3d0604={'IxaJY':_0x4828(0x4),'GQlIo':'❌\x20[CHATGPT_SERVICE]\x20Memories\x20network\x20error:','MsqaI':_0x4828(0x5),'oCAcB':'🚀\x20[CHATGPT_SERVICE]\x20Storing\x20ChatGPT\x20conversations\x20for:','CyhAN':'📊\x20[CHATGPT_SERVICE]\x20Number\x20of\x20conversations:','qcBEm':_0x4828(0x6),'EAKku':function(_0x4d02bc,_0x125e6e){return _0x4d02bc||_0x125e6e;},'HzCvX':function(_0x5684ca,_0x5238f6){return _0x5684ca===_0x5238f6;},'vImPN':_0x4828(0x7),'FPJLV':_0x4828(0x8),'jLzYw':'auth_token','aorIw':'QZcCQ','HqvKL':_0x4828(0x9),'xuDgh':'🔑\x20[CHATGPT_SERVICE]\x20Auth\x20token\x20found\x20for\x20conversations','aYint':'1.0.0','HDqoq':_0x4828(0xa),'aNGAV':_0x4828(0xb),'kwAdO':_0x4828(0xc),'XMaIm':function(_0x1f8f54,_0x2d161a){return _0x1f8f54<_0x2d161a;},'FtnfP':function(_0xced595,_0x281d75){return _0xced595/_0x281d75;},'oRYEZ':_0x4828(0xd),'uNGsI':_0x4828(0xe),'gGZvN':function(_0x46a742,_0x1f7842){return _0x46a742+_0x1f7842;},'jJNqj':'cXzvn','Fxmvf':_0x4828(0xf),'bVZma':function(_0xbe56c,_0x312533){return _0xbe56c!==_0x312533;},'hIWbl':_0x4828(0x10),'EdLNC':_0x4828(0x11),'SkFBY':function(_0x26e71f,_0x1b5889){return _0x26e71f-_0x1b5889;},'fRjWn':function(_0x284a38,_0x58a6ed){return _0x284a38>_0x58a6ed;},'KnEAT':'❌\x20[CHATGPT_SERVICE]\x20Network\x20error:'};console[_0x4828(0x12)](_0x3d0604[_0x4828(0x13)],_0x1aa102),console['log'](_0x3d0604['CyhAN'],_0xffe5b1[_0x4828(0x14)]),console['log'](_0x3d0604[_0x4828(0x15)],_0xffe5b1[_0x4828(0x16)]((_0x12ff42,_0x4f51f5)=>_0x12ff42+_0x4f51f5[_0x4828(0x17)][_0x4828(0x14)],0x0));if(_0x3d0604['EAKku'](!_0x1aa102,!_0xffe5b1)||_0x3d0604['HzCvX'](_0xffe5b1[_0x4828(0x14)],0x0))return console[_0x4828(0x18)](_0x3d0604[_0x4828(0x19)]),{'success':![],'error':_0x3d0604[_0x4828(0x1a)]};try{const _0x5b8acd=await _asyncStorage[_0x4828(0x1b)][_0x4828(0x1c)](_0x3d0604['FPJLV'])||await _asyncStorage[_0x4828(0x1b)][_0x4828(0x1c)]('enoch_token')||await _asyncStorage['default'][_0x4828(0x1c)](_0x3d0604[_0x4828(0x1d)]);if(!_0x5b8acd)return _0x3d0604[_0x4828(0x1e)]!==_0x4828(0x1f)?_0x596e8a&&_0x396bae['__esModule']?_0x2950a8:{'default':_0x5e77f0}:(console[_0x4828(0x18)](_0x3d0604[_0x4828(0x20)]),{'success':![],'error':'Authentication\x20token\x20not\x20found.\x20Please\x20log\x20in\x20again.'});console[_0x4828(0x12)](_0x3d0604[_0x4828(0x21)]);const _0x482e1f={'platform':_reactNative[_0x4828(0x22)]['OS'],'appVersion':_0x3d0604['aYint'],'osVersion':_0x3d0604['HzCvX'](_reactNative[_0x4828(0x22)]['OS'],_0x3d0604[_0x4828(0x23)])?_0x3d0604[_0x4828(0x24)]:_reactNative[_0x4828(0x22)]['OS'],'deviceModel':_reactNative[_0x4828(0x22)]['OS']===_0x4828(0xa)?_0x3d0604[_0x4828(0x25)]:_0x4828(0x26),'isOfflineSync':![]};let _0x23f4b4=0x0,_0xafe08b=0x0;for(let _0x257be8=0x0;_0x3d0604['XMaIm'](_0x257be8,_0xffe5b1[_0x4828(0x14)]);_0x257be8++){if(_0x3d0604[_0x4828(0x27)](_0x4828(0x28),'IwmBY')){const _0x5ddd16=_0xffe5b1[_0x257be8],_0x256aaa=Date[_0x4828(0x29)](),_0x32507d=_0x5ddd16[_0x4828(0x17)][_0x4828(0x2a)]((_0x164e4b,_0x30dc5c)=>({'id':_0x5ddd16[_0x4828(0x2b)]+_0x4828(0x2c)+_0x30dc5c,'role':'user','content':_0x164e4b,'timestamp':new Date(_0x256aaa-(_0x5ddd16[_0x4828(0x17)][_0x4828(0x14)]-_0x30dc5c)*0x3e8)['toISOString'](),'metadata':{}})),_0x4e276b={'conversationId':_0x5ddd16[_0x4828(0x2b)],'messages':_0x32507d,'context':{'title':_0x5ddd16[_0x4828(0x2d)],'create_time':Math[_0x4828(0x2e)](_0x3d0604['FtnfP'](_0x256aaa,0x3e8)),'update_time':Math[_0x4828(0x2e)](_0x256aaa/0x3e8)},'mobileMetadata':_0x482e1f},_0x4f45c3={'platform':_0x3d0604[_0x4828(0x2f)],'conversationData':_0x4e276b,'memoryType':_0x3d0604['uNGsI']};console[_0x4828(0x12)](_0x4828(0x30)+_0x3d0604['gGZvN'](_0x257be8,0x1)+'/'+_0xffe5b1[_0x4828(0x14)]+':\x20'+_0x5ddd16[_0x4828(0x2d)]);try{if(_0x3d0604[_0x4828(0x27)](_0x3d0604[_0x4828(0x31)],_0x3d0604['Fxmvf']))return _0x433b76[_0x4828(0x18)](_0x4828(0x7)),{'success':![],'error':_0x3d0604[_0x4828(0x1a)]};else{const _0xd07e9d=await fetch(_api[_0x4828(0x32)][_0x4828(0x33)]+_0x4828(0x34),{'method':'POST','headers':{'Content-Type':'application/json','Authorization':_0x4828(0x35)+_0x5b8acd,'User-Agent':_0x4828(0x36)+_reactNative[_0x4828(0x22)]['OS']+')'},'body':JSON[_0x4828(0x37)](_0x4f45c3)}),_0x11f6f4=await _0xd07e9d['json']();if(_0xd07e9d['ok']){if(_0x4828(0x38)!=='FOwaM')console[_0x4828(0x12)]('✅\x20[CHATGPT_SERVICE]\x20Sent\x20conversation\x20'+_0x3d0604[_0x4828(0x39)](_0x257be8,0x1)+'/'+_0xffe5b1[_0x4828(0x14)]),_0x23f4b4++;else return _0x42c268[_0x4828(0x18)](_0x3d0604[_0x4828(0x3a)],_0x1cfcca),{'success':![],'error':_0x1e9321[_0x4828(0x3b)]||_0x3d0604[_0x4828(0x3c)]};}else console[_0x4828(0x3d)](_0x4828(0x3e)+_0x3d0604[_0x4828(0x39)](_0x257be8,0x1)+'/'+_0xffe5b1['length']+':',_0x11f6f4[_0x4828(0x18)]||_0xd07e9d[_0x4828(0x3f)]),_0xafe08b++;}}catch(_0x31681d){if(_0x3d0604[_0x4828(0x40)](_0x3d0604[_0x4828(0x41)],_0x3d0604['EdLNC']))console[_0x4828(0x3d)](_0x4828(0x42)+(_0x257be8+0x1)+':',_0x31681d),_0xafe08b++;else return{'success':![],'error':_0x4828(0x43)+_0x10b021+'\x20errors)'};}_0x3d0604[_0x4828(0x44)](_0x257be8,_0x3d0604['SkFBY'](_0xffe5b1[_0x4828(0x14)],0x1))&&await new Promise(_0x36f7e4=>setTimeout(_0x36f7e4,0x12c));}else return{'success':!![],'message':_0x4828(0x45)+_0x345527+_0x4828(0x46)+_0x4a811d[_0x4828(0x14)]+_0x4828(0x47)};}return console[_0x4828(0x12)](_0x4828(0x48)+_0x23f4b4+_0x4828(0x49)+_0xafe08b+_0x4828(0x4a)),_0x3d0604['fRjWn'](_0x23f4b4,0x0)?{'success':!![],'message':'Stored\x20'+_0x23f4b4+'\x20of\x20'+_0xffe5b1[_0x4828(0x14)]+'\x20conversations'}:{'success':![],'error':_0x4828(0x43)+_0xafe08b+_0x4828(0x4b)};}catch(_0x3ee0ac){return console[_0x4828(0x18)](_0x3d0604[_0x4828(0x4c)],_0x3ee0ac),{'success':![],'error':_0x3ee0ac[_0x4828(0x3b)]||_0x3d0604['MsqaI']};}};function _0x4828(_0x17c902,_0x4828f2){_0x17c902=_0x17c902-0x0;const _0x1d6a59=_0x17c9();let _0x45ae7d=_0x1d6a59[_0x17c902];return _0x45ae7d;}exports['storeChatGPTConversations']=storeChatGPTConversations;const storeChatGPTMemories=async _0x32a7a9=>{const _0x5f0174={'LmWnR':_0x4828(0x4d),'YLIGr':function(_0x3a1029,_0x1511c4){return _0x3a1029===_0x1511c4;},'WKZvy':function(_0x448622,_0x533473){return _0x448622===_0x533473;},'nRGOJ':function(_0xfb53ad,_0x4c41c7){return _0xfb53ad===_0x4c41c7;},'LepQF':function(_0x420b0b,_0x4f9dab){return _0x420b0b===_0x4f9dab;},'QbkBr':function(_0x25bc97,_0x4b87b5){return _0x25bc97===_0x4b87b5;},'VHRpZ':function(_0x3a7692,_0x59a46d){return _0x3a7692+_0x59a46d;},'dtnEg':_0x4828(0x4e),'uvjHl':_0x4828(0x4f),'RXcXU':_0x4828(0x8),'JlixW':_0x4828(0x50),'CKzJg':_0x4828(0x51),'xsDex':_0x4828(0x52),'JAHfx':'1.0.0','YNUuW':function(_0x49323a,_0xf6f583){return _0x49323a||_0xf6f583;},'BxakM':_0x4828(0x53),'GQwkY':function(_0x30b0e9,_0x519c55){return _0x30b0e9!==_0x519c55;},'UVCxO':_0x4828(0x54),'BXaTO':_0x4828(0x55),'EwWBc':_0x4828(0x56),'QWkqI':_0x4828(0x57),'EqodY':'❌\x20[CHATGPT_SERVICE]\x20Memories\x20network\x20error:'};var _0x22dbd8,_0x7a9f91,_0x52a17e;console[_0x4828(0x12)](_0x4828(0x58));const _0x4774d9=(_0x5f0174[_0x4828(0x59)](_0x32a7a9,null)||_0x5f0174[_0x4828(0x59)](_0x32a7a9,void 0x0)||_0x5f0174[_0x4828(0x59)](_0x22dbd8=_0x32a7a9['items'],null)||_0x5f0174[_0x4828(0x5a)](_0x22dbd8,void 0x0)?void 0x0:_0x22dbd8[_0x4828(0x14)])||0x0,_0xa3c643=(_0x5f0174[_0x4828(0x5a)](_0x32a7a9,null)||_0x5f0174[_0x4828(0x59)](_0x32a7a9,void 0x0)||_0x5f0174[_0x4828(0x5b)](_0x7a9f91=_0x32a7a9[_0x4828(0x5c)],null)||_0x5f0174[_0x4828(0x5d)](_0x7a9f91,void 0x0)?void 0x0:_0x7a9f91['length'])||0x0,_0xcc940d=(_0x5f0174[_0x4828(0x59)](_0x32a7a9,null)||_0x5f0174['nRGOJ'](_0x32a7a9,void 0x0)||_0x5f0174[_0x4828(0x5e)](_0x52a17e=_0x32a7a9[_0x4828(0x5f)],null)||_0x5f0174[_0x4828(0x5e)](_0x52a17e,void 0x0)?void 0x0:_0x52a17e[_0x4828(0x14)])||0x0,_0x4316ef=_0x5f0174[_0x4828(0x60)](_0x4774d9+_0xa3c643,_0xcc940d);console['log'](_0x4828(0x61)+_0x4774d9+_0x4828(0x62)+_0xa3c643+_0x4828(0x63)+_0xcc940d+_0x4828(0x64)+_0x4316ef+')');if(!_0x32a7a9)return console[_0x4828(0x18)](_0x5f0174[_0x4828(0x65)]),{'success':![],'error':_0x5f0174['uvjHl']};try{const _0xa59127=await _asyncStorage[_0x4828(0x1b)]['getItem'](_0x5f0174[_0x4828(0x66)])||await _asyncStorage[_0x4828(0x1b)][_0x4828(0x1c)](_0x5f0174[_0x4828(0x67)])||await _asyncStorage[_0x4828(0x1b)][_0x4828(0x1c)](_0x5f0174[_0x4828(0x68)]);if(!_0xa59127)return console[_0x4828(0x18)](_0x4828(0x9)),{'success':![],'error':_0x5f0174[_0x4828(0x69)]};console[_0x4828(0x12)](_0x5f0174[_0x4828(0x6a)]);const _0x528915=_0x5f0174['JAHfx'],_0x41b395={'platform':_0x4828(0xd),'memoriesData':_0x32a7a9,'metadata':{'source':'react-native-sdk','appVersion':_0x528915,'fetchedAt':new Date()[_0x4828(0x6b)]()}},_0xfe2ecd=Object[_0x4828(0x6c)](_0x5f0174[_0x4828(0x6d)](_0x32a7a9,{}));console['log'](_0x4828(0x6e)),console[_0x4828(0x12)]('📍\x20[CHATGPT_SERVICE]\x20URL:\x20'+_api[_0x4828(0x32)][_0x4828(0x33)]+'/llm-data/store-memories'),console[_0x4828(0x12)](_0x4828(0x6f)+_0xfe2ecd[_0x4828(0x70)](',\x20')),console[_0x4828(0x12)]('📦\x20[CHATGPT_SERVICE]\x20Raw\x20response\x20sent\x20as-is\x20(no\x20transformation)');const _0x56704b=await fetch(_api[_0x4828(0x32)][_0x4828(0x33)]+_0x4828(0x71),{'method':'POST','headers':{'Content-Type':'application/json','Authorization':_0x4828(0x35)+_0xa59127,'User-Agent':'OnairosSDK/'+_0x528915+'\x20('+_reactNative[_0x4828(0x22)]['OS']+')'},'body':JSON[_0x4828(0x37)](_0x41b395)}),_0x244494=await _0x56704b[_0x4828(0x72)]();if(_0x56704b['ok']){var _0x464548;console[_0x4828(0x12)](_0x5f0174[_0x4828(0x73)]);_0x244494[_0x4828(0x3b)]&&console[_0x4828(0x12)]('📝\x20[CHATGPT_SERVICE]\x20Backend\x20response:\x20'+_0x244494['message']);if((_0x464548=_0x244494[_0x4828(0x74)])!==null&&_0x5f0174[_0x4828(0x75)](_0x464548,void 0x0)&&_0x464548['memoriesCount']){if(_0x5f0174['UVCxO']!==_0x5f0174[_0x4828(0x76)])return _0x4fd12e[_0x4828(0x18)](_0x4828(0x77),_0x355f6d),{'success':![],'error':_0x33714a[_0x4828(0x3b)]||_0x4828(0x5)};else console['log']('📋\x20[CHATGPT_SERVICE]\x20Stored\x20'+_0x244494[_0x4828(0x74)]['memoriesCount']+'\x20memory\x20items\x20in\x20database');}return{'success':!![],'message':_0x244494[_0x4828(0x3b)]||_0x4828(0x78),'data':_0x244494['data']};}else return _0x5f0174[_0x4828(0x79)]!==_0x5f0174['EwWBc']?(console[_0x4828(0x3d)](_0x4828(0x7a)+_0x56704b['status']),console[_0x4828(0x3d)]('⚠️\x20[CHATGPT_SERVICE]\x20Error:\x20'+(_0x244494[_0x4828(0x18)]||_0x5f0174[_0x4828(0x7b)])),{'success':![],'error':_0x244494['error']||_0x4828(0x7c)+_0x56704b[_0x4828(0x3f)]}):(_0x47c427[_0x4828(0x18)](_0x4828(0x9)),{'success':![],'error':_0x5f0174['LmWnR']});}catch(_0x33c15f){return console[_0x4828(0x18)](_0x5f0174[_0x4828(0x7d)],_0x33c15f),{'success':![],'error':_0x33c15f[_0x4828(0x3b)]||_0x4828(0x5)};}};exports['storeChatGPTMemories']=storeChatGPTMemories;
9
+ Object[_0x4e3b(0x0)](exports,_0x4e3b(0x1),{'value':!![]}),exports[_0x4e3b(0x2)]=exports['storeChatGPTConversations']=void 0x0;var _api=__ONAIROS_REQ_FUNC__(0x0),_asyncStorage=_interopRequireDefault(__ONAIROS_REQ_FUNC__(0x1)),_reactNative=__ONAIROS_REQ_FUNC__(0x2);function _interopRequireDefault(_0x304677){return _0x304677&&_0x304677[_0x4e3b(0x1)]?_0x304677:{'default':_0x304677};}function _0x4dda(){const _0x1eb99e=['defineProperty','__esModule','storeChatGPTMemories','Unknown\x20error','❌\x20[CHATGPT_SERVICE]\x20No\x20auth\x20token\x20found\x20in\x20any\x20storage\x20key','❌\x20[CHATGPT_SERVICE]\x20Memories\x20network\x20error:','Invalid\x20input:\x20memoriesData\x20missing.','📊\x20[CHATGPT_SERVICE]\x20Number\x20of\x20conversations:','📊\x20[CHATGPT_SERVICE]\x20Total\x20messages:','fnvDY','Invalid\x20input:\x20userId\x20or\x20conversations\x20missing.','onairos_jwt_token','auth_token','DKjsn','🔑\x20[CHATGPT_SERVICE]\x20Auth\x20token\x20found\x20for\x20conversations','1.0.0','17.0','iPhone','gcwEA','mobile-chatgpt','conversation','BPwHt','kPDJD','BWTXx','IVOjr','log','MDpGG','oHVNK','length','KHdMa','TaktO','warn','⚠️\x20[CHATGPT_SERVICE]\x20Error:\x20','JxfNl','HTTP\x20','status','byFMZ','GMxfo','default','getItem','OwkxX','rshVD','lWnuL','TJQBm','IfvnR','NknOr','error','VzSrq','Authentication\x20token\x20not\x20found.\x20Please\x20log\x20in\x20again.','ScwYi','Platform','sqsfP','nBxyG','eTBxo','ios','Android','XmhCv','thjQp','now','user_messages','user','toISOString','conversation_id','floor','repvU','vdggW','HqItW','title','API_CONFIG','/llm-data/store','Bearer\x20','OnairosSDK/1.0.0\x20(','stringify','json','TKKJC','Stored\x20','\x20of\x20','\x20conversations','VptrC','NQbzR','gQGqf','⚠️\x20[CHATGPT_SERVICE]\x20Network\x20error\x20for\x20conversation\x20','lYSFy','zfzxt','oxBbR','message','📊\x20[CHATGPT_SERVICE]\x20Complete:\x20','\x20success,\x20','\x20failed','SneGU','Failed\x20to\x20store\x20conversations\x20(','\x20errors)','WmTwi','okBnd','wASnQ','❌\x20[CHATGPT_SERVICE]\x20Network\x20error:','oaXjJ','Whevg','Network\x20error.\x20Please\x20check\x20your\x20connection.','❌\x20[CHATGPT_SERVICE]\x20Invalid\x20input:\x20memoriesData\x20missing','MNVFK','✅\x20[CHATGPT_SERVICE]\x20Successfully\x20sent\x20memories\x20to\x20backend','Memories\x20stored\x20successfully','ijUfM','🧠\x20[CHATGPT_SERVICE]\x20Storing\x20ChatGPT\x20memories...','svfxC','UUtcg','tbAKw','items','KRFjL','AZgtw','FtSAH','lYMSt','PCNSj','NYQbL','📋\x20[CHATGPT_SERVICE]\x20Found\x20','\x20entries,\x20','\x20memories\x20(total:\x20','yVSVv','AFjmS','CJmzd','enoch_token','rzqpP','UHhUo','pVvRZ','UIWGr','🔑\x20[CHATGPT_SERVICE]\x20Auth\x20token\x20found\x20for\x20memories','BjvMF','keys','📡\x20[CHATGPT_SERVICE]\x20Sending\x20memories\x20to\x20backend...','BASE_URL','/llm-data/store-memories','join','📦\x20[CHATGPT_SERVICE]\x20Raw\x20response\x20sent\x20as-is\x20(no\x20transformation)','iTtHp','📝\x20[CHATGPT_SERVICE]\x20Backend\x20response:\x20','IuyTk','data','PIRPe','memoriesCount','\x20memory\x20items\x20in\x20database','xBTbJ','⚠️\x20[CHATGPT_SERVICE]\x20Memories\x20backend\x20returned\x20status:\x20','akdCk','SsLtr','NDobg','ConFL'];_0x4dda=function(){return _0x1eb99e;};return _0x4dda();}const storeChatGPTConversations=async(_0x907ab0,_0x42f12f)=>{const _0x181582={'JxfNl':_0x4e3b(0x3),'VzSrq':_0x4e3b(0x4),'oxBbR':_0x4e3b(0x5),'oaXjJ':'Network\x20error.\x20Please\x20check\x20your\x20connection.','tDorB':'❌\x20[CHATGPT_SERVICE]\x20Invalid\x20input:\x20memoriesData\x20missing','Whevg':_0x4e3b(0x6),'MDpGG':'🚀\x20[CHATGPT_SERVICE]\x20Storing\x20ChatGPT\x20conversations\x20for:','oHVNK':_0x4e3b(0x7),'NwPuV':_0x4e3b(0x8),'KHdMa':function(_0x1d7186,_0x215de7){return _0x1d7186!==_0x215de7;},'TaktO':_0x4e3b(0x9),'byFMZ':'❌\x20[CHATGPT_SERVICE]\x20Invalid\x20input','GMxfo':_0x4e3b(0xa),'OwkxX':_0x4e3b(0xb),'rshVD':'enoch_token','lWnuL':_0x4e3b(0xc),'TJQBm':_0x4e3b(0xd),'IfvnR':'dmluP','NknOr':'Authentication\x20token\x20not\x20found.\x20Please\x20log\x20in\x20again.','ScwYi':_0x4e3b(0xe),'sqsfP':_0x4e3b(0xf),'Jfmqt':function(_0x3686d0,_0x83ad53){return _0x3686d0===_0x83ad53;},'nBxyG':'ios','eTBxo':_0x4e3b(0x10),'kfWyG':_0x4e3b(0x11),'XmhCv':function(_0x5019ec,_0x15ca47){return _0x5019ec===_0x15ca47;},'thjQp':_0x4e3b(0x12),'axBgk':function(_0x179caf,_0x215e9d){return _0x179caf/_0x215e9d;},'repvU':_0x4e3b(0x13),'vdggW':_0x4e3b(0x14),'HqItW':function(_0x2d64ba,_0x4100fe){return _0x2d64ba+_0x4100fe;},'UkcaC':function(_0x2c3339,_0x1885c8,_0x2256c9){return _0x2c3339(_0x1885c8,_0x2256c9);},'TKKJC':function(_0x55bf53,_0x9b47f4){return _0x55bf53===_0x9b47f4;},'LbEtV':_0x4e3b(0x15),'VptrC':function(_0x447ec2,_0x40bed8){return _0x447ec2+_0x40bed8;},'NQbzR':function(_0x27457a,_0x16a716){return _0x27457a!==_0x16a716;},'CRwoF':_0x4e3b(0x16),'gQGqf':_0x4e3b(0x17),'lYSFy':function(_0x3e12fd,_0x3826d5){return _0x3e12fd<_0x3826d5;},'zfzxt':function(_0x4abf75,_0x119616){return _0x4abf75-_0x119616;},'SneGU':function(_0x2264a5,_0x245d87){return _0x2264a5>_0x245d87;},'WmTwi':function(_0x2fc0cc,_0x382aac){return _0x2fc0cc!==_0x382aac;},'okBnd':_0x4e3b(0x18),'wASnQ':'MMyNH'};console[_0x4e3b(0x19)](_0x181582[_0x4e3b(0x1a)],_0x907ab0),console['log'](_0x181582[_0x4e3b(0x1b)],_0x42f12f[_0x4e3b(0x1c)]),console['log'](_0x181582['NwPuV'],_0x42f12f['reduce']((_0x29a02f,_0x24223a)=>_0x29a02f+_0x24223a['user_messages'][_0x4e3b(0x1c)],0x0));if(!_0x907ab0||!_0x42f12f||_0x42f12f[_0x4e3b(0x1c)]===0x0)return _0x181582[_0x4e3b(0x1d)](_0x181582[_0x4e3b(0x1e)],_0x181582['TaktO'])?(_0x389227['warn']('⚠️\x20[CHATGPT_SERVICE]\x20Memories\x20backend\x20returned\x20status:\x20'+_0x3e2d98['status']),_0x139430[_0x4e3b(0x1f)](_0x4e3b(0x20)+(_0x4914bd['error']||_0x181582[_0x4e3b(0x21)])),{'success':![],'error':_0x278ad7['error']||_0x4e3b(0x22)+_0x2f3e8f[_0x4e3b(0x23)]}):(console['error'](_0x181582[_0x4e3b(0x24)]),{'success':![],'error':_0x181582[_0x4e3b(0x25)]});try{const _0x5835f1=await _asyncStorage[_0x4e3b(0x26)][_0x4e3b(0x27)](_0x181582[_0x4e3b(0x28)])||await _asyncStorage['default'][_0x4e3b(0x27)](_0x181582[_0x4e3b(0x29)])||await _asyncStorage['default'][_0x4e3b(0x27)](_0x181582[_0x4e3b(0x2a)]);if(!_0x5835f1)return _0x181582['KHdMa'](_0x181582[_0x4e3b(0x2b)],_0x181582[_0x4e3b(0x2c)])?(console['error'](_0x4e3b(0x4)),{'success':![],'error':_0x181582[_0x4e3b(0x2d)]}):(_0x2b4a20[_0x4e3b(0x2e)](_0x181582[_0x4e3b(0x2f)]),{'success':![],'error':_0x4e3b(0x30)});console[_0x4e3b(0x19)](_0x181582[_0x4e3b(0x31)]);const _0x3e4796={'platform':_reactNative[_0x4e3b(0x32)]['OS'],'appVersion':_0x181582[_0x4e3b(0x33)],'osVersion':_0x181582['Jfmqt'](_reactNative[_0x4e3b(0x32)]['OS'],_0x181582[_0x4e3b(0x34)])?_0x181582[_0x4e3b(0x35)]:_reactNative['Platform']['OS'],'deviceModel':_0x181582['Jfmqt'](_reactNative['Platform']['OS'],_0x4e3b(0x36))?_0x181582['kfWyG']:_0x4e3b(0x37),'isOfflineSync':![]};let _0xf73d38=0x0,_0x4d7877=0x0;for(let _0x727175=0x0;_0x727175<_0x42f12f[_0x4e3b(0x1c)];_0x727175++){if(_0x181582[_0x4e3b(0x38)](_0x181582[_0x4e3b(0x39)],_0x4e3b(0x12))){const _0x36dc15=_0x42f12f[_0x727175],_0x5acdb1=Date[_0x4e3b(0x3a)](),_0x37b9fb=_0x36dc15[_0x4e3b(0x3b)]['map']((_0x2dda38,_0x5a8912)=>({'id':_0x36dc15['conversation_id']+'-msg-'+_0x5a8912,'role':_0x4e3b(0x3c),'content':_0x2dda38,'timestamp':new Date(_0x5acdb1-(_0x36dc15[_0x4e3b(0x3b)]['length']-_0x5a8912)*0x3e8)[_0x4e3b(0x3d)](),'metadata':{}})),_0x1f031c={'conversationId':_0x36dc15[_0x4e3b(0x3e)],'messages':_0x37b9fb,'context':{'title':_0x36dc15['title'],'create_time':Math[_0x4e3b(0x3f)](_0x181582['axBgk'](_0x5acdb1,0x3e8)),'update_time':Math[_0x4e3b(0x3f)](_0x181582['axBgk'](_0x5acdb1,0x3e8))},'mobileMetadata':_0x3e4796},_0x24fb99={'platform':_0x181582[_0x4e3b(0x40)],'conversationData':_0x1f031c,'memoryType':_0x181582[_0x4e3b(0x41)]};console[_0x4e3b(0x19)]('📡\x20[CHATGPT_SERVICE]\x20Sending\x20conversation\x20'+_0x181582[_0x4e3b(0x42)](_0x727175,0x1)+'/'+_0x42f12f[_0x4e3b(0x1c)]+':\x20'+_0x36dc15[_0x4e3b(0x43)]);try{const _0x1f6354=await _0x181582['UkcaC'](fetch,_api[_0x4e3b(0x44)]['BASE_URL']+_0x4e3b(0x45),{'method':'POST','headers':{'Content-Type':'application/json','Authorization':_0x4e3b(0x46)+_0x5835f1,'User-Agent':_0x4e3b(0x47)+_reactNative[_0x4e3b(0x32)]['OS']+')'},'body':JSON[_0x4e3b(0x48)](_0x24fb99)}),_0x2cf492=await _0x1f6354[_0x4e3b(0x49)]();if(_0x1f6354['ok']){if(_0x181582[_0x4e3b(0x4a)](_0x181582['LbEtV'],'WnRqU'))return{'success':!![],'message':_0x4e3b(0x4b)+_0x138f4c+_0x4e3b(0x4c)+_0x18334d[_0x4e3b(0x1c)]+_0x4e3b(0x4d)};else console['log']('✅\x20[CHATGPT_SERVICE]\x20Sent\x20conversation\x20'+_0x181582[_0x4e3b(0x4e)](_0x727175,0x1)+'/'+_0x42f12f['length']),_0xf73d38++;}else{if(_0x181582[_0x4e3b(0x4f)](_0x181582['CRwoF'],_0x181582[_0x4e3b(0x50)]))console['warn']('⚠️\x20[CHATGPT_SERVICE]\x20Failed\x20conversation\x20'+(_0x727175+0x1)+'/'+_0x42f12f[_0x4e3b(0x1c)]+':',_0x2cf492[_0x4e3b(0x2e)]||_0x1f6354[_0x4e3b(0x23)]),_0x4d7877++;else return _0x1bc9f5&&_0x3508ad[_0x4e3b(0x1)]?_0x29a6ba:{'default':_0x469249};}}catch(_0x146b78){console[_0x4e3b(0x1f)](_0x4e3b(0x51)+(_0x727175+0x1)+':',_0x146b78),_0x4d7877++;}_0x181582[_0x4e3b(0x52)](_0x727175,_0x181582[_0x4e3b(0x53)](_0x42f12f[_0x4e3b(0x1c)],0x1))&&await new Promise(_0x48b55a=>setTimeout(_0x48b55a,0x12c));}else return _0x49e81b[_0x4e3b(0x2e)](_0x181582[_0x4e3b(0x54)],_0x36fbf5),{'success':![],'error':_0x5dbc6a[_0x4e3b(0x55)]||_0x181582['oaXjJ']};}return console[_0x4e3b(0x19)](_0x4e3b(0x56)+_0xf73d38+_0x4e3b(0x57)+_0x4d7877+_0x4e3b(0x58)),_0x181582[_0x4e3b(0x59)](_0xf73d38,0x0)?{'success':!![],'message':'Stored\x20'+_0xf73d38+_0x4e3b(0x4c)+_0x42f12f[_0x4e3b(0x1c)]+_0x4e3b(0x4d)}:{'success':![],'error':_0x4e3b(0x5a)+_0x4d7877+_0x4e3b(0x5b)};}catch(_0x31a092){return _0x181582[_0x4e3b(0x5c)](_0x181582[_0x4e3b(0x5d)],_0x181582[_0x4e3b(0x5e)])?(console[_0x4e3b(0x2e)](_0x4e3b(0x5f),_0x31a092),{'success':![],'error':_0x31a092[_0x4e3b(0x55)]||_0x181582[_0x4e3b(0x60)]}):(_0xf1409a['error'](_0x181582['tDorB']),{'success':![],'error':_0x181582[_0x4e3b(0x61)]});}};function _0x4e3b(_0x4dda08,_0x4e3bee){_0x4dda08=_0x4dda08-0x0;const _0x9eb0ae=_0x4dda();let _0x46982f=_0x9eb0ae[_0x4dda08];return _0x46982f;}exports['storeChatGPTConversations']=storeChatGPTConversations;const storeChatGPTMemories=async _0x3e6c4d=>{const _0x22da10={'SsLtr':_0x4e3b(0x5f),'NDobg':_0x4e3b(0x62),'svfxC':function(_0x354f4f,_0x2dda9f){return _0x354f4f===_0x2dda9f;},'UUtcg':function(_0x396d58,_0x1fcd26){return _0x396d58===_0x1fcd26;},'tbAKw':function(_0x574190,_0x56f15a){return _0x574190===_0x56f15a;},'KRFjL':function(_0x17ec46,_0x4019cd){return _0x17ec46===_0x4019cd;},'AZgtw':function(_0x2efce4,_0x212bf3){return _0x2efce4===_0x212bf3;},'FtSAH':function(_0x157b36,_0x1b80d7){return _0x157b36===_0x1b80d7;},'lYMSt':function(_0x284262,_0x55e8be){return _0x284262===_0x55e8be;},'PCNSj':function(_0x4b2c19,_0x20af15){return _0x4b2c19===_0x20af15;},'NYQbL':function(_0x35c340,_0x43546d){return _0x35c340+_0x43546d;},'UeHuF':function(_0x156239,_0x8a3412){return _0x156239!==_0x8a3412;},'AFjmS':_0x4e3b(0x63),'CJmzd':_0x4e3b(0x6),'UqlQM':_0x4e3b(0xb),'rzqpP':_0x4e3b(0xc),'UHhUo':_0x4e3b(0x64),'pVvRZ':_0x4e3b(0x4),'UIWGr':_0x4e3b(0x30),'BjvMF':_0x4e3b(0xf),'SjWgE':function(_0x57ad0e,_0x34e3fa){return _0x57ad0e||_0x34e3fa;},'iTtHp':function(_0x3def4b,_0x23c647,_0x1a742a){return _0x3def4b(_0x23c647,_0x1a742a);},'ivnxp':_0x4e3b(0x65),'IuyTk':function(_0x37be10,_0x544a35){return _0x37be10!==_0x544a35;},'PIRPe':function(_0x2237fe,_0x3f6158){return _0x2237fe!==_0x3f6158;},'xBTbJ':_0x4e3b(0x66),'LFifK':_0x4e3b(0x67),'akdCk':_0x4e3b(0x3),'ConFL':_0x4e3b(0x5)};var _0x2c89c5,_0x388ec7,_0x4835d2;console[_0x4e3b(0x19)](_0x4e3b(0x68));const _0xe33c0d=(_0x22da10[_0x4e3b(0x69)](_0x3e6c4d,null)||_0x22da10[_0x4e3b(0x6a)](_0x3e6c4d,void 0x0)||_0x22da10[_0x4e3b(0x6b)](_0x2c89c5=_0x3e6c4d[_0x4e3b(0x6c)],null)||_0x22da10['tbAKw'](_0x2c89c5,void 0x0)?void 0x0:_0x2c89c5[_0x4e3b(0x1c)])||0x0,_0xd82266=(_0x22da10[_0x4e3b(0x6d)](_0x3e6c4d,null)||_0x3e6c4d===void 0x0||_0x22da10[_0x4e3b(0x6e)](_0x388ec7=_0x3e6c4d['memory_entries'],null)||_0x388ec7===void 0x0?void 0x0:_0x388ec7[_0x4e3b(0x1c)])||0x0,_0x48f042=(_0x22da10[_0x4e3b(0x6f)](_0x3e6c4d,null)||_0x22da10[_0x4e3b(0x70)](_0x3e6c4d,void 0x0)||_0x22da10[_0x4e3b(0x6f)](_0x4835d2=_0x3e6c4d['memories'],null)||_0x22da10[_0x4e3b(0x71)](_0x4835d2,void 0x0)?void 0x0:_0x4835d2[_0x4e3b(0x1c)])||0x0,_0x1a9f23=_0x22da10[_0x4e3b(0x72)](_0x22da10[_0x4e3b(0x72)](_0xe33c0d,_0xd82266),_0x48f042);console['log'](_0x4e3b(0x73)+_0xe33c0d+'\x20items,\x20'+_0xd82266+_0x4e3b(0x74)+_0x48f042+_0x4e3b(0x75)+_0x1a9f23+')');if(!_0x3e6c4d)return _0x22da10['UeHuF'](_0x4e3b(0x76),'yVSVv')?{'success':![],'error':'Failed\x20to\x20store\x20conversations\x20('+_0x3d8396+_0x4e3b(0x5b)}:(console['error'](_0x22da10[_0x4e3b(0x77)]),{'success':![],'error':_0x22da10[_0x4e3b(0x78)]});try{const _0x50c9d9=await _asyncStorage[_0x4e3b(0x26)][_0x4e3b(0x27)](_0x22da10['UqlQM'])||await _asyncStorage['default'][_0x4e3b(0x27)](_0x4e3b(0x79))||await _asyncStorage[_0x4e3b(0x26)]['getItem'](_0x22da10[_0x4e3b(0x7a)]);if(!_0x50c9d9){if(_0x22da10[_0x4e3b(0x69)](_0x22da10[_0x4e3b(0x7b)],_0x22da10[_0x4e3b(0x7b)]))return console[_0x4e3b(0x2e)](_0x22da10[_0x4e3b(0x7c)]),{'success':![],'error':_0x22da10[_0x4e3b(0x7d)]};else _0x43ddb5[_0x4e3b(0x19)]('📝\x20[CHATGPT_SERVICE]\x20Backend\x20response:\x20'+_0x295822['message']);}console[_0x4e3b(0x19)](_0x4e3b(0x7e));const _0x4e796c=_0x22da10[_0x4e3b(0x7f)],_0x5bda01={'platform':_0x4e3b(0x13),'memoriesData':_0x3e6c4d,'metadata':{'source':'react-native-sdk','appVersion':_0x4e796c,'fetchedAt':new Date()[_0x4e3b(0x3d)]()}},_0x51a344=Object[_0x4e3b(0x80)](_0x22da10['SjWgE'](_0x3e6c4d,{}));console[_0x4e3b(0x19)](_0x4e3b(0x81)),console['log']('📍\x20[CHATGPT_SERVICE]\x20URL:\x20'+_api[_0x4e3b(0x44)][_0x4e3b(0x82)]+_0x4e3b(0x83)),console[_0x4e3b(0x19)]('📦\x20[CHATGPT_SERVICE]\x20Raw\x20memoriesData\x20keys:\x20'+_0x51a344[_0x4e3b(0x84)](',\x20')),console['log'](_0x4e3b(0x85));const _0x1c1a71=await _0x22da10[_0x4e3b(0x86)](fetch,_api['API_CONFIG']['BASE_URL']+_0x4e3b(0x83),{'method':'POST','headers':{'Content-Type':'application/json','Authorization':_0x4e3b(0x46)+_0x50c9d9,'User-Agent':'OnairosSDK/'+_0x4e796c+'\x20('+_reactNative[_0x4e3b(0x32)]['OS']+')'},'body':JSON[_0x4e3b(0x48)](_0x5bda01)}),_0x3e262a=await _0x1c1a71[_0x4e3b(0x49)]();if(_0x1c1a71['ok']){var _0x3f2b54;return console[_0x4e3b(0x19)](_0x22da10['ivnxp']),_0x3e262a['message']&&console[_0x4e3b(0x19)](_0x4e3b(0x87)+_0x3e262a[_0x4e3b(0x55)]),_0x22da10[_0x4e3b(0x88)](_0x3f2b54=_0x3e262a[_0x4e3b(0x89)],null)&&_0x22da10[_0x4e3b(0x8a)](_0x3f2b54,void 0x0)&&_0x3f2b54['memoriesCount']&&console['log']('📋\x20[CHATGPT_SERVICE]\x20Stored\x20'+_0x3e262a['data'][_0x4e3b(0x8b)]+_0x4e3b(0x8c)),{'success':!![],'message':_0x3e262a[_0x4e3b(0x55)]||_0x22da10[_0x4e3b(0x8d)],'data':_0x3e262a[_0x4e3b(0x89)]};}else return'QloCr'!==_0x22da10['LFifK']?(console['warn'](_0x4e3b(0x8e)+_0x1c1a71[_0x4e3b(0x23)]),console['warn'](_0x4e3b(0x20)+(_0x3e262a[_0x4e3b(0x2e)]||_0x22da10[_0x4e3b(0x8f)])),{'success':![],'error':_0x3e262a[_0x4e3b(0x2e)]||_0x4e3b(0x22)+_0x1c1a71[_0x4e3b(0x23)]}):(_0x2cd534['error'](_0x22da10[_0x4e3b(0x90)],_0x3a038d),{'success':![],'error':_0x186ec1[_0x4e3b(0x55)]||_0x22da10[_0x4e3b(0x91)]});}catch(_0x5831e7){return console[_0x4e3b(0x2e)](_0x22da10[_0x4e3b(0x92)],_0x5831e7),{'success':![],'error':_0x5831e7[_0x4e3b(0x55)]||_0x22da10['NDobg']};}};exports['storeChatGPTMemories']=storeChatGPTMemories;
@@ -5,4 +5,4 @@ var __ONAIROS_REQ_REGISTRY__ = [
5
5
  require("react-native")
6
6
  ];
7
7
  function __ONAIROS_REQ_FUNC__(i) { return __ONAIROS_REQ_REGISTRY__[i]; }
8
- function _0x2c36(_0x5be45e,_0x2c36fa){_0x5be45e=_0x5be45e-0x0;const _0xc67152=_0x5be4();let _0x4641f6=_0xc67152[_0x5be45e];return _0x4641f6;}Object[_0x2c36(0x0)](exports,_0x2c36(0x1),{'value':!![]}),exports[_0x2c36(0x2)]=void 0x0;var _claudeConversationService=__ONAIROS_REQ_FUNC__(0x0),_reactNative=__ONAIROS_REQ_FUNC__(0x1);const useClaudeConversationExtractor=()=>{const _0x9d1cee={'mVKAJ':function(_0x5c3f3a,_0xead410){return _0x5c3f3a-_0xead410;},'AiohJ':_0x2c36(0x3),'TFiyh':_0x2c36(0x4),'EaDcQ':_0x2c36(0x5),'bmpGI':_0x2c36(0x6),'fisig':function(_0x22927c,_0x87000b){return _0x22927c>_0x87000b;},'lTmAp':function(_0x529452,_0x462828){return _0x529452===_0x462828;},'dRsXv':'mmyqW','HcjDJ':'PAdZo','oqHFw':_0x2c36(0x7),'nuZWI':_0x2c36(0x8),'ymAuR':function(_0x111720,_0x2dba6a){return _0x111720!==_0x2dba6a;},'iBHyD':_0x2c36(0x9),'ONlqI':_0x2c36(0xa),'wPaAJ':_0x2c36(0xb),'WFHkx':_0x2c36(0xc),'fMMjc':_0x2c36(0xd),'gADuB':function(_0x3ab97a,_0x3e84fa){return _0x3ab97a!==_0x3e84fa;},'LbDWt':'fBTMv','HuVgw':_0x2c36(0xe),'jLCQq':_0x2c36(0xf),'YUFkA':_0x2c36(0x10),'UOHjm':function(_0x233206,_0x3fa614){return _0x233206===_0x3fa614;},'KwPzy':'hNWpy','IzDZY':_0x2c36(0x11),'Mbuyx':'No\x20valid\x20conversations\x20found\x20to\x20export.','fUjpd':function(_0xd69f1e,_0x3add34){return _0xd69f1e<_0x3add34;},'uIJVh':_0x2c36(0x12),'FayiK':function(_0x2a08da,_0x1b3b59){return _0x2a08da===_0x1b3b59;},'nYRbP':'pIGrw','PBAeL':_0x2c36(0x13),'ESqqU':_0x2c36(0x14),'fNhxW':'An\x20unknown\x20error\x20occurred\x20during\x20conversation\x20storage.','BzsXz':function(_0x47d558,_0x5c5f6f){return _0x47d558!==_0x5c5f6f;},'EfcTV':_0x2c36(0x15),'onKNf':_0x2c36(0x16)},_0x3c1015=async(_0x2b2a46,_0xcf3250)=>{const _0x740be0={'WlfmY':_0x2c36(0x10),'FTYUY':_0x2c36(0x6),'hZNtf':function(_0x1de889,_0x24f895){return _0x1de889===_0x24f895;},'KOyNQ':_0x2c36(0x17),'LMysc':function(_0x578312,_0x392798){return _0x9d1cee[_0x2c36(0x18)](_0x578312,_0x392798);},'nnHLA':function(_0x5db85b,_0x1c14e9){return _0x9d1cee['lTmAp'](_0x5db85b,_0x1c14e9);},'XREWZ':_0x9d1cee[_0x2c36(0x19)],'WnjwY':_0x9d1cee[_0x2c36(0x1a)],'AoFvR':_0x9d1cee[_0x2c36(0x1b)],'Jnocc':_0x9d1cee['nuZWI'],'RPReD':_0x9d1cee['EaDcQ']};if(_0x9d1cee[_0x2c36(0x1c)](_0x9d1cee[_0x2c36(0x1d)],_0x9d1cee['ONlqI'])){console['log'](_0x9d1cee[_0x2c36(0x1e)]),console[_0x2c36(0x1f)](_0x9d1cee[_0x2c36(0x20)],_0x2b2a46),console[_0x2c36(0x1f)](_0x9d1cee[_0x2c36(0x21)],_0xcf3250[_0x2c36(0x22)]);if(!_0x2b2a46){if(_0x9d1cee['gADuB'](_0x2c36(0x23),_0x9d1cee[_0x2c36(0x24)]))return console['error'](_0x9d1cee[_0x2c36(0x25)]),_reactNative['Alert'][_0x2c36(0x26)](_0x9d1cee[_0x2c36(0x27)],_0x2c36(0x28),[{'text':'OK','style':'default'}]),![];else _0x33fb86[_0x2c36(0x29)](_0x2c36(0x2a)+_0x9d1cee[_0x2c36(0x2b)](_0x5b8d45[_0x2c36(0x22)],_0x529cc5['length'])+_0x2c36(0x2c));}if(!_0xcf3250||_0xcf3250[_0x2c36(0x22)]===0x0)return console[_0x2c36(0x1f)](_0x9d1cee[_0x2c36(0x2d)]),!![];const _0x3cb8fc=_0xcf3250['filter'](_0x222e5a=>{const _0x450311={'aviom':_0x740be0['WlfmY'],'hjeMA':_0x740be0['FTYUY']};if(_0x740be0[_0x2c36(0x2e)](_0x2c36(0x2f),_0x740be0[_0x2c36(0x30)]))return _0x1c2f26['log'](_0x450311[_0x2c36(0x31)]),!![];else{const _0x3f3285=_0x222e5a[_0x2c36(0x32)]&&_0x222e5a[_0x2c36(0x33)]&&Array['isArray'](_0x222e5a[_0x2c36(0x34)])&&_0x740be0['LMysc'](_0x222e5a[_0x2c36(0x34)][_0x2c36(0x22)],0x0);if(!_0x3f3285){if(_0x740be0[_0x2c36(0x35)](_0x740be0[_0x2c36(0x36)],_0x740be0[_0x2c36(0x37)])){const _0x27782f=_0x3ad117['conversation_id']&&_0x1cba0e[_0x2c36(0x33)]&&_0x4d1e0e[_0x2c36(0x38)](_0x29b7fd['user_messages'])&&_0x2f6f40['user_messages']['length']>0x0;return!_0x27782f&&_0x120b9b[_0x2c36(0x29)](_0x450311['hjeMA'],_0x359259),_0x27782f;}else console['warn'](_0x740be0['FTYUY'],_0x222e5a);}return _0x3f3285;}});if(_0x9d1cee[_0x2c36(0x39)](_0x3cb8fc[_0x2c36(0x22)],0x0))return _0x9d1cee[_0x2c36(0x3a)](_0x9d1cee[_0x2c36(0x3b)],_0x9d1cee[_0x2c36(0x3b)])?(console[_0x2c36(0x3c)](_0x2c36(0x8)),_reactNative[_0x2c36(0x3d)]['alert'](_0x9d1cee[_0x2c36(0x3e)],_0x9d1cee[_0x2c36(0x3f)],[{'text':'OK','style':_0x9d1cee[_0x2c36(0x40)]}]),![]):(_0x37cbff[_0x2c36(0x1f)](_0x2c36(0x12)),_0x2a1883[_0x2c36(0x1f)](_0x740be0[_0x2c36(0x41)],_0x50c439[_0x2c36(0x42)]),!![]);_0x9d1cee['fUjpd'](_0x3cb8fc['length'],_0xcf3250['length'])&&console[_0x2c36(0x29)](_0x2c36(0x2a)+(_0xcf3250[_0x2c36(0x22)]-_0x3cb8fc[_0x2c36(0x22)])+'\x20invalid\x20conversations');try{console[_0x2c36(0x1f)](_0x2c36(0x43));const _0x548677=await(0x0,_claudeConversationService[_0x2c36(0x44)])(_0x2b2a46,_0x3cb8fc);return _0x548677[_0x2c36(0x45)]?(console['log'](_0x9d1cee[_0x2c36(0x46)]),console['log'](_0x9d1cee['oqHFw'],_0x548677[_0x2c36(0x42)]),!![]):_0x9d1cee[_0x2c36(0x47)](_0x2c36(0x48),_0x9d1cee[_0x2c36(0x49)])?(_0x15ea30[_0x2c36(0x3c)](_0x9d1cee[_0x2c36(0x4a)],_0x3e645f),_0x41592f[_0x2c36(0x3d)][_0x2c36(0x26)]('Export\x20Error',_0x9d1cee[_0x2c36(0x4b)],[{'text':'OK','style':_0x9d1cee[_0x2c36(0x40)]}]),![]):(console['error'](_0x9d1cee['PBAeL'],_0x548677['error']),_reactNative[_0x2c36(0x3d)]['alert'](_0x9d1cee[_0x2c36(0x4c)],_0x548677[_0x2c36(0x3c)]||_0x9d1cee[_0x2c36(0x4d)],[{'text':'OK','style':_0x2c36(0x5)}]),![]);}catch(_0x48939c){if(_0x9d1cee[_0x2c36(0x4e)](_0x2c36(0x4f),_0x9d1cee[_0x2c36(0x50)]))return console[_0x2c36(0x3c)]('❌\x20[CLAUDE_EXTRACTOR]\x20Unexpected\x20error\x20during\x20export:',_0x48939c),_reactNative[_0x2c36(0x3d)][_0x2c36(0x26)](_0x9d1cee[_0x2c36(0x51)],_0x9d1cee[_0x2c36(0x4b)],[{'text':'OK','style':_0x9d1cee[_0x2c36(0x40)]}]),![];else _0x1174a5[_0x2c36(0x29)](_0x9d1cee['bmpGI'],_0x2ed49a);}}else return _0x4eb831[_0x2c36(0x3c)](_0x740be0['Jnocc']),_0x1ac6b4[_0x2c36(0x3d)][_0x2c36(0x26)](_0x2c36(0x11),_0x2c36(0x52),[{'text':'OK','style':_0x740be0[_0x2c36(0x53)]}]),![];};return{'initiateConversationExport':_0x3c1015};};exports['useClaudeConversationExtractor']=useClaudeConversationExtractor;function _0x5be4(){const _0x461eaa=['defineProperty','__esModule','useClaudeConversationExtractor','❌\x20[CLAUDE_EXTRACTOR]\x20Unexpected\x20error\x20during\x20export:','Failed\x20to\x20connect\x20to\x20the\x20conversation\x20storage\x20service.\x20Please\x20check\x20your\x20network\x20connection.','default','⚠️\x20[CLAUDE_EXTRACTOR]\x20Invalid\x20conversation:','📊\x20[CLAUDE_EXTRACTOR]\x20Backend\x20response:','❌\x20[CLAUDE_EXTRACTOR]\x20No\x20valid\x20conversations\x20after\x20filtering','JACzk','fkrlm','🚀\x20[CLAUDE_EXTRACTOR]\x20Initiating\x20conversation\x20export','👤\x20[CLAUDE_EXTRACTOR]\x20Username:','📊\x20[CLAUDE_EXTRACTOR]\x20Conversations\x20to\x20send:','❌\x20[CLAUDE_EXTRACTOR]\x20Username\x20is\x20required','Error','ℹ️\x20[CLAUDE_EXTRACTOR]\x20No\x20conversations\x20to\x20export\x20-\x20treating\x20as\x20success\x20(connected)','Data\x20Error','✅\x20[CLAUDE_EXTRACTOR]\x20Export\x20completed\x20successfully','❌\x20[CLAUDE_EXTRACTOR]\x20Backend\x20storage\x20failed:','Export\x20Failed','scuEx','Export\x20Error','CnqvI','fisig','dRsXv','HcjDJ','oqHFw','ymAuR','iBHyD','wPaAJ','log','WFHkx','fMMjc','length','JyfCd','LbDWt','HuVgw','alert','jLCQq','Username\x20is\x20required\x20to\x20export\x20Claude\x20conversations.','warn','⚠️\x20[CLAUDE_EXTRACTOR]\x20Filtered\x20out\x20','mVKAJ','\x20invalid\x20conversations','YUFkA','hZNtf','XHoGP','KOyNQ','aviom','conversation_id','title','user_messages','nnHLA','XREWZ','WnjwY','isArray','lTmAp','UOHjm','KwPzy','error','Alert','IzDZY','Mbuyx','EaDcQ','AoFvR','data','📡\x20[CLAUDE_EXTRACTOR]\x20Sending\x20to\x20backend...','storeClaudeConversations','success','uIJVh','FayiK','DBEbs','nYRbP','AiohJ','TFiyh','ESqqU','fNhxW','BzsXz','Dnjua','EfcTV','onKNf','No\x20valid\x20conversations\x20found\x20to\x20export.','RPReD'];_0x5be4=function(){return _0x461eaa;};return _0x5be4();}
8
+ function _0x5bd6(){const _0x172f9f=['defineProperty','__esModule','useClaudeConversationExtractor','dVSfq','⚠️\x20[CLAUDE_EXTRACTOR]\x20Invalid\x20conversation:','ℹ️\x20[CLAUDE_EXTRACTOR]\x20No\x20conversations\x20to\x20export\x20-\x20treating\x20as\x20success\x20(connected)','default','🚀\x20[CLAUDE_EXTRACTOR]\x20Initiating\x20conversation\x20export','📊\x20[CLAUDE_EXTRACTOR]\x20Conversations\x20to\x20send:','Error','Username\x20is\x20required\x20to\x20export\x20Claude\x20conversations.','❌\x20[CLAUDE_EXTRACTOR]\x20No\x20valid\x20conversations\x20after\x20filtering','No\x20valid\x20conversations\x20found\x20to\x20export.','📡\x20[CLAUDE_EXTRACTOR]\x20Sending\x20to\x20backend...','✅\x20[CLAUDE_EXTRACTOR]\x20Export\x20completed\x20successfully','An\x20unknown\x20error\x20occurred\x20during\x20conversation\x20storage.','❌\x20[CLAUDE_EXTRACTOR]\x20Unexpected\x20error\x20during\x20export:','Export\x20Error','Failed\x20to\x20connect\x20to\x20the\x20conversation\x20storage\x20service.\x20Please\x20check\x20your\x20network\x20connection.','LkrmR','log','VhEDD','👤\x20[CLAUDE_EXTRACTOR]\x20Username:','error','kvXCY','Alert','alert','weqzZ','length','Qxewo','conversation_id','title','isArray','user_messages','gIXDB','orSyu','LvNPO','fujwz','yLmoS','Data\x20Error','warn','⚠️\x20[CLAUDE_EXTRACTOR]\x20Filtered\x20out\x20','efEhF','success','📊\x20[CLAUDE_EXTRACTOR]\x20Backend\x20response:','QUvzk','zMAPC','❌\x20[CLAUDE_EXTRACTOR]\x20Backend\x20storage\x20failed:','Export\x20Failed','sveYo','Kyasp','qhSNR','Kqefy'];_0x5bd6=function(){return _0x172f9f;};return _0x5bd6();}function _0x4b90(_0x5bd637,_0x4b9076){_0x5bd637=_0x5bd637-0x0;const _0x478b91=_0x5bd6();let _0x4e6739=_0x478b91[_0x5bd637];return _0x4e6739;}Object[_0x4b90(0x0)](exports,_0x4b90(0x1),{'value':!![]}),exports[_0x4b90(0x2)]=void 0x0;var _claudeConversationService=__ONAIROS_REQ_FUNC__(0x0),_reactNative=__ONAIROS_REQ_FUNC__(0x1);const useClaudeConversationExtractor=()=>{const _0x1cf522={'gIXDB':function(_0x1eafb5,_0x57d791){return _0x1eafb5>_0x57d791;},'orSyu':function(_0x430169,_0x533ebe){return _0x430169!==_0x533ebe;},'LBAPO':_0x4b90(0x3),'fujwz':_0x4b90(0x4),'Qxewo':_0x4b90(0x5),'LkrmR':_0x4b90(0x6),'VhEDD':_0x4b90(0x7),'swMDE':_0x4b90(0x8),'kvXCY':'❌\x20[CLAUDE_EXTRACTOR]\x20Username\x20is\x20required','shsbz':_0x4b90(0x9),'MkwgL':_0x4b90(0xa),'weqzZ':function(_0x2c0baa,_0x51083a){return _0x2c0baa===_0x51083a;},'yLmoS':_0x4b90(0xb),'ZlJgp':_0x4b90(0xc),'QQmYS':function(_0x4caf6a,_0x6eda9f){return _0x4caf6a<_0x6eda9f;},'efEhF':_0x4b90(0xd),'ZHEkT':_0x4b90(0xe),'QUvzk':function(_0x5e910c,_0xd57ea1){return _0x5e910c===_0xd57ea1;},'zMAPC':'xyHth','sveYo':_0x4b90(0xf),'Kyasp':_0x4b90(0x10),'qhSNR':_0x4b90(0x11),'Kqefy':_0x4b90(0x12)},_0x30a7b2=async(_0x4ebf1c,_0x3310ed)=>{const _0x5d3509={'lwDFm':_0x4b90(0x12),'LvNPO':_0x1cf522[_0x4b90(0x13)]};console[_0x4b90(0x14)](_0x1cf522[_0x4b90(0x15)]),console[_0x4b90(0x14)](_0x4b90(0x16),_0x4ebf1c),console[_0x4b90(0x14)](_0x1cf522['swMDE'],_0x3310ed['length']);if(!_0x4ebf1c)return console[_0x4b90(0x17)](_0x1cf522[_0x4b90(0x18)]),_reactNative[_0x4b90(0x19)][_0x4b90(0x1a)](_0x1cf522['shsbz'],_0x1cf522['MkwgL'],[{'text':'OK','style':_0x1cf522[_0x4b90(0x13)]}]),![];if(!_0x3310ed||_0x1cf522[_0x4b90(0x1b)](_0x3310ed[_0x4b90(0x1c)],0x0))return console['log'](_0x1cf522[_0x4b90(0x1d)]),!![];const _0x1a2458=_0x3310ed['filter'](_0x225ba2=>{const _0x1b5046=_0x225ba2[_0x4b90(0x1e)]&&_0x225ba2[_0x4b90(0x1f)]&&Array[_0x4b90(0x20)](_0x225ba2[_0x4b90(0x21)])&&_0x1cf522[_0x4b90(0x22)](_0x225ba2[_0x4b90(0x21)][_0x4b90(0x1c)],0x0);if(!_0x1b5046){if(_0x1cf522[_0x4b90(0x23)](_0x1cf522['LBAPO'],_0x4b90(0x3)))return _0x1a6203[_0x4b90(0x17)](_0x4b90(0x10),_0x1edcbd),_0x4d6886['Alert']['alert'](_0x4b90(0x11),_0x5d3509['lwDFm'],[{'text':'OK','style':_0x5d3509[_0x4b90(0x24)]}]),![];else console['warn'](_0x1cf522[_0x4b90(0x25)],_0x225ba2);}return _0x1b5046;});if(_0x1cf522[_0x4b90(0x1b)](_0x1a2458[_0x4b90(0x1c)],0x0))return console[_0x4b90(0x17)](_0x1cf522[_0x4b90(0x26)]),_reactNative[_0x4b90(0x19)][_0x4b90(0x1a)](_0x4b90(0x27),_0x1cf522['ZlJgp'],[{'text':'OK','style':_0x1cf522[_0x4b90(0x13)]}]),![];_0x1cf522['QQmYS'](_0x1a2458[_0x4b90(0x1c)],_0x3310ed[_0x4b90(0x1c)])&&console[_0x4b90(0x28)](_0x4b90(0x29)+(_0x3310ed['length']-_0x1a2458['length'])+'\x20invalid\x20conversations');try{console['log'](_0x1cf522[_0x4b90(0x2a)]);const _0x412b4c=await(0x0,_claudeConversationService['storeClaudeConversations'])(_0x4ebf1c,_0x1a2458);return _0x412b4c[_0x4b90(0x2b)]?(console[_0x4b90(0x14)](_0x1cf522['ZHEkT']),console[_0x4b90(0x14)](_0x4b90(0x2c),_0x412b4c['data']),!![]):_0x1cf522[_0x4b90(0x2d)]('SJbHJ',_0x1cf522[_0x4b90(0x2e)])?(_0x2d6125[_0x4b90(0x14)](_0x1cf522['Qxewo']),!![]):(console[_0x4b90(0x17)](_0x4b90(0x2f),_0x412b4c[_0x4b90(0x17)]),_reactNative['Alert'][_0x4b90(0x1a)](_0x4b90(0x30),_0x412b4c['error']||_0x1cf522[_0x4b90(0x31)],[{'text':'OK','style':_0x1cf522['LkrmR']}]),![]);}catch(_0x224a27){return console['error'](_0x1cf522[_0x4b90(0x32)],_0x224a27),_reactNative[_0x4b90(0x19)][_0x4b90(0x1a)](_0x1cf522[_0x4b90(0x33)],_0x1cf522[_0x4b90(0x34)],[{'text':'OK','style':_0x1cf522[_0x4b90(0x13)]}]),![];}};return{'initiateConversationExport':_0x30a7b2};};exports[_0x4b90(0x2)]=useClaudeConversationExtractor;