@logora/debate 0.3.88 → 0.3.90

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 (67) hide show
  1. package/dist/assets/components/argument/argument/Argument.module-gLfNRLks.css +1 -0
  2. package/dist/assets/components/consultation/consultation_box/ConsultationBox.module-BnTr5IaF.css +1 -0
  3. package/dist/assets/components/follow/follow_button/FollowButton.module-Da-cPgwT.css +1 -0
  4. package/dist/assets/components/input/text_editor/{TextEditor.module-CxuSL3l3.css → TextEditor.module-DePSfOvG.css} +1 -1
  5. package/dist/assets/components/list/paginated_list/action_bar/ActionBar.module-pxwFC_Y2.css +1 -0
  6. package/dist/assets/components/proposal/proposal_box/ProposalBox.module-T4ms_LQ7.css +1 -0
  7. package/dist/assets/components/section/section_box/SectionBox.module-DUeUtdWr.css +1 -0
  8. package/dist/assets/components/source/context_source_list/ContextSourceList.module-D6X_0dB7.css +1 -0
  9. package/dist/assets/components/source/source_list_item/SourceListItem.module-mTxHhXPV.css +1 -0
  10. package/dist/assets/components/summary/summary/Summary.module-DjfmUlkW.css +1 -0
  11. package/dist/assets/components/summary/summary_box/SummaryBox.module-DQVkA8l7.css +1 -0
  12. package/dist/assets/components/vote/vote_box/VoteBox.module-CDrqb2SZ.css +1 -0
  13. package/dist/components/argument/argument/Argument.js +106 -111
  14. package/dist/components/argument/argument/Argument.module.scss.js +31 -31
  15. package/dist/components/consultation/consultation_box/ConsultationBox.js +111 -80
  16. package/dist/components/consultation/consultation_box/ConsultationBox.module.scss.js +29 -31
  17. package/dist/components/dialog/dropdown/Dropdown.js +28 -35
  18. package/dist/components/follow/follow_button/FollowButton.js +16 -17
  19. package/dist/components/follow/follow_button/FollowButton.module.scss.js +4 -6
  20. package/dist/components/icons/bild_icons/index.js +56 -58
  21. package/dist/components/icons/hero_icons/index.js +18 -20
  22. package/dist/components/icons/krone_icons/index.js +46 -48
  23. package/dist/components/icons/regular_icons/index.js +18 -20
  24. package/dist/components/icons/spiegel_icons/index.js +52 -54
  25. package/dist/components/icons/stern_icons/index.js +70 -102
  26. package/dist/components/input/argument_input/ArgumentInput.js +197 -201
  27. package/dist/components/input/select/Select.js +19 -19
  28. package/dist/components/input/text_editor/TextEditor.js +129 -143
  29. package/dist/components/input/text_editor/TextEditor.module.scss.js +5 -5
  30. package/dist/components/input/text_editor/plugins/FocusPlugin.js +8 -12
  31. package/dist/components/input/text_editor/plugins/SetContentPlugin.js +13 -13
  32. package/dist/components/input/text_editor/plugins/SetRichContentPlugin.js +10 -10
  33. package/dist/components/input/text_editor/plugins/ToolbarPlugin.js +72 -70
  34. package/dist/components/list/paginated_list/PaginatedList.js +125 -131
  35. package/dist/components/list/paginated_list/action_bar/ActionBar.js +50 -53
  36. package/dist/components/list/paginated_list/action_bar/ActionBar.module.scss.js +16 -18
  37. package/dist/components/notification/notification_menu/NotificationMenu.js +22 -23
  38. package/dist/components/proposal/proposal_box/ProposalBox.js +59 -70
  39. package/dist/components/proposal/proposal_box/ProposalBox.module.scss.js +10 -14
  40. package/dist/components/section/section_box/SectionBox.js +10 -10
  41. package/dist/components/section/section_box/SectionBox.module.scss.js +9 -9
  42. package/dist/components/source/context_source_box/ContextSourceBox.js +7 -7
  43. package/dist/components/source/context_source_list/ContextSourceList.js +13 -10
  44. package/dist/components/source/context_source_list/ContextSourceList.module.scss.js +12 -14
  45. package/dist/components/source/source_list_item/SourceListItem.js +28 -42
  46. package/dist/components/source/source_list_item/SourceListItem.module.scss.js +6 -8
  47. package/dist/components/source/source_modal/SourceModal.js +15 -15
  48. package/dist/components/summary/summary/Summary.js +63 -41
  49. package/dist/components/summary/summary/Summary.module.scss.js +6 -10
  50. package/dist/components/summary/summary_box/SummaryBox.module.scss.js +9 -9
  51. package/dist/components/vote/vote_box/VoteBox.js +143 -122
  52. package/dist/components/vote/vote_box/VoteBox.module.scss.js +48 -50
  53. package/package.json +1 -1
  54. package/dist/assets/components/argument/argument/Argument.module-QZdPjj_i.css +0 -1
  55. package/dist/assets/components/consultation/consultation_box/ConsultationBox.module-DjNiVt-p.css +0 -1
  56. package/dist/assets/components/follow/follow_button/FollowButton.module-C9YXM8AM.css +0 -1
  57. package/dist/assets/components/list/paginated_list/action_bar/ActionBar.module-DvwCbS9k.css +0 -1
  58. package/dist/assets/components/proposal/proposal_box/ProposalBox.module-Dm8XDnr1.css +0 -1
  59. package/dist/assets/components/section/section_box/SectionBox.module-qQs4B6bf.css +0 -1
  60. package/dist/assets/components/source/context_source_list/ContextSourceList.module-DUPbI-wb.css +0 -1
  61. package/dist/assets/components/source/source_list_item/SourceListItem.module-fm_uHuY4.css +0 -1
  62. package/dist/assets/components/summary/summary/Summary.module-2bnx3egy.css +0 -1
  63. package/dist/assets/components/summary/summary_box/SummaryBox.module-Dr9PevSJ.css +0 -1
  64. package/dist/assets/components/vote/vote_box/VoteBox.module-D5sSSHpi.css +0 -1
  65. package/dist/components/icons/regular_icons/Follow.js +0 -6
  66. package/dist/components/icons/spiegel_icons/Downvote.js +0 -6
  67. package/dist/components/icons/spiegel_icons/Upvote.js +0 -6
