@logora/debate 0.4.96 → 0.4.99
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/embed/embed_header/EmbedHeader.module-C8RPiVBp.css +1 -0
- package/dist/components/embed/embed_header/EmbedHeader.js +32 -34
- package/dist/components/embed/embed_header/EmbedHeader.module.scss.js +14 -14
- package/dist/components/proposal/proposal_box/ProposalBox.js +62 -57
- package/dist/components/report/report_box/ReportBox.js +12 -5
- package/package.json +1 -1
- package/dist/assets/components/embed/embed_header/EmbedHeader.module-DhNVlLiN.css +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._headerBox_czmub_3{display:flex!important;flex-direction:column!important;padding:0!important}._headerBoxLabel_czmub_9{display:flex!important;justify-content:flex-start!important}._headerBoxLabel_czmub_9>._titleRedirectUrl_czmub_13{background:var(--background-color-primary, white)!important}._headerBoxLabel_czmub_9>._titleRedirectUrl_czmub_13:hover{background:var(--background-color-primary, white)!important}._headerBoxLabel_czmub_9 a{text-decoration:none!important}._headerLiveStat_czmub_24{margin-left:auto!important;margin-right:var(--spacer-sm, calc(var(--space-unit, 1em) * .5))!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;color:var(--call-primary-color, #434343);font-size:var(--font-size-small, 16px);margin-left:30px}._headerLiveStat_czmub_24 span{margin-left:10px;margin-bottom:0!important}@media(prefers-color-scheme:dark){.logoraDarkMode ._headerLiveStat_czmub_24{color:#fff!important}.logoraDarkMode ._headerLiveNow_czmub_43{background-color:#fff!important}.logoraDarkMode ._headerLiveNow_czmub_43:before{background-color:#fff!important}}._headerLiveNow_czmub_43{min-width:8px;width:8px;height:8px;border-radius:50%;background-color:var(--call-primary-color, #434343);position:relative}._headerLiveNow_czmub_43:before{content:"";position:absolute;width:100%;height:100%;border-radius:50%;background-color:var(--call-primary-color, #434343);opacity:.4;animation-name:_livePin_czmub_1;animation-duration:1.6s;animation-iteration-count:infinite}@container (min-width: 576px){._headerLivePin_czmub_72{display:block!important}}._headerLivePin_czmub_72{display:none!important}@container (min-width: 576px){._headerLivePinMobile_czmub_81{display:none!important}}._headerLivePinMobile_czmub_81{display:block!important}@keyframes _livePin_czmub_1{0%{transform:scale(2.3)}50%{transform:scale(0)}to{transform:scale(2.3)}}._headerLabelText_czmub_100{background-color:var(--call-primary-color, #434343);color:var(--text-light, white);border-bottom:1px solid;border-color:var(--call-primary-color, #434343);border-radius:var(--box-border-radius, 6px) 0 var(--box-border-radius, 6px) 0;font-size:var(--font-size-normal, 16px);flex-wrap:nowrap;white-space:nowrap;padding-right:var(--spacer-sm, calc(var(--space-unit, 1em) * .5))!important;padding-left:var(--spacer-sm, calc(var(--space-unit, 1em) * .5))!important;padding-top:var(--spacer-sm, calc(var(--space-unit, 1em) * .5))!important;padding-bottom:var(--spacer-sm, calc(var(--space-unit, 1em) * .5))!important}._debateName_czmub_115{color:var(--text-primary, #222222);font-weight:var(--font-weight-bold, 700);font-variation-settings:var(--font-variation-bold, normal);text-align:center;width:100%;display:flex!important;align-items:center!important;justify-content:center!important;padding-bottom:0!important;padding-top:var(--space-unit, 1em)!important;padding-right:var(--space-unit, 1em)!important;padding-left:var(--space-unit, 1em)!important}@container (min-width: 576px){._debateName_czmub_115{padding-right:0!important}}@container (min-width: 576px){._debateName_czmub_115{padding-left:0!important}}._debateName_czmub_115 a._debateLink_czmub_139{color:var(--text-primary, #222222)!important}._debateLink_czmub_139{font-size:var(--font-size-large, 20px);line-height:var(--line-height-normal, 1.26em);background:var(--background-color-primary, white)!important;text-decoration:none!important;color:var(--text-primary, #222222);font-weight:var(--font-weight-bold, 700);font-variation-settings:var(--font-variation-bold, normal)}._debateLink_czmub_139:hover{background:var(--background-color-primary, white)!important;text-decoration:underline!important}._left_czmub_157{justify-content:flex-start!important;padding-right:var(--space-unit, 1em)!important;padding-left:var(--space-unit, 1em)!important;padding-top:var(--space-unit, 1em)!important;padding-bottom:0!important;text-align:left}._headerLogo_czmub_166{width:100px!important;height:40px!important;object-fit:contain;object-position:left}._debateNameWithLogo_czmub_173{padding-right:0!important;padding-left:0!important}
|
|
@@ -1,44 +1,42 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
1
|
+
import { jsxs as i, jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import r from "classnames";
|
|
3
3
|
import "react";
|
|
4
|
-
import { FormattedMessage as
|
|
4
|
+
import { FormattedMessage as n } from "react-intl";
|
|
5
5
|
import e from "./EmbedHeader.module.scss.js";
|
|
6
|
-
import { Link as
|
|
7
|
-
const
|
|
8
|
-
title:
|
|
9
|
-
titleRedirectUrl:
|
|
10
|
-
headerLabel:
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
logoUrl: s,
|
|
6
|
+
import { Link as o } from "../../action/link/Link.js";
|
|
7
|
+
const x = ({
|
|
8
|
+
title: m,
|
|
9
|
+
titleRedirectUrl: s,
|
|
10
|
+
headerLabel: l,
|
|
11
|
+
onlineUsersCount: t,
|
|
12
|
+
textLeft: c,
|
|
13
|
+
className: h,
|
|
14
|
+
logoUrl: d,
|
|
16
15
|
logoAlt: b
|
|
17
|
-
}) => /* @__PURE__ */
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
16
|
+
}) => /* @__PURE__ */ i("div", { className: r(e.headerBox, h), children: [
|
|
17
|
+
l && /* @__PURE__ */ i("div", { className: e.headerBoxLabel, children: [
|
|
18
|
+
/* @__PURE__ */ a(
|
|
19
|
+
o,
|
|
21
20
|
{
|
|
22
|
-
to:
|
|
21
|
+
to: s,
|
|
23
22
|
target: "_top",
|
|
24
23
|
external: !0,
|
|
25
24
|
"data-tid": "link_debate_index_embed",
|
|
26
25
|
rel: "nofollow",
|
|
27
|
-
children:
|
|
26
|
+
children: d ? /* @__PURE__ */ a(
|
|
28
27
|
"img",
|
|
29
28
|
{
|
|
30
29
|
loading: "lazy",
|
|
31
30
|
className: e.headerLogo,
|
|
32
|
-
src:
|
|
31
|
+
src: d,
|
|
33
32
|
width: 100,
|
|
34
33
|
height: 40,
|
|
35
34
|
alt: b
|
|
36
35
|
}
|
|
37
|
-
) : /* @__PURE__ */ a("div", { className: e.headerLabelText, children:
|
|
36
|
+
) : /* @__PURE__ */ a("div", { className: e.headerLabelText, children: l })
|
|
38
37
|
}
|
|
39
38
|
),
|
|
40
|
-
|
|
41
|
-
t && i ? /* @__PURE__ */ l("div", { className: e.headerLiveStat, children: [
|
|
39
|
+
t ? /* @__PURE__ */ i("div", { className: e.headerLiveStat, children: [
|
|
42
40
|
/* @__PURE__ */ a("div", { className: e.headerLiveNow }),
|
|
43
41
|
/* @__PURE__ */ a(
|
|
44
42
|
"span",
|
|
@@ -46,10 +44,10 @@ const g = ({
|
|
|
46
44
|
className: e.headerLivePin,
|
|
47
45
|
"data-testid": "online-users-count",
|
|
48
46
|
children: /* @__PURE__ */ a(
|
|
49
|
-
|
|
47
|
+
n,
|
|
50
48
|
{
|
|
51
49
|
id: "embed.embed_header.online_users",
|
|
52
|
-
values: { count:
|
|
50
|
+
values: { count: t },
|
|
53
51
|
defaultMessage: "{count} online users"
|
|
54
52
|
}
|
|
55
53
|
)
|
|
@@ -61,10 +59,10 @@ const g = ({
|
|
|
61
59
|
className: e.headerLivePinMobile,
|
|
62
60
|
"data-testid": "online-users-count-mobile",
|
|
63
61
|
children: /* @__PURE__ */ a(
|
|
64
|
-
|
|
62
|
+
n,
|
|
65
63
|
{
|
|
66
64
|
id: "embed.embed_header.online",
|
|
67
|
-
values: { count:
|
|
65
|
+
values: { count: t },
|
|
68
66
|
defaultMessage: "{count} online"
|
|
69
67
|
}
|
|
70
68
|
)
|
|
@@ -75,26 +73,26 @@ const g = ({
|
|
|
75
73
|
/* @__PURE__ */ a(
|
|
76
74
|
"div",
|
|
77
75
|
{
|
|
78
|
-
className:
|
|
79
|
-
[e.left]:
|
|
80
|
-
[e.debateNameWithLogo]:
|
|
76
|
+
className: r(e.debateName, {
|
|
77
|
+
[e.left]: c,
|
|
78
|
+
[e.debateNameWithLogo]: d
|
|
81
79
|
}),
|
|
82
80
|
"data-testid": "debate-name",
|
|
83
81
|
children: /* @__PURE__ */ a(
|
|
84
|
-
|
|
82
|
+
o,
|
|
85
83
|
{
|
|
86
84
|
className: e.debateLink,
|
|
87
|
-
to:
|
|
85
|
+
to: s,
|
|
88
86
|
target: "_top",
|
|
89
87
|
external: !0,
|
|
90
88
|
"data-tid": "link_debate_title_embed",
|
|
91
89
|
rel: "nofollow",
|
|
92
|
-
children:
|
|
90
|
+
children: m
|
|
93
91
|
}
|
|
94
92
|
)
|
|
95
93
|
}
|
|
96
94
|
)
|
|
97
95
|
] });
|
|
98
96
|
export {
|
|
99
|
-
|
|
97
|
+
x as EmbedHeader
|
|
100
98
|
};
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import '../../../assets/components/embed/embed_header/EmbedHeader.module-
|
|
1
|
+
import '../../../assets/components/embed/embed_header/EmbedHeader.module-C8RPiVBp.css';const e = "_headerBox_czmub_3", a = "_headerBoxLabel_czmub_9", t = "_headerLiveStat_czmub_24", o = "_headerLiveNow_czmub_43", _ = "_headerLivePin_czmub_72", d = "_headerLivePinMobile_czmub_81", b = "_headerLabelText_czmub_100", h = "_debateName_czmub_115", i = "_debateLink_czmub_139", L = "_left_czmub_157", c = "_headerLogo_czmub_166", r = "_debateNameWithLogo_czmub_173", n = {
|
|
2
2
|
headerBox: e,
|
|
3
3
|
headerBoxLabel: a,
|
|
4
4
|
headerLiveStat: t,
|
|
5
5
|
headerLiveNow: o,
|
|
6
6
|
headerLivePin: _,
|
|
7
7
|
headerLivePinMobile: d,
|
|
8
|
-
headerLabelText:
|
|
9
|
-
debateName:
|
|
10
|
-
debateLink:
|
|
11
|
-
left:
|
|
12
|
-
headerLogo:
|
|
13
|
-
debateNameWithLogo:
|
|
8
|
+
headerLabelText: b,
|
|
9
|
+
debateName: h,
|
|
10
|
+
debateLink: i,
|
|
11
|
+
left: L,
|
|
12
|
+
headerLogo: c,
|
|
13
|
+
debateNameWithLogo: r
|
|
14
14
|
};
|
|
15
15
|
export {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
i as debateLink,
|
|
17
|
+
h as debateName,
|
|
18
|
+
r as debateNameWithLogo,
|
|
19
|
+
n as default,
|
|
20
20
|
e as headerBox,
|
|
21
21
|
a as headerBoxLabel,
|
|
22
|
-
|
|
22
|
+
b as headerLabelText,
|
|
23
23
|
o as headerLiveNow,
|
|
24
24
|
_ as headerLivePin,
|
|
25
25
|
d as headerLivePinMobile,
|
|
26
26
|
t as headerLiveStat,
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
c as headerLogo,
|
|
28
|
+
L as left
|
|
29
29
|
};
|
|
@@ -1,92 +1,97 @@
|
|
|
1
|
-
import { jsx as t, jsxs as
|
|
2
|
-
import { useState as
|
|
3
|
-
import { buildShareUrl as
|
|
4
|
-
import
|
|
1
|
+
import { jsx as t, jsxs as l, Fragment as N } from "react/jsx-runtime";
|
|
2
|
+
import { useState as _, useEffect as I } from "react";
|
|
3
|
+
import { buildShareUrl as U } from "../../tools/share_url/index.js";
|
|
4
|
+
import p from "classnames";
|
|
5
5
|
import { useIntl as L } from "react-intl";
|
|
6
6
|
import o from "./ProposalBox.module.scss.js";
|
|
7
7
|
import { useConfig as B } from "../../data/config_provider/useConfig.js";
|
|
8
|
-
import { useAuth as
|
|
9
|
-
import { useTranslatedContent as
|
|
8
|
+
import { useAuth as F } from "../../auth/use_auth/useAuth.js";
|
|
9
|
+
import { useTranslatedContent as C } from "../../translation/translated_content/useTranslatedContent.js";
|
|
10
10
|
import { lexicalToHtml as H } from "../../input/text_editor/lexicalToHtml.js";
|
|
11
|
-
import { HashScroll as
|
|
12
|
-
import { ContentHeader as
|
|
13
|
-
import { ReadMore as
|
|
14
|
-
import { TranslationButton as
|
|
15
|
-
import { SourceListItem as
|
|
16
|
-
import { ContentFooter as
|
|
11
|
+
import { HashScroll as P } from "../../tools/hash_scroll/HashScroll.js";
|
|
12
|
+
import { ContentHeader as R } from "../../user_content/content_header/ContentHeader.js";
|
|
13
|
+
import { ReadMore as D } from "../../text/read_more/ReadMore.js";
|
|
14
|
+
import { TranslationButton as j } from "../../translation/translation_button/TranslationButton.js";
|
|
15
|
+
import { SourceListItem as k } from "../../source/source_list_item/SourceListItem.js";
|
|
16
|
+
import { ContentFooter as $ } from "../../user_content/content_footer/ContentFooter.js";
|
|
17
17
|
import { UpDownVoteBox as A } from "../../vote/up_down_vote_box/UpDownVoteBox.js";
|
|
18
|
-
const
|
|
18
|
+
const ae = ({
|
|
19
19
|
proposal: e,
|
|
20
|
-
disabled:
|
|
21
|
-
fixedContentHeight:
|
|
22
|
-
fitContent:
|
|
23
|
-
enableEdition:
|
|
24
|
-
hideFooter:
|
|
20
|
+
disabled: m = !1,
|
|
21
|
+
fixedContentHeight: c,
|
|
22
|
+
fitContent: v = !1,
|
|
23
|
+
enableEdition: T = !0,
|
|
24
|
+
hideFooter: M = !1,
|
|
25
|
+
showModerationFeedback: x
|
|
25
26
|
}) => {
|
|
26
|
-
const [h,
|
|
27
|
+
const [h, w] = _(null), [b, y] = _(!1), a = L(), n = B(), { currentUser: u } = F(), f = u?.moderation_status === "banned", g = `proposal_${e.id}`, i = C(
|
|
27
28
|
e.title,
|
|
28
29
|
e.language,
|
|
29
30
|
"title",
|
|
30
31
|
e.translation_entries
|
|
31
|
-
),
|
|
32
|
+
), s = C(
|
|
32
33
|
e.content,
|
|
33
34
|
e.language,
|
|
34
35
|
"content",
|
|
35
36
|
e.translation_entries
|
|
36
37
|
);
|
|
37
|
-
|
|
38
|
+
I(() => {
|
|
38
39
|
if (e.rich_content) {
|
|
39
40
|
const r = JSON.parse(e.rich_content);
|
|
40
41
|
if (r.hasOwnProperty("root")) {
|
|
41
|
-
const
|
|
42
|
-
|
|
42
|
+
const d = H(r);
|
|
43
|
+
w(d);
|
|
43
44
|
}
|
|
44
45
|
}
|
|
45
46
|
}, [e.rich_content]);
|
|
46
47
|
const S = () => {
|
|
47
|
-
i.toggleContent(),
|
|
48
|
+
i.toggleContent(), s.toggleContent();
|
|
48
49
|
};
|
|
49
|
-
return /* @__PURE__ */ t(
|
|
50
|
+
return /* @__PURE__ */ t(P, { elementId: g, onScroll: () => y(!0), children: /* @__PURE__ */ l(
|
|
50
51
|
"div",
|
|
51
52
|
{
|
|
52
|
-
className:
|
|
53
|
+
className: p(o.proposalBoxContainer, { [o.flash]: b }),
|
|
53
54
|
id: g,
|
|
54
55
|
children: [
|
|
55
56
|
/* @__PURE__ */ t(
|
|
56
|
-
|
|
57
|
+
R,
|
|
57
58
|
{
|
|
58
59
|
author: e.author,
|
|
59
60
|
tag: e.tag?.display_name,
|
|
60
61
|
date: e.created_at,
|
|
61
|
-
oneLine: !1
|
|
62
|
+
oneLine: !1,
|
|
63
|
+
showModerationFeedback: x ?? (e.status === "rejected" && n.moderation?.showFeedback === !0),
|
|
64
|
+
moderationReason: e.moderation_entry?.moderation_reason,
|
|
65
|
+
moderationNotes: e.moderation_entry?.moderator_notes,
|
|
66
|
+
moderationPolicyUrl: n.provider?.userGuideUrl
|
|
62
67
|
}
|
|
63
68
|
),
|
|
64
|
-
/* @__PURE__ */
|
|
69
|
+
/* @__PURE__ */ l(
|
|
65
70
|
"div",
|
|
66
71
|
{
|
|
67
|
-
className:
|
|
68
|
-
[o.fixedHeight]:
|
|
69
|
-
[o.withMinHeight]: !
|
|
72
|
+
className: p(o.proposalBoxContent, {
|
|
73
|
+
[o.fixedHeight]: c,
|
|
74
|
+
[o.withMinHeight]: !v && !c
|
|
70
75
|
}),
|
|
71
76
|
children: [
|
|
72
77
|
/* @__PURE__ */ t("div", { children: /* @__PURE__ */ t(
|
|
73
|
-
|
|
78
|
+
D,
|
|
74
79
|
{
|
|
75
|
-
content: /* @__PURE__ */
|
|
76
|
-
e.is_edited && /* @__PURE__ */ t("div", { className: o.edited, children:
|
|
80
|
+
content: /* @__PURE__ */ l(N, { children: [
|
|
81
|
+
e.is_edited && /* @__PURE__ */ t("div", { className: o.edited, children: a.formatMessage({
|
|
77
82
|
id: "proposal.updated",
|
|
78
83
|
defaultMessage: "Updated proposal"
|
|
79
84
|
}) }),
|
|
80
85
|
/* @__PURE__ */ t("div", { className: o.proposalTitle, children: i.translatedContent }),
|
|
81
|
-
h && !
|
|
86
|
+
h && !s.isTranslated ? /* @__PURE__ */ t(
|
|
82
87
|
"div",
|
|
83
88
|
{
|
|
84
89
|
className: o.proposalContent,
|
|
85
90
|
dangerouslySetInnerHTML: { __html: h }
|
|
86
91
|
}
|
|
87
|
-
) : /* @__PURE__ */ t("div", { className: o.proposalContent, children:
|
|
88
|
-
(
|
|
89
|
-
|
|
92
|
+
) : /* @__PURE__ */ t("div", { className: o.proposalContent, children: s.translatedContent }),
|
|
93
|
+
(s.isTranslated || i.isTranslated) && /* @__PURE__ */ t(
|
|
94
|
+
j,
|
|
90
95
|
{
|
|
91
96
|
language: e.language,
|
|
92
97
|
callback: () => S()
|
|
@@ -94,45 +99,45 @@ const re = ({
|
|
|
94
99
|
)
|
|
95
100
|
] }),
|
|
96
101
|
lineCount: 7,
|
|
97
|
-
readMoreText:
|
|
102
|
+
readMoreText: a.formatMessage({
|
|
98
103
|
id: "action.read_more",
|
|
99
104
|
defaultMessage: "Read more"
|
|
100
105
|
}),
|
|
101
|
-
readLessText:
|
|
106
|
+
readLessText: a.formatMessage({
|
|
102
107
|
id: "action.read_less",
|
|
103
108
|
defaultMessage: "Read less"
|
|
104
109
|
})
|
|
105
110
|
}
|
|
106
111
|
) }),
|
|
107
|
-
e.sources?.length > 0 && /* @__PURE__ */ t("div", { className: o.proposalSourcesList, children: e.sources.map((r,
|
|
108
|
-
|
|
112
|
+
e.sources?.length > 0 && /* @__PURE__ */ t("div", { className: o.proposalSourcesList, children: e.sources.map((r, d) => /* @__PURE__ */ t(
|
|
113
|
+
k,
|
|
109
114
|
{
|
|
110
115
|
publisher: r.publisher,
|
|
111
116
|
url: r.source_url,
|
|
112
117
|
title: r.title,
|
|
113
|
-
index:
|
|
118
|
+
index: d
|
|
114
119
|
},
|
|
115
120
|
r.id
|
|
116
121
|
)) })
|
|
117
122
|
]
|
|
118
123
|
}
|
|
119
124
|
),
|
|
120
|
-
!
|
|
121
|
-
|
|
125
|
+
!M && /* @__PURE__ */ t(
|
|
126
|
+
$,
|
|
122
127
|
{
|
|
123
128
|
resource: e,
|
|
124
|
-
disabled:
|
|
129
|
+
disabled: m || f,
|
|
125
130
|
reportType: "Proposal",
|
|
126
131
|
deleteType: "proposals",
|
|
127
132
|
deleteListId: "proposalsList",
|
|
128
|
-
shareModalTitle:
|
|
129
|
-
shareUrl:
|
|
130
|
-
shareTitle:
|
|
131
|
-
shareText:
|
|
132
|
-
shareCode: `<iframe src="https://cdn.logora.com/embed.html?shortname=${
|
|
133
|
-
showShareCode:
|
|
133
|
+
shareModalTitle: a.formatMessage({ id: "share.proposal" }),
|
|
134
|
+
shareUrl: U(n, "p", e.id),
|
|
135
|
+
shareTitle: a.formatMessage({ id: "share.proposal.title" }),
|
|
136
|
+
shareText: a.formatMessage({ id: "share.proposal.text" }),
|
|
137
|
+
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>`,
|
|
138
|
+
showShareCode: n?.actions?.hideCodeShare !== !0,
|
|
134
139
|
showActions: !e.author.consultation_id,
|
|
135
|
-
enableEdition:
|
|
140
|
+
enableEdition: T,
|
|
136
141
|
children: /* @__PURE__ */ t(
|
|
137
142
|
A,
|
|
138
143
|
{
|
|
@@ -140,8 +145,8 @@ const re = ({
|
|
|
140
145
|
voteableId: e.id,
|
|
141
146
|
totalUpvote: e.total_upvotes,
|
|
142
147
|
totalDownvote: e.total_downvotes,
|
|
143
|
-
disabled:
|
|
144
|
-
hideDownvotes:
|
|
148
|
+
disabled: m || u?.id === e?.author?.id || f,
|
|
149
|
+
hideDownvotes: n?.actions?.hideDownvotes
|
|
145
150
|
}
|
|
146
151
|
)
|
|
147
152
|
}
|
|
@@ -151,5 +156,5 @@ const re = ({
|
|
|
151
156
|
) });
|
|
152
157
|
};
|
|
153
158
|
export {
|
|
154
|
-
|
|
159
|
+
ae as ProposalBox
|
|
155
160
|
};
|
|
@@ -8,13 +8,13 @@ import { SuggestionBox as M } from "../../suggestion/suggestion_box/SuggestionBo
|
|
|
8
8
|
import { ProposalBox as v } from "../../proposal/proposal_box/ProposalBox.js";
|
|
9
9
|
import { Argument as w } from "../../argument/argument/Argument.js";
|
|
10
10
|
const C = ({ report: e, flash: i }) => {
|
|
11
|
-
const o = g(), [
|
|
11
|
+
const o = g(), [c, d] = p(!1);
|
|
12
12
|
h(() => {
|
|
13
13
|
if (i === e.id) {
|
|
14
14
|
const r = document.getElementById(`reports_${e.id}`);
|
|
15
|
-
r && r.scrollIntoView({ behavior: "smooth", block: "center" }),
|
|
15
|
+
r && r.scrollIntoView({ behavior: "smooth", block: "center" }), d(!0);
|
|
16
16
|
} else
|
|
17
|
-
|
|
17
|
+
d(!1);
|
|
18
18
|
}, [i, e.id]);
|
|
19
19
|
const l = () => {
|
|
20
20
|
const { reportable_type: r, reportable: a } = e;
|
|
@@ -34,7 +34,14 @@ const C = ({ report: e, flash: i }) => {
|
|
|
34
34
|
);
|
|
35
35
|
}
|
|
36
36
|
case "Proposal":
|
|
37
|
-
return /* @__PURE__ */ t(
|
|
37
|
+
return /* @__PURE__ */ t(
|
|
38
|
+
v,
|
|
39
|
+
{
|
|
40
|
+
proposal: a,
|
|
41
|
+
hideFooter: !0,
|
|
42
|
+
showModerationFeedback: !1
|
|
43
|
+
}
|
|
44
|
+
);
|
|
38
45
|
case "Group":
|
|
39
46
|
return /* @__PURE__ */ t(M, { suggestion: a, hideFooter: !0 });
|
|
40
47
|
default:
|
|
@@ -65,7 +72,7 @@ const C = ({ report: e, flash: i }) => {
|
|
|
65
72
|
{
|
|
66
73
|
id: `reports_${e.id}`,
|
|
67
74
|
className: f(s.reportBox, {
|
|
68
|
-
[s.reportHighlighted]:
|
|
75
|
+
[s.reportHighlighted]: c
|
|
69
76
|
}),
|
|
70
77
|
children: e && /* @__PURE__ */ n("div", { className: s.reportItem, children: [
|
|
71
78
|
/* @__PURE__ */ n("div", { className: s.reportHeader, children: [
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
._headerBox_lnsym_3{display:flex!important;flex-direction:column!important;padding:0!important}._headerBoxLabel_lnsym_9{display:flex!important;justify-content:flex-start!important;align-items:center!important;flex-wrap:wrap!important;gap:var(--spacer-sm, calc(var(--space-unit, 1em) * .5))}._headerBoxLabel_lnsym_9>a:empty{display:none!important}._headerBoxLabel_lnsym_9>._titleRedirectUrl_lnsym_19{background:var(--background-color-primary, white)!important}._headerBoxLabel_lnsym_9>._titleRedirectUrl_lnsym_19:hover{background:var(--background-color-primary, white)!important}._headerBoxLabel_lnsym_9 a{text-decoration:none!important}._headerLiveStat_lnsym_30{margin-left:auto!important;margin-right:var(--spacer-sm, calc(var(--space-unit, 1em) * .5))!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;color:var(--call-primary-color, #434343);font-size:var(--font-size-small, 16px);margin-left:30px}._headerLiveStat_lnsym_30 span{margin-left:10px;margin-bottom:0!important}@media(prefers-color-scheme:dark){.logoraDarkMode ._headerLiveStat_lnsym_30{color:#fff!important}.logoraDarkMode ._headerLiveNow_lnsym_49{background-color:#fff!important}.logoraDarkMode ._headerLiveNow_lnsym_49:before{background-color:#fff!important}}._headerLiveNow_lnsym_49{min-width:8px;width:8px;height:8px;border-radius:50%;background-color:var(--call-primary-color, #434343);position:relative}._headerLiveNow_lnsym_49:before{content:"";position:absolute;width:100%;height:100%;border-radius:50%;background-color:var(--call-primary-color, #434343);opacity:.4;animation-name:_livePin_lnsym_1;animation-duration:1.6s;animation-iteration-count:infinite}@container (min-width: 576px){._headerLivePin_lnsym_78{display:block!important}}._headerLivePin_lnsym_78{display:none!important}@container (min-width: 576px){._headerLivePinMobile_lnsym_87{display:none!important}}._headerLivePinMobile_lnsym_87{display:block!important}@keyframes _livePin_lnsym_1{0%{transform:scale(2.3)}50%{transform:scale(0)}to{transform:scale(2.3)}}._headerLabelText_lnsym_106{background-color:var(--call-primary-color, #434343);color:var(--text-light, white);border-bottom:1px solid;border-color:var(--call-primary-color, #434343);border-radius:var(--box-border-radius, 6px) 0 var(--box-border-radius, 6px) 0;font-size:var(--font-size-normal, 16px);flex-wrap:nowrap;white-space:nowrap;padding-right:var(--spacer-sm, calc(var(--space-unit, 1em) * .5))!important;padding-left:var(--spacer-sm, calc(var(--space-unit, 1em) * .5))!important;padding-top:var(--spacer-sm, calc(var(--space-unit, 1em) * .5))!important;padding-bottom:var(--spacer-sm, calc(var(--space-unit, 1em) * .5))!important}._debateName_lnsym_121{color:var(--text-primary, #222222);font-weight:var(--font-weight-bold, 700);font-variation-settings:var(--font-variation-bold, normal);text-align:center;width:100%;display:flex!important;align-items:center!important;justify-content:center!important;padding-bottom:0!important;padding-top:var(--space-unit, 1em)!important;padding-right:var(--space-unit, 1em)!important;padding-left:var(--space-unit, 1em)!important}@container (min-width: 576px){._debateName_lnsym_121{padding-right:0!important}}@container (min-width: 576px){._debateName_lnsym_121{padding-left:0!important}}._debateName_lnsym_121 a._debateLink_lnsym_145{color:var(--text-primary, #222222)!important}._debateLink_lnsym_145{font-size:var(--font-size-large, 20px);line-height:var(--line-height-normal, 1.26em);background:var(--background-color-primary, white)!important;text-decoration:none!important;color:var(--text-primary, #222222);font-weight:var(--font-weight-bold, 700);font-variation-settings:var(--font-variation-bold, normal)}._debateLink_lnsym_145:hover{background:var(--background-color-primary, white)!important;text-decoration:underline!important}._left_lnsym_163{justify-content:flex-start!important;padding-right:var(--space-unit, 1em)!important;padding-left:var(--space-unit, 1em)!important;padding-top:var(--space-unit, 1em)!important;padding-bottom:0!important;text-align:left}._headerLogo_lnsym_172{width:100px!important;height:40px!important;object-fit:contain;object-position:left}._debateNameWithLogo_lnsym_179{padding-right:0!important;padding-left:0!important}
|