@logora/debate 0.1.1 → 0.2.0

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