@oxyhq/services 6.10.8 → 7.0.0

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 (450) hide show
  1. package/lib/commonjs/index.js +211 -49
  2. package/lib/commonjs/index.js.map +1 -1
  3. package/lib/commonjs/ui/client.js +25 -4
  4. package/lib/commonjs/ui/client.js.map +1 -1
  5. package/lib/commonjs/ui/components/AccountMenu.js +485 -0
  6. package/lib/commonjs/ui/components/AccountMenu.js.map +1 -0
  7. package/lib/commonjs/ui/components/AccountMenuButton.js +120 -0
  8. package/lib/commonjs/ui/components/AccountMenuButton.js.map +1 -0
  9. package/lib/commonjs/ui/components/ActingAsBanner.js +2 -2
  10. package/lib/commonjs/ui/components/ActingAsBanner.js.map +1 -1
  11. package/lib/commonjs/ui/components/ProfileCard.js +2 -2
  12. package/lib/commonjs/ui/components/ProfileCard.js.map +1 -1
  13. package/lib/commonjs/ui/components/StepBasedScreen.js +2 -2
  14. package/lib/commonjs/ui/components/StepBasedScreen.js.map +1 -1
  15. package/lib/commonjs/ui/components/accountMenuRows.js +45 -0
  16. package/lib/commonjs/ui/components/accountMenuRows.js.map +1 -0
  17. package/lib/commonjs/ui/components/payment/PaymentDetailsStep.js +5 -5
  18. package/lib/commonjs/ui/components/payment/PaymentDetailsStep.js.map +1 -1
  19. package/lib/commonjs/ui/components/payment/PaymentMethodStep.js +3 -2
  20. package/lib/commonjs/ui/components/payment/PaymentMethodStep.js.map +1 -1
  21. package/lib/commonjs/ui/components/theming.js +2 -2
  22. package/lib/commonjs/ui/components/theming.js.map +1 -1
  23. package/lib/commonjs/ui/context/OxyContext.js +59 -131
  24. package/lib/commonjs/ui/context/OxyContext.js.map +1 -1
  25. package/lib/commonjs/ui/context/hooks/useAuthOperations.js +36 -2
  26. package/lib/commonjs/ui/context/hooks/useAuthOperations.js.map +1 -1
  27. package/lib/commonjs/ui/hooks/mutations/mutationKeys.js +6 -0
  28. package/lib/commonjs/ui/hooks/mutations/mutationKeys.js.map +1 -1
  29. package/lib/commonjs/ui/hooks/mutations/useAccountMutations.js +138 -1
  30. package/lib/commonjs/ui/hooks/mutations/useAccountMutations.js.map +1 -1
  31. package/lib/commonjs/ui/hooks/queries/queryKeys.js +67 -2
  32. package/lib/commonjs/ui/hooks/queries/queryKeys.js.map +1 -1
  33. package/lib/commonjs/ui/hooks/queries/useAccountQueries.js +27 -2
  34. package/lib/commonjs/ui/hooks/queries/useAccountQueries.js.map +1 -1
  35. package/lib/commonjs/ui/hooks/useAuth.js +13 -2
  36. package/lib/commonjs/ui/hooks/useAuth.js.map +1 -1
  37. package/lib/commonjs/ui/hooks/useSessionManagement.js +30 -0
  38. package/lib/commonjs/ui/hooks/useSessionManagement.js.map +1 -1
  39. package/lib/commonjs/ui/index.js +132 -85
  40. package/lib/commonjs/ui/index.js.map +1 -1
  41. package/lib/commonjs/ui/navigation/routes.js +6 -7
  42. package/lib/commonjs/ui/navigation/routes.js.map +1 -1
  43. package/lib/commonjs/ui/screens/AccountVerificationScreen.js +3 -2
  44. package/lib/commonjs/ui/screens/AccountVerificationScreen.js.map +1 -1
  45. package/lib/commonjs/ui/screens/ConnectedAppsScreen.js +202 -0
  46. package/lib/commonjs/ui/screens/ConnectedAppsScreen.js.map +1 -0
  47. package/lib/commonjs/ui/screens/CreateManagedAccountScreen.js +3 -2
  48. package/lib/commonjs/ui/screens/CreateManagedAccountScreen.js.map +1 -1
  49. package/lib/commonjs/ui/screens/EditProfileFieldScreen.js +3 -2
  50. package/lib/commonjs/ui/screens/EditProfileFieldScreen.js.map +1 -1
  51. package/lib/commonjs/ui/screens/FAQScreen.js +7 -4
  52. package/lib/commonjs/ui/screens/FAQScreen.js.map +1 -1
  53. package/lib/commonjs/ui/screens/FeedbackScreen.js +21 -16
  54. package/lib/commonjs/ui/screens/FeedbackScreen.js.map +1 -1
  55. package/lib/commonjs/ui/screens/HelpSupportScreen.js +3 -2
  56. package/lib/commonjs/ui/screens/HelpSupportScreen.js.map +1 -1
  57. package/lib/commonjs/ui/screens/HistoryViewScreen.js +7 -4
  58. package/lib/commonjs/ui/screens/HistoryViewScreen.js.map +1 -1
  59. package/lib/commonjs/ui/screens/LanguageSelectorScreen.js +3 -2
  60. package/lib/commonjs/ui/screens/LanguageSelectorScreen.js.map +1 -1
  61. package/lib/commonjs/ui/screens/LegalDocumentsScreen.js +6 -4
  62. package/lib/commonjs/ui/screens/LegalDocumentsScreen.js.map +1 -1
  63. package/lib/commonjs/ui/screens/ManageAccountScreen.js +780 -0
  64. package/lib/commonjs/ui/screens/ManageAccountScreen.js.map +1 -0
  65. package/lib/commonjs/ui/screens/NotificationsScreen.js +175 -0
  66. package/lib/commonjs/ui/screens/NotificationsScreen.js.map +1 -0
  67. package/lib/commonjs/ui/screens/PaymentGatewayScreen.js +18 -12
  68. package/lib/commonjs/ui/screens/PaymentGatewayScreen.js.map +1 -1
  69. package/lib/commonjs/ui/screens/PreferencesScreen.js +220 -0
  70. package/lib/commonjs/ui/screens/PreferencesScreen.js.map +1 -0
  71. package/lib/commonjs/ui/screens/PrivacySettingsScreen.js +14 -10
  72. package/lib/commonjs/ui/screens/PrivacySettingsScreen.js.map +1 -1
  73. package/lib/commonjs/ui/screens/ProfileScreen.js +3 -3
  74. package/lib/commonjs/ui/screens/ProfileScreen.js.map +1 -1
  75. package/lib/commonjs/ui/screens/SavesCollectionsScreen.js +8 -5
  76. package/lib/commonjs/ui/screens/SavesCollectionsScreen.js.map +1 -1
  77. package/lib/commonjs/ui/screens/SearchSettingsScreen.js +6 -4
  78. package/lib/commonjs/ui/screens/SearchSettingsScreen.js.map +1 -1
  79. package/lib/commonjs/ui/screens/UserLinksScreen.js +3 -2
  80. package/lib/commonjs/ui/screens/UserLinksScreen.js.map +1 -1
  81. package/lib/commonjs/ui/screens/UserListScreen.js +2 -2
  82. package/lib/commonjs/ui/screens/UserListScreen.js.map +1 -1
  83. package/lib/commonjs/ui/screens/karma/KarmaAboutScreen.js +3 -2
  84. package/lib/commonjs/ui/screens/karma/KarmaAboutScreen.js.map +1 -1
  85. package/lib/commonjs/ui/screens/karma/KarmaFAQScreen.js +3 -2
  86. package/lib/commonjs/ui/screens/karma/KarmaFAQScreen.js.map +1 -1
  87. package/lib/commonjs/ui/screens/karma/KarmaLeaderboardScreen.js +2 -2
  88. package/lib/commonjs/ui/screens/karma/KarmaLeaderboardScreen.js.map +1 -1
  89. package/lib/commonjs/ui/screens/karma/KarmaRewardsScreen.js +4 -3
  90. package/lib/commonjs/ui/screens/karma/KarmaRewardsScreen.js.map +1 -1
  91. package/lib/commonjs/ui/screens/karma/KarmaRulesScreen.js +3 -2
  92. package/lib/commonjs/ui/screens/karma/KarmaRulesScreen.js.map +1 -1
  93. package/lib/commonjs/ui/utils/activeAuthuser.js +85 -0
  94. package/lib/commonjs/ui/utils/activeAuthuser.js.map +1 -0
  95. package/lib/module/index.js +58 -16
  96. package/lib/module/index.js.map +1 -1
  97. package/lib/module/ui/client.js +5 -3
  98. package/lib/module/ui/client.js.map +1 -1
  99. package/lib/module/ui/components/AccountMenu.js +480 -0
  100. package/lib/module/ui/components/AccountMenu.js.map +1 -0
  101. package/lib/module/ui/components/AccountMenuButton.js +115 -0
  102. package/lib/module/ui/components/AccountMenuButton.js.map +1 -0
  103. package/lib/module/ui/components/ActingAsBanner.js +2 -2
  104. package/lib/module/ui/components/ActingAsBanner.js.map +1 -1
  105. package/lib/module/ui/components/ProfileCard.js +1 -1
  106. package/lib/module/ui/components/ProfileCard.js.map +1 -1
  107. package/lib/module/ui/components/StepBasedScreen.js +1 -1
  108. package/lib/module/ui/components/StepBasedScreen.js.map +1 -1
  109. package/lib/module/ui/components/accountMenuRows.js +41 -0
  110. package/lib/module/ui/components/accountMenuRows.js.map +1 -0
  111. package/lib/module/ui/components/payment/PaymentDetailsStep.js +1 -1
  112. package/lib/module/ui/components/payment/PaymentDetailsStep.js.map +1 -1
  113. package/lib/module/ui/components/payment/PaymentMethodStep.js +1 -1
  114. package/lib/module/ui/components/payment/PaymentMethodStep.js.map +1 -1
  115. package/lib/module/ui/components/theming.js +1 -1
  116. package/lib/module/ui/components/theming.js.map +1 -1
  117. package/lib/module/ui/context/OxyContext.js +59 -131
  118. package/lib/module/ui/context/OxyContext.js.map +1 -1
  119. package/lib/module/ui/context/hooks/useAuthOperations.js +36 -2
  120. package/lib/module/ui/context/hooks/useAuthOperations.js.map +1 -1
  121. package/lib/module/ui/hooks/mutations/mutationKeys.js +6 -0
  122. package/lib/module/ui/hooks/mutations/mutationKeys.js.map +1 -1
  123. package/lib/module/ui/hooks/mutations/useAccountMutations.js +135 -1
  124. package/lib/module/ui/hooks/mutations/useAccountMutations.js.map +1 -1
  125. package/lib/module/ui/hooks/queries/queryKeys.js +60 -1
  126. package/lib/module/ui/hooks/queries/queryKeys.js.map +1 -1
  127. package/lib/module/ui/hooks/queries/useAccountQueries.js +24 -0
  128. package/lib/module/ui/hooks/queries/useAccountQueries.js.map +1 -1
  129. package/lib/module/ui/hooks/useAuth.js +13 -2
  130. package/lib/module/ui/hooks/useAuth.js.map +1 -1
  131. package/lib/module/ui/hooks/useSessionManagement.js +30 -0
  132. package/lib/module/ui/hooks/useSessionManagement.js.map +1 -1
  133. package/lib/module/ui/index.js +34 -78
  134. package/lib/module/ui/index.js.map +1 -1
  135. package/lib/module/ui/navigation/routes.js +6 -7
  136. package/lib/module/ui/navigation/routes.js.map +1 -1
  137. package/lib/module/ui/screens/AccountVerificationScreen.js +1 -1
  138. package/lib/module/ui/screens/AccountVerificationScreen.js.map +1 -1
  139. package/lib/module/ui/screens/ConnectedAppsScreen.js +198 -0
  140. package/lib/module/ui/screens/ConnectedAppsScreen.js.map +1 -0
  141. package/lib/module/ui/screens/CreateManagedAccountScreen.js +1 -1
  142. package/lib/module/ui/screens/CreateManagedAccountScreen.js.map +1 -1
  143. package/lib/module/ui/screens/EditProfileFieldScreen.js +1 -1
  144. package/lib/module/ui/screens/EditProfileFieldScreen.js.map +1 -1
  145. package/lib/module/ui/screens/FAQScreen.js +3 -1
  146. package/lib/module/ui/screens/FAQScreen.js.map +1 -1
  147. package/lib/module/ui/screens/FeedbackScreen.js +6 -2
  148. package/lib/module/ui/screens/FeedbackScreen.js.map +1 -1
  149. package/lib/module/ui/screens/HelpSupportScreen.js +1 -1
  150. package/lib/module/ui/screens/HelpSupportScreen.js.map +1 -1
  151. package/lib/module/ui/screens/HistoryViewScreen.js +3 -1
  152. package/lib/module/ui/screens/HistoryViewScreen.js.map +1 -1
  153. package/lib/module/ui/screens/LanguageSelectorScreen.js +1 -1
  154. package/lib/module/ui/screens/LanguageSelectorScreen.js.map +1 -1
  155. package/lib/module/ui/screens/LegalDocumentsScreen.js +2 -1
  156. package/lib/module/ui/screens/LegalDocumentsScreen.js.map +1 -1
  157. package/lib/module/ui/screens/ManageAccountScreen.js +775 -0
  158. package/lib/module/ui/screens/ManageAccountScreen.js.map +1 -0
  159. package/lib/module/ui/screens/NotificationsScreen.js +169 -0
  160. package/lib/module/ui/screens/NotificationsScreen.js.map +1 -0
  161. package/lib/module/ui/screens/PaymentGatewayScreen.js +9 -3
  162. package/lib/module/ui/screens/PaymentGatewayScreen.js.map +1 -1
  163. package/lib/module/ui/screens/PreferencesScreen.js +214 -0
  164. package/lib/module/ui/screens/PreferencesScreen.js.map +1 -0
  165. package/lib/module/ui/screens/PrivacySettingsScreen.js +4 -1
  166. package/lib/module/ui/screens/PrivacySettingsScreen.js.map +1 -1
  167. package/lib/module/ui/screens/ProfileScreen.js +2 -2
  168. package/lib/module/ui/screens/ProfileScreen.js.map +1 -1
  169. package/lib/module/ui/screens/SavesCollectionsScreen.js +3 -1
  170. package/lib/module/ui/screens/SavesCollectionsScreen.js.map +1 -1
  171. package/lib/module/ui/screens/SearchSettingsScreen.js +2 -1
  172. package/lib/module/ui/screens/SearchSettingsScreen.js.map +1 -1
  173. package/lib/module/ui/screens/UserLinksScreen.js +1 -1
  174. package/lib/module/ui/screens/UserLinksScreen.js.map +1 -1
  175. package/lib/module/ui/screens/UserListScreen.js +1 -1
  176. package/lib/module/ui/screens/UserListScreen.js.map +1 -1
  177. package/lib/module/ui/screens/karma/KarmaAboutScreen.js +1 -1
  178. package/lib/module/ui/screens/karma/KarmaAboutScreen.js.map +1 -1
  179. package/lib/module/ui/screens/karma/KarmaFAQScreen.js +1 -1
  180. package/lib/module/ui/screens/karma/KarmaFAQScreen.js.map +1 -1
  181. package/lib/module/ui/screens/karma/KarmaLeaderboardScreen.js +1 -1
  182. package/lib/module/ui/screens/karma/KarmaLeaderboardScreen.js.map +1 -1
  183. package/lib/module/ui/screens/karma/KarmaRewardsScreen.js +1 -1
  184. package/lib/module/ui/screens/karma/KarmaRewardsScreen.js.map +1 -1
  185. package/lib/module/ui/screens/karma/KarmaRulesScreen.js +1 -1
  186. package/lib/module/ui/screens/karma/KarmaRulesScreen.js.map +1 -1
  187. package/lib/module/ui/utils/activeAuthuser.js +79 -0
  188. package/lib/module/ui/utils/activeAuthuser.js.map +1 -0
  189. package/lib/typescript/commonjs/index.d.ts +23 -6
  190. package/lib/typescript/commonjs/index.d.ts.map +1 -1
  191. package/lib/typescript/commonjs/ui/client.d.ts +7 -2
  192. package/lib/typescript/commonjs/ui/client.d.ts.map +1 -1
  193. package/lib/typescript/commonjs/ui/components/AccountMenu.d.ts +23 -0
  194. package/lib/typescript/commonjs/ui/components/AccountMenu.d.ts.map +1 -0
  195. package/lib/typescript/commonjs/ui/components/AccountMenuButton.d.ts +19 -0
  196. package/lib/typescript/commonjs/ui/components/AccountMenuButton.d.ts.map +1 -0
  197. package/lib/typescript/commonjs/ui/components/accountMenuRows.d.ts +27 -0
  198. package/lib/typescript/commonjs/ui/components/accountMenuRows.d.ts.map +1 -0
  199. package/lib/typescript/commonjs/ui/context/OxyContext.d.ts.map +1 -1
  200. package/lib/typescript/commonjs/ui/context/hooks/useAuthOperations.d.ts.map +1 -1
  201. package/lib/typescript/commonjs/ui/hooks/mutations/mutationKeys.d.ts +5 -0
  202. package/lib/typescript/commonjs/ui/hooks/mutations/mutationKeys.d.ts.map +1 -1
  203. package/lib/typescript/commonjs/ui/hooks/mutations/useAccountMutations.d.ts +26 -1
  204. package/lib/typescript/commonjs/ui/hooks/mutations/useAccountMutations.d.ts.map +1 -1
  205. package/lib/typescript/commonjs/ui/hooks/queries/queryKeys.d.ts +32 -3
  206. package/lib/typescript/commonjs/ui/hooks/queries/queryKeys.d.ts.map +1 -1
  207. package/lib/typescript/commonjs/ui/hooks/queries/useAccountQueries.d.ts +10 -1
  208. package/lib/typescript/commonjs/ui/hooks/queries/useAccountQueries.d.ts.map +1 -1
  209. package/lib/typescript/commonjs/ui/hooks/useAuth.d.ts +8 -2
  210. package/lib/typescript/commonjs/ui/hooks/useAuth.d.ts.map +1 -1
  211. package/lib/typescript/commonjs/ui/hooks/useSessionManagement.d.ts.map +1 -1
  212. package/lib/typescript/commonjs/ui/index.d.ts +32 -18
  213. package/lib/typescript/commonjs/ui/index.d.ts.map +1 -1
  214. package/lib/typescript/commonjs/ui/navigation/routes.d.ts +1 -1
  215. package/lib/typescript/commonjs/ui/navigation/routes.d.ts.map +1 -1
  216. package/lib/typescript/{module/ui/screens/AccountOverviewScreen.d.ts → commonjs/ui/screens/ConnectedAppsScreen.d.ts} +1 -1
  217. package/lib/typescript/commonjs/ui/screens/ConnectedAppsScreen.d.ts.map +1 -0
  218. package/lib/typescript/commonjs/ui/screens/FAQScreen.d.ts.map +1 -1
  219. package/lib/typescript/commonjs/ui/screens/FeedbackScreen.d.ts.map +1 -1
  220. package/lib/typescript/commonjs/ui/screens/HistoryViewScreen.d.ts.map +1 -1
  221. package/lib/typescript/commonjs/ui/screens/LegalDocumentsScreen.d.ts.map +1 -1
  222. package/lib/typescript/commonjs/ui/screens/ManageAccountScreen.d.ts +13 -0
  223. package/lib/typescript/commonjs/ui/screens/ManageAccountScreen.d.ts.map +1 -0
  224. package/lib/typescript/commonjs/ui/screens/{AccountOverviewScreen.d.ts → NotificationsScreen.d.ts} +1 -1
  225. package/lib/typescript/commonjs/ui/screens/NotificationsScreen.d.ts.map +1 -0
  226. package/lib/typescript/commonjs/ui/screens/PaymentGatewayScreen.d.ts +1 -1
  227. package/lib/typescript/commonjs/ui/screens/PaymentGatewayScreen.d.ts.map +1 -1
  228. package/lib/typescript/commonjs/ui/screens/{AccountSettingsScreen.d.ts → PreferencesScreen.d.ts} +2 -5
  229. package/lib/typescript/commonjs/ui/screens/PreferencesScreen.d.ts.map +1 -0
  230. package/lib/typescript/commonjs/ui/screens/PrivacySettingsScreen.d.ts.map +1 -1
  231. package/lib/typescript/commonjs/ui/screens/SavesCollectionsScreen.d.ts.map +1 -1
  232. package/lib/typescript/commonjs/ui/screens/SearchSettingsScreen.d.ts.map +1 -1
  233. package/lib/typescript/commonjs/ui/utils/activeAuthuser.d.ts +42 -0
  234. package/lib/typescript/commonjs/ui/utils/activeAuthuser.d.ts.map +1 -0
  235. package/lib/typescript/module/index.d.ts +23 -6
  236. package/lib/typescript/module/index.d.ts.map +1 -1
  237. package/lib/typescript/module/ui/client.d.ts +7 -2
  238. package/lib/typescript/module/ui/client.d.ts.map +1 -1
  239. package/lib/typescript/module/ui/components/AccountMenu.d.ts +23 -0
  240. package/lib/typescript/module/ui/components/AccountMenu.d.ts.map +1 -0
  241. package/lib/typescript/module/ui/components/AccountMenuButton.d.ts +19 -0
  242. package/lib/typescript/module/ui/components/AccountMenuButton.d.ts.map +1 -0
  243. package/lib/typescript/module/ui/components/accountMenuRows.d.ts +27 -0
  244. package/lib/typescript/module/ui/components/accountMenuRows.d.ts.map +1 -0
  245. package/lib/typescript/module/ui/context/OxyContext.d.ts.map +1 -1
  246. package/lib/typescript/module/ui/context/hooks/useAuthOperations.d.ts.map +1 -1
  247. package/lib/typescript/module/ui/hooks/mutations/mutationKeys.d.ts +5 -0
  248. package/lib/typescript/module/ui/hooks/mutations/mutationKeys.d.ts.map +1 -1
  249. package/lib/typescript/module/ui/hooks/mutations/useAccountMutations.d.ts +26 -1
  250. package/lib/typescript/module/ui/hooks/mutations/useAccountMutations.d.ts.map +1 -1
  251. package/lib/typescript/module/ui/hooks/queries/queryKeys.d.ts +32 -3
  252. package/lib/typescript/module/ui/hooks/queries/queryKeys.d.ts.map +1 -1
  253. package/lib/typescript/module/ui/hooks/queries/useAccountQueries.d.ts +10 -1
  254. package/lib/typescript/module/ui/hooks/queries/useAccountQueries.d.ts.map +1 -1
  255. package/lib/typescript/module/ui/hooks/useAuth.d.ts +8 -2
  256. package/lib/typescript/module/ui/hooks/useAuth.d.ts.map +1 -1
  257. package/lib/typescript/module/ui/hooks/useSessionManagement.d.ts.map +1 -1
  258. package/lib/typescript/module/ui/index.d.ts +32 -18
  259. package/lib/typescript/module/ui/index.d.ts.map +1 -1
  260. package/lib/typescript/module/ui/navigation/routes.d.ts +1 -1
  261. package/lib/typescript/module/ui/navigation/routes.d.ts.map +1 -1
  262. package/lib/typescript/module/ui/screens/{AccountSettingsScreen.d.ts → ConnectedAppsScreen.d.ts} +2 -5
  263. package/lib/typescript/module/ui/screens/ConnectedAppsScreen.d.ts.map +1 -0
  264. package/lib/typescript/module/ui/screens/FAQScreen.d.ts.map +1 -1
  265. package/lib/typescript/module/ui/screens/FeedbackScreen.d.ts.map +1 -1
  266. package/lib/typescript/module/ui/screens/HistoryViewScreen.d.ts.map +1 -1
  267. package/lib/typescript/module/ui/screens/LegalDocumentsScreen.d.ts.map +1 -1
  268. package/lib/typescript/module/ui/screens/ManageAccountScreen.d.ts +13 -0
  269. package/lib/typescript/module/ui/screens/ManageAccountScreen.d.ts.map +1 -0
  270. package/lib/typescript/module/ui/screens/NotificationsScreen.d.ts +5 -0
  271. package/lib/typescript/module/ui/screens/NotificationsScreen.d.ts.map +1 -0
  272. package/lib/typescript/module/ui/screens/PaymentGatewayScreen.d.ts +1 -1
  273. package/lib/typescript/module/ui/screens/PaymentGatewayScreen.d.ts.map +1 -1
  274. package/lib/typescript/module/ui/screens/PreferencesScreen.d.ts +5 -0
  275. package/lib/typescript/module/ui/screens/PreferencesScreen.d.ts.map +1 -0
  276. package/lib/typescript/module/ui/screens/PrivacySettingsScreen.d.ts.map +1 -1
  277. package/lib/typescript/module/ui/screens/SavesCollectionsScreen.d.ts.map +1 -1
  278. package/lib/typescript/module/ui/screens/SearchSettingsScreen.d.ts.map +1 -1
  279. package/lib/typescript/module/ui/utils/activeAuthuser.d.ts +42 -0
  280. package/lib/typescript/module/ui/utils/activeAuthuser.d.ts.map +1 -0
  281. package/package.json +20 -9
  282. package/src/index.ts +141 -47
  283. package/src/ui/client.ts +7 -2
  284. package/src/ui/components/AccountMenu.tsx +534 -0
  285. package/src/ui/components/AccountMenuButton.tsx +113 -0
  286. package/src/ui/components/ActingAsBanner.tsx +2 -2
  287. package/src/ui/components/ProfileCard.tsx +1 -1
  288. package/src/ui/components/StepBasedScreen.tsx +1 -1
  289. package/src/ui/components/accountMenuRows.ts +60 -0
  290. package/src/ui/components/payment/PaymentDetailsStep.tsx +1 -1
  291. package/src/ui/components/payment/PaymentMethodStep.tsx +1 -1
  292. package/src/ui/components/theming.tsx +1 -1
  293. package/src/ui/context/OxyContext.tsx +61 -145
  294. package/src/ui/context/hooks/useAuthOperations.ts +36 -2
  295. package/src/ui/hooks/mutations/mutationKeys.ts +11 -0
  296. package/src/ui/hooks/mutations/useAccountMutations.ts +154 -2
  297. package/src/ui/hooks/queries/queryKeys.ts +54 -4
  298. package/src/ui/hooks/queries/useAccountQueries.ts +25 -1
  299. package/src/ui/hooks/useAuth.ts +23 -4
  300. package/src/ui/hooks/useSessionManagement.ts +29 -0
  301. package/src/ui/index.ts +37 -98
  302. package/src/ui/navigation/routes.ts +9 -11
  303. package/src/ui/screens/AccountVerificationScreen.tsx +1 -1
  304. package/src/ui/screens/ConnectedAppsScreen.tsx +225 -0
  305. package/src/ui/screens/CreateManagedAccountScreen.tsx +1 -1
  306. package/src/ui/screens/EditProfileFieldScreen.tsx +1 -1
  307. package/src/ui/screens/FAQScreen.tsx +3 -1
  308. package/src/ui/screens/FeedbackScreen.tsx +6 -10
  309. package/src/ui/screens/HelpSupportScreen.tsx +1 -1
  310. package/src/ui/screens/HistoryViewScreen.tsx +3 -1
  311. package/src/ui/screens/LanguageSelectorScreen.tsx +1 -1
  312. package/src/ui/screens/LegalDocumentsScreen.tsx +2 -1
  313. package/src/ui/screens/ManageAccountScreen.tsx +1102 -0
  314. package/src/ui/screens/NotificationsScreen.tsx +189 -0
  315. package/src/ui/screens/PaymentGatewayScreen.tsx +10 -12
  316. package/src/ui/screens/PreferencesScreen.tsx +263 -0
  317. package/src/ui/screens/PrivacySettingsScreen.tsx +4 -1
  318. package/src/ui/screens/ProfileScreen.tsx +2 -2
  319. package/src/ui/screens/SavesCollectionsScreen.tsx +3 -1
  320. package/src/ui/screens/SearchSettingsScreen.tsx +2 -1
  321. package/src/ui/screens/UserLinksScreen.tsx +1 -1
  322. package/src/ui/screens/UserListScreen.tsx +1 -1
  323. package/src/ui/screens/karma/KarmaAboutScreen.tsx +1 -1
  324. package/src/ui/screens/karma/KarmaFAQScreen.tsx +1 -1
  325. package/src/ui/screens/karma/KarmaLeaderboardScreen.tsx +1 -1
  326. package/src/ui/screens/karma/KarmaRewardsScreen.tsx +1 -1
  327. package/src/ui/screens/karma/KarmaRulesScreen.tsx +1 -1
  328. package/src/ui/utils/activeAuthuser.ts +78 -0
  329. package/lib/commonjs/ui/components/feedback/index.js +0 -54
  330. package/lib/commonjs/ui/components/feedback/index.js.map +0 -1
  331. package/lib/commonjs/ui/components/icon/index.js +0 -21
  332. package/lib/commonjs/ui/components/icon/index.js.map +0 -1
  333. package/lib/commonjs/ui/components/index.js +0 -104
  334. package/lib/commonjs/ui/components/index.js.map +0 -1
  335. package/lib/commonjs/ui/components/modals/index.js +0 -14
  336. package/lib/commonjs/ui/components/modals/index.js.map +0 -1
  337. package/lib/commonjs/ui/components/payment/index.js +0 -80
  338. package/lib/commonjs/ui/components/payment/index.js.map +0 -1
  339. package/lib/commonjs/ui/hooks/index.js +0 -92
  340. package/lib/commonjs/ui/hooks/index.js.map +0 -1
  341. package/lib/commonjs/ui/hooks/mutations/index.js +0 -68
  342. package/lib/commonjs/ui/hooks/mutations/index.js.map +0 -1
  343. package/lib/commonjs/ui/hooks/queries/index.js +0 -155
  344. package/lib/commonjs/ui/hooks/queries/index.js.map +0 -1
  345. package/lib/commonjs/ui/screens/AccountCenterScreen.js +0 -344
  346. package/lib/commonjs/ui/screens/AccountCenterScreen.js.map +0 -1
  347. package/lib/commonjs/ui/screens/AccountOverviewScreen.js +0 -724
  348. package/lib/commonjs/ui/screens/AccountOverviewScreen.js.map +0 -1
  349. package/lib/commonjs/ui/screens/AccountSettingsScreen.js +0 -643
  350. package/lib/commonjs/ui/screens/AccountSettingsScreen.js.map +0 -1
  351. package/lib/commonjs/ui/screens/AccountSwitcherScreen.js +0 -1029
  352. package/lib/commonjs/ui/screens/AccountSwitcherScreen.js.map +0 -1
  353. package/lib/commonjs/ui/screens/SessionManagementScreen.js +0 -512
  354. package/lib/commonjs/ui/screens/SessionManagementScreen.js.map +0 -1
  355. package/lib/commonjs/ui/styles/index.js +0 -39
  356. package/lib/commonjs/ui/styles/index.js.map +0 -1
  357. package/lib/module/ui/components/feedback/index.js +0 -8
  358. package/lib/module/ui/components/feedback/index.js.map +0 -1
  359. package/lib/module/ui/components/icon/index.js +0 -5
  360. package/lib/module/ui/components/icon/index.js.map +0 -1
  361. package/lib/module/ui/components/index.js +0 -18
  362. package/lib/module/ui/components/index.js.map +0 -1
  363. package/lib/module/ui/components/modals/index.js +0 -4
  364. package/lib/module/ui/components/modals/index.js.map +0 -1
  365. package/lib/module/ui/components/payment/index.js +0 -10
  366. package/lib/module/ui/components/payment/index.js.map +0 -1
  367. package/lib/module/ui/hooks/index.js +0 -11
  368. package/lib/module/ui/hooks/index.js.map +0 -1
  369. package/lib/module/ui/hooks/mutations/index.js +0 -15
  370. package/lib/module/ui/hooks/mutations/index.js.map +0 -1
  371. package/lib/module/ui/hooks/queries/index.js +0 -26
  372. package/lib/module/ui/hooks/queries/index.js.map +0 -1
  373. package/lib/module/ui/screens/AccountCenterScreen.js +0 -339
  374. package/lib/module/ui/screens/AccountCenterScreen.js.map +0 -1
  375. package/lib/module/ui/screens/AccountOverviewScreen.js +0 -719
  376. package/lib/module/ui/screens/AccountOverviewScreen.js.map +0 -1
  377. package/lib/module/ui/screens/AccountSettingsScreen.js +0 -638
  378. package/lib/module/ui/screens/AccountSettingsScreen.js.map +0 -1
  379. package/lib/module/ui/screens/AccountSwitcherScreen.js +0 -1024
  380. package/lib/module/ui/screens/AccountSwitcherScreen.js.map +0 -1
  381. package/lib/module/ui/screens/SessionManagementScreen.js +0 -508
  382. package/lib/module/ui/screens/SessionManagementScreen.js.map +0 -1
  383. package/lib/module/ui/styles/index.js +0 -6
  384. package/lib/module/ui/styles/index.js.map +0 -1
  385. package/lib/typescript/commonjs/ui/components/feedback/index.d.ts +0 -7
  386. package/lib/typescript/commonjs/ui/components/feedback/index.d.ts.map +0 -1
  387. package/lib/typescript/commonjs/ui/components/icon/index.d.ts +0 -4
  388. package/lib/typescript/commonjs/ui/components/icon/index.d.ts.map +0 -1
  389. package/lib/typescript/commonjs/ui/components/index.d.ts +0 -13
  390. package/lib/typescript/commonjs/ui/components/index.d.ts.map +0 -1
  391. package/lib/typescript/commonjs/ui/components/modals/index.d.ts +0 -2
  392. package/lib/typescript/commonjs/ui/components/modals/index.d.ts.map +0 -1
  393. package/lib/typescript/commonjs/ui/components/payment/index.d.ts +0 -9
  394. package/lib/typescript/commonjs/ui/components/payment/index.d.ts.map +0 -1
  395. package/lib/typescript/commonjs/ui/hooks/index.d.ts +0 -9
  396. package/lib/typescript/commonjs/ui/hooks/index.d.ts.map +0 -1
  397. package/lib/typescript/commonjs/ui/hooks/mutations/index.d.ts +0 -9
  398. package/lib/typescript/commonjs/ui/hooks/mutations/index.d.ts.map +0 -1
  399. package/lib/typescript/commonjs/ui/hooks/queries/index.d.ts +0 -13
  400. package/lib/typescript/commonjs/ui/hooks/queries/index.d.ts.map +0 -1
  401. package/lib/typescript/commonjs/ui/screens/AccountCenterScreen.d.ts +0 -5
  402. package/lib/typescript/commonjs/ui/screens/AccountCenterScreen.d.ts.map +0 -1
  403. package/lib/typescript/commonjs/ui/screens/AccountOverviewScreen.d.ts.map +0 -1
  404. package/lib/typescript/commonjs/ui/screens/AccountSettingsScreen.d.ts.map +0 -1
  405. package/lib/typescript/commonjs/ui/screens/AccountSwitcherScreen.d.ts +0 -5
  406. package/lib/typescript/commonjs/ui/screens/AccountSwitcherScreen.d.ts.map +0 -1
  407. package/lib/typescript/commonjs/ui/screens/SessionManagementScreen.d.ts +0 -5
  408. package/lib/typescript/commonjs/ui/screens/SessionManagementScreen.d.ts.map +0 -1
  409. package/lib/typescript/commonjs/ui/styles/index.d.ts +0 -4
  410. package/lib/typescript/commonjs/ui/styles/index.d.ts.map +0 -1
  411. package/lib/typescript/module/ui/components/feedback/index.d.ts +0 -7
  412. package/lib/typescript/module/ui/components/feedback/index.d.ts.map +0 -1
  413. package/lib/typescript/module/ui/components/icon/index.d.ts +0 -4
  414. package/lib/typescript/module/ui/components/icon/index.d.ts.map +0 -1
  415. package/lib/typescript/module/ui/components/index.d.ts +0 -13
  416. package/lib/typescript/module/ui/components/index.d.ts.map +0 -1
  417. package/lib/typescript/module/ui/components/modals/index.d.ts +0 -2
  418. package/lib/typescript/module/ui/components/modals/index.d.ts.map +0 -1
  419. package/lib/typescript/module/ui/components/payment/index.d.ts +0 -9
  420. package/lib/typescript/module/ui/components/payment/index.d.ts.map +0 -1
  421. package/lib/typescript/module/ui/hooks/index.d.ts +0 -9
  422. package/lib/typescript/module/ui/hooks/index.d.ts.map +0 -1
  423. package/lib/typescript/module/ui/hooks/mutations/index.d.ts +0 -9
  424. package/lib/typescript/module/ui/hooks/mutations/index.d.ts.map +0 -1
  425. package/lib/typescript/module/ui/hooks/queries/index.d.ts +0 -13
  426. package/lib/typescript/module/ui/hooks/queries/index.d.ts.map +0 -1
  427. package/lib/typescript/module/ui/screens/AccountCenterScreen.d.ts +0 -5
  428. package/lib/typescript/module/ui/screens/AccountCenterScreen.d.ts.map +0 -1
  429. package/lib/typescript/module/ui/screens/AccountOverviewScreen.d.ts.map +0 -1
  430. package/lib/typescript/module/ui/screens/AccountSettingsScreen.d.ts.map +0 -1
  431. package/lib/typescript/module/ui/screens/AccountSwitcherScreen.d.ts +0 -5
  432. package/lib/typescript/module/ui/screens/AccountSwitcherScreen.d.ts.map +0 -1
  433. package/lib/typescript/module/ui/screens/SessionManagementScreen.d.ts +0 -5
  434. package/lib/typescript/module/ui/screens/SessionManagementScreen.d.ts.map +0 -1
  435. package/lib/typescript/module/ui/styles/index.d.ts +0 -4
  436. package/lib/typescript/module/ui/styles/index.d.ts.map +0 -1
  437. package/src/ui/components/feedback/index.ts +0 -6
  438. package/src/ui/components/icon/index.ts +0 -3
  439. package/src/ui/components/index.ts +0 -15
  440. package/src/ui/components/modals/index.ts +0 -1
  441. package/src/ui/components/payment/index.ts +0 -9
  442. package/src/ui/hooks/index.ts +0 -13
  443. package/src/ui/hooks/mutations/index.ts +0 -25
  444. package/src/ui/hooks/queries/index.ts +0 -61
  445. package/src/ui/screens/AccountCenterScreen.tsx +0 -182
  446. package/src/ui/screens/AccountOverviewScreen.tsx +0 -696
  447. package/src/ui/screens/AccountSettingsScreen.tsx +0 -620
  448. package/src/ui/screens/AccountSwitcherScreen.tsx +0 -1003
  449. package/src/ui/screens/SessionManagementScreen.tsx +0 -477
  450. package/src/ui/styles/index.ts +0 -3
