@logora/debate 0.1.1 → 0.2.1
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 +15 -23
- package/dist/components/action/button/Button.js +1 -1
- package/dist/components/argument/argument/Argument.js +49 -49
- package/dist/components/argument/top_arguments/TopArguments.js +17 -17
- package/dist/components/auth/auth_initializer/AuthInitializer.js +5 -5
- package/dist/components/auth/auth_modal/AuthModal.js +9 -9
- package/dist/components/auth/login_form/LoginForm.js +1 -0
- package/dist/components/auth/oauth2_button/OAuth2Button.js +3 -3
- package/dist/components/auth/providers/AuthProviderFactory.js +4 -4
- package/dist/components/auth/signup_form/SignupForm.js +4 -4
- package/dist/components/auth/social_auth_form/SocialAuthForm.js +10 -10
- package/dist/components/auth/sso_form/SSOForm.js +4 -4
- package/dist/components/chart/line_chart/LineChart.js +10 -10
- package/dist/components/chart/pie_chart/PieChart.js +6 -10
- package/dist/components/consultation/consultation_box/ConsultationBox.js +19 -14
- package/dist/components/debate/debate_box/DebateBox.js +11 -11
- package/dist/components/dialog/drawer/Drawer.js +16 -16
- package/dist/components/dialog/modal/Modal.js +8 -8
- package/dist/components/dialog/toast_provider/ToastProvider.js +10 -10
- package/dist/components/hooks/use_responsive/ResponsiveProvider.js +4 -4
- package/dist/components/icons/bild_icons/Alarm.js +15 -0
- package/dist/components/icons/bild_icons/Announcement.js +20 -0
- package/dist/components/icons/bild_icons/Arrow.js +11 -0
- package/dist/components/icons/bild_icons/Blockquote.js +11 -0
- package/dist/components/icons/bild_icons/Bold.js +11 -0
- package/dist/components/icons/bild_icons/Camera.js +11 -0
- package/dist/components/icons/bild_icons/Chat.js +44 -0
- package/dist/components/icons/bild_icons/Check.js +12 -0
- package/dist/components/icons/bild_icons/CheckCircle.js +20 -0
- package/dist/components/icons/bild_icons/Checkbox.js +11 -0
- package/dist/components/icons/bild_icons/Clap.js +21 -0
- package/dist/components/icons/bild_icons/Clock.js +11 -0
- package/dist/components/icons/bild_icons/Close.js +11 -0
- package/dist/components/icons/bild_icons/Code.js +32 -0
- package/dist/components/icons/bild_icons/Community.js +11 -0
- package/dist/components/icons/bild_icons/Crown.js +12 -0
- package/dist/components/icons/bild_icons/Document.js +11 -0
- package/dist/components/icons/bild_icons/Downvote.js +11 -0
- package/dist/components/icons/bild_icons/Ellipsis.js +12 -0
- package/dist/components/icons/bild_icons/ExpertBadge.js +33 -0
- package/dist/components/icons/bild_icons/Facebook.js +11 -0
- package/dist/components/icons/bild_icons/Flag.js +11 -0
- package/dist/components/icons/bild_icons/Home.js +11 -0
- package/dist/components/icons/bild_icons/Italic.js +11 -0
- package/dist/components/icons/bild_icons/LightArrow.js +12 -0
- package/dist/components/icons/bild_icons/Link.js +11 -0
- package/dist/components/icons/bild_icons/Login.js +19 -0
- package/dist/components/icons/bild_icons/Logora.js +25 -0
- package/dist/components/icons/bild_icons/Mail.js +11 -0
- package/dist/components/icons/bild_icons/MinusCircle.js +24 -0
- package/dist/components/icons/bild_icons/MobileClose.js +19 -0
- package/dist/components/icons/bild_icons/MobileMenu.js +29 -0
- package/dist/components/icons/bild_icons/Next.js +22 -0
- package/dist/components/icons/bild_icons/OpenBlank.js +15 -0
- package/dist/components/icons/bild_icons/OrderedList.js +11 -0
- package/dist/components/icons/bild_icons/PauseCircle.js +34 -0
- package/dist/components/icons/bild_icons/Point.js +21 -0
- package/dist/components/icons/bild_icons/Question.js +18 -0
- package/dist/components/icons/bild_icons/Refresh.js +11 -0
- package/dist/components/icons/bild_icons/Reply.js +11 -0
- package/dist/components/icons/bild_icons/Search.js +11 -0
- package/dist/components/icons/bild_icons/Send.js +11 -0
- package/dist/components/icons/bild_icons/Share.js +12 -0
- package/dist/components/icons/bild_icons/SmallArrow.js +11 -0
- package/dist/components/icons/bild_icons/Source.js +11 -0
- package/dist/components/icons/bild_icons/Suggestion.js +19 -0
- package/dist/components/icons/bild_icons/Twitter.js +29 -0
- package/dist/components/icons/bild_icons/Underline.js +11 -0
- package/dist/components/icons/bild_icons/Upvote.js +11 -0
- package/dist/components/icons/bild_icons/User.js +11 -0
- package/dist/components/icons/bild_icons/Versus.js +14 -0
- package/dist/components/icons/bild_icons/Votebox.js +12 -0
- package/dist/components/icons/bild_icons/index.js +110 -0
- package/dist/components/icons/hero_icons/Alarm.js +18 -0
- package/dist/components/icons/hero_icons/Announcement.js +18 -0
- package/dist/components/icons/hero_icons/Arrow.js +18 -0
- package/dist/components/icons/hero_icons/Blockquote.js +27 -0
- package/dist/components/icons/hero_icons/Bold.js +17 -0
- package/dist/components/icons/hero_icons/Camera.js +22 -0
- package/dist/components/icons/hero_icons/Chat.js +18 -0
- package/dist/components/icons/hero_icons/Check.js +18 -0
- package/dist/components/icons/hero_icons/CheckCircle.js +20 -0
- package/dist/components/icons/hero_icons/Checkbox.js +18 -0
- package/dist/components/icons/hero_icons/Clap.js +18 -0
- package/dist/components/icons/hero_icons/Clock.js +18 -0
- package/dist/components/icons/hero_icons/Close.js +18 -0
- package/dist/components/icons/hero_icons/Code.js +18 -0
- package/dist/components/icons/hero_icons/Community.js +18 -0
- package/dist/components/icons/hero_icons/Crown.js +18 -0
- package/dist/components/icons/hero_icons/Downvote.js +18 -0
- package/dist/components/icons/hero_icons/Ellipsis.js +18 -0
- package/dist/components/icons/hero_icons/ExpertBadge.js +18 -0
- package/dist/components/icons/hero_icons/Facebook.js +11 -0
- package/dist/components/icons/hero_icons/Flag.js +11 -0
- package/dist/components/icons/hero_icons/Home.js +18 -0
- package/dist/components/icons/hero_icons/Italic.js +17 -0
- package/dist/components/icons/hero_icons/LightArrow.js +12 -0
- package/dist/components/icons/hero_icons/Link.js +18 -0
- package/dist/components/icons/hero_icons/Login.js +19 -0
- package/dist/components/icons/hero_icons/Logora.js +25 -0
- package/dist/components/icons/hero_icons/Mail.js +18 -0
- package/dist/components/icons/hero_icons/MinusCircle.js +24 -0
- package/dist/components/icons/hero_icons/MobileClose.js +18 -0
- package/dist/components/icons/hero_icons/MobileMenu.js +18 -0
- package/dist/components/icons/hero_icons/Next.js +18 -0
- package/dist/components/icons/hero_icons/OpenBlank.js +18 -0
- package/dist/components/icons/hero_icons/OrderedList.js +47 -0
- package/dist/components/icons/hero_icons/PauseCircle.js +34 -0
- package/dist/components/icons/hero_icons/Point.js +21 -0
- package/dist/components/icons/hero_icons/Question.js +18 -0
- package/dist/components/icons/hero_icons/Refresh.js +18 -0
- package/dist/components/icons/hero_icons/Reply.js +18 -0
- package/dist/components/icons/hero_icons/Search.js +18 -0
- package/dist/components/icons/hero_icons/Send.js +18 -0
- package/dist/components/icons/hero_icons/Share.js +18 -0
- package/dist/components/icons/hero_icons/SmallArrow.js +18 -0
- package/dist/components/icons/hero_icons/Source.js +18 -0
- package/dist/components/icons/hero_icons/Suggestion.js +18 -0
- package/dist/components/icons/hero_icons/Twitter.js +29 -0
- package/dist/components/icons/hero_icons/Underline.js +27 -0
- package/dist/components/icons/hero_icons/Upvote.js +18 -0
- package/dist/components/icons/hero_icons/User.js +18 -0
- package/dist/components/icons/hero_icons/Versus.js +18 -0
- package/dist/components/icons/hero_icons/Votebox.js +18 -0
- package/dist/components/icons/hero_icons/index.js +108 -0
- package/dist/components/icons/krone_icons/Alarm.js +28 -0
- package/dist/components/icons/krone_icons/Announcement.js +16 -0
- package/dist/components/icons/krone_icons/Arrow.js +11 -0
- package/dist/components/icons/krone_icons/Blockquote.js +11 -0
- package/dist/components/icons/krone_icons/Bold.js +11 -0
- package/dist/components/icons/krone_icons/Camera.js +11 -0
- package/dist/components/icons/krone_icons/Chat.js +30 -0
- package/dist/components/icons/krone_icons/Check.js +11 -0
- package/dist/components/icons/krone_icons/CheckCircle.js +20 -0
- package/dist/components/icons/krone_icons/Clap.js +30 -0
- package/dist/components/icons/krone_icons/Clock.js +11 -0
- package/dist/components/icons/krone_icons/Close.js +11 -0
- package/dist/components/icons/krone_icons/Code.js +32 -0
- package/dist/components/icons/krone_icons/Community.js +11 -0
- package/dist/components/icons/krone_icons/Crown.js +11 -0
- package/dist/components/icons/krone_icons/Document.js +11 -0
- package/dist/components/icons/krone_icons/Downvote.js +11 -0
- package/dist/components/icons/krone_icons/Ellipsis.js +18 -0
- package/dist/components/icons/krone_icons/ExpertBadge.js +30 -0
- package/dist/components/icons/krone_icons/Facebook.js +11 -0
- package/dist/components/icons/krone_icons/Flag.js +11 -0
- package/dist/components/icons/krone_icons/Home.js +30 -0
- package/dist/components/icons/krone_icons/Italic.js +11 -0
- package/dist/components/icons/krone_icons/LightArrow.js +11 -0
- package/dist/components/icons/krone_icons/Link.js +11 -0
- package/dist/components/icons/krone_icons/Login.js +18 -0
- package/dist/components/icons/krone_icons/Logora.js +25 -0
- package/dist/components/icons/krone_icons/Mail.js +11 -0
- package/dist/components/icons/krone_icons/MinusCircle.js +24 -0
- package/dist/components/icons/krone_icons/MobileClose.js +18 -0
- package/dist/components/icons/krone_icons/MobileMenu.js +29 -0
- package/dist/components/icons/krone_icons/Next.js +22 -0
- package/dist/components/icons/krone_icons/OpenBlank.js +15 -0
- package/dist/components/icons/krone_icons/OrderedList.js +11 -0
- package/dist/components/icons/krone_icons/PauseCircle.js +33 -0
- package/dist/components/icons/krone_icons/Point.js +21 -0
- package/dist/components/icons/krone_icons/Question.js +30 -0
- package/dist/components/icons/krone_icons/Refresh.js +11 -0
- package/dist/components/icons/krone_icons/Reply.js +18 -0
- package/dist/components/icons/krone_icons/Search.js +11 -0
- package/dist/components/icons/krone_icons/Send.js +26 -0
- package/dist/components/icons/krone_icons/Share.js +14 -0
- package/dist/components/icons/krone_icons/SmallArrow.js +11 -0
- package/dist/components/icons/krone_icons/Source.js +11 -0
- package/dist/components/icons/krone_icons/Suggestion.js +30 -0
- package/dist/components/icons/krone_icons/Twitter.js +29 -0
- package/dist/components/icons/krone_icons/Underline.js +11 -0
- package/dist/components/icons/krone_icons/Upvote.js +30 -0
- package/dist/components/icons/krone_icons/User.js +33 -0
- package/dist/components/icons/krone_icons/Versus.js +11 -0
- package/dist/components/icons/krone_icons/Votebox.js +30 -0
- package/dist/components/icons/krone_icons/index.js +110 -0
- package/dist/components/icons/regular_icons/Alarm.js +15 -0
- package/dist/components/icons/regular_icons/Announcement.js +20 -0
- package/dist/components/icons/regular_icons/Arrow.js +11 -0
- package/dist/components/icons/regular_icons/Blockquote.js +11 -0
- package/dist/components/icons/regular_icons/Bold.js +11 -0
- package/dist/components/icons/regular_icons/Camera.js +11 -0
- package/dist/components/icons/regular_icons/Chat.js +16 -0
- package/dist/components/icons/regular_icons/Check.js +11 -0
- package/dist/components/icons/regular_icons/CheckCircle.js +20 -0
- package/dist/components/icons/regular_icons/Checkbox.js +11 -0
- package/dist/components/icons/regular_icons/Clap.js +15 -0
- package/dist/components/icons/regular_icons/Clock.js +11 -0
- package/dist/components/icons/regular_icons/Close.js +11 -0
- package/dist/components/icons/regular_icons/Code.js +32 -0
- package/dist/components/icons/regular_icons/Community.js +11 -0
- package/dist/components/icons/regular_icons/Crown.js +11 -0
- package/dist/components/icons/regular_icons/Document.js +11 -0
- package/dist/components/icons/regular_icons/Downvote.js +11 -0
- package/dist/components/icons/regular_icons/Ellipsis.js +11 -0
- package/dist/components/icons/regular_icons/ExpertBadge.js +32 -0
- package/dist/components/icons/regular_icons/Facebook.js +11 -0
- package/dist/components/icons/regular_icons/Flag.js +11 -0
- package/dist/components/icons/regular_icons/Home.js +11 -0
- package/dist/components/icons/regular_icons/Italic.js +11 -0
- package/dist/components/icons/regular_icons/LightArrow.js +11 -0
- package/dist/components/icons/regular_icons/Link.js +11 -0
- package/dist/components/icons/regular_icons/Login.js +18 -0
- package/dist/components/icons/regular_icons/Logora.js +25 -0
- package/dist/components/icons/regular_icons/Mail.js +11 -0
- package/dist/components/icons/regular_icons/MinusCircle.js +24 -0
- package/dist/components/icons/regular_icons/MobileClose.js +18 -0
- package/dist/components/icons/regular_icons/MobileMenu.js +29 -0
- package/dist/components/icons/regular_icons/Next.js +22 -0
- package/dist/components/icons/regular_icons/OpenBlank.js +15 -0
- package/dist/components/icons/regular_icons/OrderedList.js +11 -0
- package/dist/components/icons/regular_icons/PauseCircle.js +33 -0
- package/dist/components/icons/regular_icons/Point.js +21 -0
- package/dist/components/icons/regular_icons/Question.js +18 -0
- package/dist/components/icons/regular_icons/Refresh.js +11 -0
- package/dist/components/icons/regular_icons/Reply.js +11 -0
- package/dist/components/icons/regular_icons/Search.js +11 -0
- package/dist/components/icons/regular_icons/Send.js +11 -0
- package/dist/components/icons/regular_icons/Share.js +12 -0
- package/dist/components/icons/regular_icons/SmallArrow.js +11 -0
- package/dist/components/icons/regular_icons/Source.js +11 -0
- package/dist/components/icons/regular_icons/Suggestion.js +19 -0
- package/dist/components/icons/regular_icons/Twitter.js +29 -0
- package/dist/components/icons/regular_icons/Underline.js +11 -0
- package/dist/components/icons/regular_icons/Upvote.js +11 -0
- package/dist/components/icons/regular_icons/User.js +11 -0
- package/dist/components/icons/regular_icons/Versus.js +11 -0
- package/dist/components/icons/regular_icons/Votebox.js +12 -0
- package/dist/components/icons/regular_icons/index.js +110 -0
- package/dist/components/icons/spiegel_icons/Alarm.js +15 -0
- package/dist/components/icons/spiegel_icons/Announcement.js +20 -0
- package/dist/components/icons/spiegel_icons/Arrow.js +11 -0
- package/dist/components/icons/spiegel_icons/Blockquote.js +26 -0
- package/dist/components/icons/spiegel_icons/Bold.js +16 -0
- package/dist/components/icons/spiegel_icons/Camera.js +11 -0
- package/dist/components/icons/spiegel_icons/Chat.js +12 -0
- package/dist/components/icons/spiegel_icons/Check.js +11 -0
- package/dist/components/icons/spiegel_icons/CheckCircle.js +20 -0
- package/dist/components/icons/spiegel_icons/Checkbox.js +26 -0
- package/dist/components/icons/spiegel_icons/Clap.js +26 -0
- package/dist/components/icons/spiegel_icons/Clock.js +26 -0
- package/dist/components/icons/spiegel_icons/Close.js +15 -0
- package/dist/components/icons/spiegel_icons/Code.js +32 -0
- package/dist/components/icons/spiegel_icons/Community.js +11 -0
- package/dist/components/icons/spiegel_icons/Crown.js +12 -0
- package/dist/components/icons/spiegel_icons/Downvote.js +11 -0
- package/dist/components/icons/spiegel_icons/Ellipsis.js +12 -0
- package/dist/components/icons/spiegel_icons/ExpertBadge.js +28 -0
- package/dist/components/icons/spiegel_icons/Facebook.js +16 -0
- package/dist/components/icons/spiegel_icons/Flag.js +20 -0
- package/dist/components/icons/spiegel_icons/Home.js +11 -0
- package/dist/components/icons/spiegel_icons/Italic.js +16 -0
- package/dist/components/icons/spiegel_icons/LightArrow.js +12 -0
- package/dist/components/icons/spiegel_icons/Link.js +26 -0
- package/dist/components/icons/spiegel_icons/Login.js +19 -0
- package/dist/components/icons/spiegel_icons/Logora.js +25 -0
- package/dist/components/icons/spiegel_icons/Mail.js +16 -0
- package/dist/components/icons/spiegel_icons/MinusCircle.js +20 -0
- package/dist/components/icons/spiegel_icons/MobileClose.js +19 -0
- package/dist/components/icons/spiegel_icons/MobileMenu.js +29 -0
- package/dist/components/icons/spiegel_icons/Next.js +22 -0
- package/dist/components/icons/spiegel_icons/OpenBlank.js +15 -0
- package/dist/components/icons/spiegel_icons/OrderedList.js +29 -0
- package/dist/components/icons/spiegel_icons/PauseCircle.js +20 -0
- package/dist/components/icons/spiegel_icons/Point.js +21 -0
- package/dist/components/icons/spiegel_icons/Question.js +30 -0
- package/dist/components/icons/spiegel_icons/Refresh.js +11 -0
- package/dist/components/icons/spiegel_icons/Reply.js +12 -0
- package/dist/components/icons/spiegel_icons/Search.js +11 -0
- package/dist/components/icons/spiegel_icons/Send.js +11 -0
- package/dist/components/icons/spiegel_icons/Share.js +26 -0
- package/dist/components/icons/spiegel_icons/SmallArrow.js +12 -0
- package/dist/components/icons/spiegel_icons/Source.js +11 -0
- package/dist/components/icons/spiegel_icons/Suggestion.js +16 -0
- package/dist/components/icons/spiegel_icons/Twitter.js +29 -0
- package/dist/components/icons/spiegel_icons/Underline.js +26 -0
- package/dist/components/icons/spiegel_icons/Upvote.js +11 -0
- package/dist/components/icons/spiegel_icons/User.js +11 -0
- package/dist/components/icons/spiegel_icons/Versus.js +14 -0
- package/dist/components/icons/spiegel_icons/Votebox.js +26 -0
- package/dist/components/icons/spiegel_icons/index.js +108 -0
- package/dist/components/input/argument_input/ArgumentInput.js +100 -99
- package/dist/components/input/search_input/SearchInput.js +4 -4
- package/dist/components/input/text_editor/TextEditor.js +50 -50
- package/dist/components/input/text_editor/lexicalToHtml.js +7 -7
- package/dist/components/input/text_editor/plugins/MaxLengthPlugin.js +12 -12
- package/dist/components/input/text_editor/plugins/ResetPlugin.js +6 -6
- package/dist/components/input/text_editor/plugins/SetContentPlugin.js +6 -6
- package/dist/components/input/text_editor/plugins/ToolbarPlugin.js +21 -21
- package/dist/components/intl/intl_provider/IntlProvider.js +6 -6
- package/dist/components/list/paginated_list/PaginatedList.js +16 -16
- package/dist/components/list/paginated_list/VotePaginatedList.js +6 -6
- package/dist/components/list/paginated_list/action_bar/ActionBar.js +7 -7
- package/dist/components/navbar/navbar_button/NavbarButton.js +3 -3
- package/dist/components/navbar/navbar_modal/NavbarModal.js +11 -11
- package/dist/components/notification/notification_menu/NotificationMenu.js +4 -4
- package/dist/components/proposal/proposal_box/ProposalBox.js +8 -8
- package/dist/components/share/share_box/ShareBox.js +17 -17
- package/dist/components/source/context_source_list/ContextSourceList.js +3 -3
- package/dist/components/source/source_modal/SourceModal.js +16 -16
- package/dist/components/suggestion/suggestion_banner/SuggestionBanner.js +14 -14
- package/dist/components/suggestion/suggestion_box/SuggestionBox.js +6 -6
- package/dist/components/suggestion/suggestion_input/SuggestionInput.js +13 -12
- package/dist/components/user/avatar/Avatar.js +7 -7
- package/dist/components/user/update_user_info_modal/UpdateUserInfoModal.js +17 -15
- package/dist/components/user_content/content_footer/ContentFooter.js +11 -11
- package/dist/components/user_content/summary_content_box/SummaryContentBox.js +6 -6
- package/dist/components/user_content/use_delete_content/useDeleteContent.js +7 -7
- package/dist/components/user_content/use_report_content/ReportModal.js +9 -9
- package/dist/components/vote/use_vote/useVote.js +3 -3
- package/dist/components/vote/vote_box/VoteBox.js +7 -7
- package/dist/index.js +140 -84
- package/dist/node_modules/.pnpm/@lexical_react@0.38.2_react-dom@18.3.1_react@18.3.1__react@18.3.1_yjs@13.6.30/node_modules/@lexical/react/LexicalCharacterLimitPlugin.prod.js +57 -57
- package/dist/node_modules/.pnpm/@lexical_react@0.38.2_react-dom@18.3.1_react@18.3.1__react@18.3.1_yjs@13.6.30/node_modules/@lexical/react/LexicalComposer.prod.js +14 -14
- package/dist/node_modules/.pnpm/@lexical_react@0.38.2_react-dom@18.3.1_react@18.3.1__react@18.3.1_yjs@13.6.30/node_modules/@lexical/react/LexicalContentEditable.prod.js +15 -15
- package/dist/node_modules/.pnpm/@lexical_react@0.38.2_react-dom@18.3.1_react@18.3.1__react@18.3.1_yjs@13.6.30/node_modules/@lexical/react/LexicalListPlugin.prod.js +6 -6
- package/dist/node_modules/.pnpm/@lexical_react@0.38.2_react-dom@18.3.1_react@18.3.1__react@18.3.1_yjs@13.6.30/node_modules/@lexical/react/LexicalOnChangePlugin.prod.js +1 -1
- package/dist/node_modules/.pnpm/@lexical_react@0.38.2_react-dom@18.3.1_react@18.3.1__react@18.3.1_yjs@13.6.30/node_modules/@lexical/react/LexicalRichTextPlugin.prod.js +21 -21
- package/package.json +6 -1
|
@@ -2,11 +2,11 @@ import { require_jsx_runtime as e } from "../../../node_modules/.pnpm/react@18.3
|
|
|
2
2
|
import { Icon as t } from "../../icons/icon/Icon.js";
|
|
3
3
|
import n from "../../../node_modules/.pnpm/react-intl@7.1.14_react@18.3.1_typescript@5.9.3/node_modules/react-intl/lib/src/components/useIntl.js";
|
|
4
4
|
import { Tooltip as r } from "../../dialog/tooltip/Tooltip.js";
|
|
5
|
-
import i from "
|
|
6
|
-
import
|
|
5
|
+
import { require_lib as i } from "../../../node_modules/.pnpm/react-copy-to-clipboard@5.1.1_react@18.3.1/node_modules/react-copy-to-clipboard/lib/index.js";
|
|
6
|
+
import a from "./ShareBox.module.js";
|
|
7
7
|
import "react";
|
|
8
8
|
//#region src/components/share/share_box/ShareBox.jsx
|
|
9
|
-
var o =
|
|
9
|
+
var o = i(), s = e(), c = ({ tooltipPosition: e, shareUrl: i, shareTitle: c, shareText: l, shareCode: u, showShareCode: d = !1 }) => {
|
|
10
10
|
let f = n(), p = (e) => {
|
|
11
11
|
if (typeof window < "u") {
|
|
12
12
|
let t = window.open();
|
|
@@ -14,7 +14,7 @@ var o = a(), s = e(), c = ({ tooltipPosition: e, shareUrl: a, shareTitle: c, sha
|
|
|
14
14
|
}
|
|
15
15
|
};
|
|
16
16
|
return /* @__PURE__ */ (0, s.jsxs)("div", {
|
|
17
|
-
className:
|
|
17
|
+
className: a.shareBox,
|
|
18
18
|
children: [
|
|
19
19
|
/* @__PURE__ */ (0, s.jsx)(r, {
|
|
20
20
|
text: f.formatMessage({
|
|
@@ -28,12 +28,12 @@ var o = a(), s = e(), c = ({ tooltipPosition: e, shareUrl: a, shareTitle: c, sha
|
|
|
28
28
|
position: e,
|
|
29
29
|
children: /* @__PURE__ */ (0, s.jsx)(o.CopyToClipboard, {
|
|
30
30
|
tabIndex: "0",
|
|
31
|
-
className:
|
|
32
|
-
text:
|
|
31
|
+
className: a.linkCopyButton,
|
|
32
|
+
text: i,
|
|
33
33
|
children: /* @__PURE__ */ (0, s.jsx)("div", { children: /* @__PURE__ */ (0, s.jsx)(t, {
|
|
34
34
|
name: "link",
|
|
35
35
|
role: "button",
|
|
36
|
-
className:
|
|
36
|
+
className: a.linkCopyIcon,
|
|
37
37
|
"data-tid": "action_embed_code_clipboard",
|
|
38
38
|
width: 20,
|
|
39
39
|
height: 20
|
|
@@ -47,8 +47,8 @@ var o = a(), s = e(), c = ({ tooltipPosition: e, shareUrl: a, shareTitle: c, sha
|
|
|
47
47
|
}),
|
|
48
48
|
position: e,
|
|
49
49
|
children: /* @__PURE__ */ (0, s.jsx)("div", {
|
|
50
|
-
onClick: () => p("https://www.facebook.com/sharer/sharer.php?u=" + encodeURIComponent(
|
|
51
|
-
className:
|
|
50
|
+
onClick: () => p("https://www.facebook.com/sharer/sharer.php?u=" + encodeURIComponent(i)),
|
|
51
|
+
className: a.linkCopyButton,
|
|
52
52
|
tabIndex: 0,
|
|
53
53
|
children: /* @__PURE__ */ (0, s.jsx)(t, {
|
|
54
54
|
name: "facebook",
|
|
@@ -66,12 +66,12 @@ var o = a(), s = e(), c = ({ tooltipPosition: e, shareUrl: a, shareTitle: c, sha
|
|
|
66
66
|
}),
|
|
67
67
|
position: e,
|
|
68
68
|
children: /* @__PURE__ */ (0, s.jsx)("div", {
|
|
69
|
-
onClick: () => p("https://twitter.com/intent/tweet?text=" + encodeURIComponent(c) + "&url=" + encodeURIComponent(
|
|
70
|
-
className:
|
|
69
|
+
onClick: () => p("https://twitter.com/intent/tweet?text=" + encodeURIComponent(c) + "&url=" + encodeURIComponent(i)),
|
|
70
|
+
className: a.linkCopyButton,
|
|
71
71
|
tabIndex: 0,
|
|
72
72
|
children: /* @__PURE__ */ (0, s.jsx)(t, {
|
|
73
73
|
name: "twitter",
|
|
74
|
-
className:
|
|
74
|
+
className: a.twitterIcon,
|
|
75
75
|
role: "button",
|
|
76
76
|
"data-tid": "action_share_debate_twitter",
|
|
77
77
|
width: 20,
|
|
@@ -86,8 +86,8 @@ var o = a(), s = e(), c = ({ tooltipPosition: e, shareUrl: a, shareTitle: c, sha
|
|
|
86
86
|
}),
|
|
87
87
|
position: e,
|
|
88
88
|
children: /* @__PURE__ */ (0, s.jsx)("div", {
|
|
89
|
-
onClick: () => p("mailto:?subject=" + c + "&body=" + l + "%0D%0A" +
|
|
90
|
-
className:
|
|
89
|
+
onClick: () => p("mailto:?subject=" + c + "&body=" + l + "%0D%0A" + i),
|
|
90
|
+
className: a.linkCopyButton,
|
|
91
91
|
tabIndex: 0,
|
|
92
92
|
children: /* @__PURE__ */ (0, s.jsx)(t, {
|
|
93
93
|
name: "mail",
|
|
@@ -110,13 +110,13 @@ var o = a(), s = e(), c = ({ tooltipPosition: e, shareUrl: a, shareTitle: c, sha
|
|
|
110
110
|
position: e,
|
|
111
111
|
children: /* @__PURE__ */ (0, s.jsx)(o.CopyToClipboard, {
|
|
112
112
|
tabIndex: "0",
|
|
113
|
-
className:
|
|
113
|
+
className: a.codeCopyButton,
|
|
114
114
|
text: u,
|
|
115
115
|
children: /* @__PURE__ */ (0, s.jsx)("div", {
|
|
116
|
-
className:
|
|
116
|
+
className: a.codeIcon,
|
|
117
117
|
children: /* @__PURE__ */ (0, s.jsx)(t, {
|
|
118
118
|
name: "code",
|
|
119
|
-
className:
|
|
119
|
+
className: a.codeIcon,
|
|
120
120
|
role: "button",
|
|
121
121
|
"data-tid": "action_embed_code_clipboard",
|
|
122
122
|
width: 20,
|
|
@@ -2,15 +2,15 @@ import { __toESM as e } from "../../../_virtual/_rolldown/runtime.js";
|
|
|
2
2
|
import { require_jsx_runtime as t } from "../../../node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
|
|
3
3
|
import { Link as n } from "../../action/link/Link.js";
|
|
4
4
|
import { require_classnames as r } from "../../../node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/index.js";
|
|
5
|
-
import i from "
|
|
6
|
-
import
|
|
5
|
+
import { useResponsive as i } from "../../hooks/use_responsive/useResponsive.js";
|
|
6
|
+
import a from "../../../node_modules/.pnpm/react-intl@7.1.14_react@18.3.1_typescript@5.9.3/node_modules/react-intl/lib/src/components/useIntl.js";
|
|
7
7
|
import { SectionBox as o } from "../../section/section_box/SectionBox.js";
|
|
8
8
|
import { ContextSourceBox as s } from "../context_source_box/ContextSourceBox.js";
|
|
9
9
|
import c from "./ContextSourceList.module.js";
|
|
10
10
|
import "react";
|
|
11
11
|
//#region src/components/source/context_source_list/ContextSourceList.jsx
|
|
12
12
|
var l = /* @__PURE__ */ e(r()), u = t(), d = ({ sources: e = [] }) => {
|
|
13
|
-
let t =
|
|
13
|
+
let t = a(), { isMobile: r, isTablet: d, isDesktop: f } = i(), p = (e) => /* @__PURE__ */ (0, u.jsx)(n, {
|
|
14
14
|
className: c.listItem,
|
|
15
15
|
to: e.source_url,
|
|
16
16
|
target: "_blank",
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { require_jsx_runtime as e } from "../../../node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
|
|
2
2
|
import { Button as t } from "../../action/button/Button.js";
|
|
3
3
|
import { useDataProvider as n } from "../../data/data_provider/useDataProvider.js";
|
|
4
|
-
import r from "
|
|
5
|
-
import i from "
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
4
|
+
import { AnnouncementDialog as r } from "../../dialog/announcement_dialog/AnnouncementDialog.js";
|
|
5
|
+
import { Loader as i } from "../../progress/loader/Loader.js";
|
|
6
|
+
import a from "../../../node_modules/.pnpm/react-intl@7.1.14_react@18.3.1_typescript@5.9.3/node_modules/react-intl/lib/src/components/useIntl.js";
|
|
7
|
+
import o from "../../../node_modules/.pnpm/react-intl@7.1.14_react@18.3.1_typescript@5.9.3/node_modules/react-intl/lib/src/components/message.js";
|
|
8
|
+
import { SearchInput as s } from "../../input/search_input/SearchInput.js";
|
|
9
|
+
import { useModal as c } from "../../dialog/modal/useModal.js";
|
|
10
|
+
import { Modal as l } from "../../dialog/modal/Modal.js";
|
|
11
11
|
import { SourceBox as u } from "../source_box/SourceBox.js";
|
|
12
12
|
import d from "./SourceModal.module.js";
|
|
13
13
|
import { useState as f } from "react";
|
|
14
14
|
//#region src/components/source/source_modal/SourceModal.jsx
|
|
15
15
|
var p = e(), m = ({ onAddSource: e, onHideModal: m, allowedSources: h = [] }) => {
|
|
16
|
-
let [g, _] = f(!1), [v, y] = f(), [b, x] = f(!1), S = n(), [C, w] = f(!1), T =
|
|
16
|
+
let [g, _] = f(!1), [v, y] = f(), [b, x] = f(!1), S = n(), [C, w] = f(!1), T = a(), { hideModal: E } = c(), D = () => {
|
|
17
17
|
e(v), y(null), E(), m && m();
|
|
18
18
|
}, O = (e) => {
|
|
19
19
|
if (!h || h.length === 0) return !0;
|
|
@@ -33,7 +33,7 @@ var p = e(), m = ({ onAddSource: e, onHideModal: m, allowedSources: h = [] }) =>
|
|
|
33
33
|
_(!1), x(!0);
|
|
34
34
|
})) : w(!0);
|
|
35
35
|
};
|
|
36
|
-
return /* @__PURE__ */ (0, p.jsx)(
|
|
36
|
+
return /* @__PURE__ */ (0, p.jsx)(l, {
|
|
37
37
|
title: T.formatMessage({
|
|
38
38
|
id: "source.source_modal.modal_title",
|
|
39
39
|
defaultMessage: "Add a source"
|
|
@@ -44,7 +44,7 @@ var p = e(), m = ({ onAddSource: e, onHideModal: m, allowedSources: h = [] }) =>
|
|
|
44
44
|
children: [/* @__PURE__ */ (0, p.jsxs)("div", {
|
|
45
45
|
className: d.sourceInputContainer,
|
|
46
46
|
children: [
|
|
47
|
-
/* @__PURE__ */ (0, p.jsx)(
|
|
47
|
+
/* @__PURE__ */ (0, p.jsx)(s, {
|
|
48
48
|
placeholder: T.formatMessage({
|
|
49
49
|
id: "source.source_modal.input_placeholder",
|
|
50
50
|
defaultMessage: "Enter the URL of the source..."
|
|
@@ -55,14 +55,14 @@ var p = e(), m = ({ onAddSource: e, onHideModal: m, allowedSources: h = [] }) =>
|
|
|
55
55
|
}),
|
|
56
56
|
/* @__PURE__ */ (0, p.jsx)("div", {
|
|
57
57
|
className: d.sourceInputHelp,
|
|
58
|
-
children: /* @__PURE__ */ (0, p.jsx)(
|
|
58
|
+
children: /* @__PURE__ */ (0, p.jsx)(o, {
|
|
59
59
|
id: "source.source_modal.input_help",
|
|
60
60
|
defaultMessage: "Press Enter to add the source"
|
|
61
61
|
})
|
|
62
62
|
}),
|
|
63
63
|
h.length > 0 && /* @__PURE__ */ (0, p.jsxs)(p.Fragment, { children: [/* @__PURE__ */ (0, p.jsx)("div", { className: d.separator }), /* @__PURE__ */ (0, p.jsx)("div", {
|
|
64
64
|
className: d.allowedSourcesInfo,
|
|
65
|
-
children: /* @__PURE__ */ (0, p.jsx)(
|
|
65
|
+
children: /* @__PURE__ */ (0, p.jsx)(o, {
|
|
66
66
|
id: "source.source_modal.info_label",
|
|
67
67
|
defaultMessage: "Choose from : {domains}",
|
|
68
68
|
values: { domains: h.join(", ") }
|
|
@@ -72,21 +72,21 @@ var p = e(), m = ({ onAddSource: e, onHideModal: m, allowedSources: h = [] }) =>
|
|
|
72
72
|
}), /* @__PURE__ */ (0, p.jsxs)("div", {
|
|
73
73
|
className: d.sourcePreviewBox,
|
|
74
74
|
children: [
|
|
75
|
-
b && /* @__PURE__ */ (0, p.jsx)(
|
|
75
|
+
b && /* @__PURE__ */ (0, p.jsx)(r, {
|
|
76
76
|
message: T.formatMessage({
|
|
77
77
|
id: "source.source_modal.error",
|
|
78
78
|
defaultMessage: "Error when fetching source"
|
|
79
79
|
}),
|
|
80
80
|
fullWidth: !0
|
|
81
81
|
}),
|
|
82
|
-
C && /* @__PURE__ */ (0, p.jsx)(
|
|
82
|
+
C && /* @__PURE__ */ (0, p.jsx)(r, {
|
|
83
83
|
message: T.formatMessage({
|
|
84
84
|
id: "source.source_modal.error_unauthorized",
|
|
85
85
|
defaultMessage: "Unauthorized source"
|
|
86
86
|
}),
|
|
87
87
|
fullWidth: !0
|
|
88
88
|
}),
|
|
89
|
-
v && /* @__PURE__ */ (0, p.jsx)("div", { children: g ? /* @__PURE__ */ (0, p.jsx)(
|
|
89
|
+
v && /* @__PURE__ */ (0, p.jsx)("div", { children: g ? /* @__PURE__ */ (0, p.jsx)(i, {}) : /* @__PURE__ */ (0, p.jsxs)(p.Fragment, { children: [/* @__PURE__ */ (0, p.jsx)(u, {
|
|
90
90
|
title: v.title,
|
|
91
91
|
description: v.description,
|
|
92
92
|
url: v.source_url,
|
|
@@ -96,7 +96,7 @@ var p = e(), m = ({ onAddSource: e, onHideModal: m, allowedSources: h = [] }) =>
|
|
|
96
96
|
"data-tid": "action_submit_source",
|
|
97
97
|
className: d.sourcePreviewButton,
|
|
98
98
|
handleClick: D,
|
|
99
|
-
children: /* @__PURE__ */ (0, p.jsx)(
|
|
99
|
+
children: /* @__PURE__ */ (0, p.jsx)(o, {
|
|
100
100
|
id: "source.source_modal.submit_label",
|
|
101
101
|
defaultMessage: "Add"
|
|
102
102
|
})
|
|
@@ -4,19 +4,19 @@ import { Icon as n } from "../../icons/icon/Icon.js";
|
|
|
4
4
|
import { require_classnames as r } from "../../../node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/index.js";
|
|
5
5
|
import { Button as i } from "../../action/button/Button.js";
|
|
6
6
|
import { useRoutes as a } from "../../data/config_provider/useRoutes.js";
|
|
7
|
-
import o from "
|
|
8
|
-
import s from "
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
7
|
+
import { useResponsive as o } from "../../hooks/use_responsive/useResponsive.js";
|
|
8
|
+
import { useList as s } from "../../list/list_provider/useList.js";
|
|
9
|
+
import c from "../../../node_modules/.pnpm/react-intl@7.1.14_react@18.3.1_typescript@5.9.3/node_modules/react-intl/lib/src/components/useIntl.js";
|
|
10
|
+
import l from "../../../node_modules/.pnpm/react-intl@7.1.14_react@18.3.1_typescript@5.9.3/node_modules/react-intl/lib/src/components/message.js";
|
|
11
|
+
import { VotePaginatedList as u } from "../../list/paginated_list/VotePaginatedList.js";
|
|
12
|
+
import { UserContentSkeleton as d } from "../../skeleton/user_content_skeleton/UserContentSkeleton.js";
|
|
13
|
+
import { useToast as f } from "../../dialog/toast_provider/useToast.js";
|
|
14
14
|
import { SuggestionBox as p } from "../suggestion_box/SuggestionBox.js";
|
|
15
15
|
import m from "./SuggestionBanner.module.js";
|
|
16
16
|
import { useMemo as h, useState as g } from "react";
|
|
17
17
|
//#region src/components/suggestion/suggestion_banner/SuggestionBanner.jsx
|
|
18
18
|
var _ = /* @__PURE__ */ e(r()), v = t(), y = () => {
|
|
19
|
-
let [e, t] = g(1), [r, y] = g(1), b =
|
|
19
|
+
let [e, t] = g(1), [r, y] = g(1), b = s(), x = h(() => Math.random(), []), S = a(), C = c(), { isMobile: w, elementWidth: T } = o(), { toast: E } = f() || {}, D = (n) => {
|
|
20
20
|
b.remove("bannerSuggestionsList", [n]), E(C.formatMessage({
|
|
21
21
|
id: "header.vote_confirm_modal",
|
|
22
22
|
defaultMessage: "Your vote has been saved !"
|
|
@@ -29,14 +29,14 @@ var _ = /* @__PURE__ */ e(r()), v = t(), y = () => {
|
|
|
29
29
|
children: [
|
|
30
30
|
/* @__PURE__ */ (0, v.jsx)("div", {
|
|
31
31
|
className: m.suggestionBannerTitle,
|
|
32
|
-
children: /* @__PURE__ */ (0, v.jsx)(
|
|
32
|
+
children: /* @__PURE__ */ (0, v.jsx)(l, {
|
|
33
33
|
id: "suggestion.banner_title",
|
|
34
34
|
defaultMessage: "Suggest a debate question"
|
|
35
35
|
})
|
|
36
36
|
}),
|
|
37
37
|
/* @__PURE__ */ (0, v.jsx)("div", {
|
|
38
38
|
className: m.suggestionBannerDescription,
|
|
39
|
-
children: /* @__PURE__ */ (0, v.jsx)(
|
|
39
|
+
children: /* @__PURE__ */ (0, v.jsx)(l, {
|
|
40
40
|
id: "suggestion.banner_description",
|
|
41
41
|
defaultMessage: "Propose your own debate question and vote for your favourite. Questions that generate community interest are submitted to the editorial team."
|
|
42
42
|
})
|
|
@@ -50,7 +50,7 @@ var _ = /* @__PURE__ */ e(r()), v = t(), y = () => {
|
|
|
50
50
|
width: 10,
|
|
51
51
|
height: 10
|
|
52
52
|
}),
|
|
53
|
-
children: /* @__PURE__ */ (0, v.jsx)("span", { children: /* @__PURE__ */ (0, v.jsx)(
|
|
53
|
+
children: /* @__PURE__ */ (0, v.jsx)("span", { children: /* @__PURE__ */ (0, v.jsx)(l, {
|
|
54
54
|
id: "suggestion.suggest",
|
|
55
55
|
defaultMessage: "Suggest"
|
|
56
56
|
}) })
|
|
@@ -58,7 +58,7 @@ var _ = /* @__PURE__ */ e(r()), v = t(), y = () => {
|
|
|
58
58
|
]
|
|
59
59
|
}), /* @__PURE__ */ (0, v.jsx)("div", {
|
|
60
60
|
className: (0, _.default)(m.suggestionBannerList, { [m.suggestionBannerListWrapped]: T < 768 }),
|
|
61
|
-
children: /* @__PURE__ */ (0, v.jsx)(
|
|
61
|
+
children: /* @__PURE__ */ (0, v.jsx)(u, {
|
|
62
62
|
voteableType: "DebateSuggestion",
|
|
63
63
|
currentListId: "bannerSuggestionsList",
|
|
64
64
|
resource: "groups",
|
|
@@ -76,8 +76,8 @@ var _ = /* @__PURE__ */ e(r()), v = t(), y = () => {
|
|
|
76
76
|
currentPage: e,
|
|
77
77
|
display: "column",
|
|
78
78
|
onUpdateTotal: (e) => y(e),
|
|
79
|
-
loadingComponent: /* @__PURE__ */ (0, v.jsx)(
|
|
80
|
-
emptyListComponent: /* @__PURE__ */ (0, v.jsx)(
|
|
79
|
+
loadingComponent: /* @__PURE__ */ (0, v.jsx)(d, {}),
|
|
80
|
+
emptyListComponent: /* @__PURE__ */ (0, v.jsx)(d, {
|
|
81
81
|
border: !0,
|
|
82
82
|
enableAnimation: !1,
|
|
83
83
|
numberLines: 3,
|
|
@@ -8,9 +8,9 @@ import { useRoutes as o } from "../../data/config_provider/useRoutes.js";
|
|
|
8
8
|
import s from "../../../node_modules/.pnpm/react-intl@7.1.14_react@18.3.1_typescript@5.9.3/node_modules/react-intl/lib/src/components/useIntl.js";
|
|
9
9
|
import c from "../../../node_modules/.pnpm/react-intl@7.1.14_react@18.3.1_typescript@5.9.3/node_modules/react-intl/lib/src/components/message.js";
|
|
10
10
|
import { useTranslatedContent as l } from "../../translation/translated_content/useTranslatedContent.js";
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
11
|
+
import { TranslationButton as u } from "../../translation/translation_button/TranslationButton.js";
|
|
12
|
+
import { ContentFooter as d } from "../../user_content/content_footer/ContentFooter.js";
|
|
13
|
+
import { ContentHeader as f } from "../../user_content/content_header/ContentHeader.js";
|
|
14
14
|
import { SuggestionVoteBox as p } from "../../vote/suggestion_vote_box/SuggestionVoteBox.js";
|
|
15
15
|
import m from "./SuggestionBox.module.js";
|
|
16
16
|
import { useState as h } from "react";
|
|
@@ -20,7 +20,7 @@ var g = /* @__PURE__ */ e(r()), _ = t(), v = ({ suggestion: e, disabled: t = !1,
|
|
|
20
20
|
return /* @__PURE__ */ (0, _.jsxs)("div", {
|
|
21
21
|
className: m.container,
|
|
22
22
|
children: [
|
|
23
|
-
/* @__PURE__ */ (0, _.jsx)(
|
|
23
|
+
/* @__PURE__ */ (0, _.jsx)(f, {
|
|
24
24
|
author: e.debate_suggestion.author,
|
|
25
25
|
tag: e.is_accepted || e.is_published ? y.formatMessage({
|
|
26
26
|
id: "suggestion.suggestion_box.selected",
|
|
@@ -33,7 +33,7 @@ var g = /* @__PURE__ */ e(r()), _ = t(), v = ({ suggestion: e, disabled: t = !1,
|
|
|
33
33
|
}),
|
|
34
34
|
/* @__PURE__ */ (0, _.jsxs)("div", {
|
|
35
35
|
className: m.suggestion,
|
|
36
|
-
children: [T.translatedContent, T.isTranslated && /* @__PURE__ */ (0, _.jsx)(
|
|
36
|
+
children: [T.translatedContent, T.isTranslated && /* @__PURE__ */ (0, _.jsx)(u, {
|
|
37
37
|
language: e.language,
|
|
38
38
|
callback: () => T.toggleContent()
|
|
39
39
|
})]
|
|
@@ -68,7 +68,7 @@ var g = /* @__PURE__ */ e(r()), _ = t(), v = ({ suggestion: e, disabled: t = !1,
|
|
|
68
68
|
}),
|
|
69
69
|
/* @__PURE__ */ (0, _.jsx)("div", {
|
|
70
70
|
className: m.footer,
|
|
71
|
-
children: !v && /* @__PURE__ */ (0, _.jsx)(
|
|
71
|
+
children: !v && /* @__PURE__ */ (0, _.jsx)(d, {
|
|
72
72
|
resource: e,
|
|
73
73
|
reportType: "Group",
|
|
74
74
|
deleteType: "groups",
|
|
@@ -4,20 +4,20 @@ import { require_classnames as n } from "../../../node_modules/.pnpm/classnames@
|
|
|
4
4
|
import { Button as r } from "../../action/button/Button.js";
|
|
5
5
|
import { useAuth as i } from "../../auth/use_auth/useAuth.js";
|
|
6
6
|
import { useDataProvider as a } from "../../data/data_provider/useDataProvider.js";
|
|
7
|
-
import o from "
|
|
8
|
-
import s from "../../../node_modules/.pnpm/react-intl@7.1.14_react@18.3.1_typescript@5.9.3/node_modules/react-intl/lib/src/components/
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
7
|
+
import { useList as o } from "../../list/list_provider/useList.js";
|
|
8
|
+
import s from "../../../node_modules/.pnpm/react-intl@7.1.14_react@18.3.1_typescript@5.9.3/node_modules/react-intl/lib/src/components/useIntl.js";
|
|
9
|
+
import c from "../../../node_modules/.pnpm/react-intl@7.1.14_react@18.3.1_typescript@5.9.3/node_modules/react-intl/lib/src/components/message.js";
|
|
10
|
+
import { TextInput as l } from "../../input/text_input/TextInput.js";
|
|
11
|
+
import { useInput as u } from "../../input/input_provider/useInput.js";
|
|
12
12
|
import { useToast as d } from "../../dialog/toast_provider/useToast.js";
|
|
13
|
-
import {
|
|
13
|
+
import { useAuthRequired as f } from "../../hooks/use_auth_required/useAuthRequired.js";
|
|
14
14
|
import p from "../../../node_modules/.pnpm/@rooks_use-sessionstorage-state@4.11.2_react@18.3.1/node_modules/@rooks/use-sessionstorage-state/lib/index.esm.js";
|
|
15
15
|
import { useFormValidation as m } from "../../forms/use_form_validation/useFormValidation.js";
|
|
16
16
|
import h from "./SuggestionInput.module.js";
|
|
17
17
|
import { useEffect as g, useRef as _, useState as v } from "react";
|
|
18
18
|
//#region src/components/suggestion/suggestion_input/SuggestionInput.jsx
|
|
19
19
|
var y = /* @__PURE__ */ e(n()), b = t(), x = ({ onSubmit: e = null, maxLength: t = 140, maxPerUser: n = 5, disabled: x = !1, userGuideUrl: S, hideUserGuideLink: C = !1 }) => {
|
|
20
|
-
let w =
|
|
20
|
+
let w = s(), T = a(), E = o(), { toast: D } = d() || {}, { isLoggedIn: O } = i(), { focus: k, setFocus: A } = u(), { errors: j, validate: M } = m(), [N, P] = v(!0), [F, I] = v(!1), [L, R] = v(""), [z, B, V] = p("userSuggestion", {}), H = _(null), U = _(null), W = f();
|
|
21
21
|
g(() => {
|
|
22
22
|
z?.suggestion && R(z.suggestion);
|
|
23
23
|
}, []), g(() => {
|
|
@@ -78,12 +78,12 @@ var y = /* @__PURE__ */ e(n()), b = t(), x = ({ onSubmit: e = null, maxLength: t
|
|
|
78
78
|
children: [
|
|
79
79
|
/* @__PURE__ */ (0, b.jsx)("div", {
|
|
80
80
|
className: h.suggestionInputTitle,
|
|
81
|
-
children: /* @__PURE__ */ (0, b.jsx)(
|
|
81
|
+
children: /* @__PURE__ */ (0, b.jsx)(c, {
|
|
82
82
|
id: "suggestion.input_title",
|
|
83
83
|
defaultMessage: "Your suggestion"
|
|
84
84
|
})
|
|
85
85
|
}),
|
|
86
|
-
/* @__PURE__ */ (0, b.jsx)(
|
|
86
|
+
/* @__PURE__ */ (0, b.jsx)(l, {
|
|
87
87
|
ref: U,
|
|
88
88
|
type: "text",
|
|
89
89
|
"aria-label": w.formatMessage({
|
|
@@ -120,14 +120,15 @@ var y = /* @__PURE__ */ e(n()), b = t(), x = ({ onSubmit: e = null, maxLength: t
|
|
|
120
120
|
}),
|
|
121
121
|
S && !C && /* @__PURE__ */ (0, b.jsx)("div", {
|
|
122
122
|
className: h.guideMessage,
|
|
123
|
-
children: /* @__PURE__ */ (0, b.jsx)(
|
|
123
|
+
children: /* @__PURE__ */ (0, b.jsx)(c, {
|
|
124
124
|
id: "alert.guide_message",
|
|
125
125
|
defaultMessage: "Contributions must comply with our {userCharter}.",
|
|
126
126
|
values: { userCharter: /* @__PURE__ */ (0, b.jsx)("a", {
|
|
127
127
|
className: h.guideMessage,
|
|
128
128
|
href: S,
|
|
129
129
|
target: "_blank",
|
|
130
|
-
|
|
130
|
+
rel: "noreferrer",
|
|
131
|
+
children: /* @__PURE__ */ (0, b.jsx)(c, {
|
|
131
132
|
id: "alert.user_charter",
|
|
132
133
|
defaultMessage: "user charter"
|
|
133
134
|
})
|
|
@@ -145,7 +146,7 @@ var y = /* @__PURE__ */ e(n()), b = t(), x = ({ onSubmit: e = null, maxLength: t
|
|
|
145
146
|
}), /* @__PURE__ */ (0, b.jsx)(r, {
|
|
146
147
|
handleClick: () => Y(),
|
|
147
148
|
className: h.suggestionInputSubmit,
|
|
148
|
-
children: /* @__PURE__ */ (0, b.jsx)(
|
|
149
|
+
children: /* @__PURE__ */ (0, b.jsx)(c, {
|
|
149
150
|
id: "action.submit",
|
|
150
151
|
defaultMessage: "Submit"
|
|
151
152
|
})
|
|
@@ -3,14 +3,14 @@ import { require_jsx_runtime as t } from "../../../node_modules/.pnpm/react@18.3
|
|
|
3
3
|
import { require_classnames as n } from "../../../node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/index.js";
|
|
4
4
|
import r from "../../../node_modules/.pnpm/react-intl@7.1.14_react@18.3.1_typescript@5.9.3/node_modules/react-intl/lib/src/components/useIntl.js";
|
|
5
5
|
import { Tooltip as i } from "../../dialog/tooltip/Tooltip.js";
|
|
6
|
-
import
|
|
7
|
-
import o from "./
|
|
6
|
+
import a from "./Avatar.module.js";
|
|
7
|
+
import { DefaultAvatarIcon as o } from "./DefaultAvatar.js";
|
|
8
8
|
import { useState as s } from "react";
|
|
9
9
|
//#region src/components/user/avatar/Avatar.jsx
|
|
10
10
|
var c = /* @__PURE__ */ e(n()), l = t(), u = ({ avatarUrl: e, userName: t, isOnline: n = !1, showTooltip: u = !1, size: d = 40, className: f, ...p }) => {
|
|
11
11
|
let [m, h] = s(!1), g = r(), _ = {
|
|
12
12
|
loading: "lazy",
|
|
13
|
-
className: (0, c.default)(
|
|
13
|
+
className: (0, c.default)(a.avatarImage, f),
|
|
14
14
|
height: d,
|
|
15
15
|
width: d,
|
|
16
16
|
...p
|
|
@@ -28,23 +28,23 @@ var c = /* @__PURE__ */ e(n()), l = t(), u = ({ avatarUrl: e, userName: t, isOnl
|
|
|
28
28
|
onError: () => {
|
|
29
29
|
h(!0);
|
|
30
30
|
}
|
|
31
|
-
}) : /* @__PURE__ */ (0, l.jsx)(
|
|
31
|
+
}) : /* @__PURE__ */ (0, l.jsx)(o, {
|
|
32
32
|
..._,
|
|
33
33
|
style: v,
|
|
34
34
|
"data-testid": "avatar-icon"
|
|
35
35
|
});
|
|
36
36
|
return /* @__PURE__ */ (0, l.jsx)("div", {
|
|
37
|
-
className:
|
|
37
|
+
className: a.avatarContainer,
|
|
38
38
|
children: u || n ? /* @__PURE__ */ (0, l.jsx)(i, {
|
|
39
39
|
text: n ? g.formatMessage({
|
|
40
40
|
id: "user.avatar.online",
|
|
41
41
|
defaultMessage: "{name} is online"
|
|
42
42
|
}, { name: t }) : t,
|
|
43
43
|
children: /* @__PURE__ */ (0, l.jsxs)("div", {
|
|
44
|
-
className:
|
|
44
|
+
className: a.avatarBox,
|
|
45
45
|
children: [y(), n ? /* @__PURE__ */ (0, l.jsx)("span", {
|
|
46
46
|
"data-testid": "online-pin",
|
|
47
|
-
className:
|
|
47
|
+
className: a.onlinePin
|
|
48
48
|
}) : null]
|
|
49
49
|
})
|
|
50
50
|
}) : y()
|
|
@@ -4,14 +4,14 @@ import { Button as n } from "../../action/button/Button.js";
|
|
|
4
4
|
import { useAuth as r } from "../../auth/use_auth/useAuth.js";
|
|
5
5
|
import { useDataProvider as i } from "../../data/data_provider/useDataProvider.js";
|
|
6
6
|
import { useConfig as a } from "../../data/config_provider/useConfig.js";
|
|
7
|
-
import o from "
|
|
8
|
-
import s from "
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
7
|
+
import { useResponsive as o } from "../../hooks/use_responsive/useResponsive.js";
|
|
8
|
+
import { Loader as s } from "../../progress/loader/Loader.js";
|
|
9
|
+
import c from "../../../node_modules/.pnpm/react-intl@7.1.14_react@18.3.1_typescript@5.9.3/node_modules/react-intl/lib/src/components/useIntl.js";
|
|
10
|
+
import l from "../../../node_modules/.pnpm/react-intl@7.1.14_react@18.3.1_typescript@5.9.3/node_modules/react-intl/lib/src/components/message.js";
|
|
11
|
+
import { TextInput as u } from "../../input/text_input/TextInput.js";
|
|
12
|
+
import { Select as d } from "../../input/select/Select.js";
|
|
13
|
+
import { useModal as f } from "../../dialog/modal/useModal.js";
|
|
14
|
+
import { Modal as p } from "../../dialog/modal/Modal.js";
|
|
15
15
|
import { Toggle as m } from "../../input/toggle/Toggle.js";
|
|
16
16
|
import { useFormValidation as h } from "../../forms/use_form_validation/useFormValidation.js";
|
|
17
17
|
import { AvatarSelector as g } from "../avatar_selector/AvatarSelector.js";
|
|
@@ -19,7 +19,7 @@ import _ from "./UpdateUserInfoModal.module.js";
|
|
|
19
19
|
import { useState as v } from "react";
|
|
20
20
|
//#region src/components/user/update_user_info_modal/UpdateUserInfoModal.jsx
|
|
21
21
|
var y = e(), b = ({ termsUrl: e, privacyUrl: b, showEmailConsent: x = !1, showTerms: S = !1 }) => {
|
|
22
|
-
let C = r(), w = i(), T =
|
|
22
|
+
let C = r(), w = i(), T = c(), E = a(), D = [...Array(E.avatars?.maxFileName || 0).keys()].map((e) => `${E.avatars?.baseUrl}/${e + 1}.${E.avatars?.fileExtension}`), [O, k] = v(C.currentUser.first_name || ""), [A, j] = v(C.currentUser.description || ""), [M, N] = v(C.currentUser.last_name || ""), [P, F] = v(C.currentUser.language), [I, L] = v(!1), [R, z] = v(C.currentUser.image_url), [B, V] = v(null), [H, U] = v(!1), [W, G] = v(!1), { isMobile: K } = o(), { errors: q, validate: J } = h(), { hideModal: Y } = f(), [X, Z] = v(!1), [Q, $] = v(!1), ee = (e) => {
|
|
23
23
|
let t = new FileReader();
|
|
24
24
|
t.onloadend = () => {
|
|
25
25
|
z(t.result);
|
|
@@ -44,7 +44,7 @@ var y = e(), b = ({ termsUrl: e, privacyUrl: b, showEmailConsent: x = !1, showTe
|
|
|
44
44
|
});
|
|
45
45
|
}
|
|
46
46
|
};
|
|
47
|
-
return /* @__PURE__ */ (0, y.jsx)(
|
|
47
|
+
return /* @__PURE__ */ (0, y.jsx)(p, {
|
|
48
48
|
"data-vid": "update_user_info_modal",
|
|
49
49
|
title: T.formatMessage({
|
|
50
50
|
id: "modal.update_user_info_modal.modal_title",
|
|
@@ -57,7 +57,7 @@ var y = e(), b = ({ termsUrl: e, privacyUrl: b, showEmailConsent: x = !1, showTe
|
|
|
57
57
|
},
|
|
58
58
|
showCloseButton: !1,
|
|
59
59
|
disableClickOutside: !0,
|
|
60
|
-
children: W ? /* @__PURE__ */ (0, y.jsx)(
|
|
60
|
+
children: W ? /* @__PURE__ */ (0, y.jsx)(s, {}) : I ? /* @__PURE__ */ (0, y.jsxs)(y.Fragment, { children: [/* @__PURE__ */ (0, y.jsx)(g, {
|
|
61
61
|
onChooseAvatar: (e) => {
|
|
62
62
|
V(e), L(!1), /^(https?|ftp):\/\/[^\s/$.?#].[^\s]*$/i.test(e) ? (z(e), U(!1)) : (U(!0), ee(e));
|
|
63
63
|
},
|
|
@@ -111,7 +111,7 @@ var y = e(), b = ({ termsUrl: e, privacyUrl: b, showEmailConsent: x = !1, showTe
|
|
|
111
111
|
className: _.nameContainer,
|
|
112
112
|
children: [/* @__PURE__ */ (0, y.jsx)("div", {
|
|
113
113
|
className: _.updateProfileInput,
|
|
114
|
-
children: /* @__PURE__ */ (0, y.jsx)(
|
|
114
|
+
children: /* @__PURE__ */ (0, y.jsx)(u, {
|
|
115
115
|
type: "text",
|
|
116
116
|
name: "first_name",
|
|
117
117
|
"aria-label": T.formatMessage({
|
|
@@ -131,7 +131,7 @@ var y = e(), b = ({ termsUrl: e, privacyUrl: b, showEmailConsent: x = !1, showTe
|
|
|
131
131
|
})
|
|
132
132
|
}), /* @__PURE__ */ (0, y.jsx)("div", {
|
|
133
133
|
className: _.updateProfileInput,
|
|
134
|
-
children: /* @__PURE__ */ (0, y.jsx)(
|
|
134
|
+
children: /* @__PURE__ */ (0, y.jsx)(u, {
|
|
135
135
|
type: "text",
|
|
136
136
|
name: "last_name",
|
|
137
137
|
"aria-label": T.formatMessage({
|
|
@@ -158,7 +158,7 @@ var y = e(), b = ({ termsUrl: e, privacyUrl: b, showEmailConsent: x = !1, showTe
|
|
|
158
158
|
defaultMessage: "last name"
|
|
159
159
|
})
|
|
160
160
|
}),
|
|
161
|
-
E.translation?.translationMethods && Object.keys(E.translation.translationMethods).length > 0 && /* @__PURE__ */ (0, y.jsx)(
|
|
161
|
+
E.translation?.translationMethods && Object.keys(E.translation.translationMethods).length > 0 && /* @__PURE__ */ (0, y.jsx)(d, {
|
|
162
162
|
selectClassName: _.langSelect,
|
|
163
163
|
options: Object.keys(E.translation.translationMethods).map((e) => ({
|
|
164
164
|
name: e,
|
|
@@ -192,7 +192,7 @@ var y = e(), b = ({ termsUrl: e, privacyUrl: b, showEmailConsent: x = !1, showTe
|
|
|
192
192
|
name: "accepts_terms",
|
|
193
193
|
style: { fontSize: 18 },
|
|
194
194
|
checked: X,
|
|
195
|
-
label: /* @__PURE__ */ (0, y.jsx)(
|
|
195
|
+
label: /* @__PURE__ */ (0, y.jsx)(l, {
|
|
196
196
|
id: "modal.update_user_info_modal.accepts_terms",
|
|
197
197
|
defaultMessage: "I declare I have read the <var1>General Conditions of Use</var1> and the <var2>Privacy policy</var2> of the debate space and accept them.",
|
|
198
198
|
values: {
|
|
@@ -200,12 +200,14 @@ var y = e(), b = ({ termsUrl: e, privacyUrl: b, showEmailConsent: x = !1, showTe
|
|
|
200
200
|
className: _.cgu,
|
|
201
201
|
target: "_blank",
|
|
202
202
|
href: e,
|
|
203
|
+
rel: "noreferrer",
|
|
203
204
|
children: t
|
|
204
205
|
}),
|
|
205
206
|
var2: (e) => /* @__PURE__ */ (0, y.jsx)("a", {
|
|
206
207
|
className: _.cgu,
|
|
207
208
|
target: "_blank",
|
|
208
209
|
href: b,
|
|
210
|
+
rel: "noreferrer",
|
|
209
211
|
children: e
|
|
210
212
|
})
|
|
211
213
|
}
|
|
@@ -5,19 +5,19 @@ import { Icon as r } from "../../icons/icon/Icon.js";
|
|
|
5
5
|
import { require_classnames as i } from "../../../node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/index.js";
|
|
6
6
|
import { useAuth as a } from "../../auth/use_auth/useAuth.js";
|
|
7
7
|
import { useConfig as o } from "../../data/config_provider/useConfig.js";
|
|
8
|
-
import s from "
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
8
|
+
import { useResponsive as s } from "../../hooks/use_responsive/useResponsive.js";
|
|
9
|
+
import c from "../../../node_modules/.pnpm/react-intl@7.1.14_react@18.3.1_typescript@5.9.3/node_modules/react-intl/lib/src/components/useIntl.js";
|
|
10
|
+
import { Dropdown as l } from "../../dialog/dropdown/Dropdown.js";
|
|
11
|
+
import { useModal as u } from "../../dialog/modal/useModal.js";
|
|
12
|
+
import { useInput as d } from "../../input/input_provider/useInput.js";
|
|
13
|
+
import { ShareButton as f } from "../../share/share_button/ShareButton.js";
|
|
14
|
+
import { useDeleteContent as p } from "../use_delete_content/useDeleteContent.js";
|
|
15
|
+
import { useReportContent as m } from "../use_report_content/useReportContent.js";
|
|
16
16
|
import h from "./ContentFooter.module.js";
|
|
17
17
|
import { Suspense as g, lazy as _ } from "react";
|
|
18
18
|
//#region src/components/user_content/content_footer/ContentFooter.jsx
|
|
19
19
|
var v = t(), y = /* @__PURE__ */ e(i()), b = _(() => import("../../share/share_modal/index.js")), x = ({ resource: e, reportType: t, deleteType: i, deleteListId: _, softDelete: x = !1, disabled: S = !1, children: C, enableReply: w, handleReplyTo: T, showActions: ee = !0, showShareButton: E = !0, shareModal: D, shareUrl: O, shareTitle: k, shareText: A, shareModalTitle: j, showShareCode: M, shareCode: N, showShareText: P, enableEdition: F = !0, enableDeletion: I = !0, enableReport: L = !0, containerClassName: R, voteActionClassName: z, replyRedirectUrl: B }) => {
|
|
20
|
-
let V =
|
|
20
|
+
let V = c(), H = o(), { currentUser: U } = a(), { showModal: W } = u(), { setInputContent: G } = d() || {}, { reportContent: K } = m(t, e.id), { deleteContent: q } = p(e, i, _, x), { elementWidth: J } = s(), Y = () => U?.id ? e.author?.id === U?.id || e.debate_suggestion?.author?.id === U?.id : !1, X = () => {
|
|
21
21
|
G(e);
|
|
22
22
|
}, Z = () => {
|
|
23
23
|
if (e.created_at && H.actions?.editionTime) {
|
|
@@ -90,7 +90,7 @@ var v = t(), y = /* @__PURE__ */ e(i()), b = _(() => import("../../share/share_m
|
|
|
90
90
|
})]
|
|
91
91
|
})
|
|
92
92
|
}),
|
|
93
|
-
E && /* @__PURE__ */ (0, v.jsx)(
|
|
93
|
+
E && /* @__PURE__ */ (0, v.jsx)(f, {
|
|
94
94
|
shareUrl: O,
|
|
95
95
|
shareTitle: k,
|
|
96
96
|
shareText: A,
|
|
@@ -105,7 +105,7 @@ var v = t(), y = /* @__PURE__ */ e(i()), b = _(() => import("../../share/share_m
|
|
|
105
105
|
id: "user_content.content_footer.more",
|
|
106
106
|
defaultMessage: "More options"
|
|
107
107
|
}),
|
|
108
|
-
children: /* @__PURE__ */ (0, v.jsxs)(
|
|
108
|
+
children: /* @__PURE__ */ (0, v.jsxs)(l, {
|
|
109
109
|
className: h.moreActionDropdown,
|
|
110
110
|
horizontalPosition: "right",
|
|
111
111
|
children: [/* @__PURE__ */ (0, v.jsx)(r, {
|