@logora/debate 0.3.88 → 0.3.89
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/components/argument/argument/Argument.module-gLfNRLks.css +1 -0
- package/dist/assets/components/consultation/consultation_box/ConsultationBox.module-BnTr5IaF.css +1 -0
- package/dist/assets/components/follow/follow_button/FollowButton.module-Da-cPgwT.css +1 -0
- package/dist/assets/components/input/text_editor/{TextEditor.module-CxuSL3l3.css → TextEditor.module-DePSfOvG.css} +1 -1
- package/dist/assets/components/list/paginated_list/action_bar/ActionBar.module-pxwFC_Y2.css +1 -0
- package/dist/assets/components/proposal/proposal_box/ProposalBox.module-T4ms_LQ7.css +1 -0
- package/dist/assets/components/section/section_box/SectionBox.module-DUeUtdWr.css +1 -0
- package/dist/assets/components/source/context_source_list/ContextSourceList.module-D6X_0dB7.css +1 -0
- package/dist/assets/components/source/source_list_item/SourceListItem.module-mTxHhXPV.css +1 -0
- package/dist/assets/components/summary/summary/Summary.module-DjfmUlkW.css +1 -0
- package/dist/assets/components/summary/summary_box/SummaryBox.module-DQVkA8l7.css +1 -0
- package/dist/assets/components/vote/vote_box/VoteBox.module-CDrqb2SZ.css +1 -0
- package/dist/components/argument/argument/Argument.js +106 -111
- package/dist/components/argument/argument/Argument.module.scss.js +31 -31
- package/dist/components/consultation/consultation_box/ConsultationBox.js +111 -80
- package/dist/components/consultation/consultation_box/ConsultationBox.module.scss.js +29 -31
- package/dist/components/dialog/dropdown/Dropdown.js +28 -35
- package/dist/components/follow/follow_button/FollowButton.js +16 -17
- package/dist/components/follow/follow_button/FollowButton.module.scss.js +4 -6
- package/dist/components/icons/bild_icons/index.js +56 -58
- package/dist/components/icons/hero_icons/index.js +18 -20
- package/dist/components/icons/krone_icons/index.js +46 -48
- package/dist/components/icons/regular_icons/index.js +18 -20
- package/dist/components/icons/spiegel_icons/index.js +52 -54
- package/dist/components/icons/stern_icons/index.js +70 -102
- package/dist/components/input/argument_input/ArgumentInput.js +197 -201
- package/dist/components/input/select/Select.js +19 -19
- package/dist/components/input/text_editor/TextEditor.js +129 -143
- package/dist/components/input/text_editor/TextEditor.module.scss.js +5 -5
- package/dist/components/input/text_editor/plugins/FocusPlugin.js +8 -12
- package/dist/components/input/text_editor/plugins/SetContentPlugin.js +13 -13
- package/dist/components/input/text_editor/plugins/SetRichContentPlugin.js +10 -10
- package/dist/components/input/text_editor/plugins/ToolbarPlugin.js +72 -70
- package/dist/components/list/paginated_list/PaginatedList.js +125 -131
- package/dist/components/list/paginated_list/action_bar/ActionBar.js +50 -53
- package/dist/components/list/paginated_list/action_bar/ActionBar.module.scss.js +16 -18
- package/dist/components/notification/notification_menu/NotificationMenu.js +22 -23
- package/dist/components/proposal/proposal_box/ProposalBox.js +59 -70
- package/dist/components/proposal/proposal_box/ProposalBox.module.scss.js +10 -14
- package/dist/components/section/section_box/SectionBox.js +10 -10
- package/dist/components/section/section_box/SectionBox.module.scss.js +9 -9
- package/dist/components/source/context_source_box/ContextSourceBox.js +7 -7
- package/dist/components/source/context_source_list/ContextSourceList.js +13 -10
- package/dist/components/source/context_source_list/ContextSourceList.module.scss.js +12 -14
- package/dist/components/source/source_list_item/SourceListItem.js +28 -42
- package/dist/components/source/source_list_item/SourceListItem.module.scss.js +6 -8
- package/dist/components/source/source_modal/SourceModal.js +15 -15
- package/dist/components/summary/summary/Summary.js +63 -41
- package/dist/components/summary/summary/Summary.module.scss.js +6 -10
- package/dist/components/summary/summary_box/SummaryBox.module.scss.js +9 -9
- package/dist/components/vote/vote_box/VoteBox.js +143 -122
- package/dist/components/vote/vote_box/VoteBox.module.scss.js +48 -50
- package/package.json +1 -1
- package/dist/assets/components/argument/argument/Argument.module-QZdPjj_i.css +0 -1
- package/dist/assets/components/consultation/consultation_box/ConsultationBox.module-DjNiVt-p.css +0 -1
- package/dist/assets/components/follow/follow_button/FollowButton.module-C9YXM8AM.css +0 -1
- package/dist/assets/components/list/paginated_list/action_bar/ActionBar.module-DvwCbS9k.css +0 -1
- package/dist/assets/components/proposal/proposal_box/ProposalBox.module-Dm8XDnr1.css +0 -1
- package/dist/assets/components/section/section_box/SectionBox.module-qQs4B6bf.css +0 -1
- package/dist/assets/components/source/context_source_list/ContextSourceList.module-DUPbI-wb.css +0 -1
- package/dist/assets/components/source/source_list_item/SourceListItem.module-fm_uHuY4.css +0 -1
- package/dist/assets/components/summary/summary/Summary.module-2bnx3egy.css +0 -1
- package/dist/assets/components/summary/summary_box/SummaryBox.module-Dr9PevSJ.css +0 -1
- package/dist/assets/components/vote/vote_box/VoteBox.module-D5sSSHpi.css +0 -1
- package/dist/components/icons/regular_icons/Follow.js +0 -6
- package/dist/components/icons/spiegel_icons/Downvote.js +0 -6
- package/dist/components/icons/spiegel_icons/Upvote.js +0 -6
|
@@ -1,100 +1,98 @@
|
|
|
1
|
-
import { jsx as i, Fragment as
|
|
2
|
-
import
|
|
3
|
-
import { useState as
|
|
4
|
-
import { useIntl as
|
|
5
|
-
import { useLocation as
|
|
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
|
|
8
|
-
import { SearchInput as
|
|
9
|
-
import { Select as
|
|
10
|
-
import { Tag as
|
|
11
|
-
import { Icon as
|
|
12
|
-
const
|
|
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
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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:
|
|
23
|
-
onSortChange:
|
|
24
|
-
onTagChange:
|
|
20
|
+
onSearch: p,
|
|
21
|
+
onSortChange: v,
|
|
22
|
+
onTagChange: S
|
|
25
23
|
}) => {
|
|
26
|
-
const
|
|
27
|
-
typeof window < "u" ? window.location.search :
|
|
28
|
-
),
|
|
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
|
|
31
|
-
|
|
32
|
-
|
|
28
|
+
for (const t of o.keys())
|
|
29
|
+
s.map((k) => {
|
|
30
|
+
k.name === t && o.delete(t);
|
|
33
31
|
});
|
|
34
|
-
|
|
32
|
+
o.delete("sort"), o.set(
|
|
35
33
|
e.type === "filter" ? e.name : "sort",
|
|
36
34
|
e.value
|
|
37
35
|
);
|
|
38
36
|
}
|
|
39
|
-
|
|
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: () =>
|
|
48
|
+
onClick: () => A(e),
|
|
51
49
|
children: /* @__PURE__ */ i(
|
|
52
|
-
|
|
50
|
+
_,
|
|
53
51
|
{
|
|
54
52
|
text: e.display_name,
|
|
55
53
|
active: t,
|
|
56
|
-
rightIcon: t && /* @__PURE__ */ i(
|
|
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(
|
|
61
|
+
return /* @__PURE__ */ i(f, { children: (n || s || a) && /* @__PURE__ */ m(f, { children: [
|
|
64
62
|
/* @__PURE__ */ m(
|
|
65
63
|
"div",
|
|
66
64
|
{
|
|
67
|
-
className:
|
|
68
|
-
[l.listHeaderOneItem]: !
|
|
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
|
-
(
|
|
70
|
+
(s || a) && /* @__PURE__ */ m(
|
|
73
71
|
"div",
|
|
74
72
|
{
|
|
75
|
-
className:
|
|
76
|
-
[l.rightBarOneItem]: !
|
|
73
|
+
className: h(l.rightBar, {
|
|
74
|
+
[l.rightBarOneItem]: !a || !s
|
|
77
75
|
}),
|
|
78
76
|
children: [
|
|
79
|
-
|
|
80
|
-
|
|
77
|
+
a ? /* @__PURE__ */ i("div", { className: l.search, children: /* @__PURE__ */ i(
|
|
78
|
+
R,
|
|
81
79
|
{
|
|
82
|
-
onSearchSubmit:
|
|
83
|
-
placeholder:
|
|
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
|
-
|
|
91
|
-
|
|
88
|
+
s ? /* @__PURE__ */ i(
|
|
89
|
+
T,
|
|
92
90
|
{
|
|
93
|
-
onChange:
|
|
94
|
-
options:
|
|
95
|
-
defaultOption:
|
|
91
|
+
onChange: y,
|
|
92
|
+
options: s,
|
|
93
|
+
defaultOption: u,
|
|
96
94
|
horizontalPosition: "right",
|
|
97
|
-
disabled:
|
|
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
|
-
|
|
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
|
-
|
|
109
|
+
X as ActionBar
|
|
113
110
|
};
|
|
@@ -1,25 +1,23 @@
|
|
|
1
|
-
import '../../../../assets/components/list/paginated_list/action_bar/ActionBar.module-
|
|
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:
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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
|
-
|
|
13
|
+
n as default,
|
|
15
14
|
t as listHeader,
|
|
16
15
|
e as listHeaderOneItem,
|
|
17
|
-
|
|
18
|
-
s as
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
r as
|
|
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
|
|
2
|
-
import { useState as
|
|
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
|
|
4
|
+
import i from "./NotificationMenu.module.scss.js";
|
|
5
5
|
import { useDataProvider as f } from "../../data/data_provider/useDataProvider.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
const
|
|
11
|
-
|
|
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(
|
|
16
|
-
/* @__PURE__ */ a("div", { className:
|
|
17
|
-
/* @__PURE__ */ t("div", { className:
|
|
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:
|
|
25
|
+
className: i.readNotificationsButton,
|
|
27
26
|
tabIndex: "0",
|
|
28
|
-
onClick:
|
|
29
|
-
children:
|
|
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:
|
|
37
|
-
|
|
35
|
+
/* @__PURE__ */ t("div", { className: i.notificationList, children: /* @__PURE__ */ t(
|
|
36
|
+
u,
|
|
38
37
|
{
|
|
39
38
|
currentListId: "notificationList",
|
|
40
|
-
loadingComponent: /* @__PURE__ */ t(
|
|
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
|
-
|
|
48
|
+
p,
|
|
50
49
|
{
|
|
51
50
|
notificationDefinitions: o,
|
|
52
|
-
isRead:
|
|
51
|
+
isRead: r
|
|
53
52
|
}
|
|
54
53
|
)
|
|
55
54
|
}
|
|
56
|
-
) })
|
|
55
|
+
) })
|
|
57
56
|
] });
|
|
58
57
|
};
|
|
59
58
|
export {
|
|
60
|
-
|
|
59
|
+
C as NotificationMenu
|
|
61
60
|
};
|
|
@@ -1,58 +1,57 @@
|
|
|
1
|
-
import { jsx as t, jsxs as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { useIntl as
|
|
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
|
|
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
|
|
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
|
|
11
|
-
import { ContentHeader as
|
|
12
|
-
import { ReadMore as
|
|
13
|
-
import { TranslationButton as
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
|
|
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:
|
|
20
|
-
fixedContentHeight:
|
|
21
|
-
|
|
22
|
-
enableEdition:
|
|
23
|
-
hideFooter:
|
|
18
|
+
disabled: i = !1,
|
|
19
|
+
fixedContentHeight: C,
|
|
20
|
+
contentMaxHeight: F = 156,
|
|
21
|
+
enableEdition: T = !0,
|
|
22
|
+
hideFooter: _ = !1
|
|
24
23
|
}) => {
|
|
25
|
-
const [
|
|
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
|
-
),
|
|
29
|
+
), n = p(
|
|
31
30
|
e.content,
|
|
32
31
|
e.language,
|
|
33
32
|
"content",
|
|
34
33
|
e.translation_entries
|
|
35
34
|
);
|
|
36
|
-
|
|
35
|
+
I(() => {
|
|
37
36
|
if (e.rich_content) {
|
|
38
|
-
const
|
|
39
|
-
if (
|
|
40
|
-
const
|
|
41
|
-
|
|
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
|
|
46
|
-
|
|
44
|
+
const w = () => {
|
|
45
|
+
s.toggleContent(), n.toggleContent();
|
|
47
46
|
};
|
|
48
|
-
return /* @__PURE__ */ t(
|
|
47
|
+
return /* @__PURE__ */ t(L, { elementId: m, onScroll: () => M(!0), children: /* @__PURE__ */ f(
|
|
49
48
|
"div",
|
|
50
49
|
{
|
|
51
|
-
className:
|
|
52
|
-
id:
|
|
50
|
+
className: u(o.proposalBoxContainer, { [o.flash]: v }),
|
|
51
|
+
id: m,
|
|
53
52
|
children: [
|
|
54
53
|
/* @__PURE__ */ t(
|
|
55
|
-
|
|
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:
|
|
67
|
-
[o.fixedHeight]:
|
|
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
|
-
|
|
69
|
+
D,
|
|
72
70
|
{
|
|
73
|
-
content: /* @__PURE__ */
|
|
74
|
-
e.is_edited && /* @__PURE__ */ t("div", { className: o.edited, children:
|
|
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:
|
|
79
|
-
|
|
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:
|
|
81
|
+
dangerouslySetInnerHTML: { __html: d }
|
|
84
82
|
}
|
|
85
|
-
) : /* @__PURE__ */ t("div", { className: o.proposalContent, children:
|
|
86
|
-
(
|
|
87
|
-
|
|
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: () =>
|
|
88
|
+
callback: () => w()
|
|
91
89
|
}
|
|
92
90
|
)
|
|
93
91
|
] }),
|
|
94
92
|
lineCount: 7,
|
|
95
|
-
readMoreText:
|
|
93
|
+
readMoreText: a.formatMessage({
|
|
96
94
|
id: "action.read_more",
|
|
97
95
|
defaultMessage: "Read more"
|
|
98
96
|
}),
|
|
99
|
-
readLessText:
|
|
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
|
-
|
|
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:
|
|
109
|
+
disabled: i || c,
|
|
122
110
|
reportType: "Proposal",
|
|
123
111
|
deleteType: "proposals",
|
|
124
112
|
deleteListId: "proposalsList",
|
|
125
|
-
|
|
113
|
+
shareModal: !0,
|
|
114
|
+
shareModalTitle: a.formatMessage({ id: "share.proposal" }),
|
|
126
115
|
shareUrl: `https://app.logora.fr/share/p/${e.id}`,
|
|
127
|
-
shareTitle:
|
|
128
|
-
shareText:
|
|
129
|
-
shareCode: `<iframe src="https://cdn.logora.com/embed.html?shortname=${
|
|
130
|
-
showShareCode:
|
|
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:
|
|
121
|
+
enableEdition: T,
|
|
133
122
|
children: /* @__PURE__ */ t(
|
|
134
|
-
|
|
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:
|
|
141
|
-
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
|
-
|
|
140
|
+
Z as ProposalBox
|
|
152
141
|
};
|
|
@@ -1,23 +1,19 @@
|
|
|
1
|
-
import '../../../assets/components/proposal/proposal_box/ProposalBox.module-
|
|
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:
|
|
4
|
+
edited: a,
|
|
5
5
|
proposalBoxContent: e,
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
proposalSourcesList: _,
|
|
10
|
-
fixedHeight: a
|
|
6
|
+
proposalTitle: n,
|
|
7
|
+
proposalContent: s,
|
|
8
|
+
fixedHeight: p
|
|
11
9
|
};
|
|
12
10
|
export {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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
|
-
|
|
20
|
-
|
|
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:
|
|
10
|
-
title:
|
|
9
|
+
isCollapsedByDefault: a = !1,
|
|
10
|
+
title: m,
|
|
11
11
|
subtitle: r = "",
|
|
12
|
-
className:
|
|
13
|
-
titleClassName:
|
|
14
|
-
children:
|
|
12
|
+
className: n,
|
|
13
|
+
titleClassName: d,
|
|
14
|
+
children: l
|
|
15
15
|
}) => {
|
|
16
|
-
const [c, h] = x(
|
|
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,
|
|
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(
|
|
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:
|
|
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-
|
|
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:
|
|
6
|
+
iconLightArrow: l,
|
|
7
7
|
iconRotated: n,
|
|
8
8
|
titleContainer: _,
|
|
9
|
-
title:
|
|
10
|
-
subtitle:
|
|
11
|
-
body:
|
|
9
|
+
title: a,
|
|
10
|
+
subtitle: s,
|
|
11
|
+
body: c
|
|
12
12
|
};
|
|
13
13
|
export {
|
|
14
|
-
|
|
14
|
+
c as body,
|
|
15
15
|
i as collapsible,
|
|
16
16
|
r as default,
|
|
17
17
|
e as header,
|
|
18
|
-
|
|
18
|
+
l as iconLightArrow,
|
|
19
19
|
n as iconRotated,
|
|
20
20
|
o as isMobile,
|
|
21
21
|
t as sectionBoxContainer,
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
s as subtitle,
|
|
23
|
+
a as title,
|
|
24
24
|
_ as titleContainer
|
|
25
25
|
};
|