@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.
Files changed (197) hide show
  1. package/dist/assets/components/action/back_link/BackLink.module-B9Ok2t4H.css +1 -0
  2. package/dist/assets/components/action/button/Button.module-D7nbgOES.css +1 -0
  3. package/dist/assets/components/action/icon_text_link/IconTextLink.module-CZKufK9Y.css +1 -0
  4. package/dist/assets/components/argument/argument/Argument.module-CC40BY1L.css +1 -0
  5. package/dist/assets/components/argument/argument/ReplyFooter.module-CoC9dY8T.css +1 -0
  6. package/dist/assets/components/auth/sso_form/SSOForm.module-DOw9cmCF.css +1 -0
  7. package/dist/assets/components/consultation/consultation_box/ConsultationBox.module-97r47y_e.css +1 -0
  8. package/dist/assets/components/debate/debate_box/DebateBox.module-emnqIGNF.css +1 -0
  9. package/dist/assets/components/dialog/dialog_box/DialogBox.module-ZoM8d2Ly.css +1 -0
  10. package/dist/assets/components/dialog/dropdown/Dropdown.module-BmT3rAwz.css +1 -0
  11. package/dist/assets/components/dialog/modal/Modal.module-Dt4SWx6U.css +1 -0
  12. package/dist/assets/components/dialog/toast/Toast.module-CW6j5xe7.css +1 -0
  13. package/dist/assets/components/dialog/tooltip/Tooltip.module-bQbmPiMf.css +1 -0
  14. package/dist/assets/components/embed/embed_header/EmbedHeader.module-C8RPiVBp.css +1 -0
  15. package/dist/assets/components/follow/follow_button/FollowButton.module-BjwLVTeb.css +1 -0
  16. package/dist/assets/components/gamification/badge_box/BadgeBox.module-DWqqtICw.css +1 -0
  17. package/dist/assets/components/gamification/point_box/{PointBox.module-BlHdQyht.css → PointBox.module-Dj6cCgSB.css} +1 -1
  18. package/dist/assets/components/information/information_box/InformationBox.module-DJLT957y.css +1 -0
  19. package/dist/assets/components/input/text_editor/TextEditor.module-KPtqT1Y6.css +1 -0
  20. package/dist/assets/components/input/text_editor/plugins/ToolbarPlugin.module-C3yG2biv.css +1 -0
  21. package/dist/assets/components/input/toggle_position/TogglePosition.module-H4gGmJ0V.css +1 -0
  22. package/dist/assets/components/list/paginated_list/action_bar/ActionBar.module-BDMBrj2Y.css +1 -0
  23. package/dist/assets/components/navigation/tabs/Tabs.module-50P6bk0B.css +1 -0
  24. package/dist/assets/components/notification/notification_item/NotificationItem.module-BQcDopYB.css +1 -0
  25. package/dist/assets/components/notification/notification_menu/NotificationMenu.module-DrCrfzVk.css +1 -0
  26. package/dist/assets/components/progress/progress_bar/ProgressBar.module-DoCH9Qoo.css +1 -0
  27. package/dist/assets/components/proposal/proposal_box/ProposalBox.module-D1ccjSLm.css +1 -0
  28. package/dist/assets/components/section/section_box/SectionBox.module-DF7k7Vxq.css +1 -0
  29. package/dist/assets/components/share/share_button/{ShareButton.module-BS6STEUD.css → ShareButton.module-BnVEYTzr.css} +1 -1
  30. package/dist/assets/components/skeleton/user_content_skeleton/UserContentSkeleton.module-d4r3QpYe.css +1 -0
  31. package/dist/assets/components/source/context_source_box/ContextSourceBox.module-doiSb_NR.css +1 -0
  32. package/dist/assets/components/source/context_source_list/ContextSourceList.module-Df4z4DN-.css +1 -0
  33. package/dist/assets/components/source/source_box/SourceBox.module-CQOBgJ5n.css +1 -0
  34. package/dist/assets/components/source/source_list_item/SourceListItem.module-C5YDjksb.css +1 -0
  35. package/dist/assets/components/suggestion/suggestion_banner/SuggestionBanner.module-P95xqaUA.css +1 -0
  36. package/dist/assets/components/suggestion/suggestion_box/SuggestionBox.module-CE_Wvk-K.css +1 -0
  37. package/dist/assets/components/suggestion/suggestion_input/SuggestionInput.module-r5N57bDp.css +1 -0
  38. package/dist/assets/components/summary/argument_summary_box/ArgumentSummaryBox.module-EDxcqwRa.css +1 -0
  39. package/dist/assets/components/summary/keyword_box/KeywordBox.module-yNHAvcRh.css +1 -0
  40. package/dist/assets/components/summary/summary_box/SummaryBox.module-Bu-AnMIG.css +1 -0
  41. package/dist/assets/components/text/read_more/ReadMore.module-Bs-YaspR.css +1 -0
  42. package/dist/assets/components/user/author_box/AuthorBox.module-B8Sl2v33.css +1 -0
  43. package/dist/assets/components/user/onboarding_modal/OnboardingModal.module-CTpt3xSh.css +1 -0
  44. package/dist/assets/components/user/user_box/UserBox.module-DMFhZDAH.css +1 -0
  45. package/dist/assets/components/user/user_box_small/UserBoxSmall.module-D4Ut5xmS.css +1 -0
  46. package/dist/assets/components/user_content/content_footer/ContentFooter.module-9A9E8k5l.css +1 -0
  47. package/dist/assets/components/user_content/content_header/ContentHeader.module-CXO2IRui.css +1 -0
  48. package/dist/assets/components/user_content/summary_content_box/SummaryContentBox.module-CBlL2Xii.css +1 -0
  49. package/dist/assets/components/user_content/use_report_content/ReportModal.module-mjFuOdmL.css +1 -0
  50. package/dist/assets/components/vote/suggestion_vote_box/SuggestionVoteBox.module-CKFriPV5.css +1 -0
  51. package/dist/assets/components/vote/vote_box/VoteBox.module-Bv7WY_vr.css +1 -0
  52. package/dist/assets/components/vote/vote_button/VoteButton.module-DqD79xv_.css +1 -0
  53. package/dist/components/action/back_link/BackLink.module.scss.js +1 -1
  54. package/dist/components/action/button/Button.module.scss.js +9 -9
  55. package/dist/components/action/icon_text_link/IconTextLink.module.scss.js +2 -2
  56. package/dist/components/argument/argument/Argument.js +120 -112
  57. package/dist/components/argument/argument/Argument.module.scss.js +40 -40
  58. package/dist/components/argument/argument/ReplyFooter.module.scss.js +8 -8
  59. package/dist/components/auth/auth_initializer/AuthInitializer.js +58 -41
  60. package/dist/components/auth/providers/FormAuth.js +6 -3
  61. package/dist/components/auth/providers/PasswordAuth.js +6 -6
  62. package/dist/components/auth/sso_form/SSOForm.module.scss.js +20 -20
  63. package/dist/components/auth/use_auth/base64.js +4 -0
  64. package/dist/components/auth/use_auth/useAuthActions.js +24 -24
  65. package/dist/components/consultation/consultation_box/ConsultationBox.js +4 -3
  66. package/dist/components/consultation/consultation_box/ConsultationBox.module.scss.js +25 -25
  67. package/dist/components/debate/debate_box/DebateBox.module.scss.js +20 -20
  68. package/dist/components/dialog/dialog_box/DialogBox.module.scss.js +14 -14
  69. package/dist/components/dialog/dropdown/Dropdown.js +19 -17
  70. package/dist/components/dialog/dropdown/Dropdown.module.scss.js +17 -13
  71. package/dist/components/dialog/modal/Modal.module.scss.js +9 -9
  72. package/dist/components/dialog/toast/Toast.module.scss.js +18 -18
  73. package/dist/components/dialog/tooltip/Tooltip.module.scss.js +8 -8
  74. package/dist/components/embed/embed_header/EmbedHeader.module.scss.js +18 -18
  75. package/dist/components/follow/follow_button/FollowButton.module.scss.js +1 -1
  76. package/dist/components/forms/use_form_validation/useFormValidation.js +1 -1
  77. package/dist/components/gamification/badge_box/BadgeBox.module.scss.js +18 -18
  78. package/dist/components/gamification/point_box/PointBox.module.scss.js +1 -1
  79. package/dist/components/icons/clarin_icons/Alarm.js +6 -0
  80. package/dist/components/icons/clarin_icons/Announcement.js +6 -0
  81. package/dist/components/icons/clarin_icons/Chat.js +6 -0
  82. package/dist/components/icons/clarin_icons/CheckCircle.js +9 -0
  83. package/dist/components/icons/clarin_icons/Clock.js +6 -0
  84. package/dist/components/icons/clarin_icons/Follow.js +6 -0
  85. package/dist/components/icons/clarin_icons/MobileClose.js +9 -0
  86. package/dist/components/icons/clarin_icons/Question.js +6 -0
  87. package/dist/components/icons/clarin_icons/Search.js +6 -0
  88. package/dist/components/icons/clarin_icons/Send.js +6 -0
  89. package/dist/components/icons/clarin_icons/Share.js +6 -0
  90. package/dist/components/icons/clarin_icons/Upvote.js +9 -0
  91. package/dist/components/icons/clarin_icons/User.js +9 -0
  92. package/dist/components/icons/clarin_icons/index.js +106 -0
  93. package/dist/components/information/information_box/InformationBox.module.scss.js +4 -4
  94. package/dist/components/input/argument_input/ArgumentInput.js +172 -167
  95. package/dist/components/input/text_editor/TextEditor.js +49 -47
  96. package/dist/components/input/text_editor/TextEditor.module.scss.js +28 -28
  97. package/dist/components/input/text_editor/plugins/IOSInsertParagraphFallbackPlugin.js +34 -0
  98. package/dist/components/input/text_editor/plugins/ToolbarPlugin.js +143 -94
  99. package/dist/components/input/text_editor/plugins/ToolbarPlugin.module.scss.js +19 -19
  100. package/dist/components/input/toggle_position/TogglePosition.module.scss.js +4 -4
  101. package/dist/components/list/paginated_list/PaginatedList.js +134 -124
  102. package/dist/components/list/paginated_list/action_bar/ActionBar.module.scss.js +12 -12
  103. package/dist/components/navbar/navbar_modal/NavbarModal.js +14 -14
  104. package/dist/components/navigation/tabs/Tabs.js +85 -24
  105. package/dist/components/navigation/tabs/Tabs.module.scss.js +19 -9
  106. package/dist/components/notification/notification_item/NotificationItem.module.scss.js +5 -5
  107. package/dist/components/notification/notification_menu/NotificationMenu.module.scss.js +2 -2
  108. package/dist/components/progress/progress_bar/ProgressBar.module.scss.js +10 -10
  109. package/dist/components/proposal/proposal_box/ProposalBox.js +58 -56
  110. package/dist/components/proposal/proposal_box/ProposalBox.module.scss.js +1 -1
  111. package/dist/components/section/section_box/SectionBox.module.scss.js +12 -12
  112. package/dist/components/share/share_button/ShareButton.js +26 -24
  113. package/dist/components/share/share_button/ShareButton.module.scss.js +5 -3
  114. package/dist/components/skeleton/user_content_skeleton/UserContentSkeleton.module.scss.js +4 -4
  115. package/dist/components/source/context_source_box/ContextSourceBox.module.scss.js +4 -4
  116. package/dist/components/source/context_source_list/ContextSourceList.module.scss.js +5 -5
  117. package/dist/components/source/source_box/SourceBox.module.scss.js +8 -8
  118. package/dist/components/source/source_list_item/SourceListItem.module.scss.js +7 -5
  119. package/dist/components/suggestion/suggestion_banner/SuggestionBanner.module.scss.js +5 -5
  120. package/dist/components/suggestion/suggestion_box/SuggestionBox.module.scss.js +1 -1
  121. package/dist/components/suggestion/suggestion_input/SuggestionInput.module.scss.js +9 -9
  122. package/dist/components/summary/argument_summary_box/ArgumentSummaryBox.module.scss.js +10 -10
  123. package/dist/components/summary/keyword_box/KeywordBox.module.scss.js +1 -1
  124. package/dist/components/summary/summary_box/SummaryBox.module.scss.js +8 -8
  125. package/dist/components/text/read_more/ReadMore.module.scss.js +4 -4
  126. package/dist/components/user/author_box/AuthorBox.js +18 -17
  127. package/dist/components/user/author_box/AuthorBox.module.scss.js +24 -24
  128. package/dist/components/user/onboarding_modal/OnboardingModal.js +296 -0
  129. package/dist/components/user/onboarding_modal/OnboardingModal.module.scss.js +29 -0
  130. package/dist/components/user/onboarding_modal/useOnboarding.js +80 -0
  131. package/dist/components/user/user_box/UserBox.js +48 -38
  132. package/dist/components/user/user_box/UserBox.module.scss.js +9 -9
  133. package/dist/components/user/user_box_small/UserBoxSmall.js +19 -18
  134. package/dist/components/user/user_box_small/UserBoxSmall.module.scss.js +6 -6
  135. package/dist/components/user_content/content_footer/ContentFooter.js +95 -92
  136. package/dist/components/user_content/content_footer/ContentFooter.module.scss.js +11 -11
  137. package/dist/components/user_content/content_header/ContentHeader.module.scss.js +22 -22
  138. package/dist/components/user_content/summary_content_box/SummaryContentBox.module.scss.js +1 -1
  139. package/dist/components/user_content/use_report_content/ReportModal.module.scss.js +8 -8
  140. package/dist/components/vote/suggestion_vote_box/SuggestionVoteBox.module.scss.js +1 -1
  141. package/dist/components/vote/vote_box/VoteBox.module.scss.js +42 -42
  142. package/dist/components/vote/vote_button/VoteButton.module.scss.js +5 -5
  143. package/dist/index.js +319 -312
  144. package/package.json +3 -2
  145. package/dist/assets/components/action/back_link/BackLink.module-nMAM5nvb.css +0 -1
  146. package/dist/assets/components/action/button/Button.module-BXkLuURK.css +0 -1
  147. package/dist/assets/components/action/icon_text_link/IconTextLink.module-B5PF-MMK.css +0 -1
  148. package/dist/assets/components/argument/argument/Argument.module-QZdPjj_i.css +0 -1
  149. package/dist/assets/components/argument/argument/ReplyFooter.module-x9Xlkt3Z.css +0 -1
  150. package/dist/assets/components/auth/sso_form/SSOForm.module-D5v2TrOv.css +0 -1
  151. package/dist/assets/components/consultation/consultation_box/ConsultationBox.module-DjNiVt-p.css +0 -1
  152. package/dist/assets/components/debate/debate_box/DebateBox.module-DTLafpl4.css +0 -1
  153. package/dist/assets/components/dialog/dialog_box/DialogBox.module-DKztqqmb.css +0 -1
  154. package/dist/assets/components/dialog/dropdown/Dropdown.module-FG2Sqrqs.css +0 -1
  155. package/dist/assets/components/dialog/modal/Modal.module-CIj-xCzY.css +0 -1
  156. package/dist/assets/components/dialog/toast/Toast.module-DJ2wSlJT.css +0 -1
  157. package/dist/assets/components/dialog/tooltip/Tooltip.module-zMXumgnX.css +0 -1
  158. package/dist/assets/components/embed/embed_header/EmbedHeader.module-CoyRY_jw.css +0 -1
  159. package/dist/assets/components/follow/follow_button/FollowButton.module-C9YXM8AM.css +0 -1
  160. package/dist/assets/components/gamification/badge_box/BadgeBox.module-BnskGH9b.css +0 -1
  161. package/dist/assets/components/information/information_box/InformationBox.module-B_MiEPn7.css +0 -1
  162. package/dist/assets/components/input/text_editor/TextEditor.module-CxuSL3l3.css +0 -1
  163. package/dist/assets/components/input/text_editor/plugins/ToolbarPlugin.module-CbPmMciY.css +0 -1
  164. package/dist/assets/components/input/toggle_position/TogglePosition.module-DDIigbfA.css +0 -1
  165. package/dist/assets/components/list/paginated_list/action_bar/ActionBar.module-DvwCbS9k.css +0 -1
  166. package/dist/assets/components/navigation/tabs/Tabs.module-CtDi0tAd.css +0 -1
  167. package/dist/assets/components/notification/notification_item/NotificationItem.module-BWdhgSy4.css +0 -1
  168. package/dist/assets/components/notification/notification_menu/NotificationMenu.module-BQwbvRIV.css +0 -1
  169. package/dist/assets/components/progress/progress_bar/ProgressBar.module-Dy-27Wf9.css +0 -1
  170. package/dist/assets/components/proposal/proposal_box/ProposalBox.module-Dm8XDnr1.css +0 -1
  171. package/dist/assets/components/section/section_box/SectionBox.module-qQs4B6bf.css +0 -1
  172. package/dist/assets/components/skeleton/user_content_skeleton/UserContentSkeleton.module-DhZm1xTr.css +0 -1
  173. package/dist/assets/components/source/context_source_box/ContextSourceBox.module-78Gxjx0w.css +0 -1
  174. package/dist/assets/components/source/context_source_list/ContextSourceList.module-DUPbI-wb.css +0 -1
  175. package/dist/assets/components/source/source_box/SourceBox.module-Cu_m3E85.css +0 -1
  176. package/dist/assets/components/source/source_list_item/SourceListItem.module-fm_uHuY4.css +0 -1
  177. package/dist/assets/components/suggestion/suggestion_banner/SuggestionBanner.module-D37NVZLS.css +0 -1
  178. package/dist/assets/components/suggestion/suggestion_box/SuggestionBox.module-DHxoF0oe.css +0 -1
  179. package/dist/assets/components/suggestion/suggestion_input/SuggestionInput.module-BsEj7sF3.css +0 -1
  180. package/dist/assets/components/summary/argument_summary_box/ArgumentSummaryBox.module-DLcsyMSD.css +0 -1
  181. package/dist/assets/components/summary/keyword_box/KeywordBox.module-DHkYfW0l.css +0 -1
  182. package/dist/assets/components/summary/summary_box/SummaryBox.module-Dr9PevSJ.css +0 -1
  183. package/dist/assets/components/text/read_more/ReadMore.module-Ni_Mm8o8.css +0 -1
  184. package/dist/assets/components/user/author_box/AuthorBox.module-CbH2S-MT.css +0 -1
  185. package/dist/assets/components/user/update_user_info_modal/UpdateUserInfoModal.module-DJym6u4r.css +0 -1
  186. package/dist/assets/components/user/user_box/UserBox.module-DGKK1afI.css +0 -1
  187. package/dist/assets/components/user/user_box_small/UserBoxSmall.module-ibAw9gGE.css +0 -1
  188. package/dist/assets/components/user_content/content_footer/ContentFooter.module-ax3j7VNT.css +0 -1
  189. package/dist/assets/components/user_content/content_header/ContentHeader.module-B0VwpU-R.css +0 -1
  190. package/dist/assets/components/user_content/summary_content_box/SummaryContentBox.module-DdzWnPjq.css +0 -1
  191. package/dist/assets/components/user_content/use_report_content/ReportModal.module-BxF-D5C5.css +0 -1
  192. package/dist/assets/components/vote/suggestion_vote_box/SuggestionVoteBox.module-CZeQKWIw.css +0 -1
  193. package/dist/assets/components/vote/vote_box/VoteBox.module-D5sSSHpi.css +0 -1
  194. package/dist/assets/components/vote/vote_button/VoteButton.module-aP9ZrGSd.css +0 -1
  195. package/dist/components/user/update_user_info_modal/UpdateUserInfoModal.js +0 -291
  196. package/dist/components/user/update_user_info_modal/UpdateUserInfoModal.module.scss.js +0 -29
  197. 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-Cu_m3E85.css';const o = "_sourceBox_qvj66_3", s = "_sourceBoxImage_qvj66_10", e = "_sourceBoxBody_qvj66_15", c = "_sourceBoxPublisher_qvj66_22", r = "_sourceBoxTitle_qvj66_30", u = "_sourceBoxDescription_qvj66_40", B = "_sourceLink_qvj66_50", _ = {
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: c,
6
- sourceBoxTitle: r,
5
+ sourceBoxPublisher: r,
6
+ sourceBoxTitle: c,
7
7
  sourceBoxDescription: u,
