@logora/debate 0.2.0 → 0.2.2
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 +1 -0
- package/dist/_virtual/_rolldown/runtime.js +6 -18
- package/dist/assets/debate-89_S7oMP.css +2 -0
- package/dist/components/action/back_link/BackLink.js +15 -16
- package/dist/components/action/button/Button.js +21 -22
- package/dist/components/action/icon_text_link/IconTextLink.js +26 -27
- package/dist/components/action/link/Link.js +7 -7
- package/dist/components/ad/ad_unit/AdUnit.js +17 -17
- package/dist/components/ad/with_ad/WithAd.js +10 -10
- package/dist/components/argument/argument/Argument.js +123 -124
- package/dist/components/argument/argument/ReplyFooter.js +22 -23
- package/dist/components/argument/top_arguments/TopArguments.js +43 -43
- package/dist/components/auth/auth_modal/AuthModal.js +55 -55
- package/dist/components/auth/facebook_login_button/FacebookIcon.js +5 -5
- package/dist/components/auth/facebook_login_button/FacebookLoginButton.js +14 -14
- package/dist/components/auth/google_login_button/GoogleIcon.js +7 -7
- package/dist/components/auth/google_login_button/GoogleLoginButton.js +15 -15
- package/dist/components/auth/login_form/LoginForm.js +37 -38
- package/dist/components/auth/oauth2_button/OAuth2Button.js +18 -19
- package/dist/components/auth/signup_form/SignupForm.js +68 -69
- package/dist/components/auth/social_auth_form/SocialAuthForm.js +109 -110
- package/dist/components/auth/sso_form/SSOForm.js +68 -70
- package/dist/components/auth/use_auth/AuthProvider.js +11 -11
- package/dist/components/chart/line_chart/LineChart.js +53 -54
- package/dist/components/chart/pie_chart/PieChart.js +20 -20
- package/dist/components/consultation/consultation_box/ConsultationBox.js +70 -72
- package/dist/components/data/axios_client/httpClient.js +1 -1
- package/dist/components/data/config_provider/ConfigProvider.js +5 -5
- package/dist/components/data/config_provider/withConfig.js +5 -5
- package/dist/components/debate/debate_box/DebateBox.js +95 -97
- package/dist/components/dialog/announcement_dialog/AnnouncementDialog.js +14 -15
- package/dist/components/dialog/confirm_modal/ConfirmModal.js +26 -27
- package/dist/components/dialog/countdown/Countdown.js +12 -12
- package/dist/components/dialog/dialog_box/DialogBox.js +33 -34
- package/dist/components/dialog/drawer/Drawer.js +85 -85
- package/dist/components/dialog/dropdown/Dropdown.js +21 -22
- package/dist/components/dialog/modal/Modal.js +37 -38
- package/dist/components/dialog/modal/ModalProvider.js +14 -14
- package/dist/components/dialog/toast/Toast.js +26 -27
- package/dist/components/dialog/toast_provider/ToastProvider.js +18 -18
- package/dist/components/dialog/tooltip/Tooltip.js +23 -24
- package/dist/components/embed/embed_header/EmbedHeader.js +38 -39
- package/dist/components/error/standard_error_boundary/StandardErrorBoundary.js +7 -7
- package/dist/components/follow/follow_button/FollowButton.js +25 -26
- package/dist/components/forms/form/form.js +9 -10
- package/dist/components/forms/use_form_validation/useFormValidation.js +3 -3
- package/dist/components/gamification/badge_box/BadgeBox.js +50 -52
- package/dist/components/gamification/point_box/PointBox.js +12 -12
- package/dist/components/hooks/use_auth_required/useAuthRequired.js +10 -10
- package/dist/components/hooks/use_font_loader/useFontLoader.js +5 -5
- package/dist/components/hooks/use_relative_time/useRelativeTime.js +1 -1
- package/dist/components/hooks/use_responsive/ResponsiveProvider.js +17 -17
- 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/icon/Icon.js +9 -9
- package/dist/components/icons/icon_provider/IconProvider.js +5 -5
- 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/CheckBox.js +5 -5
- 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 +167 -169
- package/dist/components/input/checkbox/hidden/hidden-checkbox.js +9 -11
- package/dist/components/input/checkbox/indicator/checkbox-indicator.js +11 -12
- package/dist/components/input/checkbox/label/checkbox-label.js +17 -18
- package/dist/components/input/input_provider/InputProvider.js +7 -7
- package/dist/components/input/search_input/SearchInput.js +25 -25
- package/dist/components/input/select/Select.js +38 -39
- package/dist/components/input/text_editor/TextEditor.js +107 -108
- package/dist/components/input/text_editor/lexicalToHtml.js +10 -10
- package/dist/components/input/text_editor/plugins/AutoSavePlugin.js +12 -12
- package/dist/components/input/text_editor/plugins/FocusPlugin.js +4 -4
- package/dist/components/input/text_editor/plugins/MaxLengthPlugin.js +14 -14
- package/dist/components/input/text_editor/plugins/ResetPlugin.js +9 -9
- package/dist/components/input/text_editor/plugins/SetContentPlugin.js +8 -8
- package/dist/components/input/text_editor/plugins/SetRichContentPlugin.js +4 -4
- package/dist/components/input/text_editor/plugins/ToolbarPlugin.js +84 -85
- package/dist/components/input/text_input/TextInput.js +28 -29
- package/dist/components/input/text_input/color-accent.js +8 -9
- package/dist/components/input/text_input/message.js +9 -11
- package/dist/components/input/toggle/Toggle.js +19 -21
- package/dist/components/input/toggle_position/TogglePosition.js +33 -34
- package/dist/components/intl/intl_provider/IntlProvider.js +28 -28
- package/dist/components/list/list_provider/ListProvider.js +7 -7
- package/dist/components/list/paginated_list/PaginatedList.js +133 -134
- package/dist/components/list/paginated_list/VotePaginatedList.js +13 -13
- package/dist/components/list/paginated_list/action_bar/ActionBar.js +53 -54
- package/dist/components/list/pagination/Pagination.js +17 -17
- package/dist/components/modal/side_modal/SideModal.js +36 -36
- package/dist/components/navbar/navbar_button/NavbarButton.js +16 -17
- package/dist/components/navbar/navbar_modal/NavbarModal.js +85 -86
- package/dist/components/notification/notification_item/NotificationItem.js +31 -32
- package/dist/components/notification/notification_menu/NotificationMenu.js +27 -27
- package/dist/components/progress/loader/Loader.js +7 -7
- package/dist/components/progress/progress_bar/ProgressBar.js +37 -38
- package/dist/components/proposal/proposal_box/ProposalBox.js +72 -73
- package/dist/components/report/report_box/ReportBox.js +59 -60
- package/dist/components/section/section_box/SectionBox.js +27 -28
- package/dist/components/share/share_box/ShareBox.js +53 -53
- package/dist/components/share/share_button/ShareButton.js +43 -44
- package/dist/components/share/share_modal/ShareModal.js +12 -12
- package/dist/components/skeleton/box_skeleton/BoxSkeleton.js +22 -22
- package/dist/components/skeleton/user_content_skeleton/UserContentSkeleton.js +31 -32
- package/dist/components/source/context_source_box/ContextSourceBox.js +28 -29
- package/dist/components/source/context_source_list/ContextSourceList.js +27 -28
- package/dist/components/source/source_box/SourceBox.js +23 -23
- package/dist/components/source/source_list_item/SourceListItem.js +15 -15
- package/dist/components/source/source_modal/SourceModal.js +59 -60
- package/dist/components/suggestion/suggestion_banner/SuggestionBanner.js +46 -48
- package/dist/components/suggestion/suggestion_box/SuggestionBox.js +57 -59
- package/dist/components/suggestion/suggestion_input/SuggestionInput.js +86 -88
- package/dist/components/summary/argument_summary_box/ArgumentSummaryBox.js +40 -41
- package/dist/components/summary/keyword_box/KeywordBox.js +21 -21
- package/dist/components/summary/summary/Summary.js +34 -34
- package/dist/components/summary/summary_box/SummaryBox.js +16 -16
- package/dist/components/tag/tag/Tag.js +9 -10
- package/dist/components/text/expandable_text/ArrowIcon.js +5 -5
- package/dist/components/text/expandable_text/ExpandableText.js +36 -37
- package/dist/components/text/read_more/ReadMore.js +46 -47
- package/dist/components/tools/hash_scroll/HashScroll.js +12 -12
- package/dist/components/translation/translated_content/TranslatedContent.js +3 -3
- package/dist/components/translation/translated_content/useTranslatedContent.js +5 -5
- package/dist/components/translation/translation_button/TranslationButton.js +14 -16
- package/dist/components/user/author_box/AuthorBox.js +69 -71
- package/dist/components/user/avatar/Avatar.js +37 -38
- package/dist/components/user/avatar/DefaultAvatar.js +6 -6
- package/dist/components/user/avatar_selector/AvatarSelector.js +55 -56
- package/dist/components/user/update_user_info_modal/UpdateUserInfoModal.js +123 -124
- package/dist/components/user/update_user_info_modal/useUpdateUserInfo.js +12 -12
- package/dist/components/user/user_box/UserBox.js +47 -49
- package/dist/components/user/user_box_small/UserBoxSmall.js +26 -27
- package/dist/components/user_content/content_footer/ContentFooter.js +84 -85
- package/dist/components/user_content/content_header/ContentHeader.js +68 -69
- package/dist/components/user_content/summary_content_box/SummaryContentBox.js +42 -43
- package/dist/components/user_content/use_delete_content/useDeleteContent.js +16 -16
- package/dist/components/user_content/use_report_content/ReportModal.js +117 -118
- package/dist/components/user_content/use_report_content/useReportContent.js +13 -13
- package/dist/components/util/location/Location.js +1 -1
- package/dist/components/vote/suggestion_vote_box/SuggestionVoteBox.js +37 -37
- package/dist/components/vote/up_down_vote_box/UpDownVoteBox.js +31 -32
- package/dist/components/vote/vote_box/VoteBox.js +165 -167
- package/dist/components/vote/vote_button/VoteButton.js +21 -22
- package/dist/components/vote/vote_provider/VoteProvider.js +17 -17
- package/dist/index.js +85 -29
- package/package.json +7 -2
- package/dist/assets/debate-Bv79XlHp.css +0 -2
- package/dist/node_modules/.pnpm/@formatjs_fast-memoize@2.2.7/node_modules/@formatjs/fast-memoize/lib/index.js +0 -51
- package/dist/node_modules/.pnpm/@formatjs_icu-messageformat-parser@2.11.4/node_modules/@formatjs/icu-messageformat-parser/lib/date-time-pattern-generator.js +0 -28
- package/dist/node_modules/.pnpm/@formatjs_icu-messageformat-parser@2.11.4/node_modules/@formatjs/icu-messageformat-parser/lib/error.js +0 -7
- package/dist/node_modules/.pnpm/@formatjs_icu-messageformat-parser@2.11.4/node_modules/@formatjs/icu-messageformat-parser/lib/index.js +0 -26
- package/dist/node_modules/.pnpm/@formatjs_icu-messageformat-parser@2.11.4/node_modules/@formatjs/icu-messageformat-parser/lib/manipulator.js +0 -1
- package/dist/node_modules/.pnpm/@formatjs_icu-messageformat-parser@2.11.4/node_modules/@formatjs/icu-messageformat-parser/lib/parser.js +0 -499
- package/dist/node_modules/.pnpm/@formatjs_icu-messageformat-parser@2.11.4/node_modules/@formatjs/icu-messageformat-parser/lib/regex.generated.js +0 -4
- package/dist/node_modules/.pnpm/@formatjs_icu-messageformat-parser@2.11.4/node_modules/@formatjs/icu-messageformat-parser/lib/time-data.generated.js +0 -1159
- package/dist/node_modules/.pnpm/@formatjs_icu-messageformat-parser@2.11.4/node_modules/@formatjs/icu-messageformat-parser/lib/types.js +0 -44
- package/dist/node_modules/.pnpm/@formatjs_icu-skeleton-parser@1.8.16/node_modules/@formatjs/icu-skeleton-parser/lib/date-time.js +0 -101
- package/dist/node_modules/.pnpm/@formatjs_icu-skeleton-parser@1.8.16/node_modules/@formatjs/icu-skeleton-parser/lib/number.js +0 -182
- package/dist/node_modules/.pnpm/@formatjs_icu-skeleton-parser@1.8.16/node_modules/@formatjs/icu-skeleton-parser/lib/regex.generated.js +0 -4
- package/dist/node_modules/.pnpm/@formatjs_intl@3.1.8_typescript@5.9.3/node_modules/@formatjs/intl/lib/src/create-intl.js +0 -39
- package/dist/node_modules/.pnpm/@formatjs_intl@3.1.8_typescript@5.9.3/node_modules/@formatjs/intl/lib/src/dateTime.js +0 -80
- package/dist/node_modules/.pnpm/@formatjs_intl@3.1.8_typescript@5.9.3/node_modules/@formatjs/intl/lib/src/displayName.js +0 -22
- package/dist/node_modules/.pnpm/@formatjs_intl@3.1.8_typescript@5.9.3/node_modules/@formatjs/intl/lib/src/error.js +0 -66
- package/dist/node_modules/.pnpm/@formatjs_intl@3.1.8_typescript@5.9.3/node_modules/@formatjs/intl/lib/src/list.js +0 -39
- package/dist/node_modules/.pnpm/@formatjs_intl@3.1.8_typescript@5.9.3/node_modules/@formatjs/intl/lib/src/message.js +0 -59
- package/dist/node_modules/.pnpm/@formatjs_intl@3.1.8_typescript@5.9.3/node_modules/@formatjs/intl/lib/src/number.js +0 -53
- package/dist/node_modules/.pnpm/@formatjs_intl@3.1.8_typescript@5.9.3/node_modules/@formatjs/intl/lib/src/plural.js +0 -18
- package/dist/node_modules/.pnpm/@formatjs_intl@3.1.8_typescript@5.9.3/node_modules/@formatjs/intl/lib/src/relativeTime.js +0 -22
- package/dist/node_modules/.pnpm/@formatjs_intl@3.1.8_typescript@5.9.3/node_modules/@formatjs/intl/lib/src/utils.js +0 -115
- package/dist/node_modules/.pnpm/@kurkle_color@0.3.4/node_modules/@kurkle/color/dist/color.esm.js +0 -470
- package/dist/node_modules/.pnpm/@lexical_clipboard@0.38.2/node_modules/@lexical/clipboard/LexicalClipboard.prod.js +0 -163
- package/dist/node_modules/.pnpm/@lexical_dragon@0.38.2/node_modules/@lexical/dragon/LexicalDragon.prod.js +0 -51
- package/dist/node_modules/.pnpm/@lexical_extension@0.38.2/node_modules/@lexical/extension/LexicalExtension.prod.js +0 -796
- package/dist/node_modules/.pnpm/@lexical_headless@0.38.2/node_modules/@lexical/headless/LexicalHeadless.prod.js +0 -21
- package/dist/node_modules/.pnpm/@lexical_history@0.38.2/node_modules/@lexical/history/LexicalHistory.prod.js +0 -132
- package/dist/node_modules/.pnpm/@lexical_html@0.38.2/node_modules/@lexical/html/LexicalHtml.prod.js +0 -88
- package/dist/node_modules/.pnpm/@lexical_list@0.38.2/node_modules/@lexical/list/LexicalList.prod.js +0 -737
- package/dist/node_modules/.pnpm/@lexical_overflow@0.38.2/node_modules/@lexical/overflow/LexicalOverflow.prod.js +0 -37
- 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 +0 -136
- 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 +0 -53
- 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/LexicalComposerContext.prod.js +0 -20
- 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 +0 -85
- 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/LexicalEditorRefPlugin.prod.js +0 -11
- 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/LexicalErrorBoundary.prod.js +0 -20
- 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/LexicalHistoryPlugin.prod.js +0 -17
- 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 +0 -16
- 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 +0 -20
- 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/LexicalReactProviderExtension.prod.js +0 -5
- 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 +0 -96
- 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/useLexicalEditable.prod.js +0 -23
- package/dist/node_modules/.pnpm/@lexical_rich-text@0.38.2/node_modules/@lexical/rich-text/LexicalRichText.prod.js +0 -418
- package/dist/node_modules/.pnpm/@lexical_selection@0.38.2/node_modules/@lexical/selection/LexicalSelection.prod.js +0 -170
- package/dist/node_modules/.pnpm/@lexical_text@0.38.2/node_modules/@lexical/text/LexicalText.prod.js +0 -33
- package/dist/node_modules/.pnpm/@lexical_utils@0.38.2/node_modules/@lexical/utils/LexicalUtils.prod.js +0 -112
- package/dist/node_modules/.pnpm/@rooks_use-localstorage-state@4.11.2_react@18.3.1/node_modules/@rooks/use-localstorage-state/lib/index.esm.js +0 -50
- package/dist/node_modules/.pnpm/@rooks_use-previous@4.11.2/node_modules/@rooks/use-previous/lib/index.esm.js +0 -10
- package/dist/node_modules/.pnpm/@rooks_use-sessionstorage-state@4.11.2_react@18.3.1/node_modules/@rooks/use-sessionstorage-state/lib/index.esm.js +0 -50
- package/dist/node_modules/.pnpm/are-passive-events-supported@1.1.1/node_modules/are-passive-events-supported/dist/are-passive-events-supported.esm.browser.js +0 -11
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/adapters/adapters.js +0 -41
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/adapters/fetch.js +0 -128
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/adapters/xhr.js +0 -59
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/axios.js +0 -30
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/cancel/CancelToken.js +0 -59
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/cancel/CanceledError.js +0 -9
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/cancel/isCancel.js +0 -6
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/core/Axios.js +0 -131
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/core/AxiosError.js +0 -34
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/core/AxiosHeaders.js +0 -171
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/core/InterceptorManager.js +0 -28
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/core/buildFullPath.js +0 -9
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/core/dispatchRequest.js +0 -23
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/core/mergeConfig.js +0 -67
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/core/settle.js +0 -8
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/core/transformData.js +0 -12
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/defaults/index.js +0 -81
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/defaults/transitional.js +0 -9
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/env/data.js +0 -4
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +0 -32
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/HttpStatusCode.js +0 -77
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/bind.js +0 -8
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/buildURL.js +0 -17
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/combineURLs.js +0 -6
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/composeSignals.js +0 -27
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/cookies.js +0 -26
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/formDataToJSON.js +0 -27
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/isAbsoluteURL.js +0 -6
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/isAxiosError.js +0 -7
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/isURLSameOrigin.js +0 -5
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/parseHeaders.js +0 -28
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/parseProtocol.js +0 -7
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/progressEventReducer.js +0 -30
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/resolveConfig.js +0 -28
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/speedometer.js +0 -16
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/spread.js +0 -8
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/throttle.js +0 -14
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/toFormData.js +0 -67
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/toURLEncodedForm.js +0 -14
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/trackStream.js +0 -51
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/validator.js +0 -47
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/platform/browser/classes/Blob.js +0 -4
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/platform/browser/classes/FormData.js +0 -4
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +0 -5
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/platform/browser/index.js +0 -22
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/platform/common/utils.js +0 -15
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/platform/index.js +0 -9
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/utils.js +0 -235
- package/dist/node_modules/.pnpm/chart.js@4.5.1/node_modules/chart.js/auto/auto.js +0 -5
- package/dist/node_modules/.pnpm/chart.js@4.5.1/node_modules/chart.js/dist/chart.js +0 -6301
- package/dist/node_modules/.pnpm/chart.js@4.5.1/node_modules/chart.js/dist/chunks/helpers.dataset.js +0 -1381
- package/dist/node_modules/.pnpm/chartjs-plugin-datalabels@2.2.0_chart.js@4.5.1/node_modules/chartjs-plugin-datalabels/dist/chartjs-plugin-datalabels.esm.js +0 -354
- package/dist/node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/index.js +0 -32
- package/dist/node_modules/.pnpm/copy-to-clipboard@3.3.3/node_modules/copy-to-clipboard/index.js +0 -43
- package/dist/node_modules/.pnpm/dompurify@3.3.3/node_modules/dompurify/dist/purify.es.js +0 -549
- package/dist/node_modules/.pnpm/flat@5.0.2/node_modules/flat/index.js +0 -59
- package/dist/node_modules/.pnpm/goober@2.1.18_csstype@3.2.3/node_modules/goober/dist/goober.modern.js +0 -75
- package/dist/node_modules/.pnpm/hoist-non-react-statics@3.3.2/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js +0 -68
- package/dist/node_modules/.pnpm/intl-messageformat@10.7.18/node_modules/intl-messageformat/lib/src/core.js +0 -154
- package/dist/node_modules/.pnpm/intl-messageformat@10.7.18/node_modules/intl-messageformat/lib/src/error.js +0 -36
- package/dist/node_modules/.pnpm/intl-messageformat@10.7.18/node_modules/intl-messageformat/lib/src/formatters.js +0 -107
- package/dist/node_modules/.pnpm/lexical@0.38.2/node_modules/lexical/Lexical.prod.js +0 -5093
- package/dist/node_modules/.pnpm/path-to-regexp@6.3.0/node_modules/path-to-regexp/dist.es2015/index.js +0 -198
- package/dist/node_modules/.pnpm/react-chartjs-2@5.3.1_chart.js@4.5.1_react@18.3.1/node_modules/react-chartjs-2/dist/index.js +0 -76
- package/dist/node_modules/.pnpm/react-copy-to-clipboard@5.1.1_react@18.3.1/node_modules/react-copy-to-clipboard/lib/Component.js +0 -160
- package/dist/node_modules/.pnpm/react-copy-to-clipboard@5.1.1_react@18.3.1/node_modules/react-copy-to-clipboard/lib/index.js +0 -10
- package/dist/node_modules/.pnpm/react-error-boundary@6.1.1_react@18.3.1/node_modules/react-error-boundary/dist/react-error-boundary.js +0 -58
- package/dist/node_modules/.pnpm/react-hot-toast@2.6.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/react-hot-toast/dist/index.js +0 -494
- package/dist/node_modules/.pnpm/react-intl@7.1.14_react@18.3.1_typescript@5.9.3/node_modules/react-intl/lib/index.js +0 -13
- package/dist/node_modules/.pnpm/react-intl@7.1.14_react@18.3.1_typescript@5.9.3/node_modules/react-intl/lib/src/components/createFormattedComponent.js +0 -35
- package/dist/node_modules/.pnpm/react-intl@7.1.14_react@18.3.1_typescript@5.9.3/node_modules/react-intl/lib/src/components/createIntl.js +0 -39
- package/dist/node_modules/.pnpm/react-intl@7.1.14_react@18.3.1_typescript@5.9.3/node_modules/react-intl/lib/src/components/injectIntl.js +0 -9
- package/dist/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 +0 -22
- package/dist/node_modules/.pnpm/react-intl@7.1.14_react@18.3.1_typescript@5.9.3/node_modules/react-intl/lib/src/components/provider.js +0 -45
- package/dist/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 +0 -10
- package/dist/node_modules/.pnpm/react-intl@7.1.14_react@18.3.1_typescript@5.9.3/node_modules/react-intl/lib/src/utils.js +0 -33
- package/dist/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.development.js +0 -82
- package/dist/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.production.min.js +0 -62
- package/dist/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.js +0 -10
- package/dist/node_modules/.pnpm/react-loading-skeleton@3.5.0_react@18.3.1/node_modules/react-loading-skeleton/dist/index.js +0 -49
- package/dist/node_modules/.pnpm/react-modern-drawer@1.4.0_react@18.3.1/node_modules/react-modern-drawer/dist/index.modern.js +0 -84
- package/dist/node_modules/.pnpm/react-oauth-popup@1.0.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/react-oauth-popup/dist/index.js +0 -106
- package/dist/node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react-jsx-runtime.development.js +0 -453
- package/dist/node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react-jsx-runtime.production.min.js +0 -27
- package/dist/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js +0 -10
- package/dist/node_modules/.pnpm/toggle-selection@1.0.6/node_modules/toggle-selection/index.js +0 -26
- package/dist/node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.js +0 -34
- package/dist/node_modules/.pnpm/use-debounce@10.1.1_react@18.3.1/node_modules/use-debounce/dist/index.module.js +0 -70
- package/dist/node_modules/.pnpm/use-isomorphic-layout-effect@1.2.1_@types_react@19.2.14_react@18.3.1/node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.browser.esm.js +0 -5
- package/dist/node_modules/.pnpm/use-latest@1.3.0_@types_react@19.2.14_react@18.3.1/node_modules/use-latest/dist/use-latest.esm.js +0 -11
- package/dist/node_modules/.pnpm/use-onclickoutside@0.4.1_@types_react@19.2.14_react@18.3.1/node_modules/use-onclickoutside/dist/use-onclickoutside.browser.esm.js +0 -26
- package/dist/node_modules/.pnpm/webfontloader@1.6.28/node_modules/webfontloader/webfontloader.js +0 -482
|
@@ -1,116 +1,114 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import s from "
|
|
9
|
-
import c from "
|
|
10
|
-
import {
|
|
11
|
-
import
|
|
12
|
-
import {
|
|
13
|
-
import f from "./ConsultationBox.module.js";
|
|
14
|
-
import { useMemo as p } from "react";
|
|
1
|
+
import { Link as e } from "../../action/link/Link.js";
|
|
2
|
+
import { Icon as t } from "../../icons/icon/Icon.js";
|
|
3
|
+
import { useRoutes as n } from "../../data/config_provider/useRoutes.js";
|
|
4
|
+
import { useResponsive as r } from "../../hooks/use_responsive/useResponsive.js";
|
|
5
|
+
import { TranslatedContent as i } from "../../translation/translated_content/TranslatedContent.js";
|
|
6
|
+
import { useRelativeTime as a } from "../../hooks/use_relative_time/useRelativeTime.js";
|
|
7
|
+
import { ProgressBar as o } from "../../progress/progress_bar/ProgressBar.js";
|
|
8
|
+
import s from "./ConsultationBox.module.js";
|
|
9
|
+
import { useMemo as c } from "react";
|
|
10
|
+
import { Fragment as l, jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
11
|
+
import f from "classnames";
|
|
12
|
+
import { FormattedMessage as p, useIntl as m } from "react-intl";
|
|
15
13
|
//#region src/components/consultation/consultation_box/ConsultationBox.jsx
|
|
16
|
-
var
|
|
17
|
-
let
|
|
14
|
+
var h = ({ consultation: h }) => {
|
|
15
|
+
let g = m(), _ = c(() => /* @__PURE__ */ new Date()), v = new Date(h.ends_at), y = a(v.getTime()), b = n(), { isMobile: x } = r(), S = () => v < _ ? /* @__PURE__ */ u("span", { children: /* @__PURE__ */ u(p, {
|
|
18
16
|
id: "consultation.consultation_box.consultation_ended",
|
|
19
17
|
defaultMessage: "Consultation ended"
|
|
20
|
-
}) }) : /* @__PURE__ */ (
|
|
21
|
-
/* @__PURE__ */ (
|
|
18
|
+
}) }) : /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ d("span", { children: [
|
|
19
|
+
/* @__PURE__ */ u(p, {
|
|
22
20
|
id: "consultation.consultation_box.in_progress",
|
|
23
21
|
defaultMessage: "Consultation in progress"
|
|
24
22
|
}),
|
|
25
23
|
" ",
|
|
26
24
|
"-",
|
|
27
25
|
" "
|
|
28
|
-
] }), /* @__PURE__ */ (
|
|
29
|
-
return /* @__PURE__ */ (
|
|
30
|
-
className:
|
|
26
|
+
] }), /* @__PURE__ */ u("span", { children: y })] });
|
|
27
|
+
return /* @__PURE__ */ u(l, { children: /* @__PURE__ */ d("div", {
|
|
28
|
+
className: s.container,
|
|
31
29
|
children: [
|
|
32
|
-
/* @__PURE__ */ (
|
|
33
|
-
to:
|
|
34
|
-
children: /* @__PURE__ */ (
|
|
30
|
+
/* @__PURE__ */ u(e, {
|
|
31
|
+
to: b.consultationShowLocation.toUrl({ consultationSlug: h.slug }),
|
|
32
|
+
children: /* @__PURE__ */ u("img", {
|
|
35
33
|
loading: "lazy",
|
|
36
|
-
className:
|
|
37
|
-
src:
|
|
38
|
-
alt:
|
|
34
|
+
className: s.consultationImage,
|
|
35
|
+
src: h.image_url,
|
|
36
|
+
alt: g.formatMessage({
|
|
39
37
|
id: "consultation.consultation_box.alt",
|
|
40
38
|
defaultMessage: "Presentation image for the consultation"
|
|
41
39
|
})
|
|
42
40
|
})
|
|
43
41
|
}),
|
|
44
|
-
|
|
45
|
-
className: (
|
|
46
|
-
children:
|
|
42
|
+
h.ends_at && /* @__PURE__ */ u("div", {
|
|
43
|
+
className: f(s.consultationTime, { [s.ended]: v < _ }),
|
|
44
|
+
children: S()
|
|
47
45
|
}),
|
|
48
|
-
/* @__PURE__ */ (
|
|
49
|
-
to:
|
|
50
|
-
children: /* @__PURE__ */ (
|
|
51
|
-
className:
|
|
52
|
-
children: /* @__PURE__ */ (
|
|
53
|
-
originalContent:
|
|
54
|
-
originalLanguage:
|
|
46
|
+
/* @__PURE__ */ u(e, {
|
|
47
|
+
to: b.consultationShowLocation.toUrl({ consultationSlug: h.slug }),
|
|
48
|
+
children: /* @__PURE__ */ u("div", {
|
|
49
|
+
className: s.consultationTitle,
|
|
50
|
+
children: /* @__PURE__ */ u(i, {
|
|
51
|
+
originalContent: h.title,
|
|
52
|
+
originalLanguage: h.language,
|
|
55
53
|
targetField: "title",
|
|
56
|
-
translations:
|
|
54
|
+
translations: h.translation_entries
|
|
57
55
|
})
|
|
58
56
|
})
|
|
59
57
|
}),
|
|
60
|
-
/* @__PURE__ */ (
|
|
61
|
-
to:
|
|
62
|
-
children: /* @__PURE__ */ (
|
|
63
|
-
className:
|
|
64
|
-
children: [
|
|
58
|
+
/* @__PURE__ */ u(e, {
|
|
59
|
+
to: b.consultationShowLocation.toUrl({ consultationSlug: h.slug }),
|
|
60
|
+
children: /* @__PURE__ */ d("div", {
|
|
61
|
+
className: s.consultationButtonContainer,
|
|
62
|
+
children: [h.ends_at && v < _ ? /* @__PURE__ */ u("span", { children: /* @__PURE__ */ u(p, {
|
|
65
63
|
id: "consultation.consultation_box.action_show_result",
|
|
66
64
|
defaultMessage: "Show result"
|
|
67
|
-
}) }) : /* @__PURE__ */ (
|
|
65
|
+
}) }) : /* @__PURE__ */ u("span", { children: /* @__PURE__ */ u(p, {
|
|
68
66
|
id: "consultation.consultation_box.action_consultation_participate",
|
|
69
67
|
defaultMessage: "Participate"
|
|
70
|
-
}) }), /* @__PURE__ */ (
|
|
68
|
+
}) }), /* @__PURE__ */ u(t, {
|
|
71
69
|
name: "arrow",
|
|
72
70
|
width: 18,
|
|
73
71
|
height: 18,
|
|
74
|
-
className:
|
|
72
|
+
className: s.arrowIcon
|
|
75
73
|
})]
|
|
76
74
|
})
|
|
77
75
|
}),
|
|
78
|
-
/* @__PURE__ */ (
|
|
79
|
-
className:
|
|
80
|
-
children: [/* @__PURE__ */ (
|
|
81
|
-
className:
|
|
82
|
-
children: [/* @__PURE__ */ (
|
|
83
|
-
className: (
|
|
84
|
-
children: [/* @__PURE__ */ (
|
|
85
|
-
className:
|
|
86
|
-
children:
|
|
87
|
-
}), /* @__PURE__ */ (
|
|
76
|
+
/* @__PURE__ */ d("div", {
|
|
77
|
+
className: s.consultationInformations,
|
|
78
|
+
children: [/* @__PURE__ */ d("div", {
|
|
79
|
+
className: s.consultationLeft,
|
|
80
|
+
children: [/* @__PURE__ */ d("div", {
|
|
81
|
+
className: f(s.consultationGroupInformation, s.consultationGroupRight),
|
|
82
|
+
children: [/* @__PURE__ */ u("span", {
|
|
83
|
+
className: s.consultationTextInformation,
|
|
84
|
+
children: h.proposals_count
|
|
85
|
+
}), /* @__PURE__ */ u(t, {
|
|
88
86
|
name: "chat",
|
|
89
87
|
width: 15,
|
|
90
88
|
height: 20
|
|
91
89
|
})]
|
|
92
|
-
}), /* @__PURE__ */ (
|
|
93
|
-
className:
|
|
94
|
-
children: [/* @__PURE__ */ (
|
|
95
|
-
className:
|
|
96
|
-
children:
|
|
97
|
-
}), /* @__PURE__ */ (
|
|
90
|
+
}), /* @__PURE__ */ d("div", {
|
|
91
|
+
className: s.consultationGroupInformation,
|
|
92
|
+
children: [/* @__PURE__ */ u("span", {
|
|
93
|
+
className: s.consultationTextInformation,
|
|
94
|
+
children: h.total_participants
|
|
95
|
+
}), /* @__PURE__ */ u(t, {
|
|
98
96
|
name: "user",
|
|
99
97
|
width: 15,
|
|
100
98
|
height: 20
|
|
101
99
|
})]
|
|
102
100
|
})]
|
|
103
|
-
}),
|
|
104
|
-
className: (
|
|
105
|
-
children:
|
|
101
|
+
}), h.vote_goal > 0 && /* @__PURE__ */ u("div", {
|
|
102
|
+
className: f(s.consultationGroupInformation, s.progressBarContainer),
|
|
103
|
+
children: v < _ ? /* @__PURE__ */ u(p, {
|
|
106
104
|
id: "consultation.consultation_box.stats_votes",
|
|
107
|
-
values: { votesCount:
|
|
105
|
+
values: { votesCount: h.total_votes },
|
|
108
106
|
defaultMessage: "{votesCount} votes"
|
|
109
|
-
}) : /* @__PURE__ */ (
|
|
110
|
-
className:
|
|
111
|
-
innerClassName:
|
|
112
|
-
progress:
|
|
113
|
-
goal:
|
|
107
|
+
}) : /* @__PURE__ */ u(o, {
|
|
108
|
+
className: s.progress,
|
|
109
|
+
innerClassName: s.bar,
|
|
110
|
+
progress: h.total_votes,
|
|
111
|
+
goal: h.vote_goal,
|
|
114
112
|
showProgressSubtitle: !0,
|
|
115
113
|
progressUnit: "votes"
|
|
116
114
|
})
|
|
@@ -120,4 +118,4 @@ var m = /* @__PURE__ */ e(i()), h = t(), g = ({ consultation: e }) => {
|
|
|
120
118
|
}) });
|
|
121
119
|
};
|
|
122
120
|
//#endregion
|
|
123
|
-
export {
|
|
121
|
+
export { h as ConsultationBox };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { createContext as e } from "react";
|
|
2
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
3
3
|
//#region src/components/data/config_provider/ConfigProvider.jsx
|
|
4
|
-
var n = e(), r =
|
|
4
|
+
var n = e(), r = ({ config: e, routes: r, children: i }) => /* @__PURE__ */ t(n.Provider, {
|
|
5
5
|
value: {
|
|
6
6
|
config: e,
|
|
7
|
-
routes:
|
|
7
|
+
routes: r
|
|
8
8
|
},
|
|
9
9
|
children: i
|
|
10
10
|
});
|
|
11
11
|
//#endregion
|
|
12
|
-
export {
|
|
12
|
+
export { n as ConfigContext, r as ConfigProvider };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ConfigContext as t } from "./ConfigProvider.js";
|
|
1
|
+
import { ConfigContext as e } from "./ConfigProvider.js";
|
|
3
2
|
import "react";
|
|
3
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
4
4
|
//#region src/components/data/config_provider/withConfig.jsx
|
|
5
|
-
var n =
|
|
5
|
+
var n = (n) => (r) => /* @__PURE__ */ t(e.Consumer, { children: (e) => /* @__PURE__ */ t(n, {
|
|
6
6
|
...r,
|
|
7
|
-
...
|
|
7
|
+
...e
|
|
8
8
|
}) });
|
|
9
9
|
//#endregion
|
|
10
|
-
export {
|
|
10
|
+
export { n as withConfig };
|
|
@@ -1,127 +1,125 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import c from "
|
|
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 { useTranslatedContent as u } from "../../translation/translated_content/useTranslatedContent.js";
|
|
12
|
-
import { Tooltip as d } from "../../dialog/tooltip/Tooltip.js";
|
|
13
|
-
import { Avatar as f } from "../../user/avatar/Avatar.js";
|
|
14
|
-
import p from "./DebateBox.module.js";
|
|
1
|
+
import { Link as e } from "../../action/link/Link.js";
|
|
2
|
+
import { Icon as t } from "../../icons/icon/Icon.js";
|
|
3
|
+
import { useConfig as n } from "../../data/config_provider/useConfig.js";
|
|
4
|
+
import { useRoutes as r } from "../../data/config_provider/useRoutes.js";
|
|
5
|
+
import { useResponsive as i } from "../../hooks/use_responsive/useResponsive.js";
|
|
6
|
+
import { useTranslatedContent as a } from "../../translation/translated_content/useTranslatedContent.js";
|
|
7
|
+
import { Tooltip as o } from "../../dialog/tooltip/Tooltip.js";
|
|
8
|
+
import { Avatar as s } from "../../user/avatar/Avatar.js";
|
|
9
|
+
import c from "./DebateBox.module.js";
|
|
15
10
|
import "react";
|
|
11
|
+
import { Fragment as l, jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
12
|
+
import f from "classnames";
|
|
13
|
+
import { FormattedMessage as p, useIntl as m } from "react-intl";
|
|
16
14
|
//#region src/components/debate/debate_box/DebateBox.jsx
|
|
17
|
-
var
|
|
18
|
-
let
|
|
19
|
-
return /* @__PURE__ */ (
|
|
20
|
-
className:
|
|
21
|
-
children: [/* @__PURE__ */ (
|
|
22
|
-
className:
|
|
23
|
-
children: [/* @__PURE__ */ (
|
|
24
|
-
className:
|
|
25
|
-
children: [/* @__PURE__ */ (
|
|
26
|
-
to:
|
|
27
|
-
className:
|
|
28
|
-
children: /* @__PURE__ */ (
|
|
15
|
+
var h = ({ debate: h }) => {
|
|
16
|
+
let g = n(), _ = r(), v = m(), { isMobile: y } = i(), b = h.votes_count?.total || Object.values(h.votes_count).reduce((e, t) => e + Number.parseFloat(t), 0) || 0, x = h.group_context?.positions.reduce((e, t) => Number.parseInt(h.votes_count[t.id]) > Number.parseInt(h.votes_count[e.id]) ? t : e), S = a(h.name, h.language, "name", h.translation_entries), C = a(x.name, x.language, "name", x.translation_entries), w = (e, t) => t == 0 || e == 0 ? 0 : Math.round(e / t * 100);
|
|
17
|
+
return /* @__PURE__ */ d("div", {
|
|
18
|
+
className: c.debateBox,
|
|
19
|
+
children: [/* @__PURE__ */ d("div", {
|
|
20
|
+
className: c.debateBoxHeader,
|
|
21
|
+
children: [/* @__PURE__ */ d("div", {
|
|
22
|
+
className: c.debateBoxImageBox,
|
|
23
|
+
children: [/* @__PURE__ */ u(e, {
|
|
24
|
+
to: _.debateShowLocation.toUrl({ debateSlug: h.slug }),
|
|
25
|
+
className: c.imageLink,
|
|
26
|
+
children: /* @__PURE__ */ u("img", {
|
|
29
27
|
"data-tid": "view_debate_image",
|
|
30
28
|
loading: "lazy",
|
|
31
|
-
className:
|
|
32
|
-
src:
|
|
29
|
+
className: c.debateBoxImage,
|
|
30
|
+
src: h.banner_image_url,
|
|
33
31
|
height: 200,
|
|
34
|
-
alt:
|
|
32
|
+
alt: h?.image_alt ? h.image_alt : v.formatMessage({
|
|
35
33
|
id: "debate.debate_box.alt_debate_image",
|
|
36
34
|
defaultMessage: "Debate image"
|
|
37
35
|
}),
|
|
38
|
-
title:
|
|
36
|
+
title: h?.image_alt ? h.image_alt : v.formatMessage({
|
|
39
37
|
id: "debate.debate_box.alt_debate_image",
|
|
40
38
|
defaultMessage: "Debate image"
|
|
41
39
|
})
|
|
42
40
|
})
|
|
43
|
-
}),
|
|
44
|
-
className:
|
|
45
|
-
children: /* @__PURE__ */ (
|
|
41
|
+
}), h.is_active === !1 && /* @__PURE__ */ u("div", {
|
|
42
|
+
className: c.inactiveDebate,
|
|
43
|
+
children: /* @__PURE__ */ u(p, {
|
|
46
44
|
id: "debate.debate_box.debate_is_inactive",
|
|
47
45
|
defaultMessage: "Debate is ended"
|
|
48
46
|
})
|
|
49
47
|
})]
|
|
50
|
-
}),
|
|
51
|
-
className:
|
|
52
|
-
children: [/* @__PURE__ */ (
|
|
48
|
+
}), h.group_context.author && h.group_context.author.is_admin === !1 && /* @__PURE__ */ d("div", {
|
|
49
|
+
className: c.debateSuggestion,
|
|
50
|
+
children: [/* @__PURE__ */ u(t, {
|
|
53
51
|
name: "suggestion",
|
|
54
52
|
width: 15,
|
|
55
53
|
height: 15
|
|
56
|
-
}), /* @__PURE__ */ (
|
|
57
|
-
className:
|
|
58
|
-
children: [/* @__PURE__ */ (
|
|
54
|
+
}), /* @__PURE__ */ d("span", {
|
|
55
|
+
className: c.authorSuggestion,
|
|
56
|
+
children: [/* @__PURE__ */ u(p, {
|
|
59
57
|
id: "debate.debate_box.suggestion_author_short",
|
|
60
58
|
defaultMessage: "Suggested by"
|
|
61
|
-
}), /* @__PURE__ */ (
|
|
62
|
-
className:
|
|
63
|
-
children:
|
|
59
|
+
}), /* @__PURE__ */ u("span", {
|
|
60
|
+
className: c.authorName,
|
|
61
|
+
children: h.group_context.author.full_name
|
|
64
62
|
})]
|
|
65
63
|
})]
|
|
66
64
|
})]
|
|
67
|
-
}), /* @__PURE__ */ (
|
|
68
|
-
className:
|
|
69
|
-
children: [/* @__PURE__ */ (
|
|
70
|
-
className:
|
|
71
|
-
title:
|
|
72
|
-
children: [
|
|
73
|
-
className:
|
|
74
|
-
children: [/* @__PURE__ */ (
|
|
65
|
+
}), /* @__PURE__ */ d("div", {
|
|
66
|
+
className: c.debateBoxBody,
|
|
67
|
+
children: [/* @__PURE__ */ d("div", {
|
|
68
|
+
className: c.debateBoxTitle,
|
|
69
|
+
title: S.translatedContent,
|
|
70
|
+
children: [g?.actions?.allowDebateBranding === !0 && h.sub_application?.logo && /* @__PURE__ */ d("span", {
|
|
71
|
+
className: c.subApplication,
|
|
72
|
+
children: [/* @__PURE__ */ u("img", {
|
|
75
73
|
"data-tid": "view_debate_image",
|
|
76
74
|
loading: "lazy",
|
|
77
|
-
src:
|
|
78
|
-
alt: `Logo ${
|
|
79
|
-
}),
|
|
80
|
-
}), /* @__PURE__ */ (
|
|
81
|
-
to:
|
|
82
|
-
children: /* @__PURE__ */ (
|
|
75
|
+
src: h.sub_application.logo,
|
|
76
|
+
alt: `Logo ${g.display_name}`
|
|
77
|
+
}), h.sub_application.name]
|
|
78
|
+
}), /* @__PURE__ */ u(e, {
|
|
79
|
+
to: _.debateShowLocation.toUrl({ debateSlug: h.slug }),
|
|
80
|
+
children: /* @__PURE__ */ u(l, { children: y ? /* @__PURE__ */ u("div", {
|
|
83
81
|
"data-tid": "view_debate_title",
|
|
84
|
-
className: (
|
|
85
|
-
children:
|
|
86
|
-
}) : /* @__PURE__ */ (
|
|
82
|
+
className: f(c.debateTitle, c.debateTitleMobile),
|
|
83
|
+
children: S.translatedContent
|
|
84
|
+
}) : /* @__PURE__ */ u("div", {
|
|
87
85
|
"data-tid": "view_debate_title",
|
|
88
|
-
className:
|
|
89
|
-
children:
|
|
86
|
+
className: c.debateTitle,
|
|
87
|
+
children: S.translatedContent
|
|
90
88
|
}) })
|
|
91
89
|
})]
|
|
92
|
-
}), /* @__PURE__ */ (
|
|
93
|
-
className:
|
|
94
|
-
children: [/* @__PURE__ */ (
|
|
95
|
-
className:
|
|
96
|
-
children:
|
|
97
|
-
className:
|
|
98
|
-
children:
|
|
90
|
+
}), /* @__PURE__ */ d("div", {
|
|
91
|
+
className: c.debateBoxFooter,
|
|
92
|
+
children: [/* @__PURE__ */ u("div", {
|
|
93
|
+
className: c.debateParticipantsBox,
|
|
94
|
+
children: h.participants.length === 0 ? /* @__PURE__ */ u("span", {
|
|
95
|
+
className: c.debateParticipantsEmpty,
|
|
96
|
+
children: v.formatMessage({
|
|
99
97
|
id: "debate.debate_box.fallback_no_participants",
|
|
100
98
|
defaultMessage: "No participants"
|
|
101
99
|
})
|
|
102
|
-
}) : /* @__PURE__ */ (
|
|
103
|
-
className:
|
|
104
|
-
children: /* @__PURE__ */ (
|
|
105
|
-
to:
|
|
106
|
-
children: /* @__PURE__ */ (
|
|
107
|
-
avatarUrl:
|
|
108
|
-
userName:
|
|
109
|
-
isOnline: new Date(
|
|
100
|
+
}) : /* @__PURE__ */ d(l, { children: [h.participants.map((t, n) => /* @__PURE__ */ u("div", {
|
|
101
|
+
className: c.debateParticipantItem,
|
|
102
|
+
children: /* @__PURE__ */ u(e, {
|
|
103
|
+
to: _.userShowLocation.toUrl({ userSlug: t.hash_id }),
|
|
104
|
+
children: /* @__PURE__ */ u(s, {
|
|
105
|
+
avatarUrl: t.image_url,
|
|
106
|
+
userName: t.full_name,
|
|
107
|
+
isOnline: new Date(t.last_activity) > Date.now(),
|
|
110
108
|
showTooltip: !0
|
|
111
109
|
})
|
|
112
110
|
})
|
|
113
|
-
},
|
|
114
|
-
className:
|
|
115
|
-
children: /* @__PURE__ */ (
|
|
116
|
-
text:
|
|
111
|
+
}, n)), h.participants_count > 3 && /* @__PURE__ */ u("div", {
|
|
112
|
+
className: c.debateParticipantItem,
|
|
113
|
+
children: /* @__PURE__ */ u(o, {
|
|
114
|
+
text: v.formatMessage({
|
|
117
115
|
id: "debate.debate_box.participants_count",
|
|
118
116
|
defaultMessage: "Number of debaters"
|
|
119
117
|
}),
|
|
120
|
-
children: /* @__PURE__ */ (
|
|
121
|
-
to:
|
|
122
|
-
children: /* @__PURE__ */ (
|
|
123
|
-
className:
|
|
124
|
-
children: ["+",
|
|
118
|
+
children: /* @__PURE__ */ u(e, {
|
|
119
|
+
to: _.debateShowLocation.toUrl({ debateSlug: h.slug }),
|
|
120
|
+
children: /* @__PURE__ */ d("div", {
|
|
121
|
+
className: c.participantsCountBox,
|
|
122
|
+
children: ["+", v.formatNumber(h.participants_count - 3, {
|
|
125
123
|
notation: "compact",
|
|
126
124
|
maximumFractionDigits: 1,
|
|
127
125
|
roundingMode: "floor"
|
|
@@ -130,21 +128,21 @@ var m = /* @__PURE__ */ e(i()), h = t(), g = ({ debate: e }) => {
|
|
|
130
128
|
})
|
|
131
129
|
})
|
|
132
130
|
})] })
|
|
133
|
-
}),
|
|
134
|
-
className:
|
|
135
|
-
children: /* @__PURE__ */ (
|
|
136
|
-
className:
|
|
137
|
-
title:
|
|
138
|
-
children:
|
|
139
|
-
className:
|
|
131
|
+
}), g.modules.votes === !1 ? null : /* @__PURE__ */ u("div", {
|
|
132
|
+
className: c.debateBoxNumbers,
|
|
133
|
+
children: /* @__PURE__ */ u("div", {
|
|
134
|
+
className: c.debateBoxNumbersText,
|
|
135
|
+
title: x ? `${w(h.votes_count[x.id] || 0, b)} % ${C.translatedContent}` : void 0,
|
|
136
|
+
children: x && /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ d("span", {
|
|
137
|
+
className: c.debateBoxPercentage,
|
|
140
138
|
children: [
|
|
141
|
-
|
|
139
|
+
w(h.votes_count[x.id] || 0, b),
|
|
142
140
|
"\xA0",
|
|
143
141
|
"%"
|
|
144
142
|
]
|
|
145
|
-
}), /* @__PURE__ */ (
|
|
146
|
-
className:
|
|
147
|
-
children:
|
|
143
|
+
}), /* @__PURE__ */ u("span", {
|
|
144
|
+
className: c.debateBoxPositionName,
|
|
145
|
+
children: C.translatedContent
|
|
148
146
|
})] })
|
|
149
147
|
})
|
|
150
148
|
})]
|
|
@@ -153,4 +151,4 @@ var m = /* @__PURE__ */ e(i()), h = t(), g = ({ debate: e }) => {
|
|
|
153
151
|
});
|
|
154
152
|
};
|
|
155
153
|
//#endregion
|
|
156
|
-
export {
|
|
154
|
+
export { h as DebateBox };
|
|
@@ -1,30 +1,29 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import { Icon as n } from "../../icons/icon/Icon.js";
|
|
4
|
-
import { require_classnames as r } from "../../../node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/index.js";
|
|
5
|
-
import i from "./AnnouncementDialog.module.js";
|
|
1
|
+
import { Icon as e } from "../../icons/icon/Icon.js";
|
|
2
|
+
import t from "./AnnouncementDialog.module.js";
|
|
6
3
|
import "react";
|
|
4
|
+
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
5
|
+
import i from "classnames";
|
|
7
6
|
//#region src/components/dialog/announcement_dialog/AnnouncementDialog.jsx
|
|
8
|
-
var a =
|
|
9
|
-
className: (
|
|
7
|
+
var a = ({ message: a, icon: o, fullWidth: s = !1, className: c, iconClassName: l, children: u }) => /* @__PURE__ */ r("div", {
|
|
8
|
+
className: i(t.container, c, { [t.fullWidth]: s }),
|
|
10
9
|
role: "status",
|
|
11
|
-
children: [/* @__PURE__ */ (
|
|
12
|
-
className: (
|
|
13
|
-
children:
|
|
10
|
+
children: [/* @__PURE__ */ n("div", {
|
|
11
|
+
className: i(t.icon, l),
|
|
12
|
+
children: o ? /* @__PURE__ */ n(o, {
|
|
14
13
|
height: 24,
|
|
15
14
|
width: 24,
|
|
16
15
|
"data-testid": "custom-icon"
|
|
17
|
-
}) : /* @__PURE__ */ (
|
|
16
|
+
}) : /* @__PURE__ */ n(e, {
|
|
18
17
|
name: "announcement",
|
|
19
18
|
height: 24,
|
|
20
19
|
width: 24,
|
|
21
20
|
"aria-hidden": "true",
|
|
22
21
|
"data-testid": "announcement-icon"
|
|
23
22
|
})
|
|
24
|
-
}), /* @__PURE__ */ (
|
|
25
|
-
className:
|
|
26
|
-
children:
|
|
23
|
+
}), /* @__PURE__ */ n("div", {
|
|
24
|
+
className: t.content,
|
|
25
|
+
children: a || u
|
|
27
26
|
})]
|
|
28
27
|
});
|
|
29
28
|
//#endregion
|
|
30
|
-
export {
|
|
29
|
+
export { a as AnnouncementDialog };
|
|
@@ -1,38 +1,37 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import { useModal as i } from "../modal/useModal.js";
|
|
6
|
-
import { Modal as a } from "../modal/Modal.js";
|
|
7
|
-
import o from "./ConfirmModal.module.js";
|
|
1
|
+
import { Button as e } from "../../action/button/Button.js";
|
|
2
|
+
import { useModal as t } from "../modal/useModal.js";
|
|
3
|
+
import { Modal as n } from "../modal/Modal.js";
|
|
4
|
+
import r from "./ConfirmModal.module.js";
|
|
8
5
|
import "react";
|
|
6
|
+
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
7
|
+
import o from "classnames";
|
|
9
8
|
//#region src/components/dialog/confirm_modal/ConfirmModal.jsx
|
|
10
|
-
var s =
|
|
11
|
-
let { hideModal:
|
|
12
|
-
|
|
13
|
-
},
|
|
14
|
-
|
|
9
|
+
var s = ({ title: s, question: c, confirmLabel: l, cancelLabel: u, onConfirmCallback: d, onCancelCallback: f, confirmButtonClass: p, cancelButtonClass: m }) => {
|
|
10
|
+
let { hideModal: h } = t(), g = () => {
|
|
11
|
+
h(), d && d();
|
|
12
|
+
}, _ = () => {
|
|
13
|
+
h(), f && f();
|
|
15
14
|
};
|
|
16
|
-
return /* @__PURE__ */ (
|
|
17
|
-
title:
|
|
18
|
-
children: /* @__PURE__ */ (
|
|
19
|
-
className:
|
|
20
|
-
children:
|
|
21
|
-
}), /* @__PURE__ */ (
|
|
22
|
-
className:
|
|
23
|
-
children: [/* @__PURE__ */ (
|
|
15
|
+
return /* @__PURE__ */ i(n, {
|
|
16
|
+
title: s,
|
|
17
|
+
children: /* @__PURE__ */ a("div", { children: [/* @__PURE__ */ i("div", {
|
|
18
|
+
className: r.modalContent,
|
|
19
|
+
children: c
|
|
20
|
+
}), /* @__PURE__ */ a("div", {
|
|
21
|
+
className: r.modalActions,
|
|
22
|
+
children: [/* @__PURE__ */ i(e, {
|
|
24
23
|
type: "button",
|
|
25
|
-
className: (
|
|
26
|
-
handleClick: () => h(),
|
|
27
|
-
children: n
|
|
28
|
-
}), /* @__PURE__ */ (0, c.jsx)(r, {
|
|
29
|
-
type: "button",
|
|
30
|
-
className: (0, s.default)(o.modalActionRight, p),
|
|
24
|
+
className: o(r.modalActionLeft, p),
|
|
31
25
|
handleClick: () => g(),
|
|
32
26
|
children: l
|
|
27
|
+
}), /* @__PURE__ */ i(e, {
|
|
28
|
+
type: "button",
|
|
29
|
+
className: o(r.modalActionRight, m),
|
|
30
|
+
handleClick: () => _(),
|
|
31
|
+
children: u
|
|
33
32
|
})]
|
|
34
33
|
})] })
|
|
35
34
|
});
|
|
36
35
|
};
|
|
37
36
|
//#endregion
|
|
38
|
-
export {
|
|
37
|
+
export { s as ConfirmModal };
|