@logora/debate 0.4.42 → 0.4.44
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-BZU12qxT.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 +54 -54
- 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,19 +1,19 @@
|
|
|
1
|
-
import '../../../assets/components/source/source_box/SourceBox.module-
|
|
1
|
+
import '../../../assets/components/source/source_box/SourceBox.module-CQOBgJ5n.css';const o = "_sourceBox_1rtig_3", s = "_sourceBoxImage_1rtig_10", e = "_sourceBoxBody_1rtig_15", r = "_sourceBoxPublisher_1rtig_22", c = "_sourceBoxTitle_1rtig_30", u = "_sourceBoxDescription_1rtig_41", t = "_sourceLink_1rtig_51", i = {
|
|
2
2
|
sourceBox: o,
|
|
3
3
|
sourceBoxImage: s,
|
|
4
4
|
sourceBoxBody: e,
|
|
5
|
-
sourceBoxPublisher:
|
|
6
|
-
sourceBoxTitle:
|
|
5
|
+
sourceBoxPublisher: r,
|
|
6
|
+
sourceBoxTitle: c,
|
|
7
7
|
sourceBoxDescription: u,
|
|
8
|
-
sourceLink:
|
|
8
|
+
sourceLink: t
|
|
9
9
|
};
|
|
10
10
|
export {
|
|
11
|
-
|
|
11
|
+
i as default,
|
|
12
12
|
o as sourceBox,
|
|
13
13
|
e as sourceBoxBody,
|
|
14
14
|
u as sourceBoxDescription,
|
|
15
15
|
s as sourceBoxImage,
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
r as sourceBoxPublisher,
|
|
17
|
+
c as sourceBoxTitle,
|
|
18
|
+
t as sourceLink
|
|
19
19
|
};
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import '../../../assets/components/source/source_list_item/SourceListItem.module-
|
|
1
|
+
import '../../../assets/components/source/source_list_item/SourceListItem.module-C5YDjksb.css';const t = "_sourceListItemContainer_l4jz4_3", e = "_sourceListItem_l4jz4_3", o = "_sourceListItemLink_l4jz4_36", s = "_removeSourceButton_l4jz4_50", r = {
|
|
2
2
|
sourceListItemContainer: t,
|
|
3
3
|
sourceListItem: e,
|
|
4
|
-
|
|
4
|
+
sourceListItemLink: o,
|
|
5
|
+
removeSourceButton: s
|
|
5
6
|
};
|
|
6
7
|
export {
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
r as default,
|
|
9
|
+
s as removeSourceButton,
|
|
9
10
|
e as sourceListItem,
|
|
10
|
-
t as sourceListItemContainer
|
|
11
|
+
t as sourceListItemContainer,
|
|
12
|
+
o as sourceListItemLink
|
|
11
13
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import '../../../assets/components/suggestion/suggestion_banner/SuggestionBanner.module-
|
|
1
|
+
import '../../../assets/components/suggestion/suggestion_banner/SuggestionBanner.module-P95xqaUA.css';const n = "_suggestionBannerContainer_cn5ua_3", e = "_suggestionBannerContainerWrapped_cn5ua_34", s = "_suggestionBannerContext_cn5ua_38", t = "_isMobile_cn5ua_62", o = "_suggestionBannerTitle_cn5ua_66", i = "_suggestionBannerDescription_cn5ua_75", g = "_suggestionBannerList_cn5ua_80", a = "_suggestionBannerButton_cn5ua_90", r = "_suggestionBannerListWrapped_cn5ua_101", u = {
|
|
2
2
|
suggestionBannerContainer: n,
|
|
3
3
|
suggestionBannerContainerWrapped: e,
|
|
4
4
|
suggestionBannerContext: s,
|
|
@@ -6,18 +6,18 @@ import '../../../assets/components/suggestion/suggestion_banner/SuggestionBanner
|
|
|
6
6
|
suggestionBannerTitle: o,
|
|
7
7
|
suggestionBannerDescription: i,
|
|
8
8
|
suggestionBannerList: g,
|
|
9
|
-
suggestionBannerButton:
|
|
10
|
-
suggestionBannerListWrapped:
|
|
9
|
+
suggestionBannerButton: a,
|
|
10
|
+
suggestionBannerListWrapped: r
|
|
11
11
|
};
|
|
12
12
|
export {
|
|
13
13
|
u as default,
|
|
14
14
|
t as isMobile,
|
|
15
|
-
|
|
15
|
+
a as suggestionBannerButton,
|
|
16
16
|
n as suggestionBannerContainer,
|
|
17
17
|
e as suggestionBannerContainerWrapped,
|
|
18
18
|
s as suggestionBannerContext,
|
|
19
19
|
i as suggestionBannerDescription,
|
|
20
20
|
g as suggestionBannerList,
|
|
21
|
-
|
|
21
|
+
r as suggestionBannerListWrapped,
|
|
22
22
|
o as suggestionBannerTitle
|
|
23
23
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import '../../../assets/components/suggestion/suggestion_box/SuggestionBox.module-
|
|
1
|
+
import '../../../assets/components/suggestion/suggestion_box/SuggestionBox.module-CE_Wvk-K.css';const o = "_container_11omb_3", t = "_selected_11omb_16", e = "_expired_11omb_21", n = "_suggestion_11omb_27", r = "_arrowIcon_11omb_35", s = "_voteButton_11omb_39", _ = "_voteResultsContainer_11omb_43", c = "_footerContainer_11omb_47", i = "_footerActionContainer_11omb_52", a = {
|
|
2
2
|
container: o,
|
|
3
3
|
selected: t,
|
|
4
4
|
expired: e,
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import '../../../assets/components/suggestion/suggestion_input/SuggestionInput.module-
|
|
1
|
+
import '../../../assets/components/suggestion/suggestion_input/SuggestionInput.module-r5N57bDp.css';const t = "_suggestionInputContainer_rr43a_3", s = "_suggestionInputItem_rr43a_10", n = "_suggestionInputTitle_rr43a_16", u = "_suggestionInputSubtitle_rr43a_25", e = "_suggestionInputSubmit_rr43a_29", g = "_charactersCount_rr43a_33", i = "_guideMessage_rr43a_39", o = {
|
|
2
2
|
suggestionInputContainer: t,
|
|
3
3
|
suggestionInputItem: s,
|
|
4
|
-
suggestionInputTitle:
|
|
5
|
-
suggestionInputSubtitle:
|
|
4
|
+
suggestionInputTitle: n,
|
|
5
|
+
suggestionInputSubtitle: u,
|
|
6
6
|
suggestionInputSubmit: e,
|
|
7
|
-
charactersCount:
|
|
8
|
-
guideMessage:
|
|
7
|
+
charactersCount: g,
|
|
8
|
+
guideMessage: i
|
|
9
9
|
};
|
|
10
10
|
export {
|
|
11
|
-
|
|
11
|
+
g as charactersCount,
|
|
12
12
|
o as default,
|
|
13
|
-
|
|
13
|
+
i as guideMessage,
|
|
14
14
|
t as suggestionInputContainer,
|
|
15
15
|
s as suggestionInputItem,
|
|
16
16
|
e as suggestionInputSubmit,
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
u as suggestionInputSubtitle,
|
|
18
|
+
n as suggestionInputTitle
|
|
19
19
|
};
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import '../../../assets/components/summary/argument_summary_box/ArgumentSummaryBox.module-
|
|
1
|
+
import '../../../assets/components/summary/argument_summary_box/ArgumentSummaryBox.module-EDxcqwRa.css';const t = "_box_l1ept_3", a = "_stats_l1ept_10", s = "_informationsContainer_l1ept_17", _ = "_label_l1ept_29", o = "_gauge_l1ept_34", n = "_bar_l1ept_42", e = "_barFirst_l1ept_48", r = "_barLast_l1ept_52", l = "_tag_l1ept_57", b = {
|
|
2
2
|
box: t,
|
|
3
3
|
stats: a,
|
|
4
4
|
informationsContainer: s,
|
|
5
5
|
label: _,
|
|
6
|
-
gauge:
|
|
7
|
-
bar:
|
|
8
|
-
barFirst:
|
|
6
|
+
gauge: o,
|
|
7
|
+
bar: n,
|
|
8
|
+
barFirst: e,
|
|
9
9
|
barLast: r,
|
|
10
|
-
tag:
|
|
10
|
+
tag: l
|
|
11
11
|
};
|
|
12
12
|
export {
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
n as bar,
|
|
14
|
+
e as barFirst,
|
|
15
15
|
r as barLast,
|
|
16
16
|
t as box,
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
b as default,
|
|
18
|
+
o as gauge,
|
|
19
19
|
s as informationsContainer,
|
|
20
20
|
_ as label,
|
|
21
21
|
a as stats,
|
|
22
|
-
|
|
22
|
+
l as tag
|
|
23
23
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import '../../../assets/components/summary/keyword_box/KeywordBox.module-
|
|
1
|
+
import '../../../assets/components/summary/keyword_box/KeywordBox.module-yNHAvcRh.css';const o = "_boxContainer_1g12w_1", e = "_keywordTitle_1g12w_8", t = "_occurrences_1g12w_15", n = "_keywordButton_1g12w_27", r = {
|
|
2
2
|
boxContainer: o,
|
|
3
3
|
keywordTitle: e,
|
|
4
4
|
occurrences: t,
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import '../../../assets/components/summary/summary_box/SummaryBox.module-
|
|
1
|
+
import '../../../assets/components/summary/summary_box/SummaryBox.module-Bu-AnMIG.css';const t = "_box_19epm_3", m = "_stats_19epm_17", s = "_withTag_19epm_24", e = "_tag_19epm_28", _ = "_summaryItem_19epm_48", a = "_emptySummaryText_19epm_58", o = {
|
|
2
2
|
box: t,
|
|
3
3
|
stats: m,
|
|
4
4
|
withTag: s,
|
|
5
|
-
tag:
|
|
6
|
-
summaryItem:
|
|
7
|
-
emptySummaryText:
|
|
5
|
+
tag: e,
|
|
6
|
+
summaryItem: _,
|
|
7
|
+
emptySummaryText: a
|
|
8
8
|
};
|
|
9
9
|
export {
|
|
10
10
|
t as box,
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
o as default,
|
|
12
|
+
a as emptySummaryText,
|
|
13
13
|
m as stats,
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
_ as summaryItem,
|
|
15
|
+
e as tag,
|
|
16
16
|
s as withTag
|
|
17
17
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import '../../../assets/components/text/read_more/ReadMore.module-
|
|
1
|
+
import '../../../assets/components/text/read_more/ReadMore.module-Bs-YaspR.css';const e = "_readMore_1qm4m_1", r = "_pointer_1qm4m_7", s = "_readMoreWrapper_1qm4m_11", a = "_readMoreElement_1qm4m_21", o = "_readLessWrapper_1qm4m_31", _ = "_readLessElement_1qm4m_38", m = "_ellipsis_1qm4m_46", t = {
|
|
2
2
|
readMore: e,
|
|
3
3
|
pointer: r,
|
|
4
4
|
readMoreWrapper: s,
|
|
5
5
|
readMoreElement: a,
|
|
6
6
|
readLessWrapper: o,
|
|
7
7
|
readLessElement: _,
|
|
8
|
-
ellipsis:
|
|
8
|
+
ellipsis: m
|
|
9
9
|
};
|
|
10
10
|
export {
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
t as default,
|
|
12
|
+
m as ellipsis,
|
|
13
13
|
r as pointer,
|
|
14
14
|
_ as readLessElement,
|
|
15
15
|
o as readLessWrapper,
|
|
@@ -3,46 +3,47 @@ import N from "classnames";
|
|
|
3
3
|
import "react";
|
|
4
4
|
import { useIntl as B, FormattedMessage as w } from "react-intl";
|
|
5
5
|
import a from "./AuthorBox.module.scss.js";
|
|
6
|
-
import { useRoutes as
|
|
6
|
+
import { useRoutes as _ } from "../../data/config_provider/useRoutes.js";
|
|
7
|
+
import { useConfig as k } from "../../data/config_provider/useConfig.js";
|
|
7
8
|
import { Avatar as g } from "../avatar/Avatar.js";
|
|
8
9
|
import { Link as v } from "../../action/link/Link.js";
|
|
9
|
-
import { Icon as
|
|
10
|
+
import { Icon as P } from "../../icons/icon/Icon.js";
|
|
10
11
|
import { getLocaleIcon as S } from "../../util/lang_emojis/langEmojis.js";
|
|
11
|
-
const
|
|
12
|
+
const R = ({
|
|
12
13
|
fullName: i,
|
|
13
14
|
slug: s,
|
|
14
15
|
avatarUrl: c,
|
|
15
|
-
lastActivity:
|
|
16
|
-
showBadge:
|
|
16
|
+
lastActivity: b,
|
|
17
|
+
showBadge: M = !1,
|
|
17
18
|
points: n = 0,
|
|
18
19
|
eloquenceTitle: m,
|
|
19
20
|
occupation: d,
|
|
20
21
|
disableLinks: l = !1,
|
|
21
22
|
isDeleted: o = !1,
|
|
22
|
-
language:
|
|
23
|
-
languageDialect:
|
|
23
|
+
language: u = null,
|
|
24
|
+
languageDialect: h = null
|
|
24
25
|
}) => {
|
|
25
|
-
const t = B(),
|
|
26
|
+
const t = B(), f = _(), L = k()?.layout?.disableProfileLinks === !0, p = new Date(b) > Date.now();
|
|
26
27
|
return /* @__PURE__ */ r("div", { className: N(a.authorBox, "author-box"), children: [
|
|
27
|
-
!s || l || o ? /* @__PURE__ */ e(
|
|
28
|
+
!s || l || L || o ? /* @__PURE__ */ e(
|
|
28
29
|
g,
|
|
29
30
|
{
|
|
30
31
|
avatarUrl: o ? null : c,
|
|
31
32
|
userName: i,
|
|
32
|
-
isOnline:
|
|
33
|
+
isOnline: p,
|
|
33
34
|
size: 48
|
|
34
35
|
}
|
|
35
36
|
) : /* @__PURE__ */ e(
|
|
36
37
|
v,
|
|
37
38
|
{
|
|
38
|
-
to:
|
|
39
|
+
to: f.userShowLocation.toUrl({ userSlug: s }),
|
|
39
40
|
className: a.authorLink,
|
|
40
41
|
children: /* @__PURE__ */ e(
|
|
41
42
|
g,
|
|
42
43
|
{
|
|
43
44
|
avatarUrl: c,
|
|
44
45
|
userName: i,
|
|
45
|
-
isOnline:
|
|
46
|
+
isOnline: p,
|
|
46
47
|
size: 48
|
|
47
48
|
}
|
|
48
49
|
)
|
|
@@ -62,15 +63,15 @@ const q = ({
|
|
|
62
63
|
defaultMessage: "Deleted"
|
|
63
64
|
}) : i
|
|
64
65
|
}
|
|
65
|
-
) : /* @__PURE__ */ e("div", { className: a.authorLink, children: /* @__PURE__ */ e(v, { to:
|
|
66
|
-
|
|
67
|
-
/* @__PURE__ */ e(
|
|
66
|
+
) : /* @__PURE__ */ e("div", { className: a.authorLink, children: /* @__PURE__ */ e(v, { to: f.userShowLocation.toUrl({ userSlug: s }), children: i }) }),
|
|
67
|
+
M && !o && /* @__PURE__ */ r("div", { className: a.expertContainer, children: [
|
|
68
|
+
/* @__PURE__ */ e(P, { name: "expertBadge", width: 14, height: 14 }),
|
|
68
69
|
/* @__PURE__ */ e("span", { className: a.expertBadge, children: t.formatMessage({
|
|
69
70
|
id: "user.author_box.expert",
|
|
70
71
|
defaultMessage: "Journalist"
|
|
71
72
|
}) })
|
|
72
73
|
] }),
|
|
73
|
-
|
|
74
|
+
u && h && /* @__PURE__ */ e("div", { className: a.languageContainer, children: S(u, h) })
|
|
74
75
|
] }) }),
|
|
75
76
|
!o && /* @__PURE__ */ r(x, { children: [
|
|
76
77
|
/* @__PURE__ */ r("div", { className: a.authorPointsBox, children: [
|
|
@@ -114,5 +115,5 @@ const q = ({
|
|
|
114
115
|
] });
|
|
115
116
|
};
|
|
116
117
|
export {
|
|
117
|
-
|
|
118
|
+
R as AuthorBox
|
|
118
119
|
};
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import '../../../assets/components/user/author_box/AuthorBox.module-
|
|
1
|
+
import '../../../assets/components/user/author_box/AuthorBox.module-B8Sl2v33.css';const o = "_authorBox_s7rcq_3", t = "_authorNameBox_s7rcq_12", e = "_authorName_s7rcq_12", r = "_authorLink_s7rcq_37", a = "_authorNameLine_s7rcq_53", s = "_expertContainer_s7rcq_59", n = "_deleted_s7rcq_59", _ = "_linkDisabled_s7rcq_63", c = "_expertBadge_s7rcq_74", u = "_authorPointsBox_s7rcq_81", h = "_occupationBox_s7rcq_81", i = "_authorPoints_s7rcq_81", x = "_authorEloquence_s7rcq_101", q = "_separator_s7rcq_108", B = {
|
|
2
2
|
authorBox: o,
|
|
3
3
|
authorNameBox: t,
|
|
4
4
|
authorName: e,
|
|
5
|
-
authorLink:
|
|
6
|
-
authorNameLine:
|
|
7
|
-
expertContainer:
|
|
8
|
-
deleted:
|
|
9
|
-
linkDisabled:
|
|
10
|
-
expertBadge:
|
|
11
|
-
authorPointsBox:
|
|
12
|
-
occupationBox:
|
|
13
|
-
authorPoints:
|
|
14
|
-
authorEloquence:
|
|
15
|
-
separator:
|
|
5
|
+
authorLink: r,
|
|
6
|
+
authorNameLine: a,
|
|
7
|
+
expertContainer: s,
|
|
8
|
+
deleted: n,
|
|
9
|
+
linkDisabled: _,
|
|
10
|
+
expertBadge: c,
|
|
11
|
+
authorPointsBox: u,
|
|
12
|
+
occupationBox: h,
|
|
13
|
+
authorPoints: i,
|
|
14
|
+
authorEloquence: x,
|
|
15
|
+
separator: q
|
|
16
16
|
};
|
|
17
17
|
export {
|
|
18
18
|
o as authorBox,
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
x as authorEloquence,
|
|
20
|
+
r as authorLink,
|
|
21
21
|
e as authorName,
|
|
22
22
|
t as authorNameBox,
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
23
|
+
a as authorNameLine,
|
|
24
|
+
i as authorPoints,
|
|
25
|
+
u as authorPointsBox,
|
|
26
|
+
B as default,
|
|
27
|
+
n as deleted,
|
|
28
|
+
c as expertBadge,
|
|
29
|
+
s as expertContainer,
|
|
30
|
+
_ as linkDisabled,
|
|
31
|
+
h as occupationBox,
|
|
32
|
+
q as separator
|
|
33
33
|
};
|
|
@@ -0,0 +1,296 @@
|
|
|
1
|
+
import { jsx as a, jsxs as d, Fragment as O } from "react/jsx-runtime";
|
|
2
|
+
import { useState as l } from "react";
|
|
3
|
+
import { useIntl as ee, FormattedMessage as ae } from "react-intl";
|
|
4
|
+
import s from "./OnboardingModal.module.scss.js";
|
|
5
|
+
import { useAuth as te } from "../../auth/use_auth/useAuth.js";
|
|
6
|
+
import { useDataProvider as se } from "../../data/data_provider/useDataProvider.js";
|
|
7
|
+
import { useConfig as re } from "../../data/config_provider/useConfig.js";
|
|
8
|
+
import { useResponsive as ie } from "../../hooks/use_responsive/useResponsive.js";
|
|
9
|
+
import { useFormValidation as le } from "../../forms/use_form_validation/useFormValidation.js";
|
|
10
|
+
import { useModal as oe } from "../../dialog/modal/useModal.js";
|
|
11
|
+
import { Modal as ne } from "../../dialog/modal/Modal.js";
|
|
12
|
+
import { Loader as de } from "../../progress/loader/Loader.js";
|
|
13
|
+
import { AvatarSelector as ce } from "../avatar_selector/AvatarSelector.js";
|
|
14
|
+
import { Icon as me } from "../../icons/icon/Icon.js";
|
|
15
|
+
import { Button as S } from "../../action/button/Button.js";
|
|
16
|
+
import { TextInput as F } from "../../input/text_input/TextInput.js";
|
|
17
|
+
import { Select as ue } from "../../input/select/Select.js";
|
|
18
|
+
import { Toggle as D } from "../../input/toggle/Toggle.js";
|
|
19
|
+
const Se = ({
|
|
20
|
+
termsUrl: L,
|
|
21
|
+
privacyUrl: B,
|
|
22
|
+
showEmailConsent: U = !1,
|
|
23
|
+
showTerms: f = !1,
|
|
24
|
+
pendingAuth: n = !1,
|
|
25
|
+
onConsentConfirmed: y = null
|
|
26
|
+
}) => {
|
|
27
|
+
const o = te(), A = se(), r = ee(), i = re(), $ = [...Array(i.avatars?.maxFileName || 0).keys()].map(
|
|
28
|
+
(e) => `${i.avatars?.baseUrl}/${e + 1}.${i.avatars?.fileExtension}`
|
|
29
|
+
), [p, j] = l(o.currentUser.first_name || ""), [g, R] = l(
|
|
30
|
+
o.currentUser.description || ""
|
|
31
|
+
), [_, q] = l(o.currentUser.last_name || ""), [h, E] = l(o.currentUser.language), [z, v] = l(!1), [C, x] = l(
|
|
32
|
+
o.currentUser.image_url
|
|
33
|
+
), [m, T] = l(null), [k, P] = l(!1), [V, W] = l(!1), { isMobile: w } = ie(), { errors: c, validate: G } = le(), { hideModal: I } = oe(), [b, H] = l(!1), [M, J] = l(!1), K = (e) => {
|
|
34
|
+
const t = new FileReader();
|
|
35
|
+
t.onloadend = () => {
|
|
36
|
+
x(t.result);
|
|
37
|
+
}, t.readAsDataURL(e);
|
|
38
|
+
}, Q = [
|
|
39
|
+
{ first_name: ["required", null] },
|
|
40
|
+
{ first_name: ["minChar", 2] },
|
|
41
|
+
{ last_name: ["required", null] },
|
|
42
|
+
{ last_name: ["minChar", 2] },
|
|
43
|
+
...n ? [] : [{ language: ["required", null] }],
|
|
44
|
+
...f ? [{ accepts_terms: ["enforceValue", !0] }] : []
|
|
45
|
+
], X = (e) => {
|
|
46
|
+
e.preventDefault();
|
|
47
|
+
const t = {};
|
|
48
|
+
if (p && (t.first_name = p), _ && (t.last_name = _), h && (t.language = h), m && k && (t.image = m), m && !k && (t.origin_image_url = m), g && (t.description = g), U && (t.accepts_provider_email = M), f && (t.accepts_terms = b), t.is_onboarded = !0, G(t, Q)) {
|
|
49
|
+
W(!0);
|
|
50
|
+
const N = new FormData();
|
|
51
|
+
Object.entries(t).forEach(([u, Z]) => {
|
|
52
|
+
N.append(u, Z);
|
|
53
|
+
}), n && y ? y(N, t) : A.update("users", o.currentUser.slug, N).then((u) => {
|
|
54
|
+
u.data.success && o.setCurrentUser(u.data.data.resource), I();
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
}, Y = (e) => {
|
|
58
|
+
const t = /^(https?|ftp):\/\/[^\s/$.?#].[^\s]*$/i;
|
|
59
|
+
T(e), v(!1), t.test(e) ? (x(e), P(!1)) : (P(!0), K(e));
|
|
60
|
+
};
|
|
61
|
+
return /* @__PURE__ */ a(
|
|
62
|
+
ne,
|
|
63
|
+
{
|
|
64
|
+
"data-vid": "update_user_info_modal",
|
|
65
|
+
title: n ? r.formatMessage({
|
|
66
|
+
id: "modal.update_user_info_modal.complete_registration",
|
|
67
|
+
defaultMessage: "Complete your registration"
|
|
68
|
+
}) : r.formatMessage({
|
|
69
|
+
id: "modal.update_user_info_modal.modal_title",
|
|
70
|
+
defaultMessage: "Update your profile"
|
|
71
|
+
}),
|
|
72
|
+
style: {
|
|
73
|
+
width: w ? "unset" : "max-content",
|
|
74
|
+
minWidth: w ? "unset" : "500px",
|
|
75
|
+
maxWidth: "800px"
|
|
76
|
+
},
|
|
77
|
+
showCloseButton: !1,
|
|
78
|
+
disableClickOutside: !0,
|
|
79
|
+
children: V ? /* @__PURE__ */ a(de, {}) : z && !n ? /* @__PURE__ */ d(O, { children: [
|
|
80
|
+
/* @__PURE__ */ a(
|
|
81
|
+
ce,
|
|
82
|
+
{
|
|
83
|
+
onChooseAvatar: Y,
|
|
84
|
+
avatarUrlList: $,
|
|
85
|
+
userName: o.currentUser.full_name,
|
|
86
|
+
allowUserImage: i.avatars?.allowUserImage
|
|
87
|
+
}
|
|
88
|
+
),
|
|
89
|
+
/* @__PURE__ */ a(
|
|
90
|
+
"div",
|
|
91
|
+
{
|
|
92
|
+
className: s.backButton,
|
|
93
|
+
onClick: () => v(!1),
|
|
94
|
+
children: r.formatMessage({
|
|
95
|
+
id: "user.user_edit.back",
|
|
96
|
+
defaultMessage: "Back"
|
|
97
|
+
})
|
|
98
|
+
}
|
|
99
|
+
)
|
|
100
|
+
] }) : /* @__PURE__ */ d(O, { children: [
|
|
101
|
+
/* @__PURE__ */ d("div", { className: s.container, children: [
|
|
102
|
+
/* @__PURE__ */ d("div", { className: s.userImageContainer, children: [
|
|
103
|
+
C ? /* @__PURE__ */ a(
|
|
104
|
+
"img",
|
|
105
|
+
{
|
|
106
|
+
className: s.userPictureUpload,
|
|
107
|
+
src: C,
|
|
108
|
+
alt: r.formatMessage({
|
|
109
|
+
id: "alt.my_profile_picture",
|
|
110
|
+
defaultMessage: "Ma photo de profil"
|
|
111
|
+
})
|
|
112
|
+
}
|
|
113
|
+
) : /* @__PURE__ */ a("div", { className: s.userPictureUpload, children: /* @__PURE__ */ a(
|
|
114
|
+
me,
|
|
115
|
+
{
|
|
116
|
+
name: "camera",
|
|
117
|
+
height: 20,
|
|
118
|
+
width: 20,
|
|
119
|
+
alt: r.formatMessage({
|
|
120
|
+
id: "user.user_edit.profile_picture",
|
|
121
|
+
defaultMessage: "Profile picture"
|
|
122
|
+
})
|
|
123
|
+
}
|
|
124
|
+
) }),
|
|
125
|
+
!n && /* @__PURE__ */ a(
|
|
126
|
+
S,
|
|
127
|
+
{
|
|
128
|
+
"data-testid": "avatar-button",
|
|
129
|
+
"data-tid": "action_save_profile",
|
|
130
|
+
onClick: () => v(!0),
|
|
131
|
+
style: { whiteSpace: "nowrap" },
|
|
132
|
+
children: r.formatMessage({
|
|
133
|
+
id: "user.user_edit.avatar",
|
|
134
|
+
defaultMessage: "Select an avatar"
|
|
135
|
+
})
|
|
136
|
+
}
|
|
137
|
+
)
|
|
138
|
+
] }),
|
|
139
|
+
/* @__PURE__ */ d("div", { className: s.inputsContainer, children: [
|
|
140
|
+
/* @__PURE__ */ d("div", { className: s.nameContainer, children: [
|
|
141
|
+
/* @__PURE__ */ a("div", { className: s.updateProfileInput, children: /* @__PURE__ */ a(
|
|
142
|
+
F,
|
|
143
|
+
{
|
|
144
|
+
type: "text",
|
|
145
|
+
name: "first_name",
|
|
146
|
+
"aria-label": r.formatMessage({
|
|
147
|
+
id: "auth.signup_form.first_name.aria_label",
|
|
148
|
+
defaultMessage: "First name"
|
|
149
|
+
}),
|
|
150
|
+
placeholder: r.formatMessage({
|
|
151
|
+
id: "auth_signup_form_first_name_placeholder",
|
|
152
|
+
defaultMessage: "First name"
|
|
153
|
+
}),
|
|
154
|
+
onChange: (e) => i.actions?.disableOnboardingNameUpdate === !0 ? null : j(e.target.value),
|
|
155
|
+
value: p,
|
|
156
|
+
error: !!c.first_name,
|
|
157
|
+
message: c.first_name,
|
|
158
|
+
"data-testid": "first-name",
|
|
159
|
+
disabled: i.actions?.disableOnboardingNameUpdate === !0
|
|
160
|
+
}
|
|
161
|
+
) }),
|
|
162
|
+
/* @__PURE__ */ a("div", { className: s.updateProfileInput, children: /* @__PURE__ */ a(
|
|
163
|
+
F,
|
|
164
|
+
{
|
|
165
|
+
type: "text",
|
|
166
|
+
name: "last_name",
|
|
167
|
+
"aria-label": r.formatMessage({
|
|
168
|
+
id: "auth.signup_form.last_name.aria_label",
|
|
169
|
+
defaultMessage: "Last name"
|
|
170
|
+
}),
|
|
171
|
+
placeholder: r.formatMessage({
|
|
172
|
+
id: "auth_signup_form_last_name_placeholder",
|
|
173
|
+
defaultMessage: "Last name"
|
|
174
|
+
}),
|
|
175
|
+
onChange: (e) => i.actions?.disableOnboardingNameUpdate === !0 ? null : q(e.target.value),
|
|
176
|
+
value: _,
|
|
177
|
+
error: !!c.last_name,
|
|
178
|
+
message: c.last_name,
|
|
179
|
+
"data-testid": "last-name",
|
|
180
|
+
disabled: i.actions?.disableOnboardingNameUpdate === !0
|
|
181
|
+
}
|
|
182
|
+
) })
|
|
183
|
+
] }),
|
|
184
|
+
i.actions?.disableNameUpdate == !0 && i.actions?.disableOnboardingNameUpdate != !0 && /* @__PURE__ */ a("div", { className: s.hint, children: r.formatMessage({
|
|
185
|
+
id: "user.user_edit.user_name_hint",
|
|
186
|
+
defaultMessage: "last name"
|
|
187
|
+
}) }),
|
|
188
|
+
!n && i.translation?.translationMethods && Object.keys(i.translation.translationMethods).length > 0 && /* @__PURE__ */ a(
|
|
189
|
+
ue,
|
|
190
|
+
{
|
|
191
|
+
selectClassName: s.langSelect,
|
|
192
|
+
options: Object.keys(
|
|
193
|
+
i.translation.translationMethods
|
|
194
|
+
).map((e) => ({
|
|
195
|
+
name: e,
|
|
196
|
+
value: e,
|
|
197
|
+
text: `${e.toUpperCase()}`
|
|
198
|
+
})),
|
|
199
|
+
defaultOption: h,
|
|
200
|
+
onChange: (e) => E(e.value)
|
|
201
|
+
}
|
|
202
|
+
),
|
|
203
|
+
!n && /* @__PURE__ */ a("div", { className: s.userDescription, children: /* @__PURE__ */ a(
|
|
204
|
+
"textarea",
|
|
205
|
+
{
|
|
206
|
+
className: s.textArea,
|
|
207
|
+
placeholder: r.formatMessage({
|
|
208
|
+
id: "user.user_edit.user_description",
|
|
209
|
+
defaultMessage: "Describe yourself in a few words"
|
|
210
|
+
}),
|
|
211
|
+
value: g,
|
|
212
|
+
onChange: (e) => R(e.target.value),
|
|
213
|
+
maxLength: 500,
|
|
214
|
+
"data-testid": "description"
|
|
215
|
+
}
|
|
216
|
+
) })
|
|
217
|
+
] })
|
|
218
|
+
] }),
|
|
219
|
+
f && /* @__PURE__ */ a("div", { className: s.toggle, children: /* @__PURE__ */ a(
|
|
220
|
+
D,
|
|
221
|
+
{
|
|
222
|
+
type: "checkbox",
|
|
223
|
+
name: "accepts_terms",
|
|
224
|
+
style: { fontSize: 18 },
|
|
225
|
+
checked: b,
|
|
226
|
+
label: /* @__PURE__ */ a(
|
|
227
|
+
ae,
|
|
228
|
+
{
|
|
229
|
+
id: "modal.update_user_info_modal.accepts_terms",
|
|
230
|
+
defaultMessage: "I declare I have read the <var1>General Conditions of Use</var1> and the <var2>Privacy policy</var2> of the debate space and accept them.",
|
|
231
|
+
values: {
|
|
232
|
+
var1: (e) => /* @__PURE__ */ a(
|
|
233
|
+
"a",
|
|
234
|
+
{
|
|
235
|
+
className: s.cgu,
|
|
236
|
+
target: "_blank",
|
|
237
|
+
href: L,
|
|
238
|
+
rel: "noreferrer",
|
|
239
|
+
children: e
|
|
240
|
+
}
|
|
241
|
+
),
|
|
242
|
+
var2: (e) => /* @__PURE__ */ a(
|
|
243
|
+
"a",
|
|
244
|
+
{
|
|
245
|
+
className: s.cgu,
|
|
246
|
+
target: "_blank",
|
|
247
|
+
href: B,
|
|
248
|
+
rel: "noreferrer",
|
|
249
|
+
children: e
|
|
250
|
+
}
|
|
251
|
+
)
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
),
|
|
255
|
+
onInputChanged: (e) => H(!b),
|
|
256
|
+
message: c.accepts_terms,
|
|
257
|
+
"data-testid": "accepts-terms-input"
|
|
258
|
+
}
|
|
259
|
+
) }),
|
|
260
|
+
U && /* @__PURE__ */ a("div", { className: s.toggle, children: /* @__PURE__ */ a(
|
|
261
|
+
D,
|
|
262
|
+
{
|
|
263
|
+
type: "checkbox",
|
|
264
|
+
name: "accepts_provider_email",
|
|
265
|
+
style: { fontSize: 18 },
|
|
266
|
+
checked: M,
|
|
267
|
+
label: r.formatMessage(
|
|
268
|
+
{
|
|
269
|
+
id: "modal.update_user_info_modal.consent_label",
|
|
270
|
+
defaultMessage: "I agree to receive emails from the editor"
|
|
271
|
+
},
|
|
272
|
+
{ provider: i.provider?.companyName }
|
|
273
|
+
),
|
|
274
|
+
onInputChanged: (e) => J(!M),
|
|
275
|
+
"data-testid": "accepts-email-input"
|
|
276
|
+
}
|
|
277
|
+
) }),
|
|
278
|
+
/* @__PURE__ */ a("div", { className: s.userSaveBox, children: /* @__PURE__ */ a(
|
|
279
|
+
S,
|
|
280
|
+
{
|
|
281
|
+
"data-testid": "save-button",
|
|
282
|
+
"data-tid": "action_save_profile",
|
|
283
|
+
onClick: (e) => X(e),
|
|
284
|
+
children: r.formatMessage({
|
|
285
|
+
id: "user.user_edit.save",
|
|
286
|
+
defaultMessage: "Save"
|
|
287
|
+
})
|
|
288
|
+
}
|
|
289
|
+
) })
|
|
290
|
+
] })
|
|
291
|
+
}
|
|
292
|
+
);
|
|
293
|
+
};
|
|
294
|
+
export {
|
|
295
|
+
Se as OnboardingModal
|
|
296
|
+
};
|