@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,178 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import React, { useState, useEffect } from 'react';
|
|
4
|
-
import { View, Text, TextInput, TouchableOpacity, StyleSheet, Modal, Platform } 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 EditEmailModal = ({
|
|
13
|
-
visible,
|
|
14
|
-
onClose,
|
|
15
|
-
initialValue = '',
|
|
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
|
-
updateField,
|
|
27
|
-
isSaving
|
|
28
|
-
} = useProfileEditing();
|
|
29
|
-
const [email, setEmail] = useState(initialValue);
|
|
30
|
-
useEffect(() => {
|
|
31
|
-
if (visible) {
|
|
32
|
-
setEmail(initialValue);
|
|
33
|
-
}
|
|
34
|
-
}, [visible, initialValue]);
|
|
35
|
-
const handleSave = async () => {
|
|
36
|
-
const success = await updateField('email', email);
|
|
37
|
-
if (success) {
|
|
38
|
-
onSave?.();
|
|
39
|
-
onClose();
|
|
40
|
-
}
|
|
41
|
-
};
|
|
42
|
-
const isValidEmail = email => {
|
|
43
|
-
return /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(email);
|
|
44
|
-
};
|
|
45
|
-
return /*#__PURE__*/_jsx(Modal, {
|
|
46
|
-
visible: visible,
|
|
47
|
-
animationType: "slide",
|
|
48
|
-
transparent: true,
|
|
49
|
-
onRequestClose: onClose,
|
|
50
|
-
children: /*#__PURE__*/_jsx(View, {
|
|
51
|
-
style: styles.modalOverlay,
|
|
52
|
-
children: /*#__PURE__*/_jsxs(View, {
|
|
53
|
-
style: [styles.modalContent, {
|
|
54
|
-
backgroundColor: colors.background
|
|
55
|
-
}],
|
|
56
|
-
children: [/*#__PURE__*/_jsxs(View, {
|
|
57
|
-
style: styles.modalHeader,
|
|
58
|
-
children: [/*#__PURE__*/_jsx(TouchableOpacity, {
|
|
59
|
-
onPress: onClose,
|
|
60
|
-
style: styles.closeButton,
|
|
61
|
-
children: /*#__PURE__*/_jsx(Ionicons, {
|
|
62
|
-
name: "close",
|
|
63
|
-
size: 24,
|
|
64
|
-
color: colors.text
|
|
65
|
-
})
|
|
66
|
-
}), /*#__PURE__*/_jsx(Text, {
|
|
67
|
-
style: [styles.modalTitle, {
|
|
68
|
-
color: colors.text
|
|
69
|
-
}],
|
|
70
|
-
children: t('editProfile.items.email.title') || 'Email'
|
|
71
|
-
}), /*#__PURE__*/_jsx(TouchableOpacity, {
|
|
72
|
-
onPress: handleSave,
|
|
73
|
-
disabled: isSaving || !isValidEmail(email),
|
|
74
|
-
style: [styles.saveButton, {
|
|
75
|
-
opacity: isSaving || !isValidEmail(email) ? 0.5 : 1
|
|
76
|
-
}],
|
|
77
|
-
children: /*#__PURE__*/_jsx(Text, {
|
|
78
|
-
style: [styles.saveButtonText, {
|
|
79
|
-
color: colors.tint
|
|
80
|
-
}],
|
|
81
|
-
children: isSaving ? 'Saving...' : 'Save'
|
|
82
|
-
})
|
|
83
|
-
})]
|
|
84
|
-
}), /*#__PURE__*/_jsx(View, {
|
|
85
|
-
style: styles.modalBody,
|
|
86
|
-
children: /*#__PURE__*/_jsxs(View, {
|
|
87
|
-
style: styles.inputGroup,
|
|
88
|
-
children: [/*#__PURE__*/_jsx(Text, {
|
|
89
|
-
style: [styles.label, {
|
|
90
|
-
color: colors.text
|
|
91
|
-
}],
|
|
92
|
-
children: t('editProfile.items.email.label') || 'Email Address'
|
|
93
|
-
}), /*#__PURE__*/_jsx(TextInput, {
|
|
94
|
-
style: [styles.input, {
|
|
95
|
-
backgroundColor: colors.card,
|
|
96
|
-
color: colors.text,
|
|
97
|
-
borderColor: colors.border
|
|
98
|
-
}],
|
|
99
|
-
value: email,
|
|
100
|
-
onChangeText: setEmail,
|
|
101
|
-
placeholder: t('editProfile.items.email.placeholder') || 'Enter your email address',
|
|
102
|
-
placeholderTextColor: colors.secondaryText,
|
|
103
|
-
autoFocus: true,
|
|
104
|
-
keyboardType: "email-address",
|
|
105
|
-
autoCapitalize: "none",
|
|
106
|
-
autoCorrect: false,
|
|
107
|
-
selectionColor: colors.tint
|
|
108
|
-
})]
|
|
109
|
-
})
|
|
110
|
-
})]
|
|
111
|
-
})
|
|
112
|
-
})
|
|
113
|
-
});
|
|
114
|
-
};
|
|
115
|
-
const styles = StyleSheet.create({
|
|
116
|
-
modalOverlay: {
|
|
117
|
-
flex: 1,
|
|
118
|
-
backgroundColor: 'rgba(0, 0, 0, 0.5)',
|
|
119
|
-
justifyContent: 'flex-end'
|
|
120
|
-
},
|
|
121
|
-
modalContent: {
|
|
122
|
-
borderTopLeftRadius: 20,
|
|
123
|
-
borderTopRightRadius: 20,
|
|
124
|
-
paddingTop: Platform.OS === 'ios' ? 20 : 16,
|
|
125
|
-
maxHeight: '80%'
|
|
126
|
-
},
|
|
127
|
-
modalHeader: {
|
|
128
|
-
flexDirection: 'row',
|
|
129
|
-
alignItems: 'center',
|
|
130
|
-
justifyContent: 'space-between',
|
|
131
|
-
paddingHorizontal: 16,
|
|
132
|
-
paddingBottom: 16,
|
|
133
|
-
borderBottomWidth: StyleSheet.hairlineWidth,
|
|
134
|
-
borderBottomColor: '#E5E5EA'
|
|
135
|
-
},
|
|
136
|
-
closeButton: {
|
|
137
|
-
width: 40,
|
|
138
|
-
height: 40,
|
|
139
|
-
alignItems: 'center',
|
|
140
|
-
justifyContent: 'center'
|
|
141
|
-
},
|
|
142
|
-
modalTitle: {
|
|
143
|
-
fontSize: 18,
|
|
144
|
-
fontWeight: '600',
|
|
145
|
-
fontFamily: fontFamilies.phuduSemiBold,
|
|
146
|
-
flex: 1,
|
|
147
|
-
textAlign: 'center'
|
|
148
|
-
},
|
|
149
|
-
saveButton: {
|
|
150
|
-
paddingHorizontal: 16,
|
|
151
|
-
paddingVertical: 8
|
|
152
|
-
},
|
|
153
|
-
saveButtonText: {
|
|
154
|
-
fontSize: 16,
|
|
155
|
-
fontWeight: '600',
|
|
156
|
-
fontFamily: fontFamilies.phuduSemiBold
|
|
157
|
-
},
|
|
158
|
-
modalBody: {
|
|
159
|
-
padding: 16,
|
|
160
|
-
gap: 16
|
|
161
|
-
},
|
|
162
|
-
inputGroup: {
|
|
163
|
-
gap: 8
|
|
164
|
-
},
|
|
165
|
-
label: {
|
|
166
|
-
fontSize: 14,
|
|
167
|
-
fontWeight: '600',
|
|
168
|
-
fontFamily: fontFamilies.phuduSemiBold
|
|
169
|
-
},
|
|
170
|
-
input: {
|
|
171
|
-
borderWidth: StyleSheet.hairlineWidth,
|
|
172
|
-
borderRadius: 12,
|
|
173
|
-
padding: 16,
|
|
174
|
-
fontSize: 16,
|
|
175
|
-
minHeight: 52
|
|
176
|
-
}
|
|
177
|
-
});
|
|
178
|
-
//# sourceMappingURL=EditEmailModal.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","useState","useEffect","View","Text","TextInput","TouchableOpacity","StyleSheet","Modal","Platform","Ionicons","useThemeStyles","useColorScheme","useI18n","fontFamilies","useProfileEditing","jsx","_jsx","jsxs","_jsxs","EditEmailModal","visible","onClose","initialValue","theme","onSave","t","colorScheme","themeStyles","colors","updateField","isSaving","email","setEmail","handleSave","success","isValidEmail","test","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","input","card","borderColor","border","value","onChangeText","placeholder","placeholderTextColor","secondaryText","autoFocus","keyboardType","autoCapitalize","autoCorrect","selectionColor","create","flex","justifyContent","borderTopLeftRadius","borderTopRightRadius","paddingTop","OS","maxHeight","flexDirection","alignItems","paddingHorizontal","paddingBottom","borderBottomWidth","hairlineWidth","borderBottomColor","width","height","fontSize","fontWeight","fontFamily","phuduSemiBold","textAlign","paddingVertical","padding","gap","borderWidth","borderRadius","minHeight"],"sourceRoot":"../../../../../src","sources":["ui/components/profile/EditEmailModal.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,QACL,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,G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
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import React, { useState, useEffect, useCallback } 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
|
-
|
|
12
|
-
/**
|
|
13
|
-
* Field configuration for single/multi field variants
|
|
14
|
-
*/
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* List item for list variant
|
|
18
|
-
*/
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* Configuration for list variant
|
|
22
|
-
*/
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* Props for EditFieldModal
|
|
26
|
-
*/
|
|
27
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
28
|
-
/**
|
|
29
|
-
* Generic modal component for editing profile fields.
|
|
30
|
-
*
|
|
31
|
-
* Supports three variants:
|
|
32
|
-
* - single: Single text input (username, email, bio)
|
|
33
|
-
* - multi: Multiple text inputs (display name with first/last)
|
|
34
|
-
* - list: Add/remove list items (links, locations)
|
|
35
|
-
*
|
|
36
|
-
* @example
|
|
37
|
-
* // Single field (bio)
|
|
38
|
-
* <EditFieldModal
|
|
39
|
-
* visible={showBioModal}
|
|
40
|
-
* onClose={() => setShowBioModal(false)}
|
|
41
|
-
* title="Bio"
|
|
42
|
-
* variant="single"
|
|
43
|
-
* fields={[{
|
|
44
|
-
* key: 'bio',
|
|
45
|
-
* label: 'Bio',
|
|
46
|
-
* initialValue: user.bio,
|
|
47
|
-
* placeholder: 'Tell people about yourself...',
|
|
48
|
-
* inputProps: { multiline: true, numberOfLines: 6 }
|
|
49
|
-
* }]}
|
|
50
|
-
* onSubmit={async (data) => updateField('bio', data.bio)}
|
|
51
|
-
* />
|
|
52
|
-
*
|
|
53
|
-
* @example
|
|
54
|
-
* // Multi field (display name)
|
|
55
|
-
* <EditFieldModal
|
|
56
|
-
* visible={showNameModal}
|
|
57
|
-
* onClose={() => setShowNameModal(false)}
|
|
58
|
-
* title="Display Name"
|
|
59
|
-
* variant="multi"
|
|
60
|
-
* fields={[
|
|
61
|
-
* { key: 'firstName', label: 'First Name', initialValue: user.name?.first },
|
|
62
|
-
* { key: 'lastName', label: 'Last Name', initialValue: user.name?.last }
|
|
63
|
-
* ]}
|
|
64
|
-
* onSubmit={async (data) => saveProfile({ displayName: data.firstName, lastName: data.lastName })}
|
|
65
|
-
* />
|
|
66
|
-
*/
|
|
67
|
-
export function EditFieldModal({
|
|
68
|
-
visible,
|
|
69
|
-
onClose,
|
|
70
|
-
title,
|
|
71
|
-
theme = 'light',
|
|
72
|
-
onSave,
|
|
73
|
-
variant,
|
|
74
|
-
fields = [],
|
|
75
|
-
listConfig,
|
|
76
|
-
onSubmit,
|
|
77
|
-
saveDisabled = false
|
|
78
|
-
}) {
|
|
79
|
-
const {
|
|
80
|
-
t
|
|
81
|
-
} = useI18n();
|
|
82
|
-
const colorScheme = useColorScheme();
|
|
83
|
-
const themeStyles = useThemeStyles(theme || 'light', colorScheme);
|
|
84
|
-
const colors = themeStyles.colors;
|
|
85
|
-
const {
|
|
86
|
-
isSaving
|
|
87
|
-
} = useProfileEditing();
|
|
88
|
-
|
|
89
|
-
// State for field values (single/multi variants)
|
|
90
|
-
const [fieldValues, setFieldValues] = useState({});
|
|
91
|
-
const [fieldErrors, setFieldErrors] = useState({});
|
|
92
|
-
|
|
93
|
-
// State for list items (list variant)
|
|
94
|
-
const [listItems, setListItems] = useState([]);
|
|
95
|
-
const [newItemValue, setNewItemValue] = useState('');
|
|
96
|
-
|
|
97
|
-
// Initialize field values when modal opens
|
|
98
|
-
useEffect(() => {
|
|
99
|
-
if (visible) {
|
|
100
|
-
if (variant === 'list' && listConfig) {
|
|
101
|
-
setListItems(listConfig.items);
|
|
102
|
-
setNewItemValue('');
|
|
103
|
-
} else if (fields.length > 0) {
|
|
104
|
-
const initialValues = {};
|
|
105
|
-
fields.forEach(field => {
|
|
106
|
-
initialValues[field.key] = field.initialValue || '';
|
|
107
|
-
});
|
|
108
|
-
setFieldValues(initialValues);
|
|
109
|
-
setFieldErrors({});
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
}, [visible, variant, fields, listConfig]);
|
|
113
|
-
|
|
114
|
-
// Field change handler with validation
|
|
115
|
-
const handleFieldChange = useCallback((key, value) => {
|
|
116
|
-
setFieldValues(prev => ({
|
|
117
|
-
...prev,
|
|
118
|
-
[key]: value
|
|
119
|
-
}));
|
|
120
|
-
|
|
121
|
-
// Clear error on change
|
|
122
|
-
if (fieldErrors[key]) {
|
|
123
|
-
setFieldErrors(prev => ({
|
|
124
|
-
...prev,
|
|
125
|
-
[key]: undefined
|
|
126
|
-
}));
|
|
127
|
-
}
|
|
128
|
-
}, [fieldErrors]);
|
|
129
|
-
|
|
130
|
-
// Validate all fields
|
|
131
|
-
const validateFields = useCallback(() => {
|
|
132
|
-
const errors = {};
|
|
133
|
-
let isValid = true;
|
|
134
|
-
fields.forEach(field => {
|
|
135
|
-
if (field.validation) {
|
|
136
|
-
const error = field.validation(fieldValues[field.key] || '');
|
|
137
|
-
if (error) {
|
|
138
|
-
errors[field.key] = error;
|
|
139
|
-
isValid = false;
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
});
|
|
143
|
-
setFieldErrors(errors);
|
|
144
|
-
return isValid;
|
|
145
|
-
}, [fields, fieldValues]);
|
|
146
|
-
|
|
147
|
-
// Add item to list
|
|
148
|
-
const handleAddItem = useCallback(() => {
|
|
149
|
-
if (!newItemValue.trim() || !listConfig) return;
|
|
150
|
-
const newItem = listConfig.createItem(newItemValue.trim());
|
|
151
|
-
setListItems(prev => [...prev, newItem]);
|
|
152
|
-
setNewItemValue('');
|
|
153
|
-
}, [newItemValue, listConfig]);
|
|
154
|
-
|
|
155
|
-
// Remove item from list
|
|
156
|
-
const handleRemoveItem = useCallback(id => {
|
|
157
|
-
setListItems(prev => prev.filter(item => item.id !== id));
|
|
158
|
-
}, []);
|
|
159
|
-
|
|
160
|
-
// Save handler
|
|
161
|
-
const handleSave = async () => {
|
|
162
|
-
if (variant === 'list') {
|
|
163
|
-
const success = await onSubmit({
|
|
164
|
-
items: listItems
|
|
165
|
-
});
|
|
166
|
-
if (success) {
|
|
167
|
-
onSave?.();
|
|
168
|
-
onClose();
|
|
169
|
-
}
|
|
170
|
-
} else {
|
|
171
|
-
if (!validateFields()) return;
|
|
172
|
-
const success = await onSubmit(fieldValues);
|
|
173
|
-
if (success) {
|
|
174
|
-
onSave?.();
|
|
175
|
-
onClose();
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
};
|
|
179
|
-
|
|
180
|
-
// Render field inputs for single/multi variants
|
|
181
|
-
const renderFields = () => /*#__PURE__*/_jsx(View, {
|
|
182
|
-
style: styles.modalBody,
|
|
183
|
-
children: fields.map((field, index) => /*#__PURE__*/_jsxs(View, {
|
|
184
|
-
style: styles.inputGroup,
|
|
185
|
-
children: [/*#__PURE__*/_jsx(Text, {
|
|
186
|
-
style: [styles.label, {
|
|
187
|
-
color: colors.text
|
|
188
|
-
}],
|
|
189
|
-
children: field.label
|
|
190
|
-
}), /*#__PURE__*/_jsx(TextInput, {
|
|
191
|
-
style: [field.inputProps?.multiline ? styles.textArea : styles.input, {
|
|
192
|
-
backgroundColor: colors.card,
|
|
193
|
-
color: colors.text,
|
|
194
|
-
borderColor: fieldErrors[field.key] ? '#FF3B30' : colors.border
|
|
195
|
-
}],
|
|
196
|
-
value: fieldValues[field.key] || '',
|
|
197
|
-
onChangeText: value => handleFieldChange(field.key, value),
|
|
198
|
-
placeholder: field.placeholder,
|
|
199
|
-
placeholderTextColor: colors.secondaryText,
|
|
200
|
-
autoFocus: index === 0,
|
|
201
|
-
selectionColor: colors.tint,
|
|
202
|
-
textAlignVertical: field.inputProps?.multiline ? 'top' : 'center',
|
|
203
|
-
...field.inputProps
|
|
204
|
-
}), fieldErrors[field.key] && /*#__PURE__*/_jsx(Text, {
|
|
205
|
-
style: styles.errorText,
|
|
206
|
-
children: fieldErrors[field.key]
|
|
207
|
-
})]
|
|
208
|
-
}, field.key))
|
|
209
|
-
});
|
|
210
|
-
|
|
211
|
-
// Render list for list variant
|
|
212
|
-
const renderList = () => {
|
|
213
|
-
if (!listConfig) return null;
|
|
214
|
-
return /*#__PURE__*/_jsxs(ScrollView, {
|
|
215
|
-
style: styles.modalBody,
|
|
216
|
-
children: [/*#__PURE__*/_jsxs(View, {
|
|
217
|
-
style: styles.inputGroup,
|
|
218
|
-
children: [/*#__PURE__*/_jsx(Text, {
|
|
219
|
-
style: [styles.label, {
|
|
220
|
-
color: colors.text
|
|
221
|
-
}],
|
|
222
|
-
children: listConfig.addItemLabel || t('common.add') || 'Add'
|
|
223
|
-
}), /*#__PURE__*/_jsxs(View, {
|
|
224
|
-
style: styles.addItemRow,
|
|
225
|
-
children: [/*#__PURE__*/_jsx(TextInput, {
|
|
226
|
-
style: [styles.input, {
|
|
227
|
-
backgroundColor: colors.card,
|
|
228
|
-
color: colors.text,
|
|
229
|
-
borderColor: colors.border,
|
|
230
|
-
flex: 1
|
|
231
|
-
}],
|
|
232
|
-
value: newItemValue,
|
|
233
|
-
onChangeText: setNewItemValue,
|
|
234
|
-
placeholder: listConfig.addItemPlaceholder,
|
|
235
|
-
placeholderTextColor: colors.secondaryText,
|
|
236
|
-
selectionColor: colors.tint,
|
|
237
|
-
autoCapitalize: "none",
|
|
238
|
-
autoCorrect: false
|
|
239
|
-
}), /*#__PURE__*/_jsx(TouchableOpacity, {
|
|
240
|
-
style: [styles.addButton, {
|
|
241
|
-
backgroundColor: colors.tint
|
|
242
|
-
}],
|
|
243
|
-
onPress: handleAddItem,
|
|
244
|
-
disabled: !newItemValue.trim(),
|
|
245
|
-
children: /*#__PURE__*/_jsx(Ionicons, {
|
|
246
|
-
name: "add",
|
|
247
|
-
size: 20,
|
|
248
|
-
color: "#fff"
|
|
249
|
-
})
|
|
250
|
-
})]
|
|
251
|
-
})]
|
|
252
|
-
}), listItems.length > 0 && /*#__PURE__*/_jsxs(View, {
|
|
253
|
-
style: styles.listSection,
|
|
254
|
-
children: [listConfig.listTitle && /*#__PURE__*/_jsxs(Text, {
|
|
255
|
-
style: [styles.listTitle, {
|
|
256
|
-
color: colors.text
|
|
257
|
-
}],
|
|
258
|
-
children: [listConfig.listTitle, " (", listItems.length, ")"]
|
|
259
|
-
}), listItems.map(item => /*#__PURE__*/_jsx(View, {
|
|
260
|
-
children: listConfig.renderItem(item, () => handleRemoveItem(item.id), colors)
|
|
261
|
-
}, item.id))]
|
|
262
|
-
})]
|
|
263
|
-
});
|
|
264
|
-
};
|
|
265
|
-
return /*#__PURE__*/_jsx(Modal, {
|
|
266
|
-
visible: visible,
|
|
267
|
-
animationType: "slide",
|
|
268
|
-
transparent: true,
|
|
269
|
-
onRequestClose: onClose,
|
|
270
|
-
children: /*#__PURE__*/_jsx(View, {
|
|
271
|
-
style: styles.modalOverlay,
|
|
272
|
-
children: /*#__PURE__*/_jsxs(View, {
|
|
273
|
-
style: [styles.modalContent, {
|
|
274
|
-
backgroundColor: colors.background
|
|
275
|
-
}],
|
|
276
|
-
children: [/*#__PURE__*/_jsxs(View, {
|
|
277
|
-
style: styles.modalHeader,
|
|
278
|
-
children: [/*#__PURE__*/_jsx(TouchableOpacity, {
|
|
279
|
-
onPress: onClose,
|
|
280
|
-
style: styles.closeButton,
|
|
281
|
-
children: /*#__PURE__*/_jsx(Ionicons, {
|
|
282
|
-
name: "close",
|
|
283
|
-
size: 24,
|
|
284
|
-
color: colors.text
|
|
285
|
-
})
|
|
286
|
-
}), /*#__PURE__*/_jsx(Text, {
|
|
287
|
-
style: [styles.modalTitle, {
|
|
288
|
-
color: colors.text
|
|
289
|
-
}],
|
|
290
|
-
children: title
|
|
291
|
-
}), /*#__PURE__*/_jsx(TouchableOpacity, {
|
|
292
|
-
onPress: handleSave,
|
|
293
|
-
disabled: isSaving || saveDisabled,
|
|
294
|
-
style: [styles.saveButton, {
|
|
295
|
-
opacity: isSaving || saveDisabled ? 0.5 : 1
|
|
296
|
-
}],
|
|
297
|
-
children: /*#__PURE__*/_jsx(Text, {
|
|
298
|
-
style: [styles.saveButtonText, {
|
|
299
|
-
color: colors.tint
|
|
300
|
-
}],
|
|
301
|
-
children: isSaving ? t('common.saving') || 'Saving...' : t('common.save') || 'Save'
|
|
302
|
-
})
|
|
303
|
-
})]
|
|
304
|
-
}), variant === 'list' ? renderList() : renderFields()]
|
|
305
|
-
})
|
|
306
|
-
})
|
|
307
|
-
});
|
|
308
|
-
}
|
|
309
|
-
const styles = StyleSheet.create({
|
|
310
|
-
modalOverlay: {
|
|
311
|
-
flex: 1,
|
|
312
|
-
backgroundColor: 'rgba(0, 0, 0, 0.5)',
|
|
313
|
-
justifyContent: 'flex-end'
|
|
314
|
-
},
|
|
315
|
-
modalContent: {
|
|
316
|
-
borderTopLeftRadius: 20,
|
|
317
|
-
borderTopRightRadius: 20,
|
|
318
|
-
paddingTop: Platform.OS === 'ios' ? 20 : 16,
|
|
319
|
-
maxHeight: '80%'
|
|
320
|
-
},
|
|
321
|
-
modalHeader: {
|
|
322
|
-
flexDirection: 'row',
|
|
323
|
-
alignItems: 'center',
|
|
324
|
-
justifyContent: 'space-between',
|
|
325
|
-
paddingHorizontal: 16,
|
|
326
|
-
paddingBottom: 16,
|
|
327
|
-
borderBottomWidth: StyleSheet.hairlineWidth,
|
|
328
|
-
borderBottomColor: '#E5E5EA'
|
|
329
|
-
},
|
|
330
|
-
closeButton: {
|
|
331
|
-
width: 40,
|
|
332
|
-
height: 40,
|
|
333
|
-
alignItems: 'center',
|
|
334
|
-
justifyContent: 'center'
|
|
335
|
-
},
|
|
336
|
-
modalTitle: {
|
|
337
|
-
fontSize: 18,
|
|
338
|
-
fontWeight: '600',
|
|
339
|
-
fontFamily: fontFamilies.phuduSemiBold,
|
|
340
|
-
flex: 1,
|
|
341
|
-
textAlign: 'center'
|
|
342
|
-
},
|
|
343
|
-
saveButton: {
|
|
344
|
-
paddingHorizontal: 16,
|
|
345
|
-
paddingVertical: 8
|
|
346
|
-
},
|
|
347
|
-
saveButtonText: {
|
|
348
|
-
fontSize: 16,
|
|
349
|
-
fontWeight: '600',
|
|
350
|
-
fontFamily: fontFamilies.phuduSemiBold
|
|
351
|
-
},
|
|
352
|
-
modalBody: {
|
|
353
|
-
padding: 16,
|
|
354
|
-
gap: 16
|
|
355
|
-
},
|
|
356
|
-
inputGroup: {
|
|
357
|
-
gap: 8
|
|
358
|
-
},
|
|
359
|
-
label: {
|
|
360
|
-
fontSize: 14,
|
|
361
|
-
fontWeight: '600',
|
|
362
|
-
fontFamily: fontFamilies.phuduSemiBold
|
|
363
|
-
},
|
|
364
|
-
input: {
|
|
365
|
-
borderWidth: StyleSheet.hairlineWidth,
|
|
366
|
-
borderRadius: 12,
|
|
367
|
-
padding: 16,
|
|
368
|
-
fontSize: 16,
|
|
369
|
-
minHeight: 52
|
|
370
|
-
},
|
|
371
|
-
textArea: {
|
|
372
|
-
borderWidth: StyleSheet.hairlineWidth,
|
|
373
|
-
borderRadius: 12,
|
|
374
|
-
padding: 16,
|
|
375
|
-
fontSize: 16,
|
|
376
|
-
minHeight: 120
|
|
377
|
-
},
|
|
378
|
-
errorText: {
|
|
379
|
-
fontSize: 12,
|
|
380
|
-
color: '#FF3B30'
|
|
381
|
-
},
|
|
382
|
-
addItemRow: {
|
|
383
|
-
flexDirection: 'row',
|
|
384
|
-
gap: 8,
|
|
385
|
-
alignItems: 'center'
|
|
386
|
-
},
|
|
387
|
-
addButton: {
|
|
388
|
-
width: 52,
|
|
389
|
-
height: 52,
|
|
390
|
-
borderRadius: 12,
|
|
391
|
-
alignItems: 'center',
|
|
392
|
-
justifyContent: 'center'
|
|
393
|
-
},
|
|
394
|
-
listSection: {
|
|
395
|
-
gap: 8,
|
|
396
|
-
marginTop: 16
|
|
397
|
-
},
|
|
398
|
-
listTitle: {
|
|
399
|
-
fontSize: 16,
|
|
400
|
-
fontWeight: '600',
|
|
401
|
-
fontFamily: fontFamilies.phuduSemiBold,
|
|
402
|
-
marginBottom: 8
|
|
403
|
-
}
|
|
404
|
-
});
|
|
405
|
-
export default EditFieldModal;
|
|
406
|
-
//# sourceMappingURL=EditFieldModal.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","useState","useEffect","useCallback","View","Text","TextInput","TouchableOpacity","StyleSheet","Modal","Platform","ScrollView","Ionicons","useThemeStyles","useColorScheme","useI18n","fontFamilies","useProfileEditing","jsx","_jsx","jsxs","_jsxs","EditFieldModal","visible","onClose","title","theme","onSave","variant","fields","listConfig","onSubmit","saveDisabled","t","colorScheme","themeStyles","colors","isSaving","fieldValues","setFieldValues","fieldErrors","setFieldErrors","listItems","setListItems","newItemValue","setNewItemValue","items","length","initialValues","forEach","field","key","initialValue","handleFieldChange","value","prev","undefined","validateFields","errors","isValid","validation","error","handleAddItem","trim","newItem","createItem","handleRemoveItem","id","filter","item","handleSave","success","renderFields","style","styles","modalBody","children","map","index","inputGroup","label","color","text","inputProps","multiline","textArea","input","backgroundColor","card","borderColor","border","onChangeText","placeholder","placeholderTextColor","secondaryText","autoFocus","selectionColor","tint","textAlignVertical","errorText","renderList","addItemLabel","addItemRow","flex","addItemPlaceholder","autoCapitalize","autoCorrect","addButton","onPress","disabled","name","size","listSection","listTitle","renderItem","animationType","transparent","onRequestClose","modalOverlay","modalContent","background","modalHeader","closeButton","modalTitle","saveButton","opacity","saveButtonText","create","justifyContent","borderTopLeftRadius","borderTopRightRadius","paddingTop","OS","maxHeight","flexDirection","alignItems","paddingHorizontal","paddingBottom","borderBottomWidth","hairlineWidth","borderBottomColor","width","height","fontSize","fontWeight","fontFamily","phuduSemiBold","textAlign","paddingVertical","padding","gap","borderWidth","borderRadius","minHeight","marginTop","marginBottom"],"sourceRoot":"../../../../../src","sources":["ui/components/profile/EditFieldModal.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,QAAQ,EAAEC,SAAS,EAAEC,WAAW,QAAQ,OAAO;AAC/D,SACIC,IAAI,EACJC,IAAI,EACJC,SAAS,EACTC,gBAAgB,EAChBC,UAAU,EACVC,KAAK,EACLC,QAAQ,EACRC,UAAU,QAEP,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;;AAEjE;AACA;AACA;;AAgBA;AACA;AACA;;AAMA;AACA;AACA;;AAgBA;AACA;AACA;AAFA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AA+BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,cAAcA,CAAgC;EAC1DC,OAAO;EACPC,OAAO;EACPC,KAAK;EACLC,KAAK,GAAG,OAAO;EACfC,MAAM;EACNC,OAAO;EACPC,MAAM,GAAG,EAAE;EACXC,UAAU;EACVC,QAAQ;EACRC,YAAY,GAAG;AACK,CAAC,EAAsB;EAC3C,MAAM;IAAEC;EAAE,CAAC,GAAGlB,OAAO,CAAC,CAAC;EACvB,MAAMmB,WAAW,GAAGpB,cAAc,CAAC,CAAC;EACpC,MAAMqB,WAAW,GAAGtB,cAAc,CAACa,KAAK,IAAI,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