@oxyhq/services 5.21.6 → 5.22.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.
- package/README.md +201 -2
- package/lib/commonjs/assets/assets/fonts/Inter/Inter_18pt-Black.ttf +0 -0
- package/lib/commonjs/assets/assets/fonts/Inter/Inter_18pt-Bold.ttf +0 -0
- package/lib/commonjs/assets/assets/fonts/Inter/Inter_18pt-ExtraBold.ttf +0 -0
- package/lib/commonjs/assets/assets/fonts/Inter/Inter_18pt-Light.ttf +0 -0
- package/lib/commonjs/assets/assets/fonts/Inter/Inter_18pt-Medium.ttf +0 -0
- package/lib/commonjs/assets/assets/fonts/Inter/Inter_18pt-Regular.ttf +0 -0
- package/lib/commonjs/assets/assets/fonts/Inter/Inter_18pt-SemiBold.ttf +0 -0
- package/lib/commonjs/assets/fonts/Inter/Inter_18pt-Black.ttf +0 -0
- package/lib/commonjs/assets/fonts/Inter/Inter_18pt-Bold.ttf +0 -0
- package/lib/commonjs/assets/fonts/Inter/Inter_18pt-ExtraBold.ttf +0 -0
- package/lib/commonjs/assets/fonts/Inter/Inter_18pt-Light.ttf +0 -0
- package/lib/commonjs/assets/fonts/Inter/Inter_18pt-Medium.ttf +0 -0
- package/lib/commonjs/assets/fonts/Inter/Inter_18pt-Regular.ttf +0 -0
- package/lib/commonjs/assets/fonts/Inter/Inter_18pt-SemiBold.ttf +0 -0
- package/lib/commonjs/core/HttpService.js +87 -2
- package/lib/commonjs/core/HttpService.js.map +1 -1
- package/lib/commonjs/core/mixins/OxyServices.assets.js +3 -1
- package/lib/commonjs/core/mixins/OxyServices.assets.js.map +1 -1
- package/lib/commonjs/crypto/keyManager.js +67 -22
- package/lib/commonjs/crypto/keyManager.js.map +1 -1
- package/lib/commonjs/i18n/locales/en-US.json +3 -3
- package/lib/commonjs/i18n/locales/es-ES.json +240 -19
- package/lib/commonjs/index.js +66 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/ui/components/Avatar.js +1 -1
- package/lib/commonjs/ui/components/Avatar.js.map +1 -1
- package/lib/commonjs/ui/components/FollowButton.js +1 -1
- package/lib/commonjs/ui/components/FollowButton.js.map +1 -1
- package/lib/commonjs/ui/components/FontLoader.js +34 -34
- package/lib/commonjs/ui/components/FontLoader.js.map +1 -1
- package/lib/commonjs/ui/components/Header.js +4 -4
- package/lib/commonjs/ui/components/Header.js.map +1 -1
- package/lib/commonjs/ui/components/OxyPayButton.js +1 -1
- package/lib/commonjs/ui/components/OxyPayButton.js.map +1 -1
- package/lib/commonjs/ui/components/OxySignInButton.js +2 -1
- package/lib/commonjs/ui/components/OxySignInButton.js.map +1 -1
- package/lib/commonjs/ui/components/ProfileCard.js +1 -1
- package/lib/commonjs/ui/components/ProfileCard.js.map +1 -1
- package/lib/commonjs/ui/components/SectionTitle.js +1 -1
- package/lib/commonjs/ui/components/SectionTitle.js.map +1 -1
- package/lib/commonjs/ui/components/StepBasedScreen.js +2 -1
- package/lib/commonjs/ui/components/StepBasedScreen.js.map +1 -1
- package/lib/commonjs/ui/components/feedback/feedbackStyles.js +2 -1
- package/lib/commonjs/ui/components/feedback/feedbackStyles.js.map +1 -1
- package/lib/commonjs/ui/components/fileManagement/AnimatedButton.js +57 -0
- package/lib/commonjs/ui/components/fileManagement/AnimatedButton.js.map +1 -0
- package/lib/commonjs/ui/components/fileManagement/styles.js +17 -17
- package/lib/commonjs/ui/components/fileManagement/styles.js.map +1 -1
- package/lib/commonjs/ui/components/payment/paymentStyles.js +7 -7
- package/lib/commonjs/ui/components/payment/paymentStyles.js.map +1 -1
- package/lib/commonjs/ui/hooks/mutations/mutationFactory.js +177 -0
- package/lib/commonjs/ui/hooks/mutations/mutationFactory.js.map +1 -0
- package/lib/commonjs/ui/hooks/mutations/useAccountMutations.js +10 -123
- package/lib/commonjs/ui/hooks/mutations/useAccountMutations.js.map +1 -1
- package/lib/commonjs/ui/hooks/queries/useAccountQueries.js +2 -32
- package/lib/commonjs/ui/hooks/queries/useAccountQueries.js.map +1 -1
- package/lib/commonjs/ui/hooks/queries/useServicesQueries.js +2 -31
- package/lib/commonjs/ui/hooks/queries/useServicesQueries.js.map +1 -1
- package/lib/commonjs/ui/hooks/useFileFiltering.js +76 -0
- package/lib/commonjs/ui/hooks/useFileFiltering.js.map +1 -0
- package/lib/commonjs/ui/navigation/routes.js +2 -0
- package/lib/commonjs/ui/navigation/routes.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountCenterScreen.js +4 -2
- package/lib/commonjs/ui/screens/AccountCenterScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountOverviewScreen.js +13 -5
- package/lib/commonjs/ui/screens/AccountOverviewScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountSettingsScreen.js +273 -1820
- package/lib/commonjs/ui/screens/AccountSettingsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountSwitcherScreen.js +1 -1
- package/lib/commonjs/ui/screens/AccountSwitcherScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountVerificationScreen.js +3 -1
- package/lib/commonjs/ui/screens/AccountVerificationScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AppInfoScreen.js +2 -2
- package/lib/commonjs/ui/screens/AppInfoScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/EditProfileFieldScreen.js +640 -0
- package/lib/commonjs/ui/screens/EditProfileFieldScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/FileManagementScreen.js +41 -23
- package/lib/commonjs/ui/screens/FileManagementScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/HistoryViewScreen.js +9 -3
- package/lib/commonjs/ui/screens/HistoryViewScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/LanguageSelectorScreen.js +4 -2
- package/lib/commonjs/ui/screens/LanguageSelectorScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/LegalDocumentsScreen.js +3 -1
- package/lib/commonjs/ui/screens/LegalDocumentsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js +11 -12
- package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PrivacySettingsScreen.js +12 -4
- package/lib/commonjs/ui/screens/PrivacySettingsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/SearchSettingsScreen.js +3 -1
- package/lib/commonjs/ui/screens/SearchSettingsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/SessionManagementScreen.js +15 -5
- package/lib/commonjs/ui/screens/SessionManagementScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/UserLinksScreen.js +3 -1
- package/lib/commonjs/ui/screens/UserLinksScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/WelcomeNewUserScreen.js +2 -1
- package/lib/commonjs/ui/screens/WelcomeNewUserScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/karma/KarmaAboutScreen.js +2 -4
- package/lib/commonjs/ui/screens/karma/KarmaAboutScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/karma/KarmaCenterScreen.js +3 -3
- package/lib/commonjs/ui/screens/karma/KarmaCenterScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/karma/KarmaRewardsScreen.js +3 -3
- package/lib/commonjs/ui/screens/karma/KarmaRewardsScreen.js.map +1 -1
- package/lib/commonjs/ui/styles/authStyles.js +5 -4
- package/lib/commonjs/ui/styles/authStyles.js.map +1 -1
- package/lib/commonjs/ui/styles/fonts.js +27 -27
- package/lib/commonjs/ui/styles/fonts.js.map +1 -1
- package/lib/commonjs/ui/styles/theme.js +3 -3
- package/lib/commonjs/ui/styles/theme.js.map +1 -1
- package/lib/commonjs/ui/utils/authHelpers.js +164 -0
- package/lib/commonjs/ui/utils/authHelpers.js.map +1 -0
- package/lib/commonjs/ui/utils/avatarUtils.js +18 -61
- package/lib/commonjs/ui/utils/avatarUtils.js.map +1 -1
- package/lib/commonjs/web.js +682 -0
- package/lib/commonjs/web.js.map +1 -0
- package/lib/module/assets/assets/fonts/Inter/Inter_18pt-Black.ttf +0 -0
- package/lib/module/assets/assets/fonts/Inter/Inter_18pt-Bold.ttf +0 -0
- package/lib/module/assets/assets/fonts/Inter/Inter_18pt-ExtraBold.ttf +0 -0
- package/lib/module/assets/assets/fonts/Inter/Inter_18pt-Light.ttf +0 -0
- package/lib/module/assets/assets/fonts/Inter/Inter_18pt-Medium.ttf +0 -0
- package/lib/module/assets/assets/fonts/Inter/Inter_18pt-Regular.ttf +0 -0
- package/lib/module/assets/assets/fonts/Inter/Inter_18pt-SemiBold.ttf +0 -0
- package/lib/module/assets/fonts/Inter/Inter_18pt-Black.ttf +0 -0
- package/lib/module/assets/fonts/Inter/Inter_18pt-Bold.ttf +0 -0
- package/lib/module/assets/fonts/Inter/Inter_18pt-ExtraBold.ttf +0 -0
- package/lib/module/assets/fonts/Inter/Inter_18pt-Light.ttf +0 -0
- package/lib/module/assets/fonts/Inter/Inter_18pt-Medium.ttf +0 -0
- package/lib/module/assets/fonts/Inter/Inter_18pt-Regular.ttf +0 -0
- package/lib/module/assets/fonts/Inter/Inter_18pt-SemiBold.ttf +0 -0
- package/lib/module/core/HttpService.js +87 -2
- package/lib/module/core/HttpService.js.map +1 -1
- package/lib/module/core/mixins/OxyServices.assets.js +3 -1
- package/lib/module/core/mixins/OxyServices.assets.js.map +1 -1
- package/lib/module/crypto/keyManager.js +67 -22
- package/lib/module/crypto/keyManager.js.map +1 -1
- package/lib/module/i18n/locales/en-US.json +3 -3
- package/lib/module/i18n/locales/es-ES.json +240 -19
- package/lib/module/index.js +6 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/ui/components/Avatar.js +1 -1
- package/lib/module/ui/components/Avatar.js.map +1 -1
- package/lib/module/ui/components/FollowButton.js +1 -1
- package/lib/module/ui/components/FollowButton.js.map +1 -1
- package/lib/module/ui/components/FontLoader.js +34 -34
- package/lib/module/ui/components/FontLoader.js.map +1 -1
- package/lib/module/ui/components/Header.js +4 -4
- package/lib/module/ui/components/Header.js.map +1 -1
- package/lib/module/ui/components/OxyPayButton.js +1 -1
- package/lib/module/ui/components/OxyPayButton.js.map +1 -1
- package/lib/module/ui/components/OxySignInButton.js +2 -1
- package/lib/module/ui/components/OxySignInButton.js.map +1 -1
- package/lib/module/ui/components/ProfileCard.js +1 -1
- package/lib/module/ui/components/ProfileCard.js.map +1 -1
- package/lib/module/ui/components/SectionTitle.js +1 -1
- package/lib/module/ui/components/SectionTitle.js.map +1 -1
- package/lib/module/ui/components/StepBasedScreen.js +2 -1
- package/lib/module/ui/components/StepBasedScreen.js.map +1 -1
- package/lib/module/ui/components/feedback/feedbackStyles.js +2 -1
- package/lib/module/ui/components/feedback/feedbackStyles.js.map +1 -1
- package/lib/module/ui/components/fileManagement/AnimatedButton.js +50 -0
- package/lib/module/ui/components/fileManagement/AnimatedButton.js.map +1 -0
- package/lib/module/ui/components/fileManagement/styles.js +17 -17
- package/lib/module/ui/components/fileManagement/styles.js.map +1 -1
- package/lib/module/ui/components/payment/paymentStyles.js +7 -7
- package/lib/module/ui/components/payment/paymentStyles.js.map +1 -1
- package/lib/module/ui/hooks/mutations/mutationFactory.js +173 -0
- package/lib/module/ui/hooks/mutations/mutationFactory.js.map +1 -0
- package/lib/module/ui/hooks/mutations/useAccountMutations.js +10 -122
- package/lib/module/ui/hooks/mutations/useAccountMutations.js.map +1 -1
- package/lib/module/ui/hooks/queries/useAccountQueries.js +2 -32
- package/lib/module/ui/hooks/queries/useAccountQueries.js.map +1 -1
- package/lib/module/ui/hooks/queries/useServicesQueries.js +2 -31
- package/lib/module/ui/hooks/queries/useServicesQueries.js.map +1 -1
- package/lib/module/ui/hooks/useFileFiltering.js +72 -0
- package/lib/module/ui/hooks/useFileFiltering.js.map +1 -0
- package/lib/module/ui/navigation/routes.js +2 -0
- package/lib/module/ui/navigation/routes.js.map +1 -1
- package/lib/module/ui/screens/AccountCenterScreen.js +4 -2
- package/lib/module/ui/screens/AccountCenterScreen.js.map +1 -1
- package/lib/module/ui/screens/AccountOverviewScreen.js +13 -5
- package/lib/module/ui/screens/AccountOverviewScreen.js.map +1 -1
- package/lib/module/ui/screens/AccountSettingsScreen.js +277 -1824
- package/lib/module/ui/screens/AccountSettingsScreen.js.map +1 -1
- package/lib/module/ui/screens/AccountSwitcherScreen.js +1 -1
- package/lib/module/ui/screens/AccountSwitcherScreen.js.map +1 -1
- package/lib/module/ui/screens/AccountVerificationScreen.js +3 -1
- package/lib/module/ui/screens/AccountVerificationScreen.js.map +1 -1
- package/lib/module/ui/screens/AppInfoScreen.js +2 -2
- package/lib/module/ui/screens/AppInfoScreen.js.map +1 -1
- package/lib/module/ui/screens/EditProfileFieldScreen.js +635 -0
- package/lib/module/ui/screens/EditProfileFieldScreen.js.map +1 -0
- package/lib/module/ui/screens/FileManagementScreen.js +41 -23
- package/lib/module/ui/screens/FileManagementScreen.js.map +1 -1
- package/lib/module/ui/screens/HistoryViewScreen.js +9 -3
- package/lib/module/ui/screens/HistoryViewScreen.js.map +1 -1
- package/lib/module/ui/screens/LanguageSelectorScreen.js +4 -2
- package/lib/module/ui/screens/LanguageSelectorScreen.js.map +1 -1
- package/lib/module/ui/screens/LegalDocumentsScreen.js +3 -1
- package/lib/module/ui/screens/LegalDocumentsScreen.js.map +1 -1
- package/lib/module/ui/screens/PremiumSubscriptionScreen.js +11 -12
- package/lib/module/ui/screens/PremiumSubscriptionScreen.js.map +1 -1
- package/lib/module/ui/screens/PrivacySettingsScreen.js +12 -4
- package/lib/module/ui/screens/PrivacySettingsScreen.js.map +1 -1
- package/lib/module/ui/screens/SearchSettingsScreen.js +3 -1
- package/lib/module/ui/screens/SearchSettingsScreen.js.map +1 -1
- package/lib/module/ui/screens/SessionManagementScreen.js +15 -5
- package/lib/module/ui/screens/SessionManagementScreen.js.map +1 -1
- package/lib/module/ui/screens/UserLinksScreen.js +3 -1
- package/lib/module/ui/screens/UserLinksScreen.js.map +1 -1
- package/lib/module/ui/screens/WelcomeNewUserScreen.js +2 -1
- package/lib/module/ui/screens/WelcomeNewUserScreen.js.map +1 -1
- package/lib/module/ui/screens/karma/KarmaAboutScreen.js +2 -4
- package/lib/module/ui/screens/karma/KarmaAboutScreen.js.map +1 -1
- package/lib/module/ui/screens/karma/KarmaCenterScreen.js +3 -3
- package/lib/module/ui/screens/karma/KarmaCenterScreen.js.map +1 -1
- package/lib/module/ui/screens/karma/KarmaRewardsScreen.js +3 -3
- package/lib/module/ui/screens/karma/KarmaRewardsScreen.js.map +1 -1
- package/lib/module/ui/styles/authStyles.js +5 -4
- package/lib/module/ui/styles/authStyles.js.map +1 -1
- package/lib/module/ui/styles/fonts.js +27 -27
- package/lib/module/ui/styles/fonts.js.map +1 -1
- package/lib/module/ui/styles/theme.js +3 -3
- package/lib/module/ui/styles/theme.js.map +1 -1
- package/lib/module/ui/utils/authHelpers.js +154 -0
- package/lib/module/ui/utils/authHelpers.js.map +1 -0
- package/lib/module/ui/utils/avatarUtils.js +18 -61
- package/lib/module/ui/utils/avatarUtils.js.map +1 -1
- package/lib/module/web.js +75 -0
- package/lib/module/web.js.map +1 -0
- package/lib/typescript/commonjs/core/HttpService.d.ts +5 -0
- package/lib/typescript/commonjs/core/HttpService.d.ts.map +1 -1
- package/lib/typescript/commonjs/crypto/keyManager.d.ts.map +1 -1
- package/lib/typescript/commonjs/index.d.ts +6 -0
- package/lib/typescript/commonjs/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/OxySignInButton.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/StepBasedScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/feedback/feedbackStyles.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/fileManagement/AnimatedButton.d.ts +16 -0
- package/lib/typescript/commonjs/ui/components/fileManagement/AnimatedButton.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hooks/mutations/mutationFactory.d.ts +76 -0
- package/lib/typescript/commonjs/ui/hooks/mutations/mutationFactory.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hooks/mutations/useAccountMutations.d.ts +29 -4
- package/lib/typescript/commonjs/ui/hooks/mutations/useAccountMutations.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/queries/useAccountQueries.d.ts +1 -1
- package/lib/typescript/commonjs/ui/hooks/queries/useAccountQueries.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/queries/useServicesQueries.d.ts +1 -1
- package/lib/typescript/commonjs/ui/hooks/queries/useServicesQueries.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useFileFiltering.d.ts +29 -0
- package/lib/typescript/commonjs/ui/hooks/useFileFiltering.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/navigation/routes.d.ts +1 -1
- package/lib/typescript/commonjs/ui/navigation/routes.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/AccountCenterScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/AccountOverviewScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/AccountSettingsScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/AccountVerificationScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/EditProfileFieldScreen.d.ts +13 -0
- package/lib/typescript/commonjs/ui/screens/EditProfileFieldScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/FileManagementScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/HistoryViewScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/LanguageSelectorScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/LegalDocumentsScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/PremiumSubscriptionScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/PrivacySettingsScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/SearchSettingsScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/SessionManagementScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/UserLinksScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/WelcomeNewUserScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/karma/KarmaAboutScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/styles/fonts.d.ts +7 -7
- package/lib/typescript/commonjs/ui/styles/theme.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/utils/authHelpers.d.ts +99 -0
- package/lib/typescript/commonjs/ui/utils/authHelpers.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/utils/avatarUtils.d.ts.map +1 -1
- package/lib/typescript/commonjs/web.d.ts +54 -0
- package/lib/typescript/commonjs/web.d.ts.map +1 -0
- package/lib/typescript/module/core/HttpService.d.ts +5 -0
- package/lib/typescript/module/core/HttpService.d.ts.map +1 -1
- package/lib/typescript/module/crypto/keyManager.d.ts.map +1 -1
- package/lib/typescript/module/index.d.ts +6 -0
- package/lib/typescript/module/index.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/OxySignInButton.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/StepBasedScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/feedback/feedbackStyles.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/fileManagement/AnimatedButton.d.ts +16 -0
- package/lib/typescript/module/ui/components/fileManagement/AnimatedButton.d.ts.map +1 -0
- package/lib/typescript/module/ui/hooks/mutations/mutationFactory.d.ts +76 -0
- package/lib/typescript/module/ui/hooks/mutations/mutationFactory.d.ts.map +1 -0
- package/lib/typescript/module/ui/hooks/mutations/useAccountMutations.d.ts +29 -4
- package/lib/typescript/module/ui/hooks/mutations/useAccountMutations.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/queries/useAccountQueries.d.ts +1 -1
- package/lib/typescript/module/ui/hooks/queries/useAccountQueries.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/queries/useServicesQueries.d.ts +1 -1
- package/lib/typescript/module/ui/hooks/queries/useServicesQueries.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useFileFiltering.d.ts +29 -0
- package/lib/typescript/module/ui/hooks/useFileFiltering.d.ts.map +1 -0
- package/lib/typescript/module/ui/navigation/routes.d.ts +1 -1
- package/lib/typescript/module/ui/navigation/routes.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/AccountCenterScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/AccountOverviewScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/AccountSettingsScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/AccountVerificationScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/EditProfileFieldScreen.d.ts +13 -0
- package/lib/typescript/module/ui/screens/EditProfileFieldScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/FileManagementScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/HistoryViewScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/LanguageSelectorScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/LegalDocumentsScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/PremiumSubscriptionScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/PrivacySettingsScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/SearchSettingsScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/SessionManagementScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/UserLinksScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/WelcomeNewUserScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/karma/KarmaAboutScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/styles/fonts.d.ts +7 -7
- package/lib/typescript/module/ui/styles/theme.d.ts.map +1 -1
- package/lib/typescript/module/ui/utils/authHelpers.d.ts +99 -0
- package/lib/typescript/module/ui/utils/authHelpers.d.ts.map +1 -0
- package/lib/typescript/module/ui/utils/avatarUtils.d.ts.map +1 -1
- package/lib/typescript/module/web.d.ts +54 -0
- package/lib/typescript/module/web.d.ts.map +1 -0
- package/package.json +27 -41
- package/src/assets/fonts/Inter/Inter_18pt-Black.ttf +0 -0
- package/src/assets/fonts/Inter/Inter_18pt-Bold.ttf +0 -0
- package/src/assets/fonts/Inter/Inter_18pt-ExtraBold.ttf +0 -0
- package/src/assets/fonts/Inter/Inter_18pt-Light.ttf +0 -0
- package/src/assets/fonts/Inter/Inter_18pt-Medium.ttf +0 -0
- package/src/assets/fonts/Inter/Inter_18pt-Regular.ttf +0 -0
- package/src/assets/fonts/Inter/Inter_18pt-SemiBold.ttf +0 -0
- package/src/core/HttpService.ts +91 -0
- package/src/core/mixins/OxyServices.assets.ts +1 -1
- package/src/crypto/keyManager.ts +23 -22
- package/src/i18n/locales/en-US.json +3 -3
- package/src/i18n/locales/es-ES.json +240 -19
- package/src/index.ts +25 -0
- package/src/ui/components/Avatar.tsx +1 -1
- package/src/ui/components/FollowButton.tsx +1 -1
- package/src/ui/components/FontLoader.tsx +34 -34
- package/src/ui/components/Header.tsx +4 -4
- package/src/ui/components/OxyPayButton.tsx +1 -1
- package/src/ui/components/OxySignInButton.tsx +2 -1
- package/src/ui/components/ProfileCard.tsx +1 -1
- package/src/ui/components/SectionTitle.tsx +1 -1
- package/src/ui/components/StepBasedScreen.tsx +2 -1
- package/src/ui/components/feedback/feedbackStyles.ts +2 -1
- package/src/ui/components/fileManagement/AnimatedButton.tsx +56 -0
- package/src/ui/components/fileManagement/styles.ts +17 -17
- package/src/ui/components/payment/paymentStyles.ts +7 -7
- package/src/ui/hooks/mutations/mutationFactory.ts +215 -0
- package/src/ui/hooks/mutations/useAccountMutations.ts +48 -136
- package/src/ui/hooks/queries/useAccountQueries.ts +6 -33
- package/src/ui/hooks/queries/useServicesQueries.ts +6 -32
- package/src/ui/hooks/useFileFiltering.ts +115 -0
- package/src/ui/navigation/routes.ts +3 -0
- package/src/ui/screens/AccountCenterScreen.tsx +4 -2
- package/src/ui/screens/AccountOverviewScreen.tsx +13 -5
- package/src/ui/screens/AccountSettingsScreen.tsx +35 -1511
- package/src/ui/screens/AccountSwitcherScreen.tsx +1 -1
- package/src/ui/screens/AccountVerificationScreen.tsx +3 -1
- package/src/ui/screens/AppInfoScreen.tsx +2 -2
- package/src/ui/screens/EditProfileFieldScreen.tsx +685 -0
- package/src/ui/screens/FileManagementScreen.tsx +35 -17
- package/src/ui/screens/HistoryViewScreen.tsx +9 -3
- package/src/ui/screens/LanguageSelectorScreen.tsx +4 -2
- package/src/ui/screens/LegalDocumentsScreen.tsx +3 -1
- package/src/ui/screens/PremiumSubscriptionScreen.tsx +11 -13
- package/src/ui/screens/PrivacySettingsScreen.tsx +12 -4
- package/src/ui/screens/SearchSettingsScreen.tsx +3 -1
- package/src/ui/screens/SessionManagementScreen.tsx +15 -5
- package/src/ui/screens/UserLinksScreen.tsx +3 -1
- package/src/ui/screens/WelcomeNewUserScreen.tsx +2 -1
- package/src/ui/screens/karma/KarmaAboutScreen.tsx +6 -8
- package/src/ui/screens/karma/KarmaCenterScreen.tsx +3 -3
- package/src/ui/screens/karma/KarmaRewardsScreen.tsx +3 -3
- package/src/ui/styles/authStyles.ts +4 -4
- package/src/ui/styles/fonts.ts +26 -26
- package/src/ui/styles/theme.ts +3 -5
- package/src/ui/utils/authHelpers.ts +183 -0
- package/src/ui/utils/avatarUtils.ts +25 -65
- package/src/web.ts +230 -0
- package/lib/commonjs/assets/assets/fonts/Phudu/Phudu-Black.ttf +0 -0
- package/lib/commonjs/assets/assets/fonts/Phudu/Phudu-Bold.ttf +0 -0
- package/lib/commonjs/assets/assets/fonts/Phudu/Phudu-ExtraBold.ttf +0 -0
- package/lib/commonjs/assets/assets/fonts/Phudu/Phudu-Light.ttf +0 -0
- package/lib/commonjs/assets/assets/fonts/Phudu/Phudu-Medium.ttf +0 -0
- package/lib/commonjs/assets/assets/fonts/Phudu/Phudu-Regular.ttf +0 -0
- package/lib/commonjs/assets/assets/fonts/Phudu/Phudu-SemiBold.ttf +0 -0
- package/lib/commonjs/assets/fonts/Phudu/Phudu-Black.ttf +0 -0
- package/lib/commonjs/assets/fonts/Phudu/Phudu-Bold.ttf +0 -0
- package/lib/commonjs/assets/fonts/Phudu/Phudu-ExtraBold.ttf +0 -0
- package/lib/commonjs/assets/fonts/Phudu/Phudu-Light.ttf +0 -0
- package/lib/commonjs/assets/fonts/Phudu/Phudu-Medium.ttf +0 -0
- package/lib/commonjs/assets/fonts/Phudu/Phudu-Regular.ttf +0 -0
- package/lib/commonjs/assets/fonts/Phudu/Phudu-SemiBold.ttf +0 -0
- package/lib/commonjs/ui/components/profile/EditBioModal.js +0 -181
- package/lib/commonjs/ui/components/profile/EditBioModal.js.map +0 -1
- package/lib/commonjs/ui/components/profile/EditDisplayNameModal.js +0 -204
- package/lib/commonjs/ui/components/profile/EditDisplayNameModal.js.map +0 -1
- package/lib/commonjs/ui/components/profile/EditEmailModal.js +0 -184
- package/lib/commonjs/ui/components/profile/EditEmailModal.js.map +0 -1
- package/lib/commonjs/ui/components/profile/EditFieldModal.js +0 -412
- package/lib/commonjs/ui/components/profile/EditFieldModal.js.map +0 -1
- package/lib/commonjs/ui/components/profile/EditLinksModal.js +0 -315
- package/lib/commonjs/ui/components/profile/EditLinksModal.js.map +0 -1
- package/lib/commonjs/ui/components/profile/EditLocationModal.js +0 -273
- package/lib/commonjs/ui/components/profile/EditLocationModal.js.map +0 -1
- package/lib/commonjs/ui/components/profile/EditUsernameModal.js +0 -180
- package/lib/commonjs/ui/components/profile/EditUsernameModal.js.map +0 -1
- package/lib/module/assets/assets/fonts/Phudu/Phudu-Black.ttf +0 -0
- package/lib/module/assets/assets/fonts/Phudu/Phudu-Bold.ttf +0 -0
- package/lib/module/assets/assets/fonts/Phudu/Phudu-ExtraBold.ttf +0 -0
- package/lib/module/assets/assets/fonts/Phudu/Phudu-Light.ttf +0 -0
- package/lib/module/assets/assets/fonts/Phudu/Phudu-Medium.ttf +0 -0
- package/lib/module/assets/assets/fonts/Phudu/Phudu-Regular.ttf +0 -0
- package/lib/module/assets/assets/fonts/Phudu/Phudu-SemiBold.ttf +0 -0
- package/lib/module/assets/fonts/Phudu/Phudu-Black.ttf +0 -0
- package/lib/module/assets/fonts/Phudu/Phudu-Bold.ttf +0 -0
- package/lib/module/assets/fonts/Phudu/Phudu-ExtraBold.ttf +0 -0
- package/lib/module/assets/fonts/Phudu/Phudu-Light.ttf +0 -0
- package/lib/module/assets/fonts/Phudu/Phudu-Medium.ttf +0 -0
- package/lib/module/assets/fonts/Phudu/Phudu-Regular.ttf +0 -0
- package/lib/module/assets/fonts/Phudu/Phudu-SemiBold.ttf +0 -0
- package/lib/module/ui/components/profile/EditBioModal.js +0 -175
- package/lib/module/ui/components/profile/EditBioModal.js.map +0 -1
- package/lib/module/ui/components/profile/EditDisplayNameModal.js +0 -198
- package/lib/module/ui/components/profile/EditDisplayNameModal.js.map +0 -1
- package/lib/module/ui/components/profile/EditEmailModal.js +0 -178
- package/lib/module/ui/components/profile/EditEmailModal.js.map +0 -1
- package/lib/module/ui/components/profile/EditFieldModal.js +0 -406
- package/lib/module/ui/components/profile/EditFieldModal.js.map +0 -1
- package/lib/module/ui/components/profile/EditLinksModal.js +0 -309
- package/lib/module/ui/components/profile/EditLinksModal.js.map +0 -1
- package/lib/module/ui/components/profile/EditLocationModal.js +0 -267
- package/lib/module/ui/components/profile/EditLocationModal.js.map +0 -1
- package/lib/module/ui/components/profile/EditUsernameModal.js +0 -174
- package/lib/module/ui/components/profile/EditUsernameModal.js.map +0 -1
- package/lib/typescript/commonjs/ui/components/profile/EditBioModal.d.ts +0 -11
- package/lib/typescript/commonjs/ui/components/profile/EditBioModal.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/profile/EditDisplayNameModal.d.ts +0 -12
- package/lib/typescript/commonjs/ui/components/profile/EditDisplayNameModal.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/profile/EditEmailModal.d.ts +0 -11
- package/lib/typescript/commonjs/ui/components/profile/EditEmailModal.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/profile/EditFieldModal.d.ts +0 -110
- package/lib/typescript/commonjs/ui/components/profile/EditFieldModal.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/profile/EditLinksModal.d.ts +0 -18
- package/lib/typescript/commonjs/ui/components/profile/EditLinksModal.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/profile/EditLocationModal.d.ts +0 -20
- package/lib/typescript/commonjs/ui/components/profile/EditLocationModal.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/profile/EditUsernameModal.d.ts +0 -11
- package/lib/typescript/commonjs/ui/components/profile/EditUsernameModal.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/profile/EditBioModal.d.ts +0 -11
- package/lib/typescript/module/ui/components/profile/EditBioModal.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/profile/EditDisplayNameModal.d.ts +0 -12
- package/lib/typescript/module/ui/components/profile/EditDisplayNameModal.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/profile/EditEmailModal.d.ts +0 -11
- package/lib/typescript/module/ui/components/profile/EditEmailModal.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/profile/EditFieldModal.d.ts +0 -110
- package/lib/typescript/module/ui/components/profile/EditFieldModal.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/profile/EditLinksModal.d.ts +0 -18
- package/lib/typescript/module/ui/components/profile/EditLinksModal.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/profile/EditLocationModal.d.ts +0 -20
- package/lib/typescript/module/ui/components/profile/EditLocationModal.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/profile/EditUsernameModal.d.ts +0 -11
- package/lib/typescript/module/ui/components/profile/EditUsernameModal.d.ts.map +0 -1
- package/src/assets/fonts/Phudu/Phudu-Black.ttf +0 -0
- package/src/assets/fonts/Phudu/Phudu-Bold.ttf +0 -0
- package/src/assets/fonts/Phudu/Phudu-ExtraBold.ttf +0 -0
- package/src/assets/fonts/Phudu/Phudu-Light.ttf +0 -0
- package/src/assets/fonts/Phudu/Phudu-Medium.ttf +0 -0
- package/src/assets/fonts/Phudu/Phudu-Regular.ttf +0 -0
- package/src/assets/fonts/Phudu/Phudu-SemiBold.ttf +0 -0
- package/src/ui/components/profile/EditBioModal.tsx +0 -184
- package/src/ui/components/profile/EditDisplayNameModal.tsx +0 -203
- package/src/ui/components/profile/EditEmailModal.tsx +0 -188
- package/src/ui/components/profile/EditFieldModal.tsx +0 -465
- package/src/ui/components/profile/EditLinksModal.tsx +0 -316
- package/src/ui/components/profile/EditLocationModal.tsx +0 -278
- package/src/ui/components/profile/EditUsernameModal.tsx +0 -183
|
@@ -1,309 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import React, { useState, useEffect } from 'react';
|
|
4
|
-
import { View, Text, TextInput, TouchableOpacity, StyleSheet, Modal, Platform, ScrollView, Image } from 'react-native';
|
|
5
|
-
import { Ionicons } from '@expo/vector-icons';
|
|
6
|
-
import { useThemeStyles } from "../../hooks/useThemeStyles.js";
|
|
7
|
-
import { useColorScheme } from "../../hooks/use-color-scheme.js";
|
|
8
|
-
import { useI18n } from "../../hooks/useI18n.js";
|
|
9
|
-
import { fontFamilies } from "../../styles/fonts.js";
|
|
10
|
-
import { useProfileEditing } from "../../hooks/useProfileEditing.js";
|
|
11
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
12
|
-
export const EditLinksModal = ({
|
|
13
|
-
visible,
|
|
14
|
-
onClose,
|
|
15
|
-
initialLinks = [],
|
|
16
|
-
theme = 'light',
|
|
17
|
-
onSave
|
|
18
|
-
}) => {
|
|
19
|
-
const {
|
|
20
|
-
t
|
|
21
|
-
} = useI18n();
|
|
22
|
-
const colorScheme = useColorScheme();
|
|
23
|
-
const themeStyles = useThemeStyles(theme || 'light', colorScheme);
|
|
24
|
-
const colors = themeStyles.colors;
|
|
25
|
-
const {
|
|
26
|
-
saveProfile,
|
|
27
|
-
isSaving
|
|
28
|
-
} = useProfileEditing();
|
|
29
|
-
const [links, setLinks] = useState(initialLinks);
|
|
30
|
-
const [newLinkUrl, setNewLinkUrl] = useState('');
|
|
31
|
-
useEffect(() => {
|
|
32
|
-
if (visible) {
|
|
33
|
-
setLinks(initialLinks);
|
|
34
|
-
setNewLinkUrl('');
|
|
35
|
-
}
|
|
36
|
-
}, [visible, initialLinks]);
|
|
37
|
-
const handleAddLink = () => {
|
|
38
|
-
if (!newLinkUrl.trim()) return;
|
|
39
|
-
const link = {
|
|
40
|
-
id: `link-${Date.now()}`,
|
|
41
|
-
url: newLinkUrl.trim(),
|
|
42
|
-
title: newLinkUrl.replace(/^https?:\/\//, '').replace(/\/$/, ''),
|
|
43
|
-
description: `Link to ${newLinkUrl}`
|
|
44
|
-
};
|
|
45
|
-
setLinks([...links, link]);
|
|
46
|
-
setNewLinkUrl('');
|
|
47
|
-
};
|
|
48
|
-
const handleRemoveLink = id => {
|
|
49
|
-
setLinks(links.filter(link => link.id !== id));
|
|
50
|
-
};
|
|
51
|
-
const handleSave = async () => {
|
|
52
|
-
const success = await saveProfile({
|
|
53
|
-
linksMetadata: links,
|
|
54
|
-
links: links.map(link => link.url)
|
|
55
|
-
});
|
|
56
|
-
if (success) {
|
|
57
|
-
onSave?.();
|
|
58
|
-
onClose();
|
|
59
|
-
}
|
|
60
|
-
};
|
|
61
|
-
return /*#__PURE__*/_jsx(Modal, {
|
|
62
|
-
visible: visible,
|
|
63
|
-
animationType: "slide",
|
|
64
|
-
transparent: true,
|
|
65
|
-
onRequestClose: onClose,
|
|
66
|
-
children: /*#__PURE__*/_jsx(View, {
|
|
67
|
-
style: styles.modalOverlay,
|
|
68
|
-
children: /*#__PURE__*/_jsxs(View, {
|
|
69
|
-
style: [styles.modalContent, {
|
|
70
|
-
backgroundColor: colors.background
|
|
71
|
-
}],
|
|
72
|
-
children: [/*#__PURE__*/_jsxs(View, {
|
|
73
|
-
style: styles.modalHeader,
|
|
74
|
-
children: [/*#__PURE__*/_jsx(TouchableOpacity, {
|
|
75
|
-
onPress: onClose,
|
|
76
|
-
style: styles.closeButton,
|
|
77
|
-
children: /*#__PURE__*/_jsx(Ionicons, {
|
|
78
|
-
name: "close",
|
|
79
|
-
size: 24,
|
|
80
|
-
color: colors.text
|
|
81
|
-
})
|
|
82
|
-
}), /*#__PURE__*/_jsx(Text, {
|
|
83
|
-
style: [styles.modalTitle, {
|
|
84
|
-
color: colors.text
|
|
85
|
-
}],
|
|
86
|
-
children: t('editProfile.items.links.title') || 'Links'
|
|
87
|
-
}), /*#__PURE__*/_jsx(TouchableOpacity, {
|
|
88
|
-
onPress: handleSave,
|
|
89
|
-
disabled: isSaving,
|
|
90
|
-
style: [styles.saveButton, {
|
|
91
|
-
opacity: isSaving ? 0.5 : 1
|
|
92
|
-
}],
|
|
93
|
-
children: /*#__PURE__*/_jsx(Text, {
|
|
94
|
-
style: [styles.saveButtonText, {
|
|
95
|
-
color: colors.tint
|
|
96
|
-
}],
|
|
97
|
-
children: isSaving ? 'Saving...' : 'Save'
|
|
98
|
-
})
|
|
99
|
-
})]
|
|
100
|
-
}), /*#__PURE__*/_jsxs(ScrollView, {
|
|
101
|
-
style: styles.modalBody,
|
|
102
|
-
children: [/*#__PURE__*/_jsxs(View, {
|
|
103
|
-
style: styles.inputGroup,
|
|
104
|
-
children: [/*#__PURE__*/_jsx(Text, {
|
|
105
|
-
style: [styles.label, {
|
|
106
|
-
color: colors.text
|
|
107
|
-
}],
|
|
108
|
-
children: t('editProfile.items.links.add') || 'Add Link'
|
|
109
|
-
}), /*#__PURE__*/_jsxs(View, {
|
|
110
|
-
style: styles.addLinkRow,
|
|
111
|
-
children: [/*#__PURE__*/_jsx(TextInput, {
|
|
112
|
-
style: [styles.input, {
|
|
113
|
-
backgroundColor: colors.card,
|
|
114
|
-
color: colors.text,
|
|
115
|
-
borderColor: colors.border,
|
|
116
|
-
flex: 1
|
|
117
|
-
}],
|
|
118
|
-
value: newLinkUrl,
|
|
119
|
-
onChangeText: setNewLinkUrl,
|
|
120
|
-
placeholder: t('editProfile.items.links.placeholder') || 'Enter URL (e.g., https://example.com)',
|
|
121
|
-
placeholderTextColor: colors.secondaryText,
|
|
122
|
-
keyboardType: "url",
|
|
123
|
-
autoCapitalize: "none",
|
|
124
|
-
autoCorrect: false,
|
|
125
|
-
selectionColor: colors.tint
|
|
126
|
-
}), /*#__PURE__*/_jsx(TouchableOpacity, {
|
|
127
|
-
style: [styles.addButton, {
|
|
128
|
-
backgroundColor: colors.tint
|
|
129
|
-
}],
|
|
130
|
-
onPress: handleAddLink,
|
|
131
|
-
disabled: !newLinkUrl.trim(),
|
|
132
|
-
children: /*#__PURE__*/_jsx(Ionicons, {
|
|
133
|
-
name: "add",
|
|
134
|
-
size: 20,
|
|
135
|
-
color: "#fff"
|
|
136
|
-
})
|
|
137
|
-
})]
|
|
138
|
-
})]
|
|
139
|
-
}), links.length > 0 && /*#__PURE__*/_jsxs(View, {
|
|
140
|
-
style: styles.linksList,
|
|
141
|
-
children: [/*#__PURE__*/_jsxs(Text, {
|
|
142
|
-
style: [styles.listTitle, {
|
|
143
|
-
color: colors.text
|
|
144
|
-
}],
|
|
145
|
-
children: [t('editProfile.items.links.yourLinks') || 'Your Links', " (", links.length, ")"]
|
|
146
|
-
}), links.map((link, index) => /*#__PURE__*/_jsxs(View, {
|
|
147
|
-
style: [styles.linkItem, {
|
|
148
|
-
backgroundColor: colors.card,
|
|
149
|
-
borderColor: colors.border
|
|
150
|
-
}, index < links.length - 1 && {
|
|
151
|
-
borderBottomWidth: StyleSheet.hairlineWidth
|
|
152
|
-
}],
|
|
153
|
-
children: [link.image && /*#__PURE__*/_jsx(Image, {
|
|
154
|
-
source: {
|
|
155
|
-
uri: link.image
|
|
156
|
-
},
|
|
157
|
-
style: styles.linkImage
|
|
158
|
-
}), /*#__PURE__*/_jsxs(View, {
|
|
159
|
-
style: styles.linkInfo,
|
|
160
|
-
children: [/*#__PURE__*/_jsx(Text, {
|
|
161
|
-
style: [styles.linkTitle, {
|
|
162
|
-
color: colors.text
|
|
163
|
-
}],
|
|
164
|
-
numberOfLines: 1,
|
|
165
|
-
children: link.title || link.url
|
|
166
|
-
}), link.description && link.description !== link.title && /*#__PURE__*/_jsx(Text, {
|
|
167
|
-
style: [styles.linkDescription, {
|
|
168
|
-
color: colors.secondaryText
|
|
169
|
-
}],
|
|
170
|
-
numberOfLines: 1,
|
|
171
|
-
children: link.description
|
|
172
|
-
}), /*#__PURE__*/_jsx(Text, {
|
|
173
|
-
style: [styles.linkUrl, {
|
|
174
|
-
color: colors.secondaryText
|
|
175
|
-
}],
|
|
176
|
-
numberOfLines: 1,
|
|
177
|
-
children: link.url
|
|
178
|
-
})]
|
|
179
|
-
}), /*#__PURE__*/_jsx(TouchableOpacity, {
|
|
180
|
-
onPress: () => handleRemoveLink(link.id),
|
|
181
|
-
style: styles.removeButton,
|
|
182
|
-
children: /*#__PURE__*/_jsx(Ionicons, {
|
|
183
|
-
name: "trash-outline",
|
|
184
|
-
size: 18,
|
|
185
|
-
color: "#FF3B30"
|
|
186
|
-
})
|
|
187
|
-
})]
|
|
188
|
-
}, link.id))]
|
|
189
|
-
})]
|
|
190
|
-
})]
|
|
191
|
-
})
|
|
192
|
-
})
|
|
193
|
-
});
|
|
194
|
-
};
|
|
195
|
-
const styles = StyleSheet.create({
|
|
196
|
-
modalOverlay: {
|
|
197
|
-
flex: 1,
|
|
198
|
-
backgroundColor: 'rgba(0, 0, 0, 0.5)',
|
|
199
|
-
justifyContent: 'flex-end'
|
|
200
|
-
},
|
|
201
|
-
modalContent: {
|
|
202
|
-
borderTopLeftRadius: 20,
|
|
203
|
-
borderTopRightRadius: 20,
|
|
204
|
-
paddingTop: Platform.OS === 'ios' ? 20 : 16,
|
|
205
|
-
maxHeight: '80%'
|
|
206
|
-
},
|
|
207
|
-
modalHeader: {
|
|
208
|
-
flexDirection: 'row',
|
|
209
|
-
alignItems: 'center',
|
|
210
|
-
justifyContent: 'space-between',
|
|
211
|
-
paddingHorizontal: 16,
|
|
212
|
-
paddingBottom: 16,
|
|
213
|
-
borderBottomWidth: StyleSheet.hairlineWidth,
|
|
214
|
-
borderBottomColor: '#E5E5EA'
|
|
215
|
-
},
|
|
216
|
-
closeButton: {
|
|
217
|
-
width: 40,
|
|
218
|
-
height: 40,
|
|
219
|
-
alignItems: 'center',
|
|
220
|
-
justifyContent: 'center'
|
|
221
|
-
},
|
|
222
|
-
modalTitle: {
|
|
223
|
-
fontSize: 18,
|
|
224
|
-
fontWeight: '600',
|
|
225
|
-
fontFamily: fontFamilies.phuduSemiBold,
|
|
226
|
-
flex: 1,
|
|
227
|
-
textAlign: 'center'
|
|
228
|
-
},
|
|
229
|
-
saveButton: {
|
|
230
|
-
paddingHorizontal: 16,
|
|
231
|
-
paddingVertical: 8
|
|
232
|
-
},
|
|
233
|
-
saveButtonText: {
|
|
234
|
-
fontSize: 16,
|
|
235
|
-
fontWeight: '600',
|
|
236
|
-
fontFamily: fontFamilies.phuduSemiBold
|
|
237
|
-
},
|
|
238
|
-
modalBody: {
|
|
239
|
-
padding: 16
|
|
240
|
-
},
|
|
241
|
-
inputGroup: {
|
|
242
|
-
gap: 8,
|
|
243
|
-
marginBottom: 24
|
|
244
|
-
},
|
|
245
|
-
label: {
|
|
246
|
-
fontSize: 14,
|
|
247
|
-
fontWeight: '600',
|
|
248
|
-
fontFamily: fontFamilies.phuduSemiBold
|
|
249
|
-
},
|
|
250
|
-
addLinkRow: {
|
|
251
|
-
flexDirection: 'row',
|
|
252
|
-
gap: 8,
|
|
253
|
-
alignItems: 'center'
|
|
254
|
-
},
|
|
255
|
-
input: {
|
|
256
|
-
borderWidth: StyleSheet.hairlineWidth,
|
|
257
|
-
borderRadius: 12,
|
|
258
|
-
padding: 16,
|
|
259
|
-
fontSize: 16,
|
|
260
|
-
minHeight: 52
|
|
261
|
-
},
|
|
262
|
-
addButton: {
|
|
263
|
-
width: 52,
|
|
264
|
-
height: 52,
|
|
265
|
-
borderRadius: 12,
|
|
266
|
-
alignItems: 'center',
|
|
267
|
-
justifyContent: 'center'
|
|
268
|
-
},
|
|
269
|
-
linksList: {
|
|
270
|
-
gap: 8
|
|
271
|
-
},
|
|
272
|
-
listTitle: {
|
|
273
|
-
fontSize: 16,
|
|
274
|
-
fontWeight: '600',
|
|
275
|
-
fontFamily: fontFamilies.phuduSemiBold,
|
|
276
|
-
marginBottom: 8
|
|
277
|
-
},
|
|
278
|
-
linkItem: {
|
|
279
|
-
flexDirection: 'row',
|
|
280
|
-
alignItems: 'center',
|
|
281
|
-
padding: 16,
|
|
282
|
-
borderRadius: 12,
|
|
283
|
-
borderWidth: StyleSheet.hairlineWidth,
|
|
284
|
-
gap: 12
|
|
285
|
-
},
|
|
286
|
-
linkImage: {
|
|
287
|
-
width: 40,
|
|
288
|
-
height: 40,
|
|
289
|
-
borderRadius: 8
|
|
290
|
-
},
|
|
291
|
-
linkInfo: {
|
|
292
|
-
flex: 1,
|
|
293
|
-
gap: 4
|
|
294
|
-
},
|
|
295
|
-
linkTitle: {
|
|
296
|
-
fontSize: 16,
|
|
297
|
-
fontWeight: '600'
|
|
298
|
-
},
|
|
299
|
-
linkDescription: {
|
|
300
|
-
fontSize: 14
|
|
301
|
-
},
|
|
302
|
-
linkUrl: {
|
|
303
|
-
fontSize: 12
|
|
304
|
-
},
|
|
305
|
-
removeButton: {
|
|
306
|
-
padding: 8
|
|
307
|
-
}
|
|
308
|
-
});
|
|
309
|
-
//# sourceMappingURL=EditLinksModal.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","useState","useEffect","View","Text","TextInput","TouchableOpacity","StyleSheet","Modal","Platform","ScrollView","Image","Ionicons","useThemeStyles","useColorScheme","useI18n","fontFamilies","useProfileEditing","jsx","_jsx","jsxs","_jsxs","EditLinksModal","visible","onClose","initialLinks","theme","onSave","t","colorScheme","themeStyles","colors","saveProfile","isSaving","links","setLinks","newLinkUrl","setNewLinkUrl","handleAddLink","trim","link","id","Date","now","url","title","replace","description","handleRemoveLink","filter","handleSave","success","linksMetadata","map","animationType","transparent","onRequestClose","children","style","styles","modalOverlay","modalContent","backgroundColor","background","modalHeader","onPress","closeButton","name","size","color","text","modalTitle","disabled","saveButton","opacity","saveButtonText","tint","modalBody","inputGroup","label","addLinkRow","input","card","borderColor","border","flex","value","onChangeText","placeholder","placeholderTextColor","secondaryText","keyboardType","autoCapitalize","autoCorrect","selectionColor","addButton","length","linksList","listTitle","index","linkItem","borderBottomWidth","hairlineWidth","image","source","uri","linkImage","linkInfo","linkTitle","numberOfLines","linkDescription","linkUrl","removeButton","create","justifyContent","borderTopLeftRadius","borderTopRightRadius","paddingTop","OS","maxHeight","flexDirection","alignItems","paddingHorizontal","paddingBottom","borderBottomColor","width","height","fontSize","fontWeight","fontFamily","phuduSemiBold","textAlign","paddingVertical","padding","gap","marginBottom","borderWidth","borderRadius","minHeight"],"sourceRoot":"../../../../../src","sources":["ui/components/profile/EditLinksModal.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,QAAQ,EAAEC,SAAS,QAAQ,OAAO;AAClD,SACIC,IAAI,EACJC,IAAI,EACJC,SAAS,EACTC,gBAAgB,EAChBC,UAAU,EACVC,KAAK,EACLC,QAAQ,EACRC,UAAU,EACVC,KAAK,QACF,cAAc;AACrB,SAASC,QAAQ,QAAQ,oBAAoB;AAC7C,SAASC,cAAc,QAAQ,+BAA4B;AAC3D,SAASC,cAAc,QAAQ,iCAA8B;AAC7D,SAASC,OAAO,QAAQ,wBAAqB;AAC7C,SAASC,YAAY,QAAQ,uBAAoB;AACjD,SAASC,iBAAiB,QAAQ,kCAA+B;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAkBlE,OAAO,MAAMC,cAA6C,GAAGA,CAAC;EAC1DC,OAAO;EACPC,OAAO;EACPC,YAAY,GAAG,EAAE;EACjBC,KAAK,GAAG,OAAO;EACfC;AACJ,CAAC,KAAK;EACF,MAAM;IAAEC;EA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gC,GAAG,EAAE;EACT,CAAC;EACD5B,SAAS,EAAE;IACPmB,KAAK,EAAE,EAAE;IACTC,MAAM,EAAE,EAAE;IACVW,YAAY,EAAE;EAClB,CAAC;EACD9B,QAAQ,EAAE;IACNtB,IAAI,EAAE,CAAC;IACPiD,GAAG,EAAE;EACT,CAAC;EACD1B,SAAS,EAAE;IACPmB,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE;EAChB,CAAC;EACDlB,eAAe,EAAE;IACbiB,QAAQ,EAAE;EACd,CAAC;EACDhB,OAAO,EAAE;IACLgB,QAAQ,EAAE;EACd,CAAC;EACDf,YAAY,EAAE;IACVqB,OAAO,EAAE;EACb;AACJ,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,267 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import React, { useState, useEffect } from 'react';
|
|
4
|
-
import { View, Text, TextInput, TouchableOpacity, StyleSheet, Modal, Platform, ScrollView } from 'react-native';
|
|
5
|
-
import { Ionicons } from '@expo/vector-icons';
|
|
6
|
-
import { useThemeStyles } from "../../hooks/useThemeStyles.js";
|
|
7
|
-
import { useColorScheme } from "../../hooks/use-color-scheme.js";
|
|
8
|
-
import { useI18n } from "../../hooks/useI18n.js";
|
|
9
|
-
import { fontFamilies } from "../../styles/fonts.js";
|
|
10
|
-
import { useProfileEditing } from "../../hooks/useProfileEditing.js";
|
|
11
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
12
|
-
export const EditLocationModal = ({
|
|
13
|
-
visible,
|
|
14
|
-
onClose,
|
|
15
|
-
initialLocations = [],
|
|
16
|
-
theme = 'light',
|
|
17
|
-
onSave
|
|
18
|
-
}) => {
|
|
19
|
-
const {
|
|
20
|
-
t
|
|
21
|
-
} = useI18n();
|
|
22
|
-
const colorScheme = useColorScheme();
|
|
23
|
-
const themeStyles = useThemeStyles(theme || 'light', colorScheme);
|
|
24
|
-
const colors = themeStyles.colors;
|
|
25
|
-
const {
|
|
26
|
-
saveProfile,
|
|
27
|
-
isSaving
|
|
28
|
-
} = useProfileEditing();
|
|
29
|
-
const [locations, setLocations] = useState(initialLocations);
|
|
30
|
-
const [newLocation, setNewLocation] = useState('');
|
|
31
|
-
useEffect(() => {
|
|
32
|
-
if (visible) {
|
|
33
|
-
setLocations(initialLocations);
|
|
34
|
-
setNewLocation('');
|
|
35
|
-
}
|
|
36
|
-
}, [visible, initialLocations]);
|
|
37
|
-
const handleAddLocation = () => {
|
|
38
|
-
if (!newLocation.trim()) return;
|
|
39
|
-
const location = {
|
|
40
|
-
id: `location-${Date.now()}`,
|
|
41
|
-
name: newLocation.trim()
|
|
42
|
-
};
|
|
43
|
-
setLocations([...locations, location]);
|
|
44
|
-
setNewLocation('');
|
|
45
|
-
};
|
|
46
|
-
const handleRemoveLocation = id => {
|
|
47
|
-
setLocations(locations.filter(loc => loc.id !== id));
|
|
48
|
-
};
|
|
49
|
-
const handleSave = async () => {
|
|
50
|
-
const success = await saveProfile({
|
|
51
|
-
locations
|
|
52
|
-
});
|
|
53
|
-
if (success) {
|
|
54
|
-
onSave?.();
|
|
55
|
-
onClose();
|
|
56
|
-
}
|
|
57
|
-
};
|
|
58
|
-
return /*#__PURE__*/_jsx(Modal, {
|
|
59
|
-
visible: visible,
|
|
60
|
-
animationType: "slide",
|
|
61
|
-
transparent: true,
|
|
62
|
-
onRequestClose: onClose,
|
|
63
|
-
children: /*#__PURE__*/_jsx(View, {
|
|
64
|
-
style: styles.modalOverlay,
|
|
65
|
-
children: /*#__PURE__*/_jsxs(View, {
|
|
66
|
-
style: [styles.modalContent, {
|
|
67
|
-
backgroundColor: colors.background
|
|
68
|
-
}],
|
|
69
|
-
children: [/*#__PURE__*/_jsxs(View, {
|
|
70
|
-
style: styles.modalHeader,
|
|
71
|
-
children: [/*#__PURE__*/_jsx(TouchableOpacity, {
|
|
72
|
-
onPress: onClose,
|
|
73
|
-
style: styles.closeButton,
|
|
74
|
-
children: /*#__PURE__*/_jsx(Ionicons, {
|
|
75
|
-
name: "close",
|
|
76
|
-
size: 24,
|
|
77
|
-
color: colors.text
|
|
78
|
-
})
|
|
79
|
-
}), /*#__PURE__*/_jsx(Text, {
|
|
80
|
-
style: [styles.modalTitle, {
|
|
81
|
-
color: colors.text
|
|
82
|
-
}],
|
|
83
|
-
children: t('editProfile.items.locations.title') || 'Locations'
|
|
84
|
-
}), /*#__PURE__*/_jsx(TouchableOpacity, {
|
|
85
|
-
onPress: handleSave,
|
|
86
|
-
disabled: isSaving,
|
|
87
|
-
style: [styles.saveButton, {
|
|
88
|
-
opacity: isSaving ? 0.5 : 1
|
|
89
|
-
}],
|
|
90
|
-
children: /*#__PURE__*/_jsx(Text, {
|
|
91
|
-
style: [styles.saveButtonText, {
|
|
92
|
-
color: colors.tint
|
|
93
|
-
}],
|
|
94
|
-
children: isSaving ? 'Saving...' : 'Save'
|
|
95
|
-
})
|
|
96
|
-
})]
|
|
97
|
-
}), /*#__PURE__*/_jsxs(ScrollView, {
|
|
98
|
-
style: styles.modalBody,
|
|
99
|
-
children: [/*#__PURE__*/_jsxs(View, {
|
|
100
|
-
style: styles.inputGroup,
|
|
101
|
-
children: [/*#__PURE__*/_jsx(Text, {
|
|
102
|
-
style: [styles.label, {
|
|
103
|
-
color: colors.text
|
|
104
|
-
}],
|
|
105
|
-
children: t('editProfile.items.locations.add') || 'Add Location'
|
|
106
|
-
}), /*#__PURE__*/_jsxs(View, {
|
|
107
|
-
style: styles.addLocationRow,
|
|
108
|
-
children: [/*#__PURE__*/_jsx(TextInput, {
|
|
109
|
-
style: [styles.input, {
|
|
110
|
-
backgroundColor: colors.card,
|
|
111
|
-
color: colors.text,
|
|
112
|
-
borderColor: colors.border,
|
|
113
|
-
flex: 1
|
|
114
|
-
}],
|
|
115
|
-
value: newLocation,
|
|
116
|
-
onChangeText: setNewLocation,
|
|
117
|
-
placeholder: t('editProfile.items.locations.placeholder') || 'Enter location name',
|
|
118
|
-
placeholderTextColor: colors.secondaryText,
|
|
119
|
-
selectionColor: colors.tint
|
|
120
|
-
}), /*#__PURE__*/_jsx(TouchableOpacity, {
|
|
121
|
-
style: [styles.addButton, {
|
|
122
|
-
backgroundColor: colors.tint
|
|
123
|
-
}],
|
|
124
|
-
onPress: handleAddLocation,
|
|
125
|
-
disabled: !newLocation.trim(),
|
|
126
|
-
children: /*#__PURE__*/_jsx(Ionicons, {
|
|
127
|
-
name: "add",
|
|
128
|
-
size: 20,
|
|
129
|
-
color: "#fff"
|
|
130
|
-
})
|
|
131
|
-
})]
|
|
132
|
-
})]
|
|
133
|
-
}), locations.length > 0 && /*#__PURE__*/_jsxs(View, {
|
|
134
|
-
style: styles.locationsList,
|
|
135
|
-
children: [/*#__PURE__*/_jsxs(Text, {
|
|
136
|
-
style: [styles.listTitle, {
|
|
137
|
-
color: colors.text
|
|
138
|
-
}],
|
|
139
|
-
children: [t('editProfile.items.locations.yourLocations') || 'Your Locations', " (", locations.length, ")"]
|
|
140
|
-
}), locations.map((location, index) => /*#__PURE__*/_jsxs(View, {
|
|
141
|
-
style: [styles.locationItem, {
|
|
142
|
-
backgroundColor: colors.card,
|
|
143
|
-
borderColor: colors.border
|
|
144
|
-
}, index < locations.length - 1 && {
|
|
145
|
-
borderBottomWidth: StyleSheet.hairlineWidth
|
|
146
|
-
}],
|
|
147
|
-
children: [/*#__PURE__*/_jsx(Text, {
|
|
148
|
-
style: [styles.locationName, {
|
|
149
|
-
color: colors.text
|
|
150
|
-
}],
|
|
151
|
-
children: location.name
|
|
152
|
-
}), /*#__PURE__*/_jsx(TouchableOpacity, {
|
|
153
|
-
onPress: () => handleRemoveLocation(location.id),
|
|
154
|
-
style: styles.removeButton,
|
|
155
|
-
children: /*#__PURE__*/_jsx(Ionicons, {
|
|
156
|
-
name: "trash-outline",
|
|
157
|
-
size: 18,
|
|
158
|
-
color: "#FF3B30"
|
|
159
|
-
})
|
|
160
|
-
})]
|
|
161
|
-
}, location.id))]
|
|
162
|
-
})]
|
|
163
|
-
})]
|
|
164
|
-
})
|
|
165
|
-
})
|
|
166
|
-
});
|
|
167
|
-
};
|
|
168
|
-
const styles = StyleSheet.create({
|
|
169
|
-
modalOverlay: {
|
|
170
|
-
flex: 1,
|
|
171
|
-
backgroundColor: 'rgba(0, 0, 0, 0.5)',
|
|
172
|
-
justifyContent: 'flex-end'
|
|
173
|
-
},
|
|
174
|
-
modalContent: {
|
|
175
|
-
borderTopLeftRadius: 20,
|
|
176
|
-
borderTopRightRadius: 20,
|
|
177
|
-
paddingTop: Platform.OS === 'ios' ? 20 : 16,
|
|
178
|
-
maxHeight: '80%'
|
|
179
|
-
},
|
|
180
|
-
modalHeader: {
|
|
181
|
-
flexDirection: 'row',
|
|
182
|
-
alignItems: 'center',
|
|
183
|
-
justifyContent: 'space-between',
|
|
184
|
-
paddingHorizontal: 16,
|
|
185
|
-
paddingBottom: 16,
|
|
186
|
-
borderBottomWidth: StyleSheet.hairlineWidth,
|
|
187
|
-
borderBottomColor: '#E5E5EA'
|
|
188
|
-
},
|
|
189
|
-
closeButton: {
|
|
190
|
-
width: 40,
|
|
191
|
-
height: 40,
|
|
192
|
-
alignItems: 'center',
|
|
193
|
-
justifyContent: 'center'
|
|
194
|
-
},
|
|
195
|
-
modalTitle: {
|
|
196
|
-
fontSize: 18,
|
|
197
|
-
fontWeight: '600',
|
|
198
|
-
fontFamily: fontFamilies.phuduSemiBold,
|
|
199
|
-
flex: 1,
|
|
200
|
-
textAlign: 'center'
|
|
201
|
-
},
|
|
202
|
-
saveButton: {
|
|
203
|
-
paddingHorizontal: 16,
|
|
204
|
-
paddingVertical: 8
|
|
205
|
-
},
|
|
206
|
-
saveButtonText: {
|
|
207
|
-
fontSize: 16,
|
|
208
|
-
fontWeight: '600',
|
|
209
|
-
fontFamily: fontFamilies.phuduSemiBold
|
|
210
|
-
},
|
|
211
|
-
modalBody: {
|
|
212
|
-
padding: 16
|
|
213
|
-
},
|
|
214
|
-
inputGroup: {
|
|
215
|
-
gap: 8,
|
|
216
|
-
marginBottom: 24
|
|
217
|
-
},
|
|
218
|
-
label: {
|
|
219
|
-
fontSize: 14,
|
|
220
|
-
fontWeight: '600',
|
|
221
|
-
fontFamily: fontFamilies.phuduSemiBold
|
|
222
|
-
},
|
|
223
|
-
addLocationRow: {
|
|
224
|
-
flexDirection: 'row',
|
|
225
|
-
gap: 8,
|
|
226
|
-
alignItems: 'center'
|
|
227
|
-
},
|
|
228
|
-
input: {
|
|
229
|
-
borderWidth: StyleSheet.hairlineWidth,
|
|
230
|
-
borderRadius: 12,
|
|
231
|
-
padding: 16,
|
|
232
|
-
fontSize: 16,
|
|
233
|
-
minHeight: 52
|
|
234
|
-
},
|
|
235
|
-
addButton: {
|
|
236
|
-
width: 52,
|
|
237
|
-
height: 52,
|
|
238
|
-
borderRadius: 12,
|
|
239
|
-
alignItems: 'center',
|
|
240
|
-
justifyContent: 'center'
|
|
241
|
-
},
|
|
242
|
-
locationsList: {
|
|
243
|
-
gap: 8
|
|
244
|
-
},
|
|
245
|
-
listTitle: {
|
|
246
|
-
fontSize: 16,
|
|
247
|
-
fontWeight: '600',
|
|
248
|
-
fontFamily: fontFamilies.phuduSemiBold,
|
|
249
|
-
marginBottom: 8
|
|
250
|
-
},
|
|
251
|
-
locationItem: {
|
|
252
|
-
flexDirection: 'row',
|
|
253
|
-
alignItems: 'center',
|
|
254
|
-
justifyContent: 'space-between',
|
|
255
|
-
padding: 16,
|
|
256
|
-
borderRadius: 12,
|
|
257
|
-
borderWidth: StyleSheet.hairlineWidth
|
|
258
|
-
},
|
|
259
|
-
locationName: {
|
|
260
|
-
fontSize: 16,
|
|
261
|
-
flex: 1
|
|
262
|
-
},
|
|
263
|
-
removeButton: {
|
|
264
|
-
padding: 8
|
|
265
|
-
}
|
|
266
|
-
});
|
|
267
|
-
//# sourceMappingURL=EditLocationModal.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","useState","useEffect","View","Text","TextInput","TouchableOpacity","StyleSheet","Modal","Platform","ScrollView","Ionicons","useThemeStyles","useColorScheme","useI18n","fontFamilies","useProfileEditing","jsx","_jsx","jsxs","_jsxs","EditLocationModal","visible","onClose","initialLocations","theme","onSave","t","colorScheme","themeStyles","colors","saveProfile","isSaving","locations","setLocations","newLocation","setNewLocation","handleAddLocation","trim","location","id","Date","now","name","handleRemoveLocation","filter","loc","handleSave","success","animationType","transparent","onRequestClose","children","style","styles","modalOverlay","modalContent","backgroundColor","background","modalHeader","onPress","closeButton","size","color","text","modalTitle","disabled","saveButton","opacity","saveButtonText","tint","modalBody","inputGroup","label","addLocationRow","input","card","borderColor","border","flex","value","onChangeText","placeholder","placeholderTextColor","secondaryText","selectionColor","addButton","length","locationsList","listTitle","map","index","locationItem","borderBottomWidth","hairlineWidth","locationName","removeButton","create","justifyContent","borderTopLeftRadius","borderTopRightRadius","paddingTop","OS","maxHeight","flexDirection","alignItems","paddingHorizontal","paddingBottom","borderBottomColor","width","height","fontSize","fontWeight","fontFamily","phuduSemiBold","textAlign","paddingVertical","padding","gap","marginBottom","borderWidth","borderRadius","minHeight"],"sourceRoot":"../../../../../src","sources":["ui/components/profile/EditLocationModal.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,QAAQ,EAAEC,SAAS,QAAQ,OAAO;AAClD,SACIC,IAAI,EACJC,IAAI,EACJC,SAAS,EACTC,gBAAgB,EAChBC,UAAU,EACVC,KAAK,EACLC,QAAQ,EACRC,UAAU,QACP,cAAc;AACrB,SAASC,QAAQ,QAAQ,oBAAoB;AAC7C,SAASC,cAAc,QAAQ,+BAA4B;AAC3D,SAASC,cAAc,QAAQ,iCAA8B;AAC7D,SAASC,OAAO,QAAQ,wBAAqB;AAC7C,SAASC,YAAY,QAAQ,uBAAoB;AACjD,SAASC,iBAAiB,QAAQ,kCAA+B;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAiBlE,OAAO,MAAMC,iBAAmD,GAAGA,CAAC;EAChEC,OAAO;EACPC,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