@logora/debate 0.4.42 → 0.4.43
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/dist/assets/components/action/back_link/BackLink.module-B9Ok2t4H.css +1 -0
- package/dist/assets/components/action/button/Button.module-D7nbgOES.css +1 -0
- package/dist/assets/components/action/icon_text_link/IconTextLink.module-CZKufK9Y.css +1 -0
- package/dist/assets/components/argument/argument/Argument.module-CC40BY1L.css +1 -0
- package/dist/assets/components/argument/argument/ReplyFooter.module-CoC9dY8T.css +1 -0
- package/dist/assets/components/auth/sso_form/SSOForm.module-DOw9cmCF.css +1 -0
- package/dist/assets/components/consultation/consultation_box/ConsultationBox.module-97r47y_e.css +1 -0
- package/dist/assets/components/debate/debate_box/DebateBox.module-emnqIGNF.css +1 -0
- package/dist/assets/components/dialog/dialog_box/DialogBox.module-ZoM8d2Ly.css +1 -0
- package/dist/assets/components/dialog/dropdown/Dropdown.module-BmT3rAwz.css +1 -0
- package/dist/assets/components/dialog/modal/Modal.module-Dt4SWx6U.css +1 -0
- package/dist/assets/components/dialog/toast/Toast.module-CW6j5xe7.css +1 -0
- package/dist/assets/components/dialog/tooltip/Tooltip.module-bQbmPiMf.css +1 -0
- package/dist/assets/components/embed/embed_header/EmbedHeader.module-C8RPiVBp.css +1 -0
- package/dist/assets/components/follow/follow_button/FollowButton.module-BjwLVTeb.css +1 -0
- package/dist/assets/components/gamification/badge_box/BadgeBox.module-DWqqtICw.css +1 -0
- package/dist/assets/components/gamification/point_box/{PointBox.module-BlHdQyht.css → PointBox.module-Dj6cCgSB.css} +1 -1
- package/dist/assets/components/information/information_box/InformationBox.module-DJLT957y.css +1 -0
- package/dist/assets/components/input/text_editor/TextEditor.module-KPtqT1Y6.css +1 -0
- package/dist/assets/components/input/text_editor/plugins/ToolbarPlugin.module-C3yG2biv.css +1 -0
- package/dist/assets/components/input/toggle_position/TogglePosition.module-H4gGmJ0V.css +1 -0
- package/dist/assets/components/list/paginated_list/action_bar/ActionBar.module-BDMBrj2Y.css +1 -0
- package/dist/assets/components/navigation/tabs/Tabs.module-50P6bk0B.css +1 -0
- package/dist/assets/components/notification/notification_item/NotificationItem.module-BQcDopYB.css +1 -0
- package/dist/assets/components/notification/notification_menu/NotificationMenu.module-DrCrfzVk.css +1 -0
- package/dist/assets/components/progress/progress_bar/ProgressBar.module-DoCH9Qoo.css +1 -0
- package/dist/assets/components/proposal/proposal_box/ProposalBox.module-D1ccjSLm.css +1 -0
- package/dist/assets/components/section/section_box/SectionBox.module-DF7k7Vxq.css +1 -0
- package/dist/assets/components/share/share_button/{ShareButton.module-BS6STEUD.css → ShareButton.module-BnVEYTzr.css} +1 -1
- package/dist/assets/components/skeleton/user_content_skeleton/UserContentSkeleton.module-d4r3QpYe.css +1 -0
- package/dist/assets/components/source/context_source_box/ContextSourceBox.module-doiSb_NR.css +1 -0
- package/dist/assets/components/source/context_source_list/ContextSourceList.module-Df4z4DN-.css +1 -0
- package/dist/assets/components/source/source_box/SourceBox.module-CQOBgJ5n.css +1 -0
- package/dist/assets/components/source/source_list_item/SourceListItem.module-C5YDjksb.css +1 -0
- package/dist/assets/components/suggestion/suggestion_banner/SuggestionBanner.module-P95xqaUA.css +1 -0
- package/dist/assets/components/suggestion/suggestion_box/SuggestionBox.module-CE_Wvk-K.css +1 -0
- package/dist/assets/components/suggestion/suggestion_input/SuggestionInput.module-r5N57bDp.css +1 -0
- package/dist/assets/components/summary/argument_summary_box/ArgumentSummaryBox.module-EDxcqwRa.css +1 -0
- package/dist/assets/components/summary/keyword_box/KeywordBox.module-yNHAvcRh.css +1 -0
- package/dist/assets/components/summary/summary_box/SummaryBox.module-Bu-AnMIG.css +1 -0
- package/dist/assets/components/text/read_more/ReadMore.module-Bs-YaspR.css +1 -0
- package/dist/assets/components/user/author_box/AuthorBox.module-B8Sl2v33.css +1 -0
- package/dist/assets/components/user/onboarding_modal/OnboardingModal.module-CTpt3xSh.css +1 -0
- package/dist/assets/components/user/user_box/UserBox.module-DMFhZDAH.css +1 -0
- package/dist/assets/components/user/user_box_small/UserBoxSmall.module-D4Ut5xmS.css +1 -0
- package/dist/assets/components/user_content/content_footer/ContentFooter.module-9A9E8k5l.css +1 -0
- package/dist/assets/components/user_content/content_header/ContentHeader.module-CXO2IRui.css +1 -0
- package/dist/assets/components/user_content/summary_content_box/SummaryContentBox.module-CBlL2Xii.css +1 -0
- package/dist/assets/components/user_content/use_report_content/ReportModal.module-mjFuOdmL.css +1 -0
- package/dist/assets/components/vote/suggestion_vote_box/SuggestionVoteBox.module-CKFriPV5.css +1 -0
- package/dist/assets/components/vote/vote_box/VoteBox.module-Bv7WY_vr.css +1 -0
- package/dist/assets/components/vote/vote_button/VoteButton.module-DqD79xv_.css +1 -0
- package/dist/components/action/back_link/BackLink.module.scss.js +1 -1
- package/dist/components/action/button/Button.module.scss.js +9 -9
- package/dist/components/action/icon_text_link/IconTextLink.module.scss.js +2 -2
- package/dist/components/argument/argument/Argument.js +120 -112
- package/dist/components/argument/argument/Argument.module.scss.js +40 -40
- package/dist/components/argument/argument/ReplyFooter.module.scss.js +8 -8
- package/dist/components/auth/auth_initializer/AuthInitializer.js +58 -41
- package/dist/components/auth/providers/FormAuth.js +6 -3
- package/dist/components/auth/providers/PasswordAuth.js +6 -6
- package/dist/components/auth/sso_form/SSOForm.module.scss.js +20 -20
- package/dist/components/auth/use_auth/base64.js +4 -0
- package/dist/components/auth/use_auth/useAuthActions.js +24 -24
- package/dist/components/consultation/consultation_box/ConsultationBox.js +4 -3
- package/dist/components/consultation/consultation_box/ConsultationBox.module.scss.js +25 -25
- package/dist/components/debate/debate_box/DebateBox.module.scss.js +20 -20
- package/dist/components/dialog/dialog_box/DialogBox.module.scss.js +14 -14
- package/dist/components/dialog/dropdown/Dropdown.js +19 -17
- package/dist/components/dialog/dropdown/Dropdown.module.scss.js +17 -13
- package/dist/components/dialog/modal/Modal.module.scss.js +9 -9
- package/dist/components/dialog/toast/Toast.module.scss.js +18 -18
- package/dist/components/dialog/tooltip/Tooltip.module.scss.js +8 -8
- package/dist/components/embed/embed_header/EmbedHeader.module.scss.js +18 -18
- package/dist/components/follow/follow_button/FollowButton.module.scss.js +1 -1
- package/dist/components/forms/use_form_validation/useFormValidation.js +1 -1
- package/dist/components/gamification/badge_box/BadgeBox.module.scss.js +18 -18
- package/dist/components/gamification/point_box/PointBox.module.scss.js +1 -1
- package/dist/components/icons/clarin_icons/Alarm.js +6 -0
- package/dist/components/icons/clarin_icons/Announcement.js +6 -0
- package/dist/components/icons/clarin_icons/Chat.js +6 -0
- package/dist/components/icons/clarin_icons/CheckCircle.js +9 -0
- package/dist/components/icons/clarin_icons/Clock.js +6 -0
- package/dist/components/icons/clarin_icons/Follow.js +6 -0
- package/dist/components/icons/clarin_icons/MobileClose.js +9 -0
- package/dist/components/icons/clarin_icons/Question.js +6 -0
- package/dist/components/icons/clarin_icons/Search.js +6 -0
- package/dist/components/icons/clarin_icons/Send.js +6 -0
- package/dist/components/icons/clarin_icons/Share.js +6 -0
- package/dist/components/icons/clarin_icons/Upvote.js +9 -0
- package/dist/components/icons/clarin_icons/User.js +9 -0
- package/dist/components/icons/clarin_icons/index.js +106 -0
- package/dist/components/information/information_box/InformationBox.module.scss.js +4 -4
- package/dist/components/input/argument_input/ArgumentInput.js +172 -167
- package/dist/components/input/text_editor/TextEditor.js +49 -47
- package/dist/components/input/text_editor/TextEditor.module.scss.js +28 -28
- package/dist/components/input/text_editor/plugins/IOSInsertParagraphFallbackPlugin.js +34 -0
- package/dist/components/input/text_editor/plugins/ToolbarPlugin.js +143 -94
- package/dist/components/input/text_editor/plugins/ToolbarPlugin.module.scss.js +19 -19
- package/dist/components/input/toggle_position/TogglePosition.module.scss.js +4 -4
- package/dist/components/list/paginated_list/PaginatedList.js +134 -124
- package/dist/components/list/paginated_list/action_bar/ActionBar.module.scss.js +12 -12
- package/dist/components/navbar/navbar_modal/NavbarModal.js +14 -14
- package/dist/components/navigation/tabs/Tabs.js +85 -24
- package/dist/components/navigation/tabs/Tabs.module.scss.js +19 -9
- package/dist/components/notification/notification_item/NotificationItem.module.scss.js +5 -5
- package/dist/components/notification/notification_menu/NotificationMenu.module.scss.js +2 -2
- package/dist/components/progress/progress_bar/ProgressBar.module.scss.js +10 -10
- package/dist/components/proposal/proposal_box/ProposalBox.js +58 -56
- package/dist/components/proposal/proposal_box/ProposalBox.module.scss.js +1 -1
- package/dist/components/section/section_box/SectionBox.module.scss.js +12 -12
- package/dist/components/share/share_button/ShareButton.js +26 -24
- package/dist/components/share/share_button/ShareButton.module.scss.js +5 -3
- package/dist/components/skeleton/user_content_skeleton/UserContentSkeleton.module.scss.js +4 -4
- package/dist/components/source/context_source_box/ContextSourceBox.module.scss.js +4 -4
- package/dist/components/source/context_source_list/ContextSourceList.module.scss.js +5 -5
- package/dist/components/source/source_box/SourceBox.module.scss.js +8 -8
- package/dist/components/source/source_list_item/SourceListItem.module.scss.js +7 -5
- package/dist/components/suggestion/suggestion_banner/SuggestionBanner.module.scss.js +5 -5
- package/dist/components/suggestion/suggestion_box/SuggestionBox.module.scss.js +1 -1
- package/dist/components/suggestion/suggestion_input/SuggestionInput.module.scss.js +9 -9
- package/dist/components/summary/argument_summary_box/ArgumentSummaryBox.module.scss.js +10 -10
- package/dist/components/summary/keyword_box/KeywordBox.module.scss.js +1 -1
- package/dist/components/summary/summary_box/SummaryBox.module.scss.js +8 -8
- package/dist/components/text/read_more/ReadMore.module.scss.js +4 -4
- package/dist/components/user/author_box/AuthorBox.js +18 -17
- package/dist/components/user/author_box/AuthorBox.module.scss.js +24 -24
- package/dist/components/user/onboarding_modal/OnboardingModal.js +296 -0
- package/dist/components/user/onboarding_modal/OnboardingModal.module.scss.js +29 -0
- package/dist/components/user/onboarding_modal/useOnboarding.js +80 -0
- package/dist/components/user/user_box/UserBox.js +48 -38
- package/dist/components/user/user_box/UserBox.module.scss.js +9 -9
- package/dist/components/user/user_box_small/UserBoxSmall.js +19 -18
- package/dist/components/user/user_box_small/UserBoxSmall.module.scss.js +6 -6
- package/dist/components/user_content/content_footer/ContentFooter.js +95 -92
- package/dist/components/user_content/content_footer/ContentFooter.module.scss.js +11 -11
- package/dist/components/user_content/content_header/ContentHeader.module.scss.js +22 -22
- package/dist/components/user_content/summary_content_box/SummaryContentBox.module.scss.js +1 -1
- package/dist/components/user_content/use_report_content/ReportModal.module.scss.js +8 -8
- package/dist/components/vote/suggestion_vote_box/SuggestionVoteBox.module.scss.js +1 -1
- package/dist/components/vote/vote_box/VoteBox.module.scss.js +42 -42
- package/dist/components/vote/vote_button/VoteButton.module.scss.js +5 -5
- package/dist/index.js +319 -312
- package/package.json +3 -2
- package/dist/assets/components/action/back_link/BackLink.module-nMAM5nvb.css +0 -1
- package/dist/assets/components/action/button/Button.module-BXkLuURK.css +0 -1
- package/dist/assets/components/action/icon_text_link/IconTextLink.module-B5PF-MMK.css +0 -1
- package/dist/assets/components/argument/argument/Argument.module-QZdPjj_i.css +0 -1
- package/dist/assets/components/argument/argument/ReplyFooter.module-x9Xlkt3Z.css +0 -1
- package/dist/assets/components/auth/sso_form/SSOForm.module-D5v2TrOv.css +0 -1
- package/dist/assets/components/consultation/consultation_box/ConsultationBox.module-DjNiVt-p.css +0 -1
- package/dist/assets/components/debate/debate_box/DebateBox.module-DTLafpl4.css +0 -1
- package/dist/assets/components/dialog/dialog_box/DialogBox.module-DKztqqmb.css +0 -1
- package/dist/assets/components/dialog/dropdown/Dropdown.module-FG2Sqrqs.css +0 -1
- package/dist/assets/components/dialog/modal/Modal.module-CIj-xCzY.css +0 -1
- package/dist/assets/components/dialog/toast/Toast.module-DJ2wSlJT.css +0 -1
- package/dist/assets/components/dialog/tooltip/Tooltip.module-zMXumgnX.css +0 -1
- package/dist/assets/components/embed/embed_header/EmbedHeader.module-CoyRY_jw.css +0 -1
- package/dist/assets/components/follow/follow_button/FollowButton.module-C9YXM8AM.css +0 -1
- package/dist/assets/components/gamification/badge_box/BadgeBox.module-BnskGH9b.css +0 -1
- package/dist/assets/components/information/information_box/InformationBox.module-B_MiEPn7.css +0 -1
- package/dist/assets/components/input/text_editor/TextEditor.module-CxuSL3l3.css +0 -1
- package/dist/assets/components/input/text_editor/plugins/ToolbarPlugin.module-CbPmMciY.css +0 -1
- package/dist/assets/components/input/toggle_position/TogglePosition.module-DDIigbfA.css +0 -1
- package/dist/assets/components/list/paginated_list/action_bar/ActionBar.module-DvwCbS9k.css +0 -1
- package/dist/assets/components/navigation/tabs/Tabs.module-CtDi0tAd.css +0 -1
- package/dist/assets/components/notification/notification_item/NotificationItem.module-BWdhgSy4.css +0 -1
- package/dist/assets/components/notification/notification_menu/NotificationMenu.module-BQwbvRIV.css +0 -1
- package/dist/assets/components/progress/progress_bar/ProgressBar.module-Dy-27Wf9.css +0 -1
- package/dist/assets/components/proposal/proposal_box/ProposalBox.module-Dm8XDnr1.css +0 -1
- package/dist/assets/components/section/section_box/SectionBox.module-qQs4B6bf.css +0 -1
- package/dist/assets/components/skeleton/user_content_skeleton/UserContentSkeleton.module-DhZm1xTr.css +0 -1
- package/dist/assets/components/source/context_source_box/ContextSourceBox.module-78Gxjx0w.css +0 -1
- package/dist/assets/components/source/context_source_list/ContextSourceList.module-DUPbI-wb.css +0 -1
- package/dist/assets/components/source/source_box/SourceBox.module-Cu_m3E85.css +0 -1
- package/dist/assets/components/source/source_list_item/SourceListItem.module-fm_uHuY4.css +0 -1
- package/dist/assets/components/suggestion/suggestion_banner/SuggestionBanner.module-D37NVZLS.css +0 -1
- package/dist/assets/components/suggestion/suggestion_box/SuggestionBox.module-DHxoF0oe.css +0 -1
- package/dist/assets/components/suggestion/suggestion_input/SuggestionInput.module-BsEj7sF3.css +0 -1
- package/dist/assets/components/summary/argument_summary_box/ArgumentSummaryBox.module-DLcsyMSD.css +0 -1
- package/dist/assets/components/summary/keyword_box/KeywordBox.module-DHkYfW0l.css +0 -1
- package/dist/assets/components/summary/summary_box/SummaryBox.module-Dr9PevSJ.css +0 -1
- package/dist/assets/components/text/read_more/ReadMore.module-Ni_Mm8o8.css +0 -1
- package/dist/assets/components/user/author_box/AuthorBox.module-CbH2S-MT.css +0 -1
- package/dist/assets/components/user/update_user_info_modal/UpdateUserInfoModal.module-DJym6u4r.css +0 -1
- package/dist/assets/components/user/user_box/UserBox.module-DGKK1afI.css +0 -1
- package/dist/assets/components/user/user_box_small/UserBoxSmall.module-ibAw9gGE.css +0 -1
- package/dist/assets/components/user_content/content_footer/ContentFooter.module-ax3j7VNT.css +0 -1
- package/dist/assets/components/user_content/content_header/ContentHeader.module-B0VwpU-R.css +0 -1
- package/dist/assets/components/user_content/summary_content_box/SummaryContentBox.module-DdzWnPjq.css +0 -1
- package/dist/assets/components/user_content/use_report_content/ReportModal.module-BxF-D5C5.css +0 -1
- package/dist/assets/components/vote/suggestion_vote_box/SuggestionVoteBox.module-CZeQKWIw.css +0 -1
- package/dist/assets/components/vote/vote_box/VoteBox.module-D5sSSHpi.css +0 -1
- package/dist/assets/components/vote/vote_button/VoteButton.module-aP9ZrGSd.css +0 -1
- package/dist/components/user/update_user_info_modal/UpdateUserInfoModal.js +0 -291
- package/dist/components/user/update_user_info_modal/UpdateUserInfoModal.module.scss.js +0 -29
- package/dist/components/user/update_user_info_modal/useUpdateUserInfo.js +0 -27
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import '../../../../assets/components/input/text_editor/plugins/ToolbarPlugin.module-
|
|
2
|
-
toolbar:
|
|
3
|
-
toolbarIsActive:
|
|
4
|
-
iconToolbar:
|
|
5
|
-
shortBar:
|
|
6
|
-
toolbarItem:
|
|
7
|
-
active:
|
|
1
|
+
import '../../../../assets/components/input/text_editor/plugins/ToolbarPlugin.module-C3yG2biv.css';const t = "_toolbar_awaxp_3", o = "_toolbarIsActive_awaxp_13", a = "_iconToolbar_awaxp_17", n = "_shortBar_awaxp_21", _ = "_toolbarItem_awaxp_25", c = "_active_awaxp_45", i = "_format_awaxp_49", s = "_actionButton_awaxp_56", r = "_inputSubmitActionButton_awaxp_62", b = "_submitAction_awaxp_70", u = {
|
|
2
|
+
toolbar: t,
|
|
3
|
+
toolbarIsActive: o,
|
|
4
|
+
iconToolbar: a,
|
|
5
|
+
shortBar: n,
|
|
6
|
+
toolbarItem: _,
|
|
7
|
+
active: c,
|
|
8
8
|
format: i,
|
|
9
|
-
actionButton:
|
|
10
|
-
inputSubmitActionButton:
|
|
11
|
-
submitAction:
|
|
9
|
+
actionButton: s,
|
|
10
|
+
inputSubmitActionButton: r,
|
|
11
|
+
submitAction: b
|
|
12
12
|
};
|
|
13
13
|
export {
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
s as actionButton,
|
|
15
|
+
c as active,
|
|
16
16
|
u as default,
|
|
17
17
|
i as format,
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
18
|
+
a as iconToolbar,
|
|
19
|
+
r as inputSubmitActionButton,
|
|
20
|
+
n as shortBar,
|
|
21
|
+
b as submitAction,
|
|
22
|
+
t as toolbar,
|
|
23
|
+
o as toolbarIsActive,
|
|
24
|
+
_ as toolbarItem
|
|
25
25
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import '../../../assets/components/input/toggle_position/TogglePosition.module-
|
|
1
|
+
import '../../../assets/components/input/toggle_position/TogglePosition.module-H4gGmJ0V.css';const e = "_container_xpu2b_3", l = "_label_xpu2b_11", t = "_labelActive_xpu2b_26", a = "_firstLabelDefault_xpu2b_36", b = "_secondLabelDefault_xpu2b_43", c = {
|
|
2
2
|
container: e,
|
|
3
3
|
label: l,
|
|
4
4
|
labelActive: t,
|
|
5
5
|
firstLabelDefault: a,
|
|
6
|
-
secondLabelDefault:
|
|
6
|
+
secondLabelDefault: b
|
|
7
7
|
};
|
|
8
8
|
export {
|
|
9
9
|
e as container,
|
|
10
|
-
|
|
10
|
+
c as default,
|
|
11
11
|
a as firstLabelDefault,
|
|
12
12
|
l as label,
|
|
13
13
|
t as labelActive,
|
|
14
|
-
|
|
14
|
+
b as secondLabelDefault
|
|
15
15
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { useIntl as
|
|
6
|
-
import { useLocation as
|
|
7
|
-
import
|
|
8
|
-
import { ActionBar as
|
|
1
|
+
import { jsxs as U, jsx as g, Fragment as Qe } from "react/jsx-runtime";
|
|
2
|
+
import Ue from "@rooks/use-previous";
|
|
3
|
+
import $e from "classnames";
|
|
4
|
+
import We, { useState as f, useEffect as p } from "react";
|
|
5
|
+
import { useIntl as ze } from "react-intl";
|
|
6
|
+
import { useLocation as Ge } from "react-router";
|
|
7
|
+
import l from "./PaginatedList.module.scss.js";
|
|
8
|
+
import { ActionBar as Pe } from "./action_bar/ActionBar.js";
|
|
9
9
|
import { useList as Ve } from "../list_provider/useList.js";
|
|
10
10
|
import { useDataProvider as Xe } from "../../data/data_provider/useDataProvider.js";
|
|
11
11
|
import { useResponsive as Ye } from "../../hooks/use_responsive/useResponsive.js";
|
|
@@ -14,36 +14,36 @@ import { uniqueBy as x } from "../../util/unique_by/uniqueBy.js";
|
|
|
14
14
|
import { Pagination as He } from "../pagination/Pagination.js";
|
|
15
15
|
import { StandardErrorBoundary as Ie } from "../../error/standard_error_boundary/StandardErrorBoundary.js";
|
|
16
16
|
const ct = ({
|
|
17
|
-
query:
|
|
18
|
-
sortOptions:
|
|
19
|
-
sort:
|
|
20
|
-
filters:
|
|
17
|
+
query: N,
|
|
18
|
+
sortOptions: o,
|
|
19
|
+
sort: M,
|
|
20
|
+
filters: m,
|
|
21
21
|
tagList: ne,
|
|
22
22
|
pinnedTagList: ae,
|
|
23
|
-
currentPage:
|
|
23
|
+
currentPage: R,
|
|
24
24
|
resource: A,
|
|
25
|
-
currentListId:
|
|
25
|
+
currentListId: a,
|
|
26
26
|
withToken: le,
|
|
27
|
-
perPage:
|
|
27
|
+
perPage: v,
|
|
28
28
|
perPageParam: ie = "per_page",
|
|
29
29
|
pageParam: oe = "page",
|
|
30
30
|
sortParam: me = "sort",
|
|
31
31
|
queryParam: de = "query",
|
|
32
32
|
tagParam: re = "tag_id",
|
|
33
33
|
totalHeaderParam: D = "total",
|
|
34
|
-
onUpdateTotal:
|
|
35
|
-
onElementsLoad:
|
|
36
|
-
transformData:
|
|
37
|
-
uniqueIdKey:
|
|
34
|
+
onUpdateTotal: $,
|
|
35
|
+
onElementsLoad: b,
|
|
36
|
+
transformData: W,
|
|
37
|
+
uniqueIdKey: S = "id",
|
|
38
38
|
children: fe,
|
|
39
39
|
resourcePropName: ce,
|
|
40
|
-
loadingComponent:
|
|
40
|
+
loadingComponent: z,
|
|
41
41
|
searchBar: ue = !1,
|
|
42
|
-
title:
|
|
43
|
-
subtitle:
|
|
42
|
+
title: ge,
|
|
43
|
+
subtitle: Ee,
|
|
44
44
|
showDebateConsultationSubtitle: he = !1,
|
|
45
|
-
emptyListComponent:
|
|
46
|
-
emptyText:
|
|
45
|
+
emptyListComponent: G,
|
|
46
|
+
emptyText: P,
|
|
47
47
|
display: V,
|
|
48
48
|
elementsPerLine: X,
|
|
49
49
|
indexLayout: pe = !1,
|
|
@@ -55,129 +55,139 @@ const ct = ({
|
|
|
55
55
|
withUrlParams: Ne = !1,
|
|
56
56
|
onLoadNewPage: Z
|
|
57
57
|
}) => {
|
|
58
|
-
const J =
|
|
59
|
-
|
|
60
|
-
), [
|
|
58
|
+
const J = ze(), t = Ve(), H = Xe(), I = Ge(), { isMobile: K, isTablet: Me, isDesktop: L } = Ye(), [k, E] = f(!1), [Re, be] = f(!1), [d, y] = Ze(a, []), [O, ke] = f(
|
|
59
|
+
d?.length || 0
|
|
60
|
+
), [h, j] = f(R || 1), [w, B] = f(N || null), [C, q] = f(null), [Ce, ee] = f(null), c = new URLSearchParams(
|
|
61
61
|
typeof window < "u" ? window.location.search : I.search
|
|
62
|
-
),
|
|
62
|
+
), Te = () => o && o[0].type === "sort" && o[0].value || M || "", Fe = () => {
|
|
63
63
|
let e = {};
|
|
64
|
-
return
|
|
65
|
-
}, [
|
|
66
|
-
|
|
67
|
-
if (
|
|
68
|
-
|
|
69
|
-
for (const e of
|
|
70
|
-
|
|
64
|
+
return o && o[0].type === "filter" && (e[o[0].name] = o[0].value), m && (e = Object.assign({}, e, m)), e;
|
|
65
|
+
}, [T, F] = f(Te()), [Q, _] = f(Fe()), te = Ue(m);
|
|
66
|
+
R && R !== h && j(R), N !== void 0 && N !== w && B(N), M !== void 0 && M !== T && F(M), te && JSON.stringify(m) !== JSON.stringify(te) && JSON.stringify(m) !== JSON.stringify(Q) && _(m), p(() => {
|
|
67
|
+
if (c.get("tagId") && q(Number.parseInt(c.get("tagId"))), c.get("search") && B(c.get("search")), c.get("sort")) {
|
|
68
|
+
F(c.get("sort"));
|
|
69
|
+
for (const e of c.values()) {
|
|
70
|
+
o?.map((s) => {
|
|
71
71
|
s.value === e && ee(s.name);
|
|
72
72
|
});
|
|
73
73
|
break;
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
for (const e of
|
|
77
|
-
|
|
76
|
+
for (const e of c.keys()) {
|
|
77
|
+
o?.map((s) => {
|
|
78
78
|
s.name === e && (_({
|
|
79
|
-
...
|
|
79
|
+
...m,
|
|
80
80
|
[s.name]: s.value
|
|
81
81
|
}), ee(s.name));
|
|
82
82
|
});
|
|
83
83
|
break;
|
|
84
84
|
}
|
|
85
|
-
}, [I.search]),
|
|
86
|
-
A ? (
|
|
85
|
+
}, [I.search]), p(() => {
|
|
86
|
+
A ? (j(1), y([]), E(!0), se(1)) : E(!1);
|
|
87
87
|
}, [
|
|
88
|
-
|
|
88
|
+
T,
|
|
89
89
|
Q,
|
|
90
|
-
|
|
90
|
+
w,
|
|
91
91
|
A,
|
|
92
92
|
C,
|
|
93
|
-
|
|
94
|
-
]),
|
|
95
|
-
|
|
96
|
-
}, [
|
|
97
|
-
if (t.addElements &&
|
|
98
|
-
Ae(t.addElements[
|
|
93
|
+
v
|
|
94
|
+
]), p(() => {
|
|
95
|
+
h > 1 && (E(!0), se(h));
|
|
96
|
+
}, [h]), p(() => {
|
|
97
|
+
if (t.addElements && a in t.addElements && t.addElements[a].length > 0) {
|
|
98
|
+
Ae(t.addElements[a]);
|
|
99
99
|
const e = t.addElements;
|
|
100
|
-
delete e[
|
|
100
|
+
delete e[a], t.setAddElements(e);
|
|
101
101
|
}
|
|
102
|
-
}, [t.addElements]),
|
|
103
|
-
if (t.updateElements &&
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
102
|
+
}, [t.addElements]), p(() => {
|
|
103
|
+
if (t.updateElements && a in t.updateElements) {
|
|
104
|
+
const e = t.updateElements[a];
|
|
105
|
+
if (e.length > 0) {
|
|
106
|
+
const s = e.filter(
|
|
107
|
+
(i) => d.some((n) => n.id === i.id)
|
|
108
|
+
);
|
|
109
|
+
if (s.length > 0) {
|
|
110
|
+
De(s);
|
|
111
|
+
const i = e.filter(
|
|
112
|
+
(r) => !d.some((u) => u.id === r.id)
|
|
113
|
+
), n = { ...t.updateElements };
|
|
114
|
+
i.length > 0 ? n[a] = i : delete n[a], t.setUpdateElements(n);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
107
117
|
}
|
|
108
|
-
}, [t.updateElements]),
|
|
109
|
-
if (t.removeElements &&
|
|
110
|
-
Je(t.removeElements[
|
|
111
|
-
const e = t.removeElements;
|
|
112
|
-
delete e[
|
|
118
|
+
}, [t.updateElements, d]), p(() => {
|
|
119
|
+
if (t.removeElements && a in t.removeElements && t.removeElements[a].length > 0 && d.length > 0) {
|
|
120
|
+
Je(t.removeElements[a]);
|
|
121
|
+
const e = { ...t.removeElements };
|
|
122
|
+
delete e[a], t.setRemoveElements(e);
|
|
113
123
|
}
|
|
114
|
-
}, [t.removeElements]);
|
|
124
|
+
}, [t.removeElements, d]);
|
|
115
125
|
const _e = (e) => {
|
|
116
|
-
e.type === "filter" ? (
|
|
117
|
-
...
|
|
126
|
+
e.type === "filter" ? (F(""), _({
|
|
127
|
+
...m,
|
|
118
128
|
[e.name]: e.value
|
|
119
|
-
})) : (
|
|
129
|
+
})) : (F(e.value), _(m ? { ...m } : {}));
|
|
120
130
|
}, xe = () => {
|
|
121
|
-
typeof Z == "function" && Z() !== null ||
|
|
131
|
+
typeof Z == "function" && Z() !== null || j(h + 1);
|
|
122
132
|
}, se = (e) => {
|
|
123
133
|
const s = le ? H.getListWithToken : H.getList;
|
|
124
|
-
if ((e - 1) *
|
|
125
|
-
const
|
|
134
|
+
if ((e - 1) * v <= (Y || O) || e === 1) {
|
|
135
|
+
const i = {
|
|
126
136
|
[oe]: e,
|
|
127
|
-
[ie]:
|
|
128
|
-
...
|
|
129
|
-
...
|
|
137
|
+
[ie]: v,
|
|
138
|
+
...T && !w && { [me]: T },
|
|
139
|
+
...w && { [de]: w },
|
|
130
140
|
...ye === !0 && { countless: !0 },
|
|
131
141
|
...Q,
|
|
132
142
|
...C && { [re]: C }
|
|
133
143
|
};
|
|
134
|
-
s(A,
|
|
135
|
-
const
|
|
136
|
-
|
|
137
|
-
Number.parseInt(
|
|
138
|
-
),
|
|
139
|
-
let
|
|
140
|
-
|
|
141
|
-
}).catch((
|
|
142
|
-
console.error(
|
|
144
|
+
s(A, i).then((n) => {
|
|
145
|
+
const r = n.headers;
|
|
146
|
+
r && D in r && (ke(
|
|
147
|
+
Number.parseInt(r[D || "total"], 10)
|
|
148
|
+
), $ && $(r[D || "total"]));
|
|
149
|
+
let u = n?.data?.data;
|
|
150
|
+
b && b(u), W && (u = u.filter(W)), t.addElements && a in t.addElements && t.addElements[a].length > 0 && (u = [...t.addElements[a], u]), Le(u), E(!1);
|
|
151
|
+
}).catch((n) => {
|
|
152
|
+
console.error(n), n?.response?.status !== 404 && be(!0), E(!1);
|
|
143
153
|
});
|
|
144
154
|
} else
|
|
145
|
-
|
|
155
|
+
E(!1);
|
|
146
156
|
}, Ae = (e) => {
|
|
147
|
-
|
|
148
|
-
(s) => x([...e, ...s],
|
|
149
|
-
),
|
|
157
|
+
y(
|
|
158
|
+
(s) => x([...e, ...s], S || "id")
|
|
159
|
+
), b && b(e);
|
|
150
160
|
}, De = (e) => {
|
|
151
|
-
|
|
152
|
-
let
|
|
161
|
+
y((s) => {
|
|
162
|
+
let i = s;
|
|
153
163
|
return e.forEach(
|
|
154
|
-
(
|
|
155
|
-
(
|
|
164
|
+
(n) => i = i.map(
|
|
165
|
+
(r) => r.id === n.id ? n : r
|
|
156
166
|
)
|
|
157
|
-
), x(
|
|
167
|
+
), x(i, S || "id");
|
|
158
168
|
});
|
|
159
169
|
}, Je = (e) => {
|
|
160
|
-
const s = e.map((
|
|
161
|
-
(
|
|
170
|
+
const s = e.map((n) => n.id), i = d.filter(
|
|
171
|
+
(n) => s.indexOf(n.id) === -1
|
|
162
172
|
);
|
|
163
|
-
|
|
164
|
-
},
|
|
165
|
-
|
|
166
|
-
(s) => x([...s, ...e],
|
|
173
|
+
y(x(i, S || "id"));
|
|
174
|
+
}, Le = (e) => {
|
|
175
|
+
y(
|
|
176
|
+
(s) => x([...s, ...e], S || "id")
|
|
167
177
|
);
|
|
168
|
-
},
|
|
178
|
+
}, je = (e, s) => e !== void 0 ? /* @__PURE__ */ g(
|
|
169
179
|
"li",
|
|
170
180
|
{
|
|
171
|
-
className:
|
|
181
|
+
className: l.paginatedListItem,
|
|
172
182
|
"data-testid": "list-item",
|
|
173
183
|
onClick: we,
|
|
174
|
-
children: /* @__PURE__ */
|
|
184
|
+
children: /* @__PURE__ */ g(Ie, { hideMessage: !0, children: We.cloneElement(fe, {
|
|
175
185
|
index: s,
|
|
176
186
|
[ce]: e
|
|
177
187
|
}) })
|
|
178
188
|
},
|
|
179
|
-
`${e[
|
|
180
|
-
) : null,
|
|
189
|
+
`${e[S || "id"]}_${e.updated_at || e.content}`
|
|
190
|
+
) : null, Be = (e) => z ? /* @__PURE__ */ g("li", { className: l.paginatedListItem, children: z }, e) : null;
|
|
181
191
|
if (Re)
|
|
182
192
|
throw new Error(
|
|
183
193
|
J.formatMessage({
|
|
@@ -185,62 +195,62 @@ const ct = ({
|
|
|
185
195
|
defaultMessage: "Error when loading content."
|
|
186
196
|
})
|
|
187
197
|
);
|
|
188
|
-
return /* @__PURE__ */
|
|
189
|
-
/* @__PURE__ */
|
|
190
|
-
|
|
198
|
+
return /* @__PURE__ */ U("div", { className: l.listContainer, children: [
|
|
199
|
+
/* @__PURE__ */ g(
|
|
200
|
+
Pe,
|
|
191
201
|
{
|
|
192
|
-
title:
|
|
193
|
-
subtitle:
|
|
202
|
+
title: ge,
|
|
203
|
+
subtitle: Ee,
|
|
194
204
|
showDebateConsultationSubtitle: he,
|
|
195
|
-
sortOptions:
|
|
205
|
+
sortOptions: o,
|
|
196
206
|
defaultSelectOption: Ce,
|
|
197
207
|
searchBar: ue,
|
|
198
208
|
tagList: ne,
|
|
199
209
|
pinnedTagList: ae,
|
|
200
210
|
activeTagId: C,
|
|
201
|
-
onSearch: (e) =>
|
|
211
|
+
onSearch: (e) => B(e),
|
|
202
212
|
onSortChange: _e,
|
|
203
213
|
onTagChange: (e) => q(e),
|
|
204
214
|
withUrlParams: Ne
|
|
205
215
|
}
|
|
206
216
|
),
|
|
207
|
-
!
|
|
217
|
+
!k && d.length === 0 ? G ? /* @__PURE__ */ g("div", { className: l.emptyListElement, children: G }) : /* @__PURE__ */ g("div", { className: l.emptyList, children: P || J.formatMessage({
|
|
208
218
|
id: "info.emptyList",
|
|
209
219
|
defaultMessage: "No items for now."
|
|
210
|
-
}) }) : /* @__PURE__ */
|
|
211
|
-
/* @__PURE__ */
|
|
220
|
+
}) }) : /* @__PURE__ */ U(Qe, { children: [
|
|
221
|
+
/* @__PURE__ */ U(
|
|
212
222
|
"ul",
|
|
213
223
|
{
|
|
214
|
-
className:
|
|
215
|
-
[
|
|
216
|
-
[
|
|
217
|
-
[
|
|
218
|
-
[
|
|
219
|
-
[
|
|
220
|
-
[
|
|
221
|
-
[
|
|
222
|
-
[
|
|
223
|
-
[
|
|
224
|
+
className: $e(l.paginatedList, {
|
|
225
|
+
[l.paginatedListIsTablet]: !K && !L,
|
|
226
|
+
[l.centeredList]: V === "column",
|
|
227
|
+
[l.column]: V === "column",
|
|
228
|
+
[l.twoElementsPerLine]: X === 2,
|
|
229
|
+
[l.oneElementPerLine]: X === 1,
|
|
230
|
+
[l.indexLayoutList]: pe,
|
|
231
|
+
[l.listIsDesktop]: L,
|
|
232
|
+
[l.listIsTablet]: Me && !L,
|
|
233
|
+
[l.listIsMobile]: K
|
|
224
234
|
}),
|
|
225
235
|
style: { gap: ve },
|
|
226
236
|
children: [
|
|
227
|
-
|
|
228
|
-
|
|
237
|
+
d.map(je),
|
|
238
|
+
k ? Array(v).fill().map((e, s) => s).map(Be) : null
|
|
229
239
|
]
|
|
230
240
|
}
|
|
231
241
|
),
|
|
232
|
-
!
|
|
242
|
+
!k && Se !== !1 && /* @__PURE__ */ g(
|
|
233
243
|
He,
|
|
234
244
|
{
|
|
235
245
|
buttonText: J.formatMessage({
|
|
236
246
|
id: "action.see_more",
|
|
237
247
|
defaultMessage: "See more"
|
|
238
248
|
}),
|
|
239
|
-
currentPage:
|
|
240
|
-
perPage:
|
|
249
|
+
currentPage: h,
|
|
250
|
+
perPage: v,
|
|
241
251
|
totalElements: Y || O,
|
|
242
252
|
onLoad: xe,
|
|
243
|
-
isLoading:
|
|
253
|
+
isLoading: k,
|
|
244
254
|
hideLoader: !0,
|
|
245
255
|
"data-tid": "list_read_more"
|
|
246
256
|
}
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import '../../../../assets/components/list/paginated_list/action_bar/ActionBar.module-
|
|
1
|
+
import '../../../../assets/components/list/paginated_list/action_bar/ActionBar.module-BDMBrj2Y.css';const t = "_listHeader_fga2s_3", e = "_listHeaderOneItem_fga2s_16", s = "_listTitle_fga2s_23", a = "_listSubtitle_fga2s_31", _ = "_rightBar_fga2s_39", i = "_rightBarOneItem_fga2s_49", l = "_search_fga2s_60", g = "_tagList_fga2s_70", r = "_tagItem_fga2s_85", c = "_select_fga2s_92", n = {
|
|
2
2
|
listHeader: t,
|
|
3
3
|
listHeaderOneItem: e,
|
|
4
4
|
listTitle: s,
|
|
5
|
-
listSubtitle:
|
|
6
|
-
rightBar:
|
|
7
|
-
rightBarOneItem:
|
|
8
|
-
search:
|
|
9
|
-
tagList:
|
|
5
|
+
listSubtitle: a,
|
|
6
|
+
rightBar: _,
|
|
7
|
+
rightBarOneItem: i,
|
|
8
|
+
search: l,
|
|
9
|
+
tagList: g,
|
|
10
10
|
tagItem: r,
|
|
11
11
|
select: c
|
|
12
12
|
};
|
|
13
13
|
export {
|
|
14
|
-
|
|
14
|
+
n as default,
|
|
15
15
|
t as listHeader,
|
|
16
16
|
e as listHeaderOneItem,
|
|
17
|
-
|
|
17
|
+
a as listSubtitle,
|
|
18
18
|
s as listTitle,
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
_ as rightBar,
|
|
20
|
+
i as rightBarOneItem,
|
|
21
|
+
l as search,
|
|
22
22
|
c as select,
|
|
23
23
|
r as tagItem,
|
|
24
|
-
|
|
24
|
+
g as tagList
|
|
25
25
|
};
|
|
@@ -16,27 +16,27 @@ import { Link as d } from "../../action/link/Link.js";
|
|
|
16
16
|
import { Icon as c } from "../../icons/icon/Icon.js";
|
|
17
17
|
import { Avatar as A } from "../../user/avatar/Avatar.js";
|
|
18
18
|
const Q = () => {
|
|
19
|
-
const { hideModal: r } = C(), s = I(),
|
|
19
|
+
const { hideModal: r } = C(), s = I(), e = M(), { pathname: u } = _(), { isLoggedIn: h, currentUser: m } = S(), p = b(), g = k?.() || {}, { isMobile: f, elementWidth: v } = g, L = f && v <= 576 && !s.isDrawer, o = (N) => !!x(N, u), w = () => {
|
|
20
20
|
p({});
|
|
21
21
|
};
|
|
22
22
|
return /* @__PURE__ */ n(U, { fullScreen: !s.isDrawer, showCloseButton: !0, children: [
|
|
23
23
|
/* @__PURE__ */ n("div", { className: t.modalContainer, children: [
|
|
24
24
|
/* @__PURE__ */ i("div", { className: t.modalTitle, children: /* @__PURE__ */ i(l, { id: "info.menu", defaultMessage: "Navigation" }) }),
|
|
25
25
|
/* @__PURE__ */ n("div", { className: t.navigationContainer, children: [
|
|
26
|
-
/* @__PURE__ */ i(
|
|
26
|
+
s?.layout?.hideDebatesLink !== !0 && /* @__PURE__ */ i(
|
|
27
27
|
"div",
|
|
28
28
|
{
|
|
29
29
|
className: a(t.modalItem, {
|
|
30
|
-
[t.active]: e
|
|
30
|
+
[t.active]: o(e.indexLocation.path) || o(e.debateShowLocation.path) || o(e.rootLocation.path || "/")
|
|
31
31
|
}),
|
|
32
32
|
onClick: r,
|
|
33
33
|
children: /* @__PURE__ */ n(
|
|
34
34
|
d,
|
|
35
35
|
{
|
|
36
36
|
className: a(t.itemContainer, {
|
|
37
|
-
[t.activeItem]: e
|
|
37
|
+
[t.activeItem]: o(e.indexLocation.path) || o(e.debateShowLocation.path) || o(e.rootLocation.path || "/")
|
|
38
38
|
}),
|
|
39
|
-
to:
|
|
39
|
+
to: e.indexLocation.toUrl(),
|
|
40
40
|
"data-tid": "view_index",
|
|
41
41
|
children: [
|
|
42
42
|
/* @__PURE__ */ i(c, { name: "chat", height: 24, width: 24 }),
|
|
@@ -56,16 +56,16 @@ const Q = () => {
|
|
|
56
56
|
"div",
|
|
57
57
|
{
|
|
58
58
|
className: a(t.modalItem, {
|
|
59
|
-
[t.active]: e
|
|
59
|
+
[t.active]: o(e.consultationIndexLocation.path) || o(e.consultationShowLocation.path)
|
|
60
60
|
}),
|
|
61
61
|
onClick: r,
|
|
62
62
|
children: /* @__PURE__ */ n(
|
|
63
63
|
d,
|
|
64
64
|
{
|
|
65
65
|
className: a(t.itemContainer, {
|
|
66
|
-
[t.activeItem]: e
|
|
66
|
+
[t.activeItem]: o(e.consultationIndexLocation.path) || o(e.consultationShowLocation.path)
|
|
67
67
|
}),
|
|
68
|
-
to:
|
|
68
|
+
to: e.consultationIndexLocation.toUrl(),
|
|
69
69
|
"data-tid": "view_consultation",
|
|
70
70
|
children: [
|
|
71
71
|
/* @__PURE__ */ i(c, { name: "community", height: 24, width: 24 }),
|
|
@@ -85,16 +85,16 @@ const Q = () => {
|
|
|
85
85
|
"div",
|
|
86
86
|
{
|
|
87
87
|
className: a(t.modalItem, {
|
|
88
|
-
[t.active]: e
|
|
88
|
+
[t.active]: o(e.suggestionLocation.path)
|
|
89
89
|
}),
|
|
90
90
|
onClick: r,
|
|
91
91
|
children: /* @__PURE__ */ n(
|
|
92
92
|
d,
|
|
93
93
|
{
|
|
94
94
|
className: a(t.itemContainer, {
|
|
95
|
-
[t.activeItem]: e
|
|
95
|
+
[t.activeItem]: o(e.suggestionLocation.path)
|
|
96
96
|
}),
|
|
97
|
-
to:
|
|
97
|
+
to: e.suggestionLocation.toUrl(),
|
|
98
98
|
"data-tid": "view_suggestions",
|
|
99
99
|
children: [
|
|
100
100
|
/* @__PURE__ */ i(c, { name: "suggestion", height: 24, width: 24 }),
|
|
@@ -114,16 +114,16 @@ const Q = () => {
|
|
|
114
114
|
"div",
|
|
115
115
|
{
|
|
116
116
|
className: a(t.modalItem, {
|
|
117
|
-
[t.active]: e
|
|
117
|
+
[t.active]: o(e.userShowLocation.path) || o(e.userEditLocation.path)
|
|
118
118
|
}),
|
|
119
119
|
onClick: r,
|
|
120
120
|
children: /* @__PURE__ */ i(
|
|
121
121
|
d,
|
|
122
122
|
{
|
|
123
123
|
className: a(t.itemContainer, {
|
|
124
|
-
[t.activeItem]: e
|
|
124
|
+
[t.activeItem]: o(e.userShowLocation.path) || o(e.userEditLocation.path)
|
|
125
125
|
}),
|
|
126
|
-
to:
|
|
126
|
+
to: e.userShowLocation.toUrl({
|
|
127
127
|
userSlug: m.hash_id
|
|
128
128
|
}),
|
|
129
129
|
"data-tid": "view_user_profile",
|