@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,315 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.EditLinksModal = void 0;
|
|
7
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
-
var _reactNative = require("react-native");
|
|
9
|
-
var _vectorIcons = require("@expo/vector-icons");
|
|
10
|
-
var _useThemeStyles = require("../../hooks/useThemeStyles.js");
|
|
11
|
-
var _useColorScheme = require("../../hooks/use-color-scheme.js");
|
|
12
|
-
var _useI18n = require("../../hooks/useI18n.js");
|
|
13
|
-
var _fonts = require("../../styles/fonts.js");
|
|
14
|
-
var _useProfileEditing = require("../../hooks/useProfileEditing.js");
|
|
15
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
|
-
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); }
|
|
17
|
-
const EditLinksModal = ({
|
|
18
|
-
visible,
|
|
19
|
-
onClose,
|
|
20
|
-
initialLinks = [],
|
|
21
|
-
theme = 'light',
|
|
22
|
-
onSave
|
|
23
|
-
}) => {
|
|
24
|
-
const {
|
|
25
|
-
t
|
|
26
|
-
} = (0, _useI18n.useI18n)();
|
|
27
|
-
const colorScheme = (0, _useColorScheme.useColorScheme)();
|
|
28
|
-
const themeStyles = (0, _useThemeStyles.useThemeStyles)(theme || 'light', colorScheme);
|
|
29
|
-
const colors = themeStyles.colors;
|
|
30
|
-
const {
|
|
31
|
-
saveProfile,
|
|
32
|
-
isSaving
|
|
33
|
-
} = (0, _useProfileEditing.useProfileEditing)();
|
|
34
|
-
const [links, setLinks] = (0, _react.useState)(initialLinks);
|
|
35
|
-
const [newLinkUrl, setNewLinkUrl] = (0, _react.useState)('');
|
|
36
|
-
(0, _react.useEffect)(() => {
|
|
37
|
-
if (visible) {
|
|
38
|
-
setLinks(initialLinks);
|
|
39
|
-
setNewLinkUrl('');
|
|
40
|
-
}
|
|
41
|
-
}, [visible, initialLinks]);
|
|
42
|
-
const handleAddLink = () => {
|
|
43
|
-
if (!newLinkUrl.trim()) return;
|
|
44
|
-
const link = {
|
|
45
|
-
id: `link-${Date.now()}`,
|
|
46
|
-
url: newLinkUrl.trim(),
|
|
47
|
-
title: newLinkUrl.replace(/^https?:\/\//, '').replace(/\/$/, ''),
|
|
48
|
-
description: `Link to ${newLinkUrl}`
|
|
49
|
-
};
|
|
50
|
-
setLinks([...links, link]);
|
|
51
|
-
setNewLinkUrl('');
|
|
52
|
-
};
|
|
53
|
-
const handleRemoveLink = id => {
|
|
54
|
-
setLinks(links.filter(link => link.id !== id));
|
|
55
|
-
};
|
|
56
|
-
const handleSave = async () => {
|
|
57
|
-
const success = await saveProfile({
|
|
58
|
-
linksMetadata: links,
|
|
59
|
-
links: links.map(link => link.url)
|
|
60
|
-
});
|
|
61
|
-
if (success) {
|
|
62
|
-
onSave?.();
|
|
63
|
-
onClose();
|
|
64
|
-
}
|
|
65
|
-
};
|
|
66
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Modal, {
|
|
67
|
-
visible: visible,
|
|
68
|
-
animationType: "slide",
|
|
69
|
-
transparent: true,
|
|
70
|
-
onRequestClose: onClose,
|
|
71
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
72
|
-
style: styles.modalOverlay,
|
|
73
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
74
|
-
style: [styles.modalContent, {
|
|
75
|
-
backgroundColor: colors.background
|
|
76
|
-
}],
|
|
77
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
78
|
-
style: styles.modalHeader,
|
|
79
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
|
|
80
|
-
onPress: onClose,
|
|
81
|
-
style: styles.closeButton,
|
|
82
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_vectorIcons.Ionicons, {
|
|
83
|
-
name: "close",
|
|
84
|
-
size: 24,
|
|
85
|
-
color: colors.text
|
|
86
|
-
})
|
|
87
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
88
|
-
style: [styles.modalTitle, {
|
|
89
|
-
color: colors.text
|
|
90
|
-
}],
|
|
91
|
-
children: t('editProfile.items.links.title') || 'Links'
|
|
92
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
|
|
93
|
-
onPress: handleSave,
|
|
94
|
-
disabled: isSaving,
|
|
95
|
-
style: [styles.saveButton, {
|
|
96
|
-
opacity: isSaving ? 0.5 : 1
|
|
97
|
-
}],
|
|
98
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
99
|
-
style: [styles.saveButtonText, {
|
|
100
|
-
color: colors.tint
|
|
101
|
-
}],
|
|
102
|
-
children: isSaving ? 'Saving...' : 'Save'
|
|
103
|
-
})
|
|
104
|
-
})]
|
|
105
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.ScrollView, {
|
|
106
|
-
style: styles.modalBody,
|
|
107
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
108
|
-
style: styles.inputGroup,
|
|
109
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
110
|
-
style: [styles.label, {
|
|
111
|
-
color: colors.text
|
|
112
|
-
}],
|
|
113
|
-
children: t('editProfile.items.links.add') || 'Add Link'
|
|
114
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
115
|
-
style: styles.addLinkRow,
|
|
116
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TextInput, {
|
|
117
|
-
style: [styles.input, {
|
|
118
|
-
backgroundColor: colors.card,
|
|
119
|
-
color: colors.text,
|
|
120
|
-
borderColor: colors.border,
|
|
121
|
-
flex: 1
|
|
122
|
-
}],
|
|
123
|
-
value: newLinkUrl,
|
|
124
|
-
onChangeText: setNewLinkUrl,
|
|
125
|
-
placeholder: t('editProfile.items.links.placeholder') || 'Enter URL (e.g., https://example.com)',
|
|
126
|
-
placeholderTextColor: colors.secondaryText,
|
|
127
|
-
keyboardType: "url",
|
|
128
|
-
autoCapitalize: "none",
|
|
129
|
-
autoCorrect: false,
|
|
130
|
-
selectionColor: colors.tint
|
|
131
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
|
|
132
|
-
style: [styles.addButton, {
|
|
133
|
-
backgroundColor: colors.tint
|
|
134
|
-
}],
|
|
135
|
-
onPress: handleAddLink,
|
|
136
|
-
disabled: !newLinkUrl.trim(),
|
|
137
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_vectorIcons.Ionicons, {
|
|
138
|
-
name: "add",
|
|
139
|
-
size: 20,
|
|
140
|
-
color: "#fff"
|
|
141
|
-
})
|
|
142
|
-
})]
|
|
143
|
-
})]
|
|
144
|
-
}), links.length > 0 && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
145
|
-
style: styles.linksList,
|
|
146
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Text, {
|
|
147
|
-
style: [styles.listTitle, {
|
|
148
|
-
color: colors.text
|
|
149
|
-
}],
|
|
150
|
-
children: [t('editProfile.items.links.yourLinks') || 'Your Links', " (", links.length, ")"]
|
|
151
|
-
}), links.map((link, index) => /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
152
|
-
style: [styles.linkItem, {
|
|
153
|
-
backgroundColor: colors.card,
|
|
154
|
-
borderColor: colors.border
|
|
155
|
-
}, index < links.length - 1 && {
|
|
156
|
-
borderBottomWidth: _reactNative.StyleSheet.hairlineWidth
|
|
157
|
-
}],
|
|
158
|
-
children: [link.image && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Image, {
|
|
159
|
-
source: {
|
|
160
|
-
uri: link.image
|
|
161
|
-
},
|
|
162
|
-
style: styles.linkImage
|
|
163
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
164
|
-
style: styles.linkInfo,
|
|
165
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
166
|
-
style: [styles.linkTitle, {
|
|
167
|
-
color: colors.text
|
|
168
|
-
}],
|
|
169
|
-
numberOfLines: 1,
|
|
170
|
-
children: link.title || link.url
|
|
171
|
-
}), link.description && link.description !== link.title && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
172
|
-
style: [styles.linkDescription, {
|
|
173
|
-
color: colors.secondaryText
|
|
174
|
-
}],
|
|
175
|
-
numberOfLines: 1,
|
|
176
|
-
children: link.description
|
|
177
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
178
|
-
style: [styles.linkUrl, {
|
|
179
|
-
color: colors.secondaryText
|
|
180
|
-
}],
|
|
181
|
-
numberOfLines: 1,
|
|
182
|
-
children: link.url
|
|
183
|
-
})]
|
|
184
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
|
|
185
|
-
onPress: () => handleRemoveLink(link.id),
|
|
186
|
-
style: styles.removeButton,
|
|
187
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_vectorIcons.Ionicons, {
|
|
188
|
-
name: "trash-outline",
|
|
189
|
-
size: 18,
|
|
190
|
-
color: "#FF3B30"
|
|
191
|
-
})
|
|
192
|
-
})]
|
|
193
|
-
}, link.id))]
|
|
194
|
-
})]
|
|
195
|
-
})]
|
|
196
|
-
})
|
|
197
|
-
})
|
|
198
|
-
});
|
|
199
|
-
};
|
|
200
|
-
exports.EditLinksModal = EditLinksModal;
|
|
201
|
-
const styles = _reactNative.StyleSheet.create({
|
|
202
|
-
modalOverlay: {
|
|
203
|
-
flex: 1,
|
|
204
|
-
backgroundColor: 'rgba(0, 0, 0, 0.5)',
|
|
205
|
-
justifyContent: 'flex-end'
|
|
206
|
-
},
|
|
207
|
-
modalContent: {
|
|
208
|
-
borderTopLeftRadius: 20,
|
|
209
|
-
borderTopRightRadius: 20,
|
|
210
|
-
paddingTop: _reactNative.Platform.OS === 'ios' ? 20 : 16,
|
|
211
|
-
maxHeight: '80%'
|
|
212
|
-
},
|
|
213
|
-
modalHeader: {
|
|
214
|
-
flexDirection: 'row',
|
|
215
|
-
alignItems: 'center',
|
|
216
|
-
justifyContent: 'space-between',
|
|
217
|
-
paddingHorizontal: 16,
|
|
218
|
-
paddingBottom: 16,
|
|
219
|
-
borderBottomWidth: _reactNative.StyleSheet.hairlineWidth,
|
|
220
|
-
borderBottomColor: '#E5E5EA'
|
|
221
|
-
},
|
|
222
|
-
closeButton: {
|
|
223
|
-
width: 40,
|
|
224
|
-
height: 40,
|
|
225
|
-
alignItems: 'center',
|
|
226
|
-
justifyContent: 'center'
|
|
227
|
-
},
|
|
228
|
-
modalTitle: {
|
|
229
|
-
fontSize: 18,
|
|
230
|
-
fontWeight: '600',
|
|
231
|
-
fontFamily: _fonts.fontFamilies.phuduSemiBold,
|
|
232
|
-
flex: 1,
|
|
233
|
-
textAlign: 'center'
|
|
234
|
-
},
|
|
235
|
-
saveButton: {
|
|
236
|
-
paddingHorizontal: 16,
|
|
237
|
-
paddingVertical: 8
|
|
238
|
-
},
|
|
239
|
-
saveButtonText: {
|
|
240
|
-
fontSize: 16,
|
|
241
|
-
fontWeight: '600',
|
|
242
|
-
fontFamily: _fonts.fontFamilies.phuduSemiBold
|
|
243
|
-
},
|
|
244
|
-
modalBody: {
|
|
245
|
-
padding: 16
|
|
246
|
-
},
|
|
247
|
-
inputGroup: {
|
|
248
|
-
gap: 8,
|
|
249
|
-
marginBottom: 24
|
|
250
|
-
},
|
|
251
|
-
label: {
|
|
252
|
-
fontSize: 14,
|
|
253
|
-
fontWeight: '600',
|
|
254
|
-
fontFamily: _fonts.fontFamilies.phuduSemiBold
|
|
255
|
-
},
|
|
256
|
-
addLinkRow: {
|
|
257
|
-
flexDirection: 'row',
|
|
258
|
-
gap: 8,
|
|
259
|
-
alignItems: 'center'
|
|
260
|
-
},
|
|
261
|
-
input: {
|
|
262
|
-
borderWidth: _reactNative.StyleSheet.hairlineWidth,
|
|
263
|
-
borderRadius: 12,
|
|
264
|
-
padding: 16,
|
|
265
|
-
fontSize: 16,
|
|
266
|
-
minHeight: 52
|
|
267
|
-
},
|
|
268
|
-
addButton: {
|
|
269
|
-
width: 52,
|
|
270
|
-
height: 52,
|
|
271
|
-
borderRadius: 12,
|
|
272
|
-
alignItems: 'center',
|
|
273
|
-
justifyContent: 'center'
|
|
274
|
-
},
|
|
275
|
-
linksList: {
|
|
276
|
-
gap: 8
|
|
277
|
-
},
|
|
278
|
-
listTitle: {
|
|
279
|
-
fontSize: 16,
|
|
280
|
-
fontWeight: '600',
|
|
281
|
-
fontFamily: _fonts.fontFamilies.phuduSemiBold,
|
|
282
|
-
marginBottom: 8
|
|
283
|
-
},
|
|
284
|
-
linkItem: {
|
|
285
|
-
flexDirection: 'row',
|
|
286
|
-
alignItems: 'center',
|
|
287
|
-
padding: 16,
|
|
288
|
-
borderRadius: 12,
|
|
289
|
-
borderWidth: _reactNative.StyleSheet.hairlineWidth,
|
|
290
|
-
gap: 12
|
|
291
|
-
},
|
|
292
|
-
linkImage: {
|
|
293
|
-
width: 40,
|
|
294
|
-
height: 40,
|
|
295
|
-
borderRadius: 8
|
|
296
|
-
},
|
|
297
|
-
linkInfo: {
|
|
298
|
-
flex: 1,
|
|
299
|
-
gap: 4
|
|
300
|
-
},
|
|
301
|
-
linkTitle: {
|
|
302
|
-
fontSize: 16,
|
|
303
|
-
fontWeight: '600'
|
|
304
|
-
},
|
|
305
|
-
linkDescription: {
|
|
306
|
-
fontSize: 14
|
|
307
|
-
},
|
|
308
|
-
linkUrl: {
|
|
309
|
-
fontSize: 12
|
|
310
|
-
},
|
|
311
|
-
removeButton: {
|
|
312
|
-
padding: 8
|
|
313
|
-
}
|
|
314
|
-
});
|
|
315
|
-
//# sourceMappingURL=EditLinksModal.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_vectorIcons","_useThemeStyles","_useColorScheme","_useI18n","_fonts","_useProfileEditing","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","EditLinksModal","visible","onClose","initialLinks","theme","onSave","useI18n","colorScheme","useColorScheme","themeStyles","useThemeStyles","colors","saveProfile","isSaving","useProfileEditing","links","setLinks","useState","newLinkUrl","setNewLinkUrl","useEffect","handleAddLink","trim","link","id","Date","now","url","title","replace","description","handleRemoveLink","filter","handleSave","success","linksMetadata","map","jsx","Modal","animationType","transparent","onRequestClose","children","View","style","styles","modalOverlay","jsxs","modalContent","backgroundColor","background","modalHeader","TouchableOpacity","onPress","closeButton","Ionicons","name","size","color","text","Text","modalTitle","disabled","saveButton","opacity","saveButtonText","tint","ScrollView","modalBody","inputGroup","label","addLinkRow","TextInput","input","card","borderColor","border","flex","value","onChangeText","placeholder","placeholderTextColor","secondaryText","keyboardType","autoCapitalize","autoCorrect","selectionColor","addButton","length","linksList","listTitle","index","linkItem","borderBottomWidth","StyleSheet","hairlineWidth","image","Image","source","uri","linkImage","linkInfo","linkTitle","numberOfLines","linkDescription","linkUrl","removeButton","exports","create","justifyContent","borderTopLeftRadius","borderTopRightRadius","paddingTop","Platform","OS","maxHeight","flexDirection","alignItems","paddingHorizontal","paddingBottom","borderBottomColor","width","height","fontSize","fontWeight","fontFamily","fontFamilies","phuduSemiBold","textAlign","paddingVertical","padding","gap","marginBottom","borderWidth","borderRadius","minHeight"],"sourceRoot":"../../../../../src","sources":["ui/components/profile/EditLinksModal.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAWA,IAAAE,YAAA,GAAAF,OAAA;AACA,IAAAG,eAAA,GAAAH,OAAA;AACA,IAAAI,eAAA,GAAAJ,OAAA;AACA,IAAAK,QAAA,GAAAL,OAAA;AACA,IAAAM,MAAA,GAAAN,OAAA;AACA,IAAAO,kBAAA,GAAAP,OAAA;AAAkE,IAAAQ,WAAA,GAAAR,OAAA;AAAA,SAAAD,wBAAAU,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAZ,uBAAA,YAAAA,CAAAU,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAA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
|
5
|
-
});
|
|
6
|
-
exports.EditLocationModal = void 0;
|
|
7
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
-
var _reactNative = require("react-native");
|
|
9
|
-
var _vectorIcons = require("@expo/vector-icons");
|
|
10
|
-
var _useThemeStyles = require("../../hooks/useThemeStyles.js");
|
|
11
|
-
var _useColorScheme = require("../../hooks/use-color-scheme.js");
|
|
12
|
-
var _useI18n = require("../../hooks/useI18n.js");
|
|
13
|
-
var _fonts = require("../../styles/fonts.js");
|
|
14
|
-
var _useProfileEditing = require("../../hooks/useProfileEditing.js");
|
|
15
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
|
-
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); }
|
|
17
|
-
const EditLocationModal = ({
|
|
18
|
-
visible,
|
|
19
|
-
onClose,
|
|
20
|
-
initialLocations = [],
|
|
21
|
-
theme = 'light',
|
|
22
|
-
onSave
|
|
23
|
-
}) => {
|
|
24
|
-
const {
|
|
25
|
-
t
|
|
26
|
-
} = (0, _useI18n.useI18n)();
|
|
27
|
-
const colorScheme = (0, _useColorScheme.useColorScheme)();
|
|
28
|
-
const themeStyles = (0, _useThemeStyles.useThemeStyles)(theme || 'light', colorScheme);
|
|
29
|
-
const colors = themeStyles.colors;
|
|
30
|
-
const {
|
|
31
|
-
saveProfile,
|
|
32
|
-
isSaving
|
|
33
|
-
} = (0, _useProfileEditing.useProfileEditing)();
|
|
34
|
-
const [locations, setLocations] = (0, _react.useState)(initialLocations);
|
|
35
|
-
const [newLocation, setNewLocation] = (0, _react.useState)('');
|
|
36
|
-
(0, _react.useEffect)(() => {
|
|
37
|
-
if (visible) {
|
|
38
|
-
setLocations(initialLocations);
|
|
39
|
-
setNewLocation('');
|
|
40
|
-
}
|
|
41
|
-
}, [visible, initialLocations]);
|
|
42
|
-
const handleAddLocation = () => {
|
|
43
|
-
if (!newLocation.trim()) return;
|
|
44
|
-
const location = {
|
|
45
|
-
id: `location-${Date.now()}`,
|
|
46
|
-
name: newLocation.trim()
|
|
47
|
-
};
|
|
48
|
-
setLocations([...locations, location]);
|
|
49
|
-
setNewLocation('');
|
|
50
|
-
};
|
|
51
|
-
const handleRemoveLocation = id => {
|
|
52
|
-
setLocations(locations.filter(loc => loc.id !== id));
|
|
53
|
-
};
|
|
54
|
-
const handleSave = async () => {
|
|
55
|
-
const success = await saveProfile({
|
|
56
|
-
locations
|
|
57
|
-
});
|
|
58
|
-
if (success) {
|
|
59
|
-
onSave?.();
|
|
60
|
-
onClose();
|
|
61
|
-
}
|
|
62
|
-
};
|
|
63
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Modal, {
|
|
64
|
-
visible: visible,
|
|
65
|
-
animationType: "slide",
|
|
66
|
-
transparent: true,
|
|
67
|
-
onRequestClose: onClose,
|
|
68
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
69
|
-
style: styles.modalOverlay,
|
|
70
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
71
|
-
style: [styles.modalContent, {
|
|
72
|
-
backgroundColor: colors.background
|
|
73
|
-
}],
|
|
74
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
75
|
-
style: styles.modalHeader,
|
|
76
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
|
|
77
|
-
onPress: onClose,
|
|
78
|
-
style: styles.closeButton,
|
|
79
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_vectorIcons.Ionicons, {
|
|
80
|
-
name: "close",
|
|
81
|
-
size: 24,
|
|
82
|
-
color: colors.text
|
|
83
|
-
})
|
|
84
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
85
|
-
style: [styles.modalTitle, {
|
|
86
|
-
color: colors.text
|
|
87
|
-
}],
|
|
88
|
-
children: t('editProfile.items.locations.title') || 'Locations'
|
|
89
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
|
|
90
|
-
onPress: handleSave,
|
|
91
|
-
disabled: isSaving,
|
|
92
|
-
style: [styles.saveButton, {
|
|
93
|
-
opacity: isSaving ? 0.5 : 1
|
|
94
|
-
}],
|
|
95
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
96
|
-
style: [styles.saveButtonText, {
|
|
97
|
-
color: colors.tint
|
|
98
|
-
}],
|
|
99
|
-
children: isSaving ? 'Saving...' : 'Save'
|
|
100
|
-
})
|
|
101
|
-
})]
|
|
102
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.ScrollView, {
|
|
103
|
-
style: styles.modalBody,
|
|
104
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
105
|
-
style: styles.inputGroup,
|
|
106
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
107
|
-
style: [styles.label, {
|
|
108
|
-
color: colors.text
|
|
109
|
-
}],
|
|
110
|
-
children: t('editProfile.items.locations.add') || 'Add Location'
|
|
111
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
112
|
-
style: styles.addLocationRow,
|
|
113
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TextInput, {
|
|
114
|
-
style: [styles.input, {
|
|
115
|
-
backgroundColor: colors.card,
|
|
116
|
-
color: colors.text,
|
|
117
|
-
borderColor: colors.border,
|
|
118
|
-
flex: 1
|
|
119
|
-
}],
|
|
120
|
-
value: newLocation,
|
|
121
|
-
onChangeText: setNewLocation,
|
|
122
|
-
placeholder: t('editProfile.items.locations.placeholder') || 'Enter location name',
|
|
123
|
-
placeholderTextColor: colors.secondaryText,
|
|
124
|
-
selectionColor: colors.tint
|
|
125
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
|
|
126
|
-
style: [styles.addButton, {
|
|
127
|
-
backgroundColor: colors.tint
|
|
128
|
-
}],
|
|
129
|
-
onPress: handleAddLocation,
|
|
130
|
-
disabled: !newLocation.trim(),
|
|
131
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_vectorIcons.Ionicons, {
|
|
132
|
-
name: "add",
|
|
133
|
-
size: 20,
|
|
134
|
-
color: "#fff"
|
|
135
|
-
})
|
|
136
|
-
})]
|
|
137
|
-
})]
|
|
138
|
-
}), locations.length > 0 && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
139
|
-
style: styles.locationsList,
|
|
140
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Text, {
|
|
141
|
-
style: [styles.listTitle, {
|
|
142
|
-
color: colors.text
|
|
143
|
-
}],
|
|
144
|
-
children: [t('editProfile.items.locations.yourLocations') || 'Your Locations', " (", locations.length, ")"]
|
|
145
|
-
}), locations.map((location, index) => /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
146
|
-
style: [styles.locationItem, {
|
|
147
|
-
backgroundColor: colors.card,
|
|
148
|
-
borderColor: colors.border
|
|
149
|
-
}, index < locations.length - 1 && {
|
|
150
|
-
borderBottomWidth: _reactNative.StyleSheet.hairlineWidth
|
|
151
|
-
}],
|
|
152
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
153
|
-
style: [styles.locationName, {
|
|
154
|
-
color: colors.text
|
|
155
|
-
}],
|
|
156
|
-
children: location.name
|
|
157
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
|
|
158
|
-
onPress: () => handleRemoveLocation(location.id),
|
|
159
|
-
style: styles.removeButton,
|
|
160
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_vectorIcons.Ionicons, {
|
|
161
|
-
name: "trash-outline",
|
|
162
|
-
size: 18,
|
|
163
|
-
color: "#FF3B30"
|
|
164
|
-
})
|
|
165
|
-
})]
|
|
166
|
-
}, location.id))]
|
|
167
|
-
})]
|
|
168
|
-
})]
|
|
169
|
-
})
|
|
170
|
-
})
|
|
171
|
-
});
|
|
172
|
-
};
|
|
173
|
-
exports.EditLocationModal = EditLocationModal;
|
|
174
|
-
const styles = _reactNative.StyleSheet.create({
|
|
175
|
-
modalOverlay: {
|
|
176
|
-
flex: 1,
|
|
177
|
-
backgroundColor: 'rgba(0, 0, 0, 0.5)',
|
|
178
|
-
justifyContent: 'flex-end'
|
|
179
|
-
},
|
|
180
|
-
modalContent: {
|
|
181
|
-
borderTopLeftRadius: 20,
|
|
182
|
-
borderTopRightRadius: 20,
|
|
183
|
-
paddingTop: _reactNative.Platform.OS === 'ios' ? 20 : 16,
|
|
184
|
-
maxHeight: '80%'
|
|
185
|
-
},
|
|
186
|
-
modalHeader: {
|
|
187
|
-
flexDirection: 'row',
|
|
188
|
-
alignItems: 'center',
|
|
189
|
-
justifyContent: 'space-between',
|
|
190
|
-
paddingHorizontal: 16,
|
|
191
|
-
paddingBottom: 16,
|
|
192
|
-
borderBottomWidth: _reactNative.StyleSheet.hairlineWidth,
|
|
193
|
-
borderBottomColor: '#E5E5EA'
|
|
194
|
-
},
|
|
195
|
-
closeButton: {
|
|
196
|
-
width: 40,
|
|
197
|
-
height: 40,
|
|
198
|
-
alignItems: 'center',
|
|
199
|
-
justifyContent: 'center'
|
|
200
|
-
},
|
|
201
|
-
modalTitle: {
|
|
202
|
-
fontSize: 18,
|
|
203
|
-
fontWeight: '600',
|
|
204
|
-
fontFamily: _fonts.fontFamilies.phuduSemiBold,
|
|
205
|
-
flex: 1,
|
|
206
|
-
textAlign: 'center'
|
|
207
|
-
},
|
|
208
|
-
saveButton: {
|
|
209
|
-
paddingHorizontal: 16,
|
|
210
|
-
paddingVertical: 8
|
|
211
|
-
},
|
|
212
|
-
saveButtonText: {
|
|
213
|
-
fontSize: 16,
|
|
214
|
-
fontWeight: '600',
|
|
215
|
-
fontFamily: _fonts.fontFamilies.phuduSemiBold
|
|
216
|
-
},
|
|
217
|
-
modalBody: {
|
|
218
|
-
padding: 16
|
|
219
|
-
},
|
|
220
|
-
inputGroup: {
|
|
221
|
-
gap: 8,
|
|
222
|
-
marginBottom: 24
|
|
223
|
-
},
|
|
224
|
-
label: {
|
|
225
|
-
fontSize: 14,
|
|
226
|
-
fontWeight: '600',
|
|
227
|
-
fontFamily: _fonts.fontFamilies.phuduSemiBold
|
|
228
|
-
},
|
|
229
|
-
addLocationRow: {
|
|
230
|
-
flexDirection: 'row',
|
|
231
|
-
gap: 8,
|
|
232
|
-
alignItems: 'center'
|
|
233
|
-
},
|
|
234
|
-
input: {
|
|
235
|
-
borderWidth: _reactNative.StyleSheet.hairlineWidth,
|
|
236
|
-
borderRadius: 12,
|
|
237
|
-
padding: 16,
|
|
238
|
-
fontSize: 16,
|
|
239
|
-
minHeight: 52
|
|
240
|
-
},
|
|
241
|
-
addButton: {
|
|
242
|
-
width: 52,
|
|
243
|
-
height: 52,
|
|
244
|
-
borderRadius: 12,
|
|
245
|
-
alignItems: 'center',
|
|
246
|
-
justifyContent: 'center'
|
|
247
|
-
},
|
|
248
|
-
locationsList: {
|
|
249
|
-
gap: 8
|
|
250
|
-
},
|
|
251
|
-
listTitle: {
|
|
252
|
-
fontSize: 16,
|
|
253
|
-
fontWeight: '600',
|
|
254
|
-
fontFamily: _fonts.fontFamilies.phuduSemiBold,
|
|
255
|
-
marginBottom: 8
|
|
256
|
-
},
|
|
257
|
-
locationItem: {
|
|
258
|
-
flexDirection: 'row',
|
|
259
|
-
alignItems: 'center',
|
|
260
|
-
justifyContent: 'space-between',
|
|
261
|
-
padding: 16,
|
|
262
|
-
borderRadius: 12,
|
|
263
|
-
borderWidth: _reactNative.StyleSheet.hairlineWidth
|
|
264
|
-
},
|
|
265
|
-
locationName: {
|
|
266
|
-
fontSize: 16,
|
|
267
|
-
flex: 1
|
|
268
|
-
},
|
|
269
|
-
removeButton: {
|
|
270
|
-
padding: 8
|
|
271
|
-
}
|
|
272
|
-
});
|
|
273
|
-
//# sourceMappingURL=EditLocationModal.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_vectorIcons","_useThemeStyles","_useColorScheme","_useI18n","_fonts","_useProfileEditing","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","EditLocationModal","visible","onClose","initialLocations","theme","onSave","useI18n","colorScheme","useColorScheme","themeStyles","useThemeStyles","colors","saveProfile","isSaving","useProfileEditing","locations","setLocations","useState","newLocation","setNewLocation","useEffect","handleAddLocation","trim","location","id","Date","now","name","handleRemoveLocation","filter","loc","handleSave","success","jsx","Modal","animationType","transparent","onRequestClose","children","View","style","styles","modalOverlay","jsxs","modalContent","backgroundColor","background","modalHeader","TouchableOpacity","onPress","closeButton","Ionicons","size","color","text","Text","modalTitle","disabled","saveButton","opacity","saveButtonText","tint","ScrollView","modalBody","inputGroup","label","addLocationRow","TextInput","input","card","borderColor","border","flex","value","onChangeText","placeholder","placeholderTextColor","secondaryText","selectionColor","addButton","length","locationsList","listTitle","map","index","locationItem","borderBottomWidth","StyleSheet","hairlineWidth","locationName","removeButton","exports","create","justifyContent","borderTopLeftRadius","borderTopRightRadius","paddingTop","Platform","OS","maxHeight","flexDirection","alignItems","paddingHorizontal","paddingBottom","borderBottomColor","width","height","fontSize","fontWeight","fontFamily","fontFamilies","phuduSemiBold","textAlign","paddingVertical","padding","gap","marginBottom","borderWidth","borderRadius","minHeight"],"sourceRoot":"../../../../../src","sources":["ui/components/profile/EditLocationModal.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAUA,IAAAE,YAAA,GAAAF,OAAA;AACA,IAAAG,eAAA,GAAAH,OAAA;AACA,IAAAI,eAAA,GAAAJ,OAAA;AACA,IAAAK,QAAA,GAAAL,OAAA;AACA,IAAAM,MAAA,GAAAN,OAAA;AACA,IAAAO,kBAAA,GAAAP,OAAA;AAAkE,IAAAQ,WAAA,GAAAR,OAAA;AAAA,SAAAD,wBAAAU,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAZ,uBAAA,YAAAA,CAAAU,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,EAAAQ,CAAA,gBAAAP,CAAA,IAAAD,CAAA,gBAAAC,CAAA,OAAAa,cAAA,CAAAC,IAAA,CAAAf,CAAA,EAAAC,CAAA,OAAAM,CAAA,IAAAD,CAAA,GAAAU,MAAA,CAAAC,cAAA,KAAAD,MAAA,CAAAE,wBAAA,CAAAlB,CAAA,EAAAC,CAAA,OAAAM,CA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