8
- sourceLink: B
8
+ sourceLink: t
9
9
  };
10
10
  export {
11
- _ as default,
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
- c as sourceBoxPublisher,
17
- r as sourceBoxTitle,
18
- B as sourceLink
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-fm_uHuY4.css';const t = "_sourceListItemContainer_as5dp_3", e = "_sourceListItem_as5dp_3", o = "_removeSourceButton_as5dp_33", s = {
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
- removeSourceButton: o
4
+ sourceListItemLink: o,
5
+ removeSourceButton: s
5
6
  };
6
7
  export {
7
- s as default,
8
- o as removeSourceButton,
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-D37NVZLS.css';const n = "_suggestionBannerContainer_14vdj_3", e = "_suggestionBannerContainerWrapped_14vdj_34", s = "_suggestionBannerContext_14vdj_38", t = "_isMobile_14vdj_62", o = "_suggestionBannerTitle_14vdj_66", i = "_suggestionBannerDescription_14vdj_74", g = "_suggestionBannerList_14vdj_79", r = "_suggestionBannerButton_14vdj_89", a = "_suggestionBannerListWrapped_14vdj_100", u = {
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: r,
10
- suggestionBannerListWrapped: a
9
+ suggestionBannerButton: a,
10
+ suggestionBannerListWrapped: r
11
11
  };