@@ -1,100 +1,98 @@
1
- import { jsx as i, Fragment as h, jsxs as m } from "react/jsx-runtime";
2
- import u from "classnames";
3
- import { useState as j } from "react";
4
- import { useIntl as H } from "react-intl";
5
- import { useLocation as R } from "react-router";
1
+ import { jsx as i, Fragment as f, jsxs as m } from "react/jsx-runtime";
2
+ import h from "classnames";
3
+ import { useState as C } from "react";
4
+ import { useIntl as M } from "react-intl";
5
+ import { useLocation as j } from "react-router";
6
6
  import l from "./ActionBar.module.scss.js";
7
- import { useResponsive as T } from "../../../hooks/use_responsive/useResponsive.js";
8
- import { SearchInput as _ } from "../../../input/search_input/SearchInput.js";
9
- import { Select as z } from "../../../input/select/Select.js";
10
- import { Tag as D } from "../../../tag/tag/Tag.js";
11
- import { Icon as F } from "../../../icons/icon/Icon.js";
12
- const Z = ({
7
+ import { useResponsive as H } from "../../../hooks/use_responsive/useResponsive.js";
8
+ import { SearchInput as R } from "../../../input/search_input/SearchInput.js";
9
+ import { Select as T } from "../../../input/select/Select.js";
10
+ import { Tag as _ } from "../../../tag/tag/Tag.js";
11
+ import { Icon as z } from "../../../icons/icon/Icon.js";
12
+ const X = ({
13
13
  title: n,
14
- subtitle: f,
15
- showDebateConsultationSubtitle: p = !1,
16
- sortOptions: a,
17
- defaultSelectOption: v,
18
- searchBar: o = !1,
14
+ sortOptions: s,
15
+ defaultSelectOption: u,
16
+ searchBar: a = !1,
19
17
  tagList: c,
20
18
  activeTagId: r,
21
19
  withUrlParams: d = !1,
22
- onSearch: S,
23
- onSortChange: g,
24
- onTagChange: I
20
+ onSearch: p,
21
+ onSortChange: v,
22
+ onTagChange: S
25
23
  }) => {
26
- const N = H(), x = R(), { isMobile: L } = T(), [y, A] = j(!1), s = new URLSearchParams(
27
- typeof window < "u" ? window.location.search : x.search
28
- ), b = (e) => {
24
+ const g = M(), I = j(), { isMobile: D } = H(), [N, x] = C(!1), o = new URLSearchParams(
25
+ typeof window < "u" ? window.location.search : I.search
26
+ ), y = (e) => {
29
27
  if (d) {
30
- for (const t of s.keys())
31
- a.map((M) => {
32
- M.name === t && s.delete(t);
28
+ for (const t of o.keys())
29
+ s.map((k) => {
30
+ k.name === t && o.delete(t);
33
31
  });
34
- s.delete("sort"), s.set(
32
+ o.delete("sort"), o.set(
35
33
  e.type === "filter" ? e.name : "sort",
36
34
  e.value
37
35
  );
38
36
  }
39
- g(e);
37
+ v(e);
38
+ }, A = (e) => {
39
+ d && (e.id === r ? o.delete("tagId") : o.set("tagId", e.id)), S(e.id === r ? null : e.id);
40
+ }, b = (e) => {
41
+ d && (e ? o.set("search", e) : o.delete("search")), p(e), x(e !== "");
40
42
  }, w = (e) => {
41
- d && (e.id === r ? s.delete("tagId") : s.set("tagId", e.id)), I(e.id === r ? null : e.id);
42
- }, k = (e) => {
43
- d && (e ? s.set("search", e) : s.delete("search")), S(e), A(e !== "");
44
- }, C = (e) => {
45
43
  const t = r === e.id;
46
44
  return /* @__PURE__ */ i(
47
45
  "div",
48
46
  {
49
47
  className: l.tagItem,
50
- onClick: () => w(e),
48
+ onClick: () => A(e),
51
49
  children: /* @__PURE__ */ i(
52
- D,
50
+ _,
53
51
  {
54
52
  text: e.display_name,
55
53
  active: t,
56
- rightIcon: t && /* @__PURE__ */ i(F, { name: "close", height: 10, width: 10 })
54
+ rightIcon: t && /* @__PURE__ */ i(z, { name: "close", height: 10, width: 10 })
57
55
  }
58
56
  )
59
57
  },
60
58
  e.id
61
59
  );
62
60
  };
63
- return /* @__PURE__ */ i(h, { children: (n || a || o) && /* @__PURE__ */ m(h, { children: [
61
+ return /* @__PURE__ */ i(f, { children: (n || s || a) && /* @__PURE__ */ m(f, { children: [
64
62
  /* @__PURE__ */ m(
65
63
  "div",
66
64
  {
67
- className: u(l.listHeader, {
68
- [l.listHeaderOneItem]: !o || !a
65
+ className: h(l.listHeader, {
66
+ [l.listHeaderOneItem]: !a || !s
69
67
  }),
70
68
  children: [
71
69
  n && /* @__PURE__ */ i("div", { className: l.listTitle, children: n }),
72
- (a || o) && /* @__PURE__ */ m(
70
+ (s || a) && /* @__PURE__ */ m(
73
71
  "div",
74
72
  {
75
- className: u(l.rightBar, {
76
- [l.rightBarOneItem]: !o || !a
73
+ className: h(l.rightBar, {
74
+ [l.rightBarOneItem]: !a || !s
77
75
  }),
78
76
  children: [
79
- o ? /* @__PURE__ */ i("div", { className: l.search, children: /* @__PURE__ */ i(
80
- _,
77
+ a ? /* @__PURE__ */ i("div", { className: l.search, children: /* @__PURE__ */ i(
78
+ R,
81
79
  {
82
- onSearchSubmit: k,
83
- placeholder: N.formatMessage({
80
+ onSearchSubmit: b,
81
+ placeholder: g.formatMessage({
84
82
  id: "info.search_mobile",
85
83
  defaultMessage: "Search"
86
84
  }),
87
85
  reducedByDefault: !1
88
86
  }
89
87
  ) }) : null,
90
- a ? /* @__PURE__ */ i(
91
- z,
88
+ s ? /* @__PURE__ */ i(
89
+ T,
92
90
  {
93
- onChange: b,
94
- options: a,
95
- defaultOption: v,
91
+ onChange: y,
92
+ options: s,
93
+ defaultOption: u,
96
94
  horizontalPosition: "right",
97
- disabled: y,
95
+ disabled: N,
98
96
  className: l.select
99
97
  }
100
98
  ) : null
@@ -104,10 +102,9 @@ const Z = ({
104
102
  ]
105
103
  }
106
104
  ),
107
- p && f && /* @__PURE__ */ i("div", { className: l.listSubtitle, children: f }),
108
- c && c.length > 0 && /* @__PURE__ */ i("div", { className: l.tagList, children: c.map(C) })
105
+ c && c.length > 0 && /* @__PURE__ */ i("div", { className: l.tagList, children: c.map(w) })
109
106
  ] }) });
110
107
  };
111
108
  export {
112
- Z as ActionBar
109
+ X as ActionBar
113
110
  };
@@ -1,25 +1,23 @@
1
- import '../../../../assets/components/list/paginated_list/action_bar/ActionBar.module-DvwCbS9k.css';const t = "_listHeader_un1z2_3", e = "_listHeaderOneItem_un1z2_16", s = "_listTitle_un1z2_23", _ = "_listSubtitle_un1z2_30", i = "_rightBar_un1z2_37", n = "_rightBarOneItem_un1z2_47", a = "_search_un1z2_58", l = "_tagList_un1z2_68", r = "_tagItem_un1z2_83", c = "_select_un1z2_90", u = {
1
+ import '../../../../assets/components/list/paginated_list/action_bar/ActionBar.module-pxwFC_Y2.css';const t = "_listHeader_fbaxc_3", e = "_listHeaderOneItem_fbaxc_16", a = "_listTitle_fbaxc_23", s = "_rightBar_fbaxc_30", _ = "_rightBarOneItem_fbaxc_40", c = "_search_fbaxc_51", r = "_tagList_fbaxc_61", i = "_tagItem_fbaxc_76", l = "_select_fbaxc_83", n = {
2
2
  listHeader: t,
3
3
  listHeaderOneItem: e,
4
- listTitle: s,
5
- listSubtitle: _,
6
- rightBar: i,
7
- rightBarOneItem: n,
8
- search: a,
9
- tagList: l,
10
- tagItem: r,
11
- select: c
4
+ listTitle: a,
5
+ rightBar: s,
6
+ rightBarOneItem: _,
7
+ search: c,
8
+ tagList: r,
9
+ tagItem: i,
10
+ select: l
12
11
  };
13
12
  export {
14
- u as default,
13
+ n as default,
15
14
  t as listHeader,
16
15
  e as listHeaderOneItem,
17
- _ as listSubtitle,
18
- s as listTitle,
19
- i as rightBar,
20
- n as rightBarOneItem,
21
- a as search,
22
- c as select,
23
- r as tagItem,
24
- l as tagList
16
+ a as listTitle,
17
+ s as rightBar,
18
+ _ as rightBarOneItem,
19
+ c as search,
20
+ l as select,
21
+ i as tagItem,
22
+ r as tagList
25
23
  };
@@ -1,20 +1,19 @@
1
- import { jsxs as a, Fragment as c, jsx as t } from "react/jsx-runtime";
2
- import { useState as l } from "react";
1
+ import { jsxs as a, Fragment as l, jsx as t } from "react/jsx-runtime";
2
+ import { useState as d } from "react";
3
3
  import { useIntl as m } from "react-intl";
4
- import e from "./NotificationMenu.module.scss.js";
4
+ import i from "./NotificationMenu.module.scss.js";
5
5
  import { useDataProvider as f } from "../../data/data_provider/useDataProvider.js";
6
- import { StandardErrorBoundary as u } from "../../error/standard_error_boundary/StandardErrorBoundary.js";
7
- import { PaginatedList as p } from "../../list/paginated_list/PaginatedList.js";
8
- import { NotificationItem as h } from "../notification_item/NotificationItem.js";
9
- import { UserContentSkeleton as g } from "../../skeleton/user_content_skeleton/UserContentSkeleton.js";
10
- const P = ({ notificationDefinitions: o = {} }) => {
11
- const i = m(), r = f(), [n, s] = l(!1), d = () => {
12
- s(!0), r.create("notifications/read/all", {}).then(() => {
6
+ import { PaginatedList as u } from "../../list/paginated_list/PaginatedList.js";
7
+ import { NotificationItem as p } from "../notification_item/NotificationItem.js";
8
+ import { UserContentSkeleton as h } from "../../skeleton/user_content_skeleton/UserContentSkeleton.js";
9
+ const C = ({ notificationDefinitions: o = {} }) => {
10
+ const e = m(), n = f(), [r, s] = d(!1), c = () => {
11
+ s(!0), n.create("notifications/read/all", {}).then(() => {
13
12
  });
14
13
  };
15
- return /* @__PURE__ */ a(c, { children: [
16
- /* @__PURE__ */ a("div", { className: e.notificationMenuHeader, children: [
17
- /* @__PURE__ */ t("div", { className: e.notificationMenuHeaderText, children: i.formatMessage({
14
+ return /* @__PURE__ */ a(l, { children: [
15
+ /* @__PURE__ */ a("div", { className: i.notificationMenuHeader, children: [
16
+ /* @__PURE__ */ t("div", { className: i.notificationMenuHeaderText, children: e.formatMessage({
18
17
  id: "header.notifications",
19
18
  defaultMessage: "Alerts"
20
19
  }) }),
@@ -23,21 +22,21 @@ const P = ({ notificationDefinitions: o = {} }) => {
23
22
  {
24
23
  id: "read_all_notifications",
25
24
  "data-tid": "action_read_all_notifications",
26
- className: e.readNotificationsButton,
25
+ className: i.readNotificationsButton,
27
26
  tabIndex: "0",
28
- onClick: d,
29
- children: i.formatMessage({
27
+ onClick: c,
28
+ children: e.formatMessage({
30
29
  id: "notifications.read_all",
31
30
  defaultMessage: "Mark all as read"
32
31
  })
33
32
  }
34
33
  )
35
34
  ] }),
36
- /* @__PURE__ */ t("div", { className: e.notificationList, children: /* @__PURE__ */ t(u, { hideMessage: !0, children: /* @__PURE__ */ t(
37
- p,
35
+ /* @__PURE__ */ t("div", { className: i.notificationList, children: /* @__PURE__ */ t(
36
+ u,
38
37
  {
39
38
  currentListId: "notificationList",
40
- loadingComponent: /* @__PURE__ */ t(g, { numberLines: 0 }),
39
+ loadingComponent: /* @__PURE__ */ t(h, { numberLines: 0 }),
41
40
  resourcePropName: "notification",
42
41
  resource: "notifications",
43
42
  sort: "-created_at",
@@ -46,16 +45,16 @@ const P = ({ notificationDefinitions: o = {} }) => {
46
45
  display: "column",
47
46
  gap: "0px",
48
47
  children: /* @__PURE__ */ t(
49
- h,
48
+ p,
50
49
  {
51
50
  notificationDefinitions: o,
52
- isRead: n
51
+ isRead: r
53
52
  }
54
53
  )
55
54
  }
56
- ) }) })
55
+ ) })
57
56
  ] });
58
57
  };
59
58
  export {
60
- P as NotificationMenu
59
+ C as NotificationMenu
61
60
  };
@@ -1,58 +1,57 @@
1
- import { jsx as t, jsxs as g, Fragment as I } from "react/jsx-runtime";
2
- import { useState as p, useEffect as N } from "react";
3
- import C from "classnames";
4
- import { useIntl as y } from "react-intl";
1
+ import { jsx as t, jsxs as f, Fragment as y } from "react/jsx-runtime";
2
+ import u from "classnames";
3
+ import { useState as g, useEffect as I } from "react";
4
+ import { useIntl as N } from "react-intl";
5
5
  import o from "./ProposalBox.module.scss.js";
6
- import { useConfig as L } from "../../data/config_provider/useConfig.js";
6
+ import { useConfig as S } from "../../data/config_provider/useConfig.js";
7
7
  import { useAuth as B } from "../../auth/use_auth/useAuth.js";
8
- import { useTranslatedContent as _ } from "../../translation/translated_content/useTranslatedContent.js";
8
+ import { useTranslatedContent as p } from "../../translation/translated_content/useTranslatedContent.js";
9
9
  import { lexicalToHtml as H } from "../../input/text_editor/lexicalToHtml.js";
10
- import { HashScroll as U } from "../../tools/hash_scroll/HashScroll.js";
11
- import { ContentHeader as D } from "../../user_content/content_header/ContentHeader.js";
12
- import { ReadMore as P } from "../../text/read_more/ReadMore.js";
13
- import { TranslationButton as R } from "../../translation/translation_button/TranslationButton.js";
14
- import { SourceListItem as $ } from "../../source/source_list_item/SourceListItem.js";
15
- import { ContentFooter as F } from "../../user_content/content_footer/ContentFooter.js";
16
- import { UpDownVoteBox as j } from "../../vote/up_down_vote_box/UpDownVoteBox.js";
17
- const te = ({
10
+ import { HashScroll as L } from "../../tools/hash_scroll/HashScroll.js";
11
+ import { ContentHeader as U } from "../../user_content/content_header/ContentHeader.js";
12
+ import { ReadMore as D } from "../../text/read_more/ReadMore.js";
13
+ import { TranslationButton as P } from "../../translation/translation_button/TranslationButton.js";
14
+ import { ContentFooter as R } from "../../user_content/content_footer/ContentFooter.js";
15
+ import { UpDownVoteBox as $ } from "../../vote/up_down_vote_box/UpDownVoteBox.js";
16
+ const Z = ({
18
17
  proposal: e,
19
- disabled: d = !1,
20
- fixedContentHeight: c,
21
- fitContent: T = !1,
22
- enableEdition: v = !0,
23
- hideFooter: x = !1
18
+ disabled: i = !1,
19
+ fixedContentHeight: C,
20
+ contentMaxHeight: F = 156,
21
+ enableEdition: T = !0,
22
+ hideFooter: _ = !1
24
23
  }) => {
25
- const [m, M] = p(null), [w, b] = p(!1), r = y(), n = L(), { currentUser: h } = B(), f = h?.moderation_status === "banned", u = `proposal_${e.id}`, i = _(
24
+ const [d, x] = g(null), [v, M] = g(!1), a = N(), r = S(), { currentUser: l } = B(), c = l?.moderation_status === "banned", m = `proposal_${e.id}`, s = p(
26
25
  e.title,
27
26
  e.language,
28
27
  "title",
29
28
  e.translation_entries
30
- ), a = _(
29
+ ), n = p(
31
30
  e.content,
32
31
  e.language,
33
32
  "content",
34
33
  e.translation_entries
35
34
  );
36
- N(() => {
35
+ I(() => {
37
36
  if (e.rich_content) {
38
- const s = JSON.parse(e.rich_content);
39
- if (s.hasOwnProperty("root")) {
40
- const l = H(s);
41
- M(l);
37
+ const h = JSON.parse(e.rich_content);
38
+ if (h.hasOwnProperty("root")) {
39
+ const b = H(h);
40
+ x(b);
42
41
  }
43
42
  }
44
43
  }, [e.rich_content]);
45
- const S = () => {
46
- i.toggleContent(), a.toggleContent();
44
+ const w = () => {
45
+ s.toggleContent(), n.toggleContent();
47
46
  };
48
- return /* @__PURE__ */ t(U, { elementId: u, onScroll: () => b(!0), children: /* @__PURE__ */ g(
47
+ return /* @__PURE__ */ t(L, { elementId: m, onScroll: () => M(!0), children: /* @__PURE__ */ f(
49
48
  "div",
50
49
  {
51
- className: C(o.proposalBoxContainer, { [o.flash]: w }),
52
- id: u,
50
+ className: u(o.proposalBoxContainer, { [o.flash]: v }),
51
+ id: m,
53
52
  children: [
54
53
  /* @__PURE__ */ t(
55
- D,
54
+ U,
56
55
  {
57
56
  author: e.author,
58
57
  tag: e.tag?.display_name,
@@ -63,40 +62,39 @@ const te = ({
63
62
  /* @__PURE__ */ t(
64
63
  "div",
65
64
  {
66
- className: C(o.proposalBoxContent, {
67
- [o.fixedHeight]: c,
68
- [o.withMinHeight]: !T && !c
65
+ className: u(o.proposalBoxContent, {
66
+ [o.fixedHeight]: C
69
67
  }),
70
68
  children: /* @__PURE__ */ t("div", { children: /* @__PURE__ */ t(
71
- P,
69
+ D,
72
70
  {
73
- content: /* @__PURE__ */ g(I, { children: [
74
- e.is_edited && /* @__PURE__ */ t("div", { className: o.edited, children: r.formatMessage({
71
+ content: /* @__PURE__ */ f(y, { children: [
72
+ e.is_edited && /* @__PURE__ */ t("div", { className: o.edited, children: a.formatMessage({
75
73
  id: "proposal.updated",
76
74
  defaultMessage: "Updated proposal"
77
75
  }) }),
78
- /* @__PURE__ */ t("div", { className: o.proposalTitle, children: i.translatedContent }),
79
- m && !a.isTranslated ? /* @__PURE__ */ t(
76
+ /* @__PURE__ */ t("div", { className: o.proposalTitle, children: s.translatedContent }),
77
+ d && !n.isTranslated ? /* @__PURE__ */ t(
80
78
  "div",
81
79
  {
82
80
  className: o.proposalContent,
83
- dangerouslySetInnerHTML: { __html: m }
81
+ dangerouslySetInnerHTML: { __html: d }
84
82
  }
85
- ) : /* @__PURE__ */ t("div", { className: o.proposalContent, children: a.translatedContent }),
86
- (a.isTranslated || i.isTranslated) && /* @__PURE__ */ t(
87
- R,
83
+ ) : /* @__PURE__ */ t("div", { className: o.proposalContent, children: n.translatedContent }),
84
+ (n.isTranslated || s.isTranslated) && /* @__PURE__ */ t(
85
+ P,
88
86
  {
89
87
  language: e.language,
90
- callback: () => S()
88
+ callback: () => w()
91
89
  }
92
90
  )
93
91
  ] }),
94
92
  lineCount: 7,
95
- readMoreText: r.formatMessage({
93
+ readMoreText: a.formatMessage({
96
94
  id: "action.read_more",
97
95
  defaultMessage: "Read more"
98
96
  }),
99
- readLessText: r.formatMessage({
97
+ readLessText: a.formatMessage({
100
98
  id: "action.read_less",
101
99
  defaultMessage: "Read less"
102
100
  })
@@ -104,41 +102,32 @@ const te = ({
104
102
  ) })
105
103
  }
106
104
  ),
107
- e.sources?.length > 0 && /* @__PURE__ */ t("div", { className: o.proposalSourcesList, children: e.sources.map((s, l) => /* @__PURE__ */ t(
108
- $,
109
- {
110
- publisher: s.publisher,
111
- url: s.source_url,
112
- title: s.title,
113
- index: l
114
- },
115
- s.id
116
- )) }),
117
- !x && /* @__PURE__ */ t(
118
- F,
105
+ !_ && /* @__PURE__ */ t(
106
+ R,
119
107
  {
120
108
  resource: e,
121
- disabled: d || f,
109
+ disabled: i || c,
122
110
  reportType: "Proposal",
123
111
  deleteType: "proposals",
124
112
  deleteListId: "proposalsList",
125
- shareModalTitle: r.formatMessage({ id: "share.proposal" }),
113
+ shareModal: !0,
114
+ shareModalTitle: a.formatMessage({ id: "share.proposal" }),
126
115
  shareUrl: `https://app.logora.fr/share/p/${e.id}`,
127
- shareTitle: r.formatMessage({ id: "share.proposal.title" }),
128
- shareText: r.formatMessage({ id: "share.proposal.text" }),
129
- shareCode: `<iframe src="https://cdn.logora.com/embed.html?shortname=${n.shortname}&id=${e.id}&resource=proposal" frameborder="0" width="100%" height="335px" scrolling="no"></iframe>`,
130
- showShareCode: n?.actions?.hideCodeShare !== !0,
116
+ shareTitle: a.formatMessage({ id: "share.proposal.title" }),
117
+ shareText: a.formatMessage({ id: "share.proposal.text" }),
118
+ shareCode: `<iframe src="https://cdn.logora.com/embed.html?shortname=${r.shortname}&id=${e.id}&resource=proposal" frameborder="0" width="100%" height="335px" scrolling="no"></iframe>`,
119
+ showShareCode: r?.actions?.hideCodeShare !== !0,
131
120
  showActions: !e.author.consultation_id,
132
- enableEdition: v,
121
+ enableEdition: T,
133
122
  children: /* @__PURE__ */ t(
134
- j,
123
+ $,
135
124
  {
136
125
  voteableType: "Proposal",
137
126
  voteableId: e.id,
138
127
  totalUpvote: e.total_upvotes,
139
128
  totalDownvote: e.total_downvotes,
140
- disabled: d || h?.id === e?.author?.id || f,
141
- hideDownvotes: n?.actions?.hideDownvotes
129
+ disabled: i || l?.id === e?.author?.id || c,
130
+ hideDownvotes: r?.actions?.hideDownvotes
142
131
  }
143
132
  )
144
133
  }
@@ -148,5 +137,5 @@ const te = ({
148
137
  ) });
149
138
  };
150
139
  export {
151
- te as ProposalBox
140
+ Z as ProposalBox
152
141
  };
@@ -1,23 +1,19 @@
1
- import '../../../assets/components/proposal/proposal_box/ProposalBox.module-Dm8XDnr1.css';const o = "_proposalBoxContainer_5x1d0_3", t = "_flash_5x1d0_17", s = "_edited_5x1d0_25", e = "_proposalBoxContent_5x1d0_32", n = "_withMinHeight_5x1d0_40", p = "_proposalTitle_5x1d0_44", i = "_proposalContent_5x1d0_52", _ = "_proposalSourcesList_5x1d0_56", a = "_fixedHeight_5x1d0_68", l = {
1
+ import '../../../assets/components/proposal/proposal_box/ProposalBox.module-T4ms_LQ7.css';const o = "_proposalBoxContainer_awwcm_3", t = "_flash_awwcm_17", a = "_edited_awwcm_25", e = "_proposalBoxContent_awwcm_32", n = "_proposalTitle_awwcm_44", s = "_proposalContent_awwcm_52", p = "_fixedHeight_awwcm_56", _ = {
2
2
  proposalBoxContainer: o,
3
3
  flash: t,
4
- edited: s,
4
+ edited: a,
5
5
  proposalBoxContent: e,
6
- withMinHeight: n,
7
- proposalTitle: p,
8
- proposalContent: i,
9
- proposalSourcesList: _,
10
- fixedHeight: a
6
+ proposalTitle: n,
7
+ proposalContent: s,
8
+ fixedHeight: p
11
9
  };
12
10
  export {
13
- l as default,
14
- s as edited,
15
- a as fixedHeight,
11
+ _ as default,
12
+ a as edited,
13
+ p as fixedHeight,
16
14
  t as flash,
17
15
  o as proposalBoxContainer,
18
16
  e as proposalBoxContent,
19
- i as proposalContent,
20
- _ as proposalSourcesList,
21
- p as proposalTitle,
22
- n as withMinHeight
17
+ s as proposalContent,
18
+ n as proposalTitle
23
19
  };
@@ -6,20 +6,20 @@ import { useResponsive as N } from "../../hooks/use_responsive/useResponsive.js"
6
6
  import { Icon as g } from "../../icons/icon/Icon.js";
7
7
  const I = ({
8
8
  isCollapsible: t = !1,
9
- isCollapsedByDefault: n = !1,
10
- title: a,
9
+ isCollapsedByDefault: a = !1,
10
+ title: m,
11
11
  subtitle: r = "",
12
- className: m,
13
- titleClassName: l,
14
- children: d
12
+ className: n,
13
+ titleClassName: d,
14
+ children: l
15
15
  }) => {
16
- const [c, h] = x(n), { isMobile: f } = N(), p = () => {
16
+ const [c, h] = x(a), { isMobile: f } = N(), p = () => {
17
17
  t && h((v) => !v);
18
18
  };
19
19
  return /* @__PURE__ */ s(
20
20
  "div",
21
21
  {
22
- className: o(e.sectionBoxContainer, m, {
22
+ className: o(e.sectionBoxContainer, {
23
23
  [e.isMobile]: f
24
24
  }),
25
25
  children: [
@@ -30,8 +30,8 @@ const I = ({
30
30
  onClick: t ? p : null,
31
31
  children: [
32
32
  /* @__PURE__ */ s("div", { className: e.titleContainer, children: [
33
- /* @__PURE__ */ i("div", { className: o(l, e.title), children: a }),
34
- r && /* @__PURE__ */ i("div", { className: o(e.subtitle), children: r })
33
+ /* @__PURE__ */ i("div", { className: o(d, e.title), children: m }),
34
+ r && /* @__PURE__ */ i("div", { className: o(n, e.subtitle), children: r })
35
35
  ] }),
36
36
  t && /* @__PURE__ */ i(
37
37
  g,
@@ -47,7 +47,7 @@ const I = ({
47
47
  ]
48
48
  }
49
49
  ),
50
- (!c || !t) && /* @__PURE__ */ i("div", { className: o(e.body), children: d })
50
+ (!c || !t) && /* @__PURE__ */ i("div", { className: o(e.body, n), children: l })
51
51
  ]
52
52
  }
53
53
  );
@@ -1,25 +1,25 @@
1
- import '../../../assets/components/section/section_box/SectionBox.module-qQs4B6bf.css';const t = "_sectionBoxContainer_tcujo_3", o = "_isMobile_tcujo_15", e = "_header_tcujo_19", i = "_collapsible_tcujo_26", c = "_iconLightArrow_tcujo_30", n = "_iconRotated_tcujo_36", _ = "_titleContainer_tcujo_40", s = "_title_tcujo_40", l = "_subtitle_tcujo_54", a = "_body_tcujo_59", r = {
1
+ import '../../../assets/components/section/section_box/SectionBox.module-DUeUtdWr.css';const t = "_sectionBoxContainer_m9zal_3", o = "_isMobile_m9zal_15", e = "_header_m9zal_19", i = "_collapsible_m9zal_26", l = "_iconLightArrow_m9zal_30", n = "_iconRotated_m9zal_34", _ = "_titleContainer_m9zal_38", a = "_title_m9zal_38", s = "_subtitle_m9zal_52", c = "_body_m9zal_57", r = {
2
2
  sectionBoxContainer: t,
3
3
  isMobile: o,
4
4
  header: e,
5
5
  collapsible: i,
6
- iconLightArrow: c,
6
+ iconLightArrow: l,
7
7
  iconRotated: n,
8
8
  titleContainer: _,
9
- title: s,
10
- subtitle: l,
11
- body: a
9
+ title: a,
10
+ subtitle: s,
11
+ body: c
12
12
  };
13
13
  export {
14
- a as body,
14
+ c as body,
15
15
  i as collapsible,
16
16
  r as default,
17
17
  e as header,
18
- c as iconLightArrow,
18
+ l as iconLightArrow,
19
19
  n as iconRotated,
20
20
  o as isMobile,
21
21
  t as sectionBoxContainer,
22
- l as subtitle,
23
- s as title,
22
+ s as subtitle,
23
+ a as title,
24
24
  _ as titleContainer
25
25
  };