@@ -1,724 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- var _react = _interopRequireWildcard(require("react"));
8
- var _reactNative = require("react-native");
9
- var _reactNativeSafeAreaContext = require("react-native-safe-area-context");
10
- var _Avatar = _interopRequireDefault(require("../components/Avatar.js"));
11
- var _bloom = require("@oxyhq/bloom");
12
- var _SettingsIcon = require("../components/SettingsIcon.js");
13
- var _useI18n = require("../hooks/useI18n.js");
14
- var _theme = require("@oxyhq/bloom/theme");
15
- var _userUtils = require("../utils/userUtils.js");
16
- var _core = require("@oxyhq/core");
17
- var _useColorScheme = require("../hooks/useColorScheme.js");
18
- var _theme2 = require("../constants/theme.js");
19
- var _themeUtils = require("../utils/themeUtils.js");
20
- var _OxyContext = require("../context/OxyContext.js");
21
- var _useAccountQueries = require("../hooks/queries/useAccountQueries.js");
22
- var _spacing = require("../constants/spacing.js");
23
- var _index = require("../components/modals/index.js");
24
- var _settingsList = require("@oxyhq/bloom/settings-list");
25
- var _jsxRuntime = require("react/jsx-runtime");
26
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
27
- function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
28
- // Optional Lottie import - gracefully handle if not available
29
- let LottieView = null;
30
- try {
31
- // eslint-disable-next-line @typescript-eslint/no-require-imports
32
- LottieView = require('lottie-react-native').default;
33
- } catch {
34
- // Lottie not available, will use fallback
35
- }
36
-
37
- // Import Lottie animation - will be undefined if file doesn't exist
38
- let lottieAnimation = undefined;
39
- try {
40
- // eslint-disable-next-line @typescript-eslint/no-require-imports
41
- lottieAnimation = require('../assets/lottie/welcomeheader_background_op1.json');
42
- } catch {
43
- // Animation file not available
44
- }
45
-
46
- /**
47
- * AccountOverviewScreen - Optimized for performance
48
- *
49
- * Performance optimizations implemented:
50
- * - useMemo for theme calculations (only recalculates when theme changes)
51
- * - useMemo for additional accounts filtering (only recalculates when dependencies change)
52
- * - useCallback for event handlers to prevent unnecessary re-renders
53
- * - React.memo wrapper to prevent re-renders when props haven't changed
54
- * - SettingsListGroup/SettingsListItem from bloom for consistent grouped list rendering
55
- */
56
- const AccountOverviewScreen = ({
57
- onClose,
58
- theme,
59
- navigate
60
- }) => {
61
- // Use useOxy() hook for OxyContext values
62
- const {
63
- user,
64
- logout,
65
- isLoading,
66
- sessions,
67
- activeSessionId,
68
- oxyServices,
69
- isAuthenticated,
70
- openAvatarPicker
71
- } = (0, _OxyContext.useOxy)();
72
- const {
73
- t,
74
- locale
75
- } = (0, _useI18n.useI18n)();
76
- const [showMoreAccounts, setShowMoreAccounts] = (0, _react.useState)(false);
77
- const [additionalAccountsData, setAdditionalAccountsData] = (0, _react.useState)([]);
78
- const [loadingAdditionalAccounts, setLoadingAdditionalAccounts] = (0, _react.useState)(false);
79
- const deleteAccountControl = (0, _bloom.useDialogControl)();
80
- const logoutDialog = (0, _bloom.useDialogControl)();
81
- const signOutAllDialog = (0, _bloom.useDialogControl)();
82
- const downloadDataDialog = (0, _bloom.useDialogControl)();
83
- const lottieRef = (0, _react.useRef)(null);
84
- const hasPlayedRef = (0, _react.useRef)(false);
85
- const insets = (0, _reactNativeSafeAreaContext.useSafeAreaInsets)();
86
-
87
- // Use bloom theme for ActivityIndicator and other non-style color props
88
- const bloomTheme = (0, _theme.useTheme)();
89
- const colorScheme = (0, _useColorScheme.useColorScheme)();
90
- const normalizedTheme = (0, _themeUtils.normalizeTheme)(theme);
91
- // AccountOverviewScreen uses a custom primary color (purple) instead of the default blue
92
- const themeColors = {
93
- primaryColor: '#d169e5'
94
- };
95
- // Icon colors from the Colors constant
96
- const baseThemeColors = _theme2.Colors[(0, _themeUtils.normalizeColorScheme)(colorScheme, normalizedTheme)];
97
-
98
- // Compute user data for display
99
- const displayName = (0, _react.useMemo)(() => (0, _userUtils.getDisplayName)(user), [user]);
100
- const shortDisplayName = (0, _react.useMemo)(() => (0, _userUtils.getShortDisplayName)(user), [user]);
101
- const avatarUrl = (0, _react.useMemo)(() => {
102
- if (user?.avatar && oxyServices) {
103
- return oxyServices.getFileDownloadUrl(user.avatar, 'thumb');
104
- }
105
- return undefined;
106
- }, [user?.avatar, oxyServices]);
107
-
108
- // Handle avatar press - use openAvatarPicker from context
109
- const handleAvatarPress = (0, _react.useCallback)(() => {
110
- openAvatarPicker();
111
- }, [openAvatarPicker]);
112
-
113
- // Play Lottie animation once when component mounts
114
- (0, _react.useEffect)(() => {
115
- if (hasPlayedRef.current || !LottieView || !lottieRef.current || !lottieAnimation) return;
116
- const timer = setTimeout(() => {
117
- if (lottieRef.current && !hasPlayedRef.current) {
118
- lottieRef.current.play();
119
- hasPlayedRef.current = true;
120
- }
121
- }, 100);
122
- return () => clearTimeout(timer);
123
- }, []);
124
-
125
- // Memoize additional accounts filtering to prevent recalculation on every render
126
- const additionalAccounts = (0, _react.useMemo)(() => (sessions || []).filter(session => session.sessionId !== activeSessionId && session.userId !== user?.id), [sessions, activeSessionId, user?.id]);
127
-
128
- // Load user profiles for additional accounts using TanStack Query
129
- const sessionIds = additionalAccounts.map(s => s.sessionId);
130
- const {
131
- data: usersData,
132
- isLoading: isLoadingUsers
133
- } = (0, _useAccountQueries.useUsersBySessions)(sessionIds, {
134
- enabled: additionalAccounts.length > 0
135
- });
136
- _react.default.useEffect(() => {
137
- if (usersData && usersData.length > 0) {
138
- const accountsData = usersData.map(({
139
- sessionId,
140
- user: userProfile
141
- }) => ({
142
- id: sessionId,
143
- sessionId,
144
- userProfile: userProfile ?? null,
145
- avatar: userProfile?.avatar ?? null,
146
- email: userProfile?.email
147
- }));
148
- setAdditionalAccountsData(accountsData);
149
- setLoadingAdditionalAccounts(false);
150
- } else if (additionalAccounts.length === 0) {
151
- setAdditionalAccountsData([]);
152
- setLoadingAdditionalAccounts(false);
153
- } else if (!isLoadingUsers) {
154
- setLoadingAdditionalAccounts(false);
155
- }
156
- }, [usersData, additionalAccounts.length, isLoadingUsers]);
157
-
158
- // Feature settings (with mock values)
159
- const features = {
160
- safeSearch: false,
161
- language: 'English'
162
- };
163
-
164
- // Memoize event handlers to prevent recreation on every render
165
- const handleLogout = (0, _react.useCallback)(async () => {
166
- try {
167
- await logout();
168
- if (onClose) {
169
- onClose();
170
- }
171
- } catch (error) {
172
- if (__DEV__) {
173
- console.error('Logout failed:', error);
174
- }
175
- _bloom.toast.error(t('common.errors.signOutFailed'));
176
- }
177
- }, [logout, onClose]);
178
- const handleAddAccount = (0, _react.useCallback)(() => {
179
- _bloom.toast.info(t('accountOverview.addAccountComing'));
180
- }, [t]);
181
- const performDownload = (0, _react.useCallback)(async format => {
182
- if (!oxyServices || !user) {
183
- _bloom.toast.error(t('accountOverview.items.downloadData.error') || 'Service not available');
184
- return;
185
- }
186
- try {
187
- _bloom.toast.info(t('accountOverview.items.downloadData.downloading') || 'Preparing download...');
188
- const blob = await oxyServices.downloadAccountData(format);
189
- if (_reactNative.Platform.OS === 'web') {
190
- const url = URL.createObjectURL(blob);
191
- const link = document.createElement('a');
192
- link.href = url;
193
- link.download = `account-data-${Date.now()}.${format}`;
194
- document.body.appendChild(link);
195
- link.click();
196
- document.body.removeChild(link);
197
- URL.revokeObjectURL(url);
198
- }
199
- _bloom.toast.success(t('accountOverview.items.downloadData.success') || 'Data downloaded successfully');
200
- } catch (error) {
201
- if (__DEV__) {
202
- console.error('Failed to download data:', error);
203
- }
204
- _bloom.toast.error((error instanceof Error ? error.message : null) || t('accountOverview.items.downloadData.error') || 'Failed to download data');
205
- }
206
- }, [oxyServices, user, t]);
207
- const handleDownloadData = (0, _react.useCallback)(() => {
208
- if (!oxyServices || !user) {
209
- _bloom.toast.error(t('accountOverview.items.downloadData.error') || 'Service not available');
210
- return;
211
- }
212
- downloadDataDialog.open();
213
- }, [oxyServices, user, t, downloadDataDialog]);
214
- const handleDeleteAccount = (0, _react.useCallback)(() => {
215
- if (!user) {
216
- _bloom.toast.error(t('accountOverview.items.deleteAccount.error') || 'User not available');
217
- return;
218
- }
219
- deleteAccountControl.open();
220
- }, [user, t, deleteAccountControl]);
221
- const handleConfirmDelete = (0, _react.useCallback)(async confirmText => {
222
- if (!oxyServices || !user) {
223
- throw new Error(t('accountOverview.items.deleteAccount.error') || 'Service not available');
224
- }
225
- await oxyServices.deleteAccount(confirmText);
226
- _bloom.toast.success(t('accountOverview.items.deleteAccount.success') || 'Account deleted successfully');
227
- deleteAccountControl.close();
228
- await logout();
229
- if (onClose) {
230
- onClose();
231
- }
232
- }, [oxyServices, user, logout, onClose, t]);
233
- if (!isAuthenticated) {
234
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
235
- style: [styles.container, {
236
- backgroundColor: bloomTheme.colors.background
237
- }],
238
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
239
- style: styles.message,
240
- className: "text-foreground",
241
- children: t('common.status.notSignedIn')
242
- })
243
- });
244
- }
245
- if (isLoading) {
246
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
247
- style: [styles.container, {
248
- justifyContent: 'center',
249
- backgroundColor: bloomTheme.colors.background
250
- }],
251
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.ActivityIndicator, {
252
- size: "large",
253
- color: themeColors.primaryColor
254
- })
255
- });
256
- }
257
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
258
- style: [styles.container, {
259
- backgroundColor: bloomTheme.colors.background
260
- }],
261
- children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.ScrollView, {
262
- style: styles.content,
263
- contentContainerStyle: styles.scrollContent,
264
- showsVerticalScrollIndicator: false,
265
- children: [user && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
266
- style: styles.headerSection,
267
- children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
268
- style: styles.avatarSectionWrapper,
269
- children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
270
- style: styles.avatarContainer,
271
- children: [LottieView && lottieAnimation && /*#__PURE__*/(0, _jsxRuntime.jsx)(LottieView, {
272
- ref: lottieRef,
273
- source: lottieAnimation,
274
- style: styles.lottieBackground,
275
- loop: false,
276
- autoPlay: false
277
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
278
- style: styles.avatarWrapper,
279
- onPress: handleAvatarPress,
280
- activeOpacity: 0.8,
281
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Avatar.default, {
282
- uri: avatarUrl,
283
- name: displayName,
284
- size: 100,
285
- theme: normalizedTheme
286
- })
287
- })]
288
- }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
289
- style: styles.nameWrapper,
290
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
291
- style: styles.welcomeText,
292
- className: "text-foreground",
293
- children: displayName
294
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
295
- style: styles.welcomeSubtext,
296
- className: "text-muted-foreground",
297
- children: "Manage your Oxy account."
298
- })]
299
- })]
300
- })
301
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListGroup, {
302
- title: t('accountOverview.sections.profile'),
303
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListItem, {
304
- icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SettingsIcon.SettingsIcon, {
305
- name: "account",
306
- color: baseThemeColors.iconSecurity
307
- }),
308
- title: displayName,
309
- description: (() => {
310
- if (!user) return t('common.status.loading') || 'Loading...';
311
- if (user.email) return user.email;
312
- const handle = (0, _core.getAccountFallbackHandle)(user);
313
- if (!handle) return '';
314
- return user.username ? `@${handle}` : handle;
315
- })(),
316
- onPress: () => navigate?.('AccountSettings', {
317
- activeTab: 'profile'
318
- })
319
- })
320
- }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_settingsList.SettingsListGroup, {
321
- title: t('accountOverview.sections.accountSettings'),
322
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListItem, {
323
- icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SettingsIcon.SettingsIcon, {
324
- name: "account-circle",
325
- color: baseThemeColors.iconPersonalInfo
326
- }),
327
- title: t('accountOverview.items.editProfile.title'),
328
- description: t('accountOverview.items.editProfile.subtitle'),
329
- onPress: () => navigate?.('AccountSettings', {
330
- activeTab: 'profile'
331
- })
332
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListItem, {
333
- icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SettingsIcon.SettingsIcon, {
334
- name: "shield-check",
335
- color: baseThemeColors.iconSecurity
336
- }),
337
- title: t('accountOverview.items.security.title'),
338
- description: t('accountOverview.items.security.subtitle'),
339
- onPress: () => navigate?.('AccountSettings', {
340
- activeTab: 'password'
341
- })
342
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListItem, {
343
- icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SettingsIcon.SettingsIcon, {
344
- name: "bell",
345
- color: baseThemeColors.iconStorage
346
- }),
347
- title: t('accountOverview.items.notifications.title'),
348
- description: t('accountOverview.items.notifications.subtitle'),
349
- onPress: () => navigate?.('AccountSettings', {
350
- activeTab: 'notifications'
351
- })
352
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListItem, {
353
- icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SettingsIcon.SettingsIcon, {
354
- name: "star",
355
- color: baseThemeColors.iconPayments
356
- }),
357
- title: t('accountOverview.items.premium.title'),
358
- description: user?.isPremium ? t('accountOverview.items.premium.manage') : t('accountOverview.items.premium.upgrade'),
359
- onPress: () => navigate?.('PremiumSubscription')
360
- }), user?.isPremium ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListItem, {
361
- icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SettingsIcon.SettingsIcon, {
362
- name: "credit-card",
363
- color: baseThemeColors.iconPersonalInfo
364
- }),
365
- title: t('accountOverview.items.billing.title'),
366
- description: t('accountOverview.items.billing.subtitle'),
367
- onPress: () => _bloom.toast.info(t('accountOverview.items.billing.coming'))
368
- }) : null]
369
- }), showMoreAccounts && /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListGroup, {
370
- title: `${t('accountOverview.sections.additionalAccounts') || 'Additional Accounts'}${additionalAccountsData.length > 0 ? ` (${additionalAccountsData.length})` : ''}`,
371
- children: loadingAdditionalAccounts ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListItem, {
372
- icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SettingsIcon.SettingsIcon, {
373
- name: "sync",
374
- color: baseThemeColors.iconSecurity
375
- }),
376
- title: t('accountOverview.loadingAdditional.title') || 'Loading accounts...',
377
- description: t('accountOverview.loadingAdditional.subtitle') || 'Please wait while we load your additional accounts',
378
- rightElement: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
379
- style: styles.loadingContainer,
380
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.ActivityIndicator, {
381
- size: "small",
382
- color: baseThemeColors.iconSecurity
383
- })
384
- }),
385
- showChevron: false
386
- }) : additionalAccountsData.length > 0 ? additionalAccountsData.map(account => {
387
- const accountDisplayName = (0, _core.getAccountDisplayName)(account.userProfile, locale);
388
- const accountHandle = (0, _core.getAccountFallbackHandle)(account.userProfile);
389
- const description = account.email ?? (accountHandle && account.userProfile?.username ? `@${accountHandle}` : accountHandle) ?? '';
390
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListItem, {
391
- icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
392
- style: styles.userIcon,
393
- children: account.avatar ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Image, {
394
- source: {
395
- uri: oxyServices.getFileDownloadUrl(account.avatar, 'thumb')
396
- },
397
- style: styles.accountAvatarImage
398
- }) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
399
- style: styles.accountAvatarFallback,
400
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
401
- style: styles.accountAvatarText,
402
- children: accountDisplayName.charAt(0).toUpperCase()
403
- })
404
- })
405
- }),
406
- title: accountDisplayName,
407
- description: description,
408
- onPress: () => {
409
- _bloom.toast.info(t('accountOverview.items.accountSwitcher.switchPrompt', {
410
- username: accountDisplayName
411
- }) || `Switch to ${accountDisplayName}?`);
412
- }
413
- }, `account-${account.id}`);
414
- }) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListItem, {
415
- icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SettingsIcon.SettingsIcon, {
416
- name: "account-outline",
417
- color: bloomTheme.colors.textTertiary
418
- }),
419
- title: t('accountOverview.additional.noAccounts.title') || 'No other accounts',
420
- description: t('accountOverview.additional.noAccounts.subtitle') || 'Add another account to switch between them',
421
- showChevron: false
422
- })
423
- }), showMoreAccounts && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_settingsList.SettingsListGroup, {
424
- title: t('accountOverview.sections.accountManagement') || 'Account Management',
425
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListItem, {
426
- icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SettingsIcon.SettingsIcon, {
427
- name: "plus",
428
- color: baseThemeColors.iconSecurity
429
- }),
430
- title: t('accountOverview.items.addAccount.title') || 'Add Another Account',
431
- description: t('accountOverview.items.addAccount.subtitle') || 'Sign in with a different account',
432
- onPress: handleAddAccount
433
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListItem, {
434
- icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SettingsIcon.SettingsIcon, {
435
- name: "logout",
436
- color: baseThemeColors.iconSharing
437
- }),
438
- title: t('accountOverview.items.signOutAll.title') || 'Sign out of all accounts',
439
- description: t('accountOverview.items.signOutAll.subtitle') || 'Remove all accounts from this device',
440
- onPress: () => signOutAllDialog.open()
441
- })]
442
- }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_settingsList.SettingsListGroup, {
443
- title: t('accountOverview.sections.quickActions'),
444
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListItem, {
445
- icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SettingsIcon.SettingsIcon, {
446
- name: "account-group",
447
- color: baseThemeColors.iconData
448
- }),
449
- title: showMoreAccounts ? t('accountOverview.items.accountSwitcher.titleHide') : t('accountOverview.items.accountSwitcher.titleShow'),
450
- description: showMoreAccounts ? t('accountOverview.items.accountSwitcher.subtitleHide') : additionalAccountsData.length > 0 ? t('accountOverview.items.accountSwitcher.subtitleSwitchBetween', {
451
- count: String(additionalAccountsData.length + 1)
452
- }) : loadingAdditionalAccounts ? t('accountOverview.items.accountSwitcher.subtitleLoading') : t('accountOverview.items.accountSwitcher.subtitleManageMultiple'),
453
- onPress: () => setShowMoreAccounts(!showMoreAccounts)
454
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListItem, {
455
- icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SettingsIcon.SettingsIcon, {
456
- name: "clock",
457
- color: baseThemeColors.iconSecurity
458
- }),
459
- title: t('accountOverview.items.history.title') || 'History',
460
- description: t('accountOverview.items.history.subtitle') || 'View and manage your search history',
461
- onPress: () => navigate?.('HistoryView')
462
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListItem, {
463
- icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SettingsIcon.SettingsIcon, {
464
- name: "bookmark",
465
- color: baseThemeColors.iconStorage
466
- }),
467
- title: t('accountOverview.items.saves.title') || 'Saves & Collections',
468
- description: t('accountOverview.items.saves.subtitle') || 'View your saved items and collections',
469
- onPress: () => navigate?.('SavesCollections')
470
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListItem, {
471
- icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SettingsIcon.SettingsIcon, {
472
- name: "download",
473
- color: baseThemeColors.iconPersonalInfo
474
- }),
475
- title: t('accountOverview.items.downloadData.title'),
476
- description: t('accountOverview.items.downloadData.subtitle'),
477
- onPress: handleDownloadData
478
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListItem, {
479
- icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SettingsIcon.SettingsIcon, {
480
- name: "delete",
481
- color: baseThemeColors.iconSharing
482
- }),
483
- title: t('accountOverview.items.deleteAccount.title'),
484
- description: t('accountOverview.items.deleteAccount.subtitle'),
485
- onPress: handleDeleteAccount
486
- })]
487
- }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_settingsList.SettingsListGroup, {
488
- title: t('accountOverview.sections.support'),
489
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListItem, {
490
- icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SettingsIcon.SettingsIcon, {
491
- name: "magnify",
492
- color: baseThemeColors.iconSecurity
493
- }),
494
- title: t('accountOverview.items.searchSettings.title') || 'Search Settings',
495
- description: t('accountOverview.items.searchSettings.subtitle') || 'SafeSearch and personalization',
496
- onPress: () => navigate?.('SearchSettings')
497
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListItem, {
498
- icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SettingsIcon.SettingsIcon, {
499
- name: "translate",
500
- color: baseThemeColors.iconPersonalInfo
501
- }),
502
- title: t('accountOverview.items.language.title') || 'Language',
503
- description: t('accountOverview.items.language.subtitle') || 'Choose your preferred language',
504
- onPress: () => navigate?.('LanguageSelector')
505
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListItem, {
506
- icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SettingsIcon.SettingsIcon, {
507
- name: "cog",
508
- color: bloomTheme.colors.textTertiary
509
- }),
510
- title: t('accountOverview.items.preferences.title'),
511
- description: t('accountOverview.items.preferences.subtitle'),
512
- onPress: () => _bloom.toast.info(t('accountOverview.items.preferences.coming'))
513
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListItem, {
514
- icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SettingsIcon.SettingsIcon, {
515
- name: "help-circle",
516
- color: baseThemeColors.iconSecurity
517
- }),
518
- title: t('accountOverview.items.help.title'),
519
- description: t('accountOverview.items.help.subtitle'),
520
- onPress: () => navigate?.('HelpSupport')
521
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListItem, {
522
- icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SettingsIcon.SettingsIcon, {
523
- name: "shield-check",
524
- color: baseThemeColors.iconPersonalInfo
525
- }),
526
- title: t('accountOverview.items.privacyPolicy.title') || 'Privacy Policy',
527
- description: t('accountOverview.items.privacyPolicy.subtitle') || 'How we handle your data',
528
- onPress: () => navigate?.('LegalDocuments', {
529
- initialStep: 1
530
- })
531
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListItem, {
532
- icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SettingsIcon.SettingsIcon, {
533
- name: "file-document",
534
- color: baseThemeColors.iconSecurity
535
- }),
536
- title: t('accountOverview.items.termsOfService.title') || 'Terms of Service',
537
- description: t('accountOverview.items.termsOfService.subtitle') || 'Terms and conditions of use',
538
- onPress: () => navigate?.('LegalDocuments', {
539
- initialStep: 2
540
- })
541
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListItem, {
542
- icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SettingsIcon.SettingsIcon, {
543
- name: "link",
544
- color: baseThemeColors.iconPersonalInfo
545
- }),
546
- title: t('accountOverview.items.connectedApps.title'),
547
- description: t('accountOverview.items.connectedApps.subtitle'),
548
- onPress: () => _bloom.toast.info(t('accountOverview.items.connectedApps.coming'))
549
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListItem, {
550
- icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SettingsIcon.SettingsIcon, {
551
- name: "information",
552
- color: bloomTheme.colors.textTertiary
553
- }),
554
- title: t('accountOverview.items.about.title'),
555
- description: t('accountOverview.items.about.subtitle'),
556
- onPress: () => navigate?.('AppInfo')
557
- })]
558
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListGroup, {
559
- title: t('accountOverview.sections.actions'),
560
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListItem, {
561
- icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SettingsIcon.SettingsIcon, {
562
- name: "logout",
563
- color: bloomTheme.colors.error
564
- }),
565
- title: t('accountOverview.items.signOut.title'),
566
- description: t('accountOverview.items.signOut.subtitle'),
567
- onPress: () => logoutDialog.open(),
568
- destructive: true,
569
- showChevron: false
570
- })
571
- })]
572
- }), user && /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.DeleteAccountModal, {
573
- control: deleteAccountControl,
574
- username: user.username || '',
575
- onDelete: handleConfirmDelete,
576
- t: t
577
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_bloom.Dialog, {
578
- control: logoutDialog,
579
- title: t('accountOverview.items.signOut.title') || 'Sign Out',
580
- description: t('common.confirms.signOut') || 'Are you sure you want to sign out?',
581
- actions: [{
582
- label: t('accountOverview.items.signOut.title') || 'Sign Out',
583
- color: 'destructive',
584
- onPress: handleLogout
585
- }, {
586
- label: t('common.cancel') || 'Cancel',
587
- color: 'cancel'
588
- }]
589
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_bloom.Dialog, {
590
- control: signOutAllDialog,
591
- title: t('accountOverview.items.signOutAll.title') || 'Sign Out All',
592
- description: t('common.confirms.signOutAll') || 'Are you sure you want to sign out of all accounts?',
593
- actions: [{
594
- label: t('accountOverview.items.signOutAll.title') || 'Sign Out All',
595
- color: 'destructive',
596
- onPress: handleLogout
597
- }, {
598
- label: t('common.cancel') || 'Cancel',
599
- color: 'cancel'
600
- }]
601
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_bloom.Dialog, {
602
- control: downloadDataDialog,
603
- title: t('accountOverview.items.downloadData.confirmTitle') || 'Download Account Data',
604
- description: t('accountOverview.items.downloadData.confirmMessage') || 'Choose the format for your account data export:',
605
- actions: [{
606
- label: 'JSON',
607
- onPress: () => performDownload('json')
608
- }, {
609
- label: 'CSV',
610
- onPress: () => performDownload('csv')
611
- }, {
612
- label: t('common.cancel') || 'Cancel',
613
- color: 'cancel'
614
- }]
615
- })]
616
- });
617
- };
618
- const styles = _reactNative.StyleSheet.create({
619
- container: {
620
- flex: 1
621
- },
622
- content: {
623
- flex: 1
624
- },
625
- scrollContent: (0, _spacing.createScreenContentStyle)(_spacing.HEADER_PADDING_TOP_OVERVIEW),
626
- headerSection: {
627
- alignItems: 'center',
628
- marginBottom: _spacing.SECTION_GAP,
629
- paddingTop: _spacing.HEADER_PADDING_TOP_OVERVIEW
630
- },
631
- avatarSectionWrapper: {
632
- alignItems: 'center',
633
- justifyContent: 'center',
634
- width: '100%'
635
- },
636
- avatarContainer: {
637
- position: 'relative',
638
- alignItems: 'center',
639
- justifyContent: 'center',
640
- width: '100%',
641
- maxWidth: 600,
642
- minHeight: 100,
643
- overflow: 'hidden',
644
- alignSelf: 'center',
645
- aspectRatio: 6
646
- },
647
- lottieBackground: {
648
- position: 'absolute',
649
- width: '100%',
650
- maxWidth: 600,
651
- minHeight: 100,
652
- top: 0,
653
- left: 0,
654
- right: 0,
655
- bottom: 0,
656
- zIndex: 0,
657
- aspectRatio: 6
658
- },
659
- avatarWrapper: {
660
- zIndex: 1,
661
- position: 'absolute',
662
- alignItems: 'center',
663
- justifyContent: 'center',
664
- width: 100,
665
- height: 100,
666
- left: '50%',
667
- marginLeft: -50,
668
- top: 0
669
- },
670
- nameWrapper: {
671
- marginTop: 12,
672
- alignItems: 'center',
673
- justifyContent: 'center'
674
- },
675
- welcomeText: {
676
- fontSize: 28,
677
- fontWeight: '600',
678
- marginBottom: 8,
679
- maxWidth: '90%'
680
- },
681
- welcomeSubtext: {
682
- fontSize: 16,
683
- fontWeight: '400',
684
- opacity: 0.6
685
- },
686
- userIcon: {
687
- marginRight: 12
688
- },
689
- accountAvatarImage: {
690
- width: 40,
691
- height: 40,
692
- borderRadius: 20
693
- },
694
- accountAvatarFallback: {
695
- width: 40,
696
- height: 40,
697
- borderRadius: 20,
698
- backgroundColor: '#d169e5',
699
- alignItems: 'center',
700
- justifyContent: 'center'
701
- },
702
- accountAvatarText: {
703
- color: 'white',
704
- fontSize: 18,
705
- fontWeight: 'bold'
706
- },
707
- message: {
708
- fontSize: 16,
709
- textAlign: 'center',
710
- marginTop: 24
711
- },
712
- loadingContainer: {
713
- flexDirection: 'row',
714
- alignItems: 'center',
715
- justifyContent: 'center',
716
- paddingVertical: 20,
717
- gap: 12
718
- },
719
- loadingText: {
720
- fontSize: 16
721
- }
722
- });
723
- var _default = exports.default = /*#__PURE__*/_react.default.memo(AccountOverviewScreen);
724
- //# sourceMappingURL=AccountOverviewScreen.js.map