12
12
  export {
13
13
  u as default,
14
14
  t as isMobile,
15
- r as suggestionBannerButton,
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
- a as suggestionBannerListWrapped,
21
+ r as suggestionBannerListWrapped,
22
22
  o as suggestionBannerTitle
23
23
  };
@@ -1,4 +1,4 @@
1
- import '../../../assets/components/suggestion/suggestion_box/SuggestionBox.module-DHxoF0oe.css';const o = "_container_1lmpj_3", t = "_selected_1lmpj_16", e = "_expired_1lmpj_21", n = "_suggestion_1lmpj_27", r = "_arrowIcon_1lmpj_34", s = "_voteButton_1lmpj_38", _ = "_voteResultsContainer_1lmpj_42", c = "_footerContainer_1lmpj_46", i = "_footerActionContainer_1lmpj_51", a = {
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-BsEj7sF3.css';const t = "_suggestionInputContainer_1uirk_3", s = "_suggestionInputItem_1uirk_10", u = "_suggestionInputTitle_1uirk_16", n = "_suggestionInputSubtitle_1uirk_24", e = "_suggestionInputSubmit_1uirk_28", i = "_charactersCount_1uirk_32", g = "_guideMessage_1uirk_38", o = {
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: u,
5
- suggestionInputSubtitle: n,
4
+ suggestionInputTitle: n,
5
+ suggestionInputSubtitle: u,
6
6
  suggestionInputSubmit: e,
7
- charactersCount: i,
8
- guideMessage: g
7
+ charactersCount: g,
8
+ guideMessage: i
9
9
  };
10
10
  export {
11
- i as charactersCount,
11
+ g as charactersCount,
12
12
  o as default,
13
- g as guideMessage,
13
+ i as guideMessage,
14
14
  t as suggestionInputContainer,
15
15
  s as suggestionInputItem,
16
16
  e as suggestionInputSubmit,
17
- n as suggestionInputSubtitle,
18
- u as suggestionInputTitle
17
+ u as suggestionInputSubtitle,
18
+ n as suggestionInputTitle
19
19
  };
@@ -1,23 +1,23 @@
1
- import '../../../assets/components/summary/argument_summary_box/ArgumentSummaryBox.module-DLcsyMSD.css';const t = "_box_1bxw6_3", a = "_stats_1bxw6_10", s = "_informationsContainer_1bxw6_17", _ = "_label_1bxw6_29", b = "_gauge_1bxw6_34", o = "_bar_1bxw6_42", n = "_barFirst_1bxw6_48", r = "_barLast_1bxw6_52", x = "_tag_1bxw6_57", e = {
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: b,
7
- bar: o,
8
- barFirst: n,
6
+ gauge: o,
7
+ bar: n,
8
+ barFirst: e,
9
9
  barLast: r,
10
- tag: x
10
+ tag: l
11
11
  };
12
12
  export {
13
- o as bar,
14
- n as barFirst,
13
+ n as bar,
14
+ e as barFirst,
15
15
  r as barLast,
16
16
  t as box,
17
- e as default,
18
- b as gauge,
17
+ b as default,
18
+ o as gauge,
19
19
  s as informationsContainer,
20
20
  _ as label,
21
21
  a as stats,
22
- x as tag
22
+ l as tag
23
23
  };
@@ -1,4 +1,4 @@
1
- import '../../../assets/components/summary/keyword_box/KeywordBox.module-DHkYfW0l.css';const o = "_boxContainer_1m107_1", e = "_keywordTitle_1m107_8", t = "_occurrences_1m107_14", n = "_keywordButton_1m107_25", r = {
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-Dr9PevSJ.css';const t = "_box_f4my1_3", m = "_stats_f4my1_17", s = "_withTag_f4my1_24", _ = "_tag_f4my1_28", a = "_summaryItem_f4my1_47", y = "_emptySummaryText_f4my1_57", e = {
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: a,
7
- emptySummaryText: y
5
+ tag: e,
6
+ summaryItem: _,
7
+ emptySummaryText: a
8
8
  };
9
9
  export {
10
10
  t as box,
11
- e as default,
12
- y as emptySummaryText,
11
+ o as default,
12
+ a as emptySummaryText,
13
13
  m as stats,
14
- a as summaryItem,
15
- _ as tag,
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-Ni_Mm8o8.css';const e = "_readMore_1ws8j_1", r = "_pointer_1ws8j_7", s = "_readMoreWrapper_1ws8j_11", a = "_readMoreElement_1ws8j_21", o = "_readLessWrapper_1ws8j_30", _ = "_readLessElement_1ws8j_37", t = "_ellipsis_1ws8j_44", p = {
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: t
8
+ ellipsis: m
9
9
  };
10
10
  export {
11
- p as default,
12
- t as ellipsis,
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 L } from "../../data/config_provider/useRoutes.js";
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 _ } from "../../icons/icon/Icon.js";
10
+ import { Icon as P } from "../../icons/icon/Icon.js";
10
11
  import { getLocaleIcon as S } from "../../util/lang_emojis/langEmojis.js";
11
- const q = ({
12
+ const R = ({
12
13
  fullName: i,
13
14
  slug: s,
14
15
  avatarUrl: c,
15
- lastActivity: M,
16
- showBadge: b = !1,
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: h = null,
23
- languageDialect: u = null
23
+ language: u = null,
24
+ languageDialect: h = null
24
25
  }) => {
25
- const t = B(), p = L(), f = new Date(M) > Date.now();
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: f,
33
+ isOnline: p,
33
34
  size: 48
34
35
  }
35
36
  ) : /* @__PURE__ */ e(
36
37
  v,
37
38
  {
38
- to: p.userShowLocation.toUrl({ userSlug: s }),
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: f,
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: p.userShowLocation.toUrl({ userSlug: s }), children: i }) }),
66
- b && !o && /* @__PURE__ */ r("div", { className: a.expertContainer, children: [
67
- /* @__PURE__ */ e(_, { name: "expertBadge", width: 14, height: 14 }),
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
- h && u && /* @__PURE__ */ e("div", { className: a.languageContainer, children: S(h, u) })
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
- q as AuthorBox
118
+ R as AuthorBox
118
119
  };
@@ -1,33 +1,33 @@
1
- import '../../../assets/components/user/author_box/AuthorBox.module-CbH2S-MT.css';const o = "_authorBox_4zx4o_3", t = "_authorNameBox_4zx4o_12", e = "_authorName_4zx4o_12", a = "_authorLink_4zx4o_36", n = "_authorNameLine_4zx4o_52", _ = "_expertContainer_4zx4o_58", r = "_deleted_4zx4o_58", x = "_linkDisabled_4zx4o_62", u = "_expertBadge_4zx4o_73", s = "_authorPointsBox_4zx4o_79", c = "_occupationBox_4zx4o_79", h = "_authorPoints_4zx4o_79", i = "_authorEloquence_4zx4o_98", B = "_separator_4zx4o_105", l = {
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: a,
6
- authorNameLine: n,
7
- expertContainer: _,
8
- deleted: r,
9
- linkDisabled: x,
10
- expertBadge: u,
11
- authorPointsBox: s,
12
- occupationBox: c,
13
- authorPoints: h,
14
- authorEloquence: i,
15
- separator: B
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
- i as authorEloquence,
20
- a as authorLink,
19
+ x as authorEloquence,
20
+ r as authorLink,
21
21
  e as authorName,
22
22
  t as authorNameBox,
23
- n as authorNameLine,
24
- h as authorPoints,
25
- s as authorPointsBox,
26
- l as default,
27
- r as deleted,
28
- u as expertBadge,
29
- _ as expertContainer,
30
- x as linkDisabled,
31
- c as occupationBox,
32
- B as separator
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
+ };