@logora/debate 0.3.8 → 0.3.10
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/dialog/dropdown/Dropdown.module-B6DdHxbY.css +1 -0
- package/dist/assets/components/gamification/point_box/PointBox.module-BlHdQyht.css +1 -0
- package/dist/assets/components/vote/vote_box/VoteBox.module-Dss3uPgM.css +1 -0
- package/dist/assets/components/vote/vote_button/VoteButton.module-BdTTr7vk.css +1 -0
- package/dist/components/argument/argument/Argument.js +15 -15
- package/dist/components/argument/argument/Argument.module.scss.js +30 -30
- package/dist/components/dialog/dropdown/Dropdown.module.scss.js +1 -1
- package/dist/components/gamification/point_box/PointBox.module.scss.js +1 -1
- package/dist/components/icons/bild_icons/index.js +102 -104
- package/dist/components/icons/hero_icons/index.js +66 -68
- package/dist/components/icons/krone_icons/index.js +98 -100
- package/dist/components/icons/regular_icons/index.js +22 -24
- package/dist/components/icons/spiegel_icons/index.js +100 -102
- package/dist/components/input/text_editor/TextEditor.js +108 -108
- package/dist/components/vote/vote_box/VoteBox.js +113 -121
- package/dist/components/vote/vote_box/VoteBox.module.scss.js +54 -50
- package/dist/components/vote/vote_button/VoteButton.module.scss.js +2 -2
- package/package.json +15 -14
- package/dist/assets/components/argument/argument/Argument.module-ynS4ZRdG.css +0 -1
- package/dist/assets/components/dialog/dropdown/Dropdown.module-BL67cFpj.css +0 -1
- package/dist/assets/components/gamification/point_box/PointBox.module-BzKRidYf.css +0 -1
- package/dist/assets/components/vote/vote_box/VoteBox.module-BhTSjU8w.css +0 -1
- package/dist/assets/components/vote/vote_button/VoteButton.module-mxq12D3_.css +0 -1
- package/dist/components/icons/bild_icons/Alarm.js +0 -13
- package/dist/components/icons/bild_icons/Announcement.js +0 -15
- package/dist/components/icons/bild_icons/Arrow.js +0 -6
- package/dist/components/icons/bild_icons/Blockquote.js +0 -6
- package/dist/components/icons/bild_icons/Bold.js +0 -6
- package/dist/components/icons/bild_icons/Camera.js +0 -9
- package/dist/components/icons/bild_icons/CheckCircle.js +0 -22
- package/dist/components/icons/bild_icons/Checkbox.js +0 -9
- package/dist/components/icons/bild_icons/Clock.js +0 -6
- package/dist/components/icons/bild_icons/Close.js +0 -6
- package/dist/components/icons/bild_icons/Code.js +0 -36
- package/dist/components/icons/bild_icons/Community.js +0 -6
- package/dist/components/icons/bild_icons/Document.js +0 -6
- package/dist/components/icons/bild_icons/Downvote.js +0 -6
- package/dist/components/icons/bild_icons/Facebook.js +0 -6
- package/dist/components/icons/bild_icons/Flag.js +0 -6
- package/dist/components/icons/bild_icons/Home.js +0 -6
- package/dist/components/icons/bild_icons/Italic.js +0 -6
- package/dist/components/icons/bild_icons/Link.js +0 -9
- package/dist/components/icons/bild_icons/Logora.js +0 -56
- package/dist/components/icons/bild_icons/Mail.js +0 -6
- package/dist/components/icons/bild_icons/MinusCircle.js +0 -21
- package/dist/components/icons/bild_icons/MobileMenu.js +0 -29
- package/dist/components/icons/bild_icons/Next.js +0 -23
- package/dist/components/icons/bild_icons/OpenBlank.js +0 -21
- package/dist/components/icons/bild_icons/OrderedList.js +0 -6
- package/dist/components/icons/bild_icons/Point.js +0 -25
- package/dist/components/icons/bild_icons/Question.js +0 -15
- package/dist/components/icons/bild_icons/Refresh.js +0 -9
- package/dist/components/icons/bild_icons/Reply.js +0 -9
- package/dist/components/icons/bild_icons/Search.js +0 -6
- package/dist/components/icons/bild_icons/Send.js +0 -6
- package/dist/components/icons/bild_icons/Share.js +0 -15
- package/dist/components/icons/bild_icons/SmallArrow.js +0 -6
- package/dist/components/icons/bild_icons/Source.js +0 -6
- package/dist/components/icons/bild_icons/Suggestion.js +0 -25
- package/dist/components/icons/bild_icons/Twitter.js +0 -44
- package/dist/components/icons/bild_icons/Underline.js +0 -6
- package/dist/components/icons/bild_icons/Upvote.js +0 -6
- package/dist/components/icons/bild_icons/User.js +0 -6
- package/dist/components/icons/bild_icons/Versus.js +0 -12
- package/dist/components/icons/bild_icons/Votebox.js +0 -15
- package/dist/components/icons/hero_icons/CheckCircle.js +0 -22
- package/dist/components/icons/hero_icons/Facebook.js +0 -6
- package/dist/components/icons/hero_icons/Flag.js +0 -6
- package/dist/components/icons/hero_icons/Logora.js +0 -56
- package/dist/components/icons/hero_icons/MinusCircle.js +0 -21
- package/dist/components/icons/hero_icons/Point.js +0 -25
- package/dist/components/icons/hero_icons/Twitter.js +0 -44
- package/dist/components/icons/hero_icons/Versus.js +0 -24
- package/dist/components/icons/krone_icons/Arrow.js +0 -6
- package/dist/components/icons/krone_icons/Blockquote.js +0 -6
- package/dist/components/icons/krone_icons/Bold.js +0 -6
- package/dist/components/icons/krone_icons/Camera.js +0 -9
- package/dist/components/icons/krone_icons/Check.js +0 -6
- package/dist/components/icons/krone_icons/CheckCircle.js +0 -22
- package/dist/components/icons/krone_icons/Clock.js +0 -6
- package/dist/components/icons/krone_icons/Close.js +0 -6
- package/dist/components/icons/krone_icons/Code.js +0 -36
- package/dist/components/icons/krone_icons/Community.js +0 -6
- package/dist/components/icons/krone_icons/Crown.js +0 -6
- package/dist/components/icons/krone_icons/Document.js +0 -6
- package/dist/components/icons/krone_icons/Downvote.js +0 -6
- package/dist/components/icons/krone_icons/Facebook.js +0 -6
- package/dist/components/icons/krone_icons/Flag.js +0 -6
- package/dist/components/icons/krone_icons/Italic.js +0 -6
- package/dist/components/icons/krone_icons/LightArrow.js +0 -6
- package/dist/components/icons/krone_icons/Link.js +0 -9
- package/dist/components/icons/krone_icons/Login.js +0 -30
- package/dist/components/icons/krone_icons/Logora.js +0 -56
- package/dist/components/icons/krone_icons/Mail.js +0 -6
- package/dist/components/icons/krone_icons/MinusCircle.js +0 -21
- package/dist/components/icons/krone_icons/MobileClose.js +0 -15
- package/dist/components/icons/krone_icons/MobileMenu.js +0 -29
- package/dist/components/icons/krone_icons/Next.js +0 -23
- package/dist/components/icons/krone_icons/OpenBlank.js +0 -21
- package/dist/components/icons/krone_icons/OrderedList.js +0 -6
- package/dist/components/icons/krone_icons/PauseCircle.js +0 -22
- package/dist/components/icons/krone_icons/Point.js +0 -25
- package/dist/components/icons/krone_icons/Refresh.js +0 -9
- package/dist/components/icons/krone_icons/Search.js +0 -6
- package/dist/components/icons/krone_icons/SmallArrow.js +0 -6
- package/dist/components/icons/krone_icons/Source.js +0 -6
- package/dist/components/icons/krone_icons/Twitter.js +0 -44
- package/dist/components/icons/krone_icons/Underline.js +0 -6
- package/dist/components/icons/krone_icons/Versus.js +0 -6
- package/dist/components/icons/regular_icons/Versus.js +0 -6
- package/dist/components/icons/spiegel_icons/Alarm.js +0 -13
- package/dist/components/icons/spiegel_icons/Announcement.js +0 -15
- package/dist/components/icons/spiegel_icons/Arrow.js +0 -6
- package/dist/components/icons/spiegel_icons/Camera.js +0 -9
- package/dist/components/icons/spiegel_icons/Check.js +0 -6
- package/dist/components/icons/spiegel_icons/Code.js +0 -36
- package/dist/components/icons/spiegel_icons/Community.js +0 -6
- package/dist/components/icons/spiegel_icons/Downvote.js +0 -6
- package/dist/components/icons/spiegel_icons/Home.js +0 -6
- package/dist/components/icons/spiegel_icons/Logora.js +0 -56
- package/dist/components/icons/spiegel_icons/MobileMenu.js +0 -29
- package/dist/components/icons/spiegel_icons/Next.js +0 -23
- package/dist/components/icons/spiegel_icons/OpenBlank.js +0 -21
- package/dist/components/icons/spiegel_icons/Point.js +0 -25
- package/dist/components/icons/spiegel_icons/Refresh.js +0 -9
- package/dist/components/icons/spiegel_icons/Search.js +0 -6
- package/dist/components/icons/spiegel_icons/Send.js +0 -6
- package/dist/components/icons/spiegel_icons/Source.js +0 -6
- package/dist/components/icons/spiegel_icons/Twitter.js +0 -44
- package/dist/components/icons/spiegel_icons/Upvote.js +0 -6
- package/dist/components/icons/spiegel_icons/User.js +0 -6
- package/dist/components/icons/spiegel_icons/Versus.js +0 -12
|
@@ -1,118 +1,119 @@
|
|
|
1
|
-
import { jsx as s, Fragment as
|
|
1
|
+
import { jsx as s, Fragment as be, jsxs as l } from "react/jsx-runtime";
|
|
2
2
|
import P from "@rooks/use-sessionstorage-state";
|
|
3
3
|
import d from "classnames";
|
|
4
|
-
import { useState as
|
|
5
|
-
import { useIntl as
|
|
6
|
-
import { useLocation as
|
|
4
|
+
import { useState as N, useEffect as L } from "react";
|
|
5
|
+
import { useIntl as Ne, FormattedMessage as m } from "react-intl";
|
|
6
|
+
import { useLocation as Se } from "react-router";
|
|
7
7
|
import o from "./VoteBox.module.scss.js";
|
|
8
|
-
import { useTranslatedContent as
|
|
8
|
+
import { useTranslatedContent as k } from "../../translation/translated_content/useTranslatedContent.js";
|
|
9
9
|
import { useToast as we } from "../../dialog/toast_provider/useToast.js";
|
|
10
|
-
import { useResponsive as
|
|
11
|
-
import { useAuthRequired as
|
|
12
|
-
import { useDataProvider as
|
|
13
|
-
import { useConfig as
|
|
14
|
-
import { useAuth as
|
|
15
|
-
import { Icon as
|
|
16
|
-
import { ProgressBar as
|
|
10
|
+
import { useResponsive as Ce } from "../../hooks/use_responsive/useResponsive.js";
|
|
11
|
+
import { useAuthRequired as xe } from "../../hooks/use_auth_required/useAuthRequired.js";
|
|
12
|
+
import { useDataProvider as Be } from "../../data/data_provider/useDataProvider.js";
|
|
13
|
+
import { useConfig as Me } from "../../data/config_provider/useConfig.js";
|
|
14
|
+
import { useAuth as Ve } from "../../auth/use_auth/useAuth.js";
|
|
15
|
+
import { Icon as T } from "../../icons/icon/Icon.js";
|
|
16
|
+
import { ProgressBar as Re } from "../../progress/progress_bar/ProgressBar.js";
|
|
17
17
|
import { Tooltip as ee } from "../../dialog/tooltip/Tooltip.js";
|
|
18
|
-
import { Link as
|
|
19
|
-
import { Button as
|
|
20
|
-
const
|
|
21
|
-
numberVotes:
|
|
18
|
+
import { Link as Ae } from "../../action/link/Link.js";
|
|
19
|
+
import { Button as ye } from "../../action/button/Button.js";
|
|
20
|
+
const Xe = ({
|
|
21
|
+
numberVotes: S,
|
|
22
22
|
votePositions: r,
|
|
23
23
|
voteableType: h,
|
|
24
|
-
voteableId:
|
|
24
|
+
voteableId: g,
|
|
25
25
|
redirectUrl: w,
|
|
26
|
-
displayColumn:
|
|
26
|
+
displayColumn: j,
|
|
27
27
|
textAlignLeft: te,
|
|
28
28
|
showTotal: oe = !0,
|
|
29
|
-
voteBoxClassName:
|
|
30
|
-
buttonContainerClassName:
|
|
29
|
+
voteBoxClassName: F,
|
|
30
|
+
buttonContainerClassName: O,
|
|
31
31
|
buttonClassName: E,
|
|
32
|
-
showResultClassName:
|
|
33
|
-
onVote:
|
|
32
|
+
showResultClassName: I,
|
|
33
|
+
onVote: C,
|
|
34
34
|
disabled: V = !1,
|
|
35
35
|
showVotesCommentsNumber: se = !1,
|
|
36
|
-
commentsCount: ae
|
|
36
|
+
commentsCount: ae,
|
|
37
|
+
hideShowResultButton: U = !1
|
|
37
38
|
}) => {
|
|
38
|
-
const [
|
|
39
|
-
Number.parseFloat(
|
|
39
|
+
const [H, p] = N(!0), [i, R] = N(void 0), [_, f] = N(!1), [u, ne] = N(
|
|
40
|
+
Number.parseFloat(S.total) || Object.values(S).reduce(
|
|
40
41
|
(e, t) => e + Number.parseFloat(t),
|
|
41
42
|
0
|
|
42
43
|
) || 0
|
|
43
|
-
), $ =
|
|
44
|
+
), $ = k(
|
|
44
45
|
r[0]?.name,
|
|
45
46
|
r[0]?.language,
|
|
46
47
|
"name",
|
|
47
48
|
r[0]?.translation_entries
|
|
48
|
-
), q =
|
|
49
|
+
), q = k(
|
|
49
50
|
r[1]?.name,
|
|
50
51
|
r[1]?.language,
|
|
51
52
|
"name",
|
|
52
53
|
r[1]?.translation_entries
|
|
53
|
-
), Y =
|
|
54
|
+
), Y = k(
|
|
54
55
|
r[2]?.name,
|
|
55
56
|
r[2]?.language,
|
|
56
57
|
"name",
|
|
57
58
|
r[2]?.translation_entries
|
|
58
|
-
), [
|
|
59
|
+
), [b, re, D] = P(
|
|
59
60
|
"storedUserVote",
|
|
60
61
|
{}
|
|
61
|
-
), [
|
|
62
|
+
), [Le, ie, ce] = P("userSide", {}), { toast: G } = we() || {}, { isMobile: W } = Ce(), le = () => {
|
|
62
63
|
const e = {};
|
|
63
64
|
return r?.forEach(
|
|
64
65
|
(t) => e[t.id] = {
|
|
65
|
-
count: Number.parseFloat(
|
|
66
|
+
count: Number.parseFloat(S[t.id]) || 0,
|
|
66
67
|
percentage: u === 0 ? 0 : Math.round(
|
|
67
|
-
100 * ((
|
|
68
|
+
100 * ((S[t.id] || 0) / u)
|
|
68
69
|
)
|
|
69
70
|
}
|
|
70
71
|
), e;
|
|
71
|
-
}, [
|
|
72
|
-
|
|
73
|
-
K === !1 && (
|
|
74
|
-
}, [K,
|
|
75
|
-
if (
|
|
76
|
-
const [e, t] =
|
|
72
|
+
}, [c, z] = N(le()), J = xe(), de = Se(), A = Be(), ue = Me(), v = Ne(), { isLoggedIn: x, isLoggingIn: K } = Ve();
|
|
73
|
+
L(() => {
|
|
74
|
+
K === !1 && (x ? fe(g) : p(!1));
|
|
75
|
+
}, [K, x]), L(() => {
|
|
76
|
+
if (H === !1 && !w) {
|
|
77
|
+
const [e, t] = me();
|
|
77
78
|
e && (t ? X(t) : f(!0));
|
|
78
79
|
}
|
|
79
|
-
}, [
|
|
80
|
-
|
|
81
|
-
}, [
|
|
82
|
-
const
|
|
83
|
-
if (
|
|
84
|
-
return
|
|
80
|
+
}, [H]), L(() => {
|
|
81
|
+
C && C(i);
|
|
82
|
+
}, [i]);
|
|
83
|
+
const me = () => {
|
|
84
|
+
if (b && Object.keys(b).length !== 0)
|
|
85
|
+
return b.groupId === g && b.voteableType === h ? [!0, b.positionId] : (D(), [!1, !1]);
|
|
85
86
|
const e = new URLSearchParams(
|
|
86
87
|
typeof window < "u" ? window.location.search : de.search
|
|
87
88
|
), t = !!e.get("initVote"), a = Number.parseInt(e.get("positionId")) || !1;
|
|
88
89
|
return [t, a];
|
|
89
|
-
},
|
|
90
|
-
|
|
91
|
-
t.data.data.resource ? (R(t.data.data.resource), f(!0),
|
|
90
|
+
}, fe = (e) => {
|
|
91
|
+
p(!0), C && C(i), A.getOneWithToken("votes", `${h.toLowerCase()}/${e}`, {}).then((t) => {
|
|
92
|
+
t.data.data.resource ? (R(t.data.data.resource), f(!0), p(!1)) : (p(!1), f(!1));
|
|
92
93
|
}).catch((t) => {
|
|
93
|
-
|
|
94
|
+
p(!1);
|
|
94
95
|
});
|
|
95
|
-
},
|
|
96
|
+
}, B = (e, t) => t === 0 ? 0 : Math.round(100 * (e / t)), ve = (e) => {
|
|
96
97
|
const t = {
|
|
97
|
-
voteable_id:
|
|
98
|
+
voteable_id: g,
|
|
98
99
|
voteable_type: h || "Group",
|
|
99
100
|
position_id: e
|
|
100
101
|
};
|
|
101
102
|
ie({
|
|
102
|
-
groupId:
|
|
103
|
+
groupId: g,
|
|
103
104
|
voteableType: h,
|
|
104
105
|
positionId: e
|
|
105
|
-
}),
|
|
106
|
+
}), i ? (ge(e, i.position_id), _ === !1 && y(), e !== i.position_id && A.update("votes", i.id, t).then((n) => {
|
|
106
107
|
n.data.success && (R(n.data.data.resource), G(
|
|
107
|
-
|
|
108
|
+
v.formatMessage({
|
|
108
109
|
id: "header.vote_confirm_modal",
|
|
109
110
|
defaultMessage: "Your vote has been saved !"
|
|
110
111
|
}),
|
|
111
112
|
{ type: "success" }
|
|
112
113
|
));
|
|
113
|
-
})) : (he(e),
|
|
114
|
+
})) : (he(e), y(), A.create("votes", t).then((n) => {
|
|
114
115
|
n.data.success && (R(n.data.data.resource), G(
|
|
115
|
-
|
|
116
|
+
v.formatMessage({
|
|
116
117
|
id: "header.vote_confirm_modal",
|
|
117
118
|
defaultMessage: "Your vote has been saved !"
|
|
118
119
|
}),
|
|
@@ -120,36 +121,36 @@ const Qe = ({
|
|
|
120
121
|
));
|
|
121
122
|
}));
|
|
122
123
|
}, he = (e) => {
|
|
123
|
-
const t =
|
|
124
|
+
const t = c[e].count + 1, a = u + 1, n = {};
|
|
124
125
|
r.forEach((M) => {
|
|
125
126
|
if (e === M.id)
|
|
126
127
|
n[M.id] = {
|
|
127
128
|
count: t,
|
|
128
|
-
percentage:
|
|
129
|
+
percentage: B(t, a)
|
|
129
130
|
};
|
|
130
131
|
else {
|
|
131
|
-
const Z =
|
|
132
|
+
const Z = c[M.id].count;
|
|
132
133
|
n[M.id] = {
|
|
133
134
|
count: Z,
|
|
134
|
-
percentage:
|
|
135
|
+
percentage: B(Z, a)
|
|
135
136
|
};
|
|
136
137
|
}
|
|
137
138
|
}), z(n), ne(a);
|
|
138
|
-
},
|
|
139
|
+
}, ge = (e, t) => {
|
|
139
140
|
if (t !== e) {
|
|
140
141
|
const a = {
|
|
141
|
-
...
|
|
142
|
+
...c,
|
|
142
143
|
[t]: {
|
|
143
|
-
count:
|
|
144
|
-
percentage:
|
|
145
|
-
|
|
144
|
+
count: c[t].count - 1,
|
|
145
|
+
percentage: B(
|
|
146
|
+
c[t].count - 1,
|
|
146
147
|
u
|
|
147
148
|
)
|
|
148
149
|
},
|
|
149
150
|
[e]: {
|
|
150
|
-
count:
|
|
151
|
-
percentage:
|
|
152
|
-
|
|
151
|
+
count: c[e].count + 1,
|
|
152
|
+
percentage: B(
|
|
153
|
+
c[e].count + 1,
|
|
153
154
|
u
|
|
154
155
|
)
|
|
155
156
|
}
|
|
@@ -163,14 +164,14 @@ const Qe = ({
|
|
|
163
164
|
});
|
|
164
165
|
return w + `?${t.toString()}`;
|
|
165
166
|
}, X = (e) => {
|
|
166
|
-
|
|
167
|
-
groupId:
|
|
167
|
+
x ? Object.keys(c).includes(e.toString()) && (ve(e), D()) : (Object.keys(c).includes(e.toString()) && re({
|
|
168
|
+
groupId: g,
|
|
168
169
|
voteableType: h,
|
|
169
170
|
positionId: e
|
|
170
171
|
}), J({ loginAction: "vote" }));
|
|
171
|
-
},
|
|
172
|
-
|
|
173
|
-
},
|
|
172
|
+
}, y = () => {
|
|
173
|
+
_ && ce(), f(!_);
|
|
174
|
+
}, pe = (e, t) => {
|
|
174
175
|
let a;
|
|
175
176
|
t === 0 ? a = $.translatedContent : t === 1 ? a = q.translatedContent : t === 2 && (a = Y.translatedContent);
|
|
176
177
|
const n = typeof window < "u" && !w;
|
|
@@ -181,7 +182,7 @@ const Qe = ({
|
|
|
181
182
|
[o.buttonAlignLeft]: o.buttonAlignLeft
|
|
182
183
|
}),
|
|
183
184
|
children: /* @__PURE__ */ s(
|
|
184
|
-
|
|
185
|
+
ye,
|
|
185
186
|
{
|
|
186
187
|
"data-tid": "action_vote",
|
|
187
188
|
type: "button",
|
|
@@ -202,7 +203,7 @@ const Qe = ({
|
|
|
202
203
|
{
|
|
203
204
|
"data-tid": "action_vote",
|
|
204
205
|
className: d(o.voteButtonThesis, {
|
|
205
|
-
[o.voteButtonThesisSynthesisMobile]: !
|
|
206
|
+
[o.voteButtonThesisSynthesisMobile]: !j
|
|
206
207
|
}),
|
|
207
208
|
children: a
|
|
208
209
|
}
|
|
@@ -212,14 +213,14 @@ const Qe = ({
|
|
|
212
213
|
},
|
|
213
214
|
t
|
|
214
215
|
);
|
|
215
|
-
},
|
|
216
|
-
|
|
216
|
+
}, _e = () => {
|
|
217
|
+
x || ue.actions?.unloggedVoteResults === !0 ? f(!0) : J({ loginAction: "vote" });
|
|
217
218
|
};
|
|
218
219
|
return /* @__PURE__ */ s(
|
|
219
220
|
"div",
|
|
220
221
|
{
|
|
221
|
-
className: d(o.voteBox, { [
|
|
222
|
-
children: /* @__PURE__ */ s(
|
|
222
|
+
className: d(o.voteBox, { [F]: F }),
|
|
223
|
+
children: /* @__PURE__ */ s(be, { children: _ || V ? /* @__PURE__ */ l("div", { className: o.voteResultsBox, "data-testid": "voteResultsBox", children: [
|
|
223
224
|
/* @__PURE__ */ s("div", { className: o.voteResults, children: r.map((e, t) => {
|
|
224
225
|
let a;
|
|
225
226
|
return t === 0 ? a = $.translatedContent : t === 1 ? a = q.translatedContent : t === 2 && (a = Y.translatedContent), /* @__PURE__ */ l("div", { children: [
|
|
@@ -233,29 +234,29 @@ const Qe = ({
|
|
|
233
234
|
children: [
|
|
234
235
|
a,
|
|
235
236
|
" ",
|
|
236
|
-
|
|
237
|
+
i && i.position_id === e.id ? /* @__PURE__ */ s(
|
|
237
238
|
"span",
|
|
238
239
|
{
|
|
239
|
-
title:
|
|
240
|
+
title: v.formatMessage({
|
|
240
241
|
id: "vote.vote_box.vote_side"
|
|
241
242
|
}) + a,
|
|
242
243
|
className: o.sideIcon,
|
|
243
244
|
"aria-hidden": "true",
|
|
244
|
-
children: /* @__PURE__ */ s(
|
|
245
|
+
children: /* @__PURE__ */ s(T, { name: "checkbox", width: 16, height: 16 })
|
|
245
246
|
}
|
|
246
247
|
) : null
|
|
247
248
|
]
|
|
248
249
|
}
|
|
249
250
|
),
|
|
250
251
|
/* @__PURE__ */ l(
|
|
251
|
-
|
|
252
|
+
Re,
|
|
252
253
|
{
|
|
253
|
-
progress:
|
|
254
|
+
progress: c[e.id].percentage / 100,
|
|
254
255
|
goal: 1,
|
|
255
256
|
className: o.progress,
|
|
256
257
|
innerClassName: o.progressBar,
|
|
257
258
|
children: [
|
|
258
|
-
|
|
259
|
+
c[e.id].percentage,
|
|
259
260
|
"%"
|
|
260
261
|
]
|
|
261
262
|
}
|
|
@@ -271,13 +272,13 @@ const Qe = ({
|
|
|
271
272
|
defaultMessage: "{votesCount} votes"
|
|
272
273
|
}
|
|
273
274
|
) }),
|
|
274
|
-
!V && /* @__PURE__ */ s("div", { children:
|
|
275
|
+
!V && /* @__PURE__ */ s("div", { children: i ? /* @__PURE__ */ s(
|
|
275
276
|
"button",
|
|
276
277
|
{
|
|
277
278
|
"data-tid": "action_edit_vote",
|
|
278
279
|
className: o.voteActionButton,
|
|
279
280
|
type: "button",
|
|
280
|
-
onClick:
|
|
281
|
+
onClick: y,
|
|
281
282
|
children: /* @__PURE__ */ s(
|
|
282
283
|
m,
|
|
283
284
|
{
|
|
@@ -286,7 +287,7 @@ const Qe = ({
|
|
|
286
287
|
}
|
|
287
288
|
)
|
|
288
289
|
}
|
|
289
|
-
) : !
|
|
290
|
+
) : !U && /* @__PURE__ */ s(
|
|
290
291
|
"button",
|
|
291
292
|
{
|
|
292
293
|
type: "button",
|
|
@@ -307,11 +308,11 @@ const Qe = ({
|
|
|
307
308
|
"div",
|
|
308
309
|
{
|
|
309
310
|
className: d(o.voteBoxActionsBody, {
|
|
310
|
-
[o.voteBoxActionsBodyColumn]:
|
|
311
|
-
[
|
|
311
|
+
[o.voteBoxActionsBodyColumn]: j,
|
|
312
|
+
[O]: O
|
|
312
313
|
}),
|
|
313
314
|
children: r.map(
|
|
314
|
-
(e, t) =>
|
|
315
|
+
(e, t) => pe(e, t)
|
|
315
316
|
)
|
|
316
317
|
}
|
|
317
318
|
),
|
|
@@ -320,12 +321,12 @@ const Qe = ({
|
|
|
320
321
|
ee,
|
|
321
322
|
{
|
|
322
323
|
position: W ? "right" : "bottom",
|
|
323
|
-
text:
|
|
324
|
+
text: v.formatMessage({
|
|
324
325
|
id: "info.votes_count",
|
|
325
326
|
defaultMessage: "Votes"
|
|
326
327
|
}),
|
|
327
328
|
children: /* @__PURE__ */ l("div", { className: o.debateNumberItem, children: [
|
|
328
|
-
/* @__PURE__ */ s(
|
|
329
|
+
/* @__PURE__ */ s(T, { name: "votebox", width: 20, height: 20 }),
|
|
329
330
|
/* @__PURE__ */ s("div", { className: o.debateNumberLabel, children: /* @__PURE__ */ s(
|
|
330
331
|
m,
|
|
331
332
|
{
|
|
@@ -341,12 +342,12 @@ const Qe = ({
|
|
|
341
342
|
ee,
|
|
342
343
|
{
|
|
343
344
|
position: W ? "right" : "bottom",
|
|
344
|
-
text:
|
|
345
|
+
text: v.formatMessage({
|
|
345
346
|
id: "info.arguments_count",
|
|
346
347
|
defaultMessage: "Comments"
|
|
347
348
|
}),
|
|
348
349
|
children: /* @__PURE__ */ l("div", { className: o.debateNumberItem, children: [
|
|
349
|
-
/* @__PURE__ */ s(
|
|
350
|
+
/* @__PURE__ */ s(T, { name: "chat", width: 20, height: 20 }),
|
|
350
351
|
/* @__PURE__ */ s("div", { className: o.debateNumberLabel, children: /* @__PURE__ */ s(
|
|
351
352
|
m,
|
|
352
353
|
{
|
|
@@ -365,32 +366,29 @@ const Qe = ({
|
|
|
365
366
|
className: d(
|
|
366
367
|
o.voteBoxActions,
|
|
367
368
|
o.voteBoxShowResultContainer,
|
|
368
|
-
{ [
|
|
369
|
+
{ [I]: I }
|
|
369
370
|
),
|
|
370
|
-
children: /* @__PURE__ */ s("div", { className: o.voteBoxShowResult, children:
|
|
371
|
+
children: /* @__PURE__ */ s("div", { className: o.voteBoxShowResult, children: U ? !i && !_ && /* @__PURE__ */ s("div", { className: o.voteResultInfoText, children: v.formatMessage({
|
|
372
|
+
id: "vote.vote_box.result_after_vote",
|
|
373
|
+
defaultMessage: "Le résultat s'affichera après le vote."
|
|
374
|
+
}) }) : typeof window < "u" && !w ? /* @__PURE__ */ s(
|
|
371
375
|
"button",
|
|
372
376
|
{
|
|
373
377
|
type: "button",
|
|
374
|
-
onClick:
|
|
378
|
+
onClick: _e,
|
|
375
379
|
"data-tid": "show_vote_result",
|
|
376
380
|
"data-testid": "show-result",
|
|
377
381
|
className: o.showResultButton,
|
|
378
|
-
children: /* @__PURE__ */ s(
|
|
379
|
-
|
|
382
|
+
children: /* @__PURE__ */ s("span", { className: d(o.boldShowResult, o.outlined), children: /* @__PURE__ */ s(
|
|
383
|
+
m,
|
|
380
384
|
{
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
m,
|
|
384
|
-
{
|
|
385
|
-
id: "vote.vote_box.show_result",
|
|
386
|
-
defaultMessage: "Show result"
|
|
387
|
-
}
|
|
388
|
-
)
|
|
385
|
+
id: "vote.vote_box.show_result",
|
|
386
|
+
defaultMessage: "Show result"
|
|
389
387
|
}
|
|
390
|
-
)
|
|
388
|
+
) })
|
|
391
389
|
}
|
|
392
390
|
) : /* @__PURE__ */ s(
|
|
393
|
-
|
|
391
|
+
Ae,
|
|
394
392
|
{
|
|
395
393
|
to: Q(null),
|
|
396
394
|
rel: "nofollow",
|
|
@@ -398,19 +396,13 @@ const Qe = ({
|
|
|
398
396
|
target: "_top",
|
|
399
397
|
external: !0,
|
|
400
398
|
"data-testid": "show-result",
|
|
401
|
-
children: /* @__PURE__ */ s(
|
|
402
|
-
|
|
399
|
+
children: /* @__PURE__ */ s("span", { className: d(o.boldShowResult, o.outlined), children: /* @__PURE__ */ s(
|
|
400
|
+
m,
|
|
403
401
|
{
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
m,
|
|
407
|
-
{
|
|
408
|
-
id: "vote.vote_box.show_result",
|
|
409
|
-
defaultMessage: "Show result"
|
|
410
|
-
}
|
|
411
|
-
)
|
|
402
|
+
id: "vote.vote_box.show_result",
|
|
403
|
+
defaultMessage: "Show result"
|
|
412
404
|
}
|
|
413
|
-
)
|
|
405
|
+
) })
|
|
414
406
|
}
|
|
415
407
|
) })
|
|
416
408
|
}
|
|
@@ -420,5 +412,5 @@ const Qe = ({
|
|
|
420
412
|
);
|
|
421
413
|
};
|
|
422
414
|
export {
|
|
423
|
-
|
|
415
|
+
Xe as VoteBox
|
|
424
416
|
};
|
|
@@ -1,59 +1,63 @@
|
|
|
1
|
-
import '../../../assets/components/vote/vote_box/VoteBox.module-
|
|
2
|
-
voteBox:
|
|
3
|
-
voteResultsBox:
|
|
1
|
+
import '../../../assets/components/vote/vote_box/VoteBox.module-Dss3uPgM.css';const t = "_voteBox_mqtqa_3", o = "_voteResultsBox_mqtqa_11", e = "_voteResults_mqtqa_11", s = "_voteProgressHeader_mqtqa_22", n = "_voteProgressHeaderAgainst_mqtqa_35", _ = "_voteResultsNumberVoters_mqtqa_39", u = "_voteBoxFooter_mqtqa_47", q = "_voteBoxActions_mqtqa_56", v = "_voteBoxActionsBody_mqtqa_66", a = "_voteBoxActionsBodyColumn_mqtqa_74", r = "_voteAction_mqtqa_78", m = "_buttonAlignLeft_mqtqa_88", c = "_voteButton_mqtqa_92", B = "_textAlignLeft_mqtqa_103", l = "_voteBoxShowResultContainer_mqtqa_107", i = "_voteBoxShowResult_mqtqa_107", x = "_boldShowResult_mqtqa_127", d = "_outlined_mqtqa_132", b = "_voteButtonThesis_mqtqa_139", A = "_voteButtonThesisSynthesisMobile_mqtqa_151", R = "_voteActionButton_mqtqa_190", g = "_sideIcon_mqtqa_201", h = "_progress_mqtqa_206", w = "_progressBar_mqtqa_212", C = "_voteCommentCounts_mqtqa_229", S = "_debateNumberItem_mqtqa_237", f = "_debateNumberLabel_mqtqa_246", y = "_showResultButton_mqtqa_250", I = "_voteResultInfoText_mqtqa_259", L = {
|
|
2
|
+
voteBox: t,
|
|
3
|
+
voteResultsBox: o,
|
|
4
4
|
voteResults: e,
|
|
5
5
|
voteProgressHeader: s,
|
|
6
6
|
voteProgressHeaderAgainst: n,
|
|
7
|
-
voteResultsNumberVoters:
|
|
8
|
-
voteBoxFooter:
|
|
9
|
-
voteBoxActions:
|
|
10
|
-
voteBoxActionsBody:
|
|
11
|
-
voteBoxActionsBodyColumn:
|
|
12
|
-
voteAction:
|
|
13
|
-
buttonAlignLeft:
|
|
14
|
-
voteButton:
|
|
15
|
-
textAlignLeft:
|
|
16
|
-
voteBoxShowResultContainer:
|
|
17
|
-
voteBoxShowResult:
|
|
18
|
-
boldShowResult:
|
|
19
|
-
outlined:
|
|
20
|
-
voteButtonThesis:
|
|
21
|
-
voteButtonThesisSynthesisMobile:
|
|
22
|
-
voteActionButton:
|
|
23
|
-
sideIcon:
|
|
24
|
-
progress:
|
|
25
|
-
progressBar:
|
|
26
|
-
voteCommentCounts:
|
|
27
|
-
debateNumberItem:
|
|
28
|
-
|
|
7
|
+
voteResultsNumberVoters: _,
|
|
8
|
+
voteBoxFooter: u,
|
|
9
|
+
voteBoxActions: q,
|
|
10
|
+
voteBoxActionsBody: v,
|
|
11
|
+
voteBoxActionsBodyColumn: a,
|
|
12
|
+
voteAction: r,
|
|
13
|
+
buttonAlignLeft: m,
|
|
14
|
+
voteButton: c,
|
|
15
|
+
textAlignLeft: B,
|
|
16
|
+
voteBoxShowResultContainer: l,
|
|
17
|
+
voteBoxShowResult: i,
|
|
18
|
+
boldShowResult: x,
|
|
19
|
+
outlined: d,
|
|
20
|
+
voteButtonThesis: b,
|
|
21
|
+
voteButtonThesisSynthesisMobile: A,
|
|
22
|
+
voteActionButton: R,
|
|
23
|
+
sideIcon: g,
|
|
24
|
+
progress: h,
|
|
25
|
+
progressBar: w,
|
|
26
|
+
voteCommentCounts: C,
|
|
27
|
+
debateNumberItem: S,
|
|
28
|
+
debateNumberLabel: f,
|
|
29
|
+
showResultButton: y,
|
|
30
|
+
voteResultInfoText: I
|
|
29
31
|
};
|
|
30
32
|
export {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
33
|
+
x as boldShowResult,
|
|
34
|
+
m as buttonAlignLeft,
|
|
35
|
+
S as debateNumberItem,
|
|
36
|
+
f as debateNumberLabel,
|
|
37
|
+
L as default,
|
|
38
|
+
d as outlined,
|
|
39
|
+
h as progress,
|
|
40
|
+
w as progressBar,
|
|
41
|
+
y as showResultButton,
|
|
42
|
+
g as sideIcon,
|
|
43
|
+
B as textAlignLeft,
|
|
44
|
+
r as voteAction,
|
|
45
|
+
R as voteActionButton,
|
|
46
|
+
t as voteBox,
|
|
47
|
+
q as voteBoxActions,
|
|
48
|
+
v as voteBoxActionsBody,
|
|
49
|
+
a as voteBoxActionsBodyColumn,
|
|
50
|
+
u as voteBoxFooter,
|
|
51
|
+
i as voteBoxShowResult,
|
|
52
|
+
l as voteBoxShowResultContainer,
|
|
53
|
+
c as voteButton,
|
|
54
|
+
b as voteButtonThesis,
|
|
55
|
+
A as voteButtonThesisSynthesisMobile,
|
|
56
|
+
C as voteCommentCounts,
|
|
54
57
|
s as voteProgressHeader,
|
|
55
58
|
n as voteProgressHeaderAgainst,
|
|
59
|
+
I as voteResultInfoText,
|
|
56
60
|
e as voteResults,
|
|
57
|
-
|
|
58
|
-
|
|
61
|
+
o as voteResultsBox,
|
|
62
|
+
_ as voteResultsNumberVoters
|
|
59
63
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import '../../../assets/components/vote/vote_button/VoteButton.module-
|
|
1
|
+
import '../../../assets/components/vote/vote_button/VoteButton.module-BdTTr7vk.css';const t = "_voteButton_1q78e_3", e = "_active_1q78e_18", o = "_disabled_1q78e_27", s = {
|
|
2
2
|
voteButton: t,
|
|
3
3
|
active: e,
|
|
4
4
|
disabled: o
|
|
5
5
|
};
|
|
6
6
|
export {
|
|
7
7
|
e as active,
|
|
8
|
-
|
|
8
|
+
s as default,
|
|
9
9
|
o as disabled,
|
|
10
10
|
t as voteButton
|
|
11
11
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@logora/debate",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.10",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "AGPL-3.0",
|
|
6
6
|
"description": "Design system of @Logora made with React",
|
|
@@ -24,6 +24,18 @@
|
|
|
24
24
|
"./package.json": "./package.json"
|
|
25
25
|
},
|
|
26
26
|
"author": "Logora <contact@logora.fr>",
|
|
27
|
+
"scripts": {
|
|
28
|
+
"build": "vite build --config vite.lib.config.mjs",
|
|
29
|
+
"dev": "storybook dev -p 6006",
|
|
30
|
+
"storybook": "storybook dev -p 6006",
|
|
31
|
+
"build-storybook": "storybook build",
|
|
32
|
+
"format": "npx @biomejs/biome format --write ./src",
|
|
33
|
+
"lint": "npx @biomejs/biome lint ./src",
|
|
34
|
+
"check": "npx @biomejs/biome check ./src",
|
|
35
|
+
"test": "vitest run",
|
|
36
|
+
"test:watch": "vitest",
|
|
37
|
+
"test:coverage": "vitest run --coverage"
|
|
38
|
+
},
|
|
27
39
|
"repository": {
|
|
28
40
|
"type": "git",
|
|
29
41
|
"url": "git+https://github.com/Logora/interface.git"
|
|
@@ -101,16 +113,5 @@
|
|
|
101
113
|
"react-router": "^6.29.0",
|
|
102
114
|
"react-router-dom": "^6.29.0"
|
|
103
115
|
},
|
|
104
|
-
"
|
|
105
|
-
|
|
106
|
-
"dev": "storybook dev -p 6006",
|
|
107
|
-
"storybook": "storybook dev -p 6006",
|
|
108
|
-
"build-storybook": "storybook build",
|
|
109
|
-
"format": "npx @biomejs/biome format --write ./src",
|
|
110
|
-
"lint": "npx @biomejs/biome lint ./src",
|
|
111
|
-
"check": "npx @biomejs/biome check ./src",
|
|
112
|
-
"test": "vitest run",
|
|
113
|
-
"test:watch": "vitest",
|
|
114
|
-
"test:coverage": "vitest run --coverage"
|
|
115
|
-
}
|
|
116
|
-
}
|
|
116
|
+
"packageManager": "pnpm@10.26.0+sha512.3b3f6c725ebe712506c0ab1ad4133cf86b1f4b687effce62a9b38b4d72e3954242e643190fc51fa1642949c735f403debd44f5cb0edd657abe63a8b6a7e1e402"
|
|
117
|
+
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
._argument_1s4qc_3{border-radius:var(--box-border-radius, 6px);box-shadow:var(--box-shadow, 0px 2px 5px rgba(7, 42, 68, .1));transition:margin-top 2s;border:var(--box-border, 1px solid rgba(7, 42, 68, .1));scroll-margin-top:150px;background-color:var(--background-color-primary, white);padding:var(--space-unit, 1em)!important;display:flex;flex-direction:column;gap:var(--space-unit, 1em)}._edited_1s4qc_16{font-size:var(--font-size-extra-small, 14px);color:var(--text-secondary, #5F5F5F);line-height:var(--line-height-loose, 1.38em);margin-bottom:var(--spacer-xs, calc(var(--space-unit, 1em) * .325))!important}._argumentReply_1s4qc_23{position:relative;background-color:var(--text-tertiary, #fafafa);border-top-left-radius:0;border-bottom-left-radius:0;box-shadow:var(--box-shadow, 0px 2px 5px rgba(7, 42, 68, .1));border-top-right-radius:var(--box-border-radius, 6px);border-bottom-right-radius:var(--box-border-radius, 6px);border-left:6px solid;border-left-color:var(--call-primary-color, #434343)!important}._argumentReply_1s4qc_23._position-1_1s4qc_34{border-left-color:var(--for-primary-color, #cc6a6d)!important}._argumentReply_1s4qc_23._position-2_1s4qc_37{border-left-color:var(--against-primary-color, #7980bb)!important}._argumentReply_1s4qc_23._position-3_1s4qc_40{border-left-color:var(--third-position-color-primary, #9b9b9b)!important}._argumentReply_1s4qc_23._level-1_1s4qc_43{margin-left:1em!important}._argumentReply_1s4qc_23._level-2_1s4qc_46{margin-left:2em!important}._argumentReply_1s4qc_23._level-3_1s4qc_49{margin-left:3em!important}._argumentReply_1s4qc_23._level-4_1s4qc_52{margin-left:4em!important}._argumentReply_1s4qc_23._level-5_1s4qc_55{margin-left:5em!important}._argumentReply_1s4qc_23:before{content:"";border-left:4px solid var(--text-secondary, #5F5F5F);position:absolute;width:4px;height:10px;top:-10px;left:2em}@container (max-width: 575.98px){._argumentReply_1s4qc_23{border-left:4px solid}}._flash_1s4qc_73{-webkit-transition:box-shadow .8s ease-in-out;-moz-transition:box-shadow .8s ease-in-out;-o-transition:box-shadow .8s ease-in-out;transition:box-shadow .8s ease-in-out;box-shadow:-4px 4px 15px 3px #00000026}._position-1_1s4qc_34._flash_1s4qc_73{border-color:var(--for-primary-color, #cc6a6d)}._position-2_1s4qc_37._flash_1s4qc_73{border-color:var(--against-primary-color, #7980bb)}._position-3_1s4qc_40._flash_1s4qc_73{border-color:var(--third-position-color-primary, #9b9b9b);margin-top:var(--spacer-sm, calc(var(--space-unit, 1em) * .5))!important}._argumentBody_1s4qc_94{font-size:var(--font-size-normal, 16px);line-height:var(--line-height-loose, 1.38em)}._argumentDeletedBody_1s4qc_99{font-size:var(--font-size-small, 16px);color:var(--text-secondary, #5F5F5F)}._fixedHeight_1s4qc_104{height:100px;overflow:hidden;position:relative}._fixedHeight_1s4qc_104:after{content:"";position:absolute;z-index:1;bottom:0;left:0;right:0;pointer-events:none;background-image:linear-gradient(to bottom,#fff0,#fff 90%);width:100%;height:5em}._argumentContent_1s4qc_122{line-height:var(--line-height-loose, 1.38em);overflow-wrap:break-word;word-wrap:break-word}._argumentContent_1s4qc_122 *{font-size:var(--font-size-normal, 16px)}._argumentSourcesList_1s4qc_131{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;font-size:var(--font-size-extra-small, 14px);font-weight:var(--font-weight-normal, 400)}._argumentSourcesList_1s4qc_131 a{text-decoration:none}._repliesList_1s4qc_144{margin-top:var(--spacer-sm, calc(var(--space-unit, 1em) * .5))!important}._readMoreLink_1s4qc_148{margin-top:var(--spacer-md, calc(var(--space-unit, 1em) * .75))!important;display:flex;justify-content:center}._replyStyle_1s4qc_154{background:var(--text-tertiary, #fafafa)}._replyTo_1s4qc_158{display:flex!important;flex-direction:row!important;align-items:flex-start!important;padding-bottom:var(--spacer-sm, calc(var(--space-unit, 1em) * .5))!important;font-size:var(--font-size-extra-small, 14px);color:var(--text-secondary, #5F5F5F);cursor:pointer;overflow:hidden;white-space:nowrap}._replyTo_1s4qc_158 span{padding-left:var(--spacer-xxs, calc(var(--space-unit, 1em) * .25))!important;cursor:pointer;text-decoration:underline}._replyTo_1s4qc_158 svg{padding:2px 0 0 2px;fill:var(--text-secondary, #5F5F5F)}._replyingTo_1s4qc_179{display:flex!important}._headerPosition-0_1s4qc_183{background-color:var(--call-primary-color, #434343)!important}._headerPosition-1_1s4qc_187{background-color:var(--for-primary-color, #cc6a6d)!important}._headerPosition-2_1s4qc_191{background-color:var(--against-primary-color, #7980bb)!important}._headerPosition-3_1s4qc_195{background-color:var(--third-position-color-primary, #9b9b9b)!important}._voteButtonPosition-1_1s4qc_199{color:var(--for-primary-color, #cc6a6d)!important}._voteButtonPosition-1_1s4qc_199 svg{fill:var(--for-primary-color, #cc6a6d)!important}._voteButtonPosition-2_1s4qc_206{color:var(--against-primary-color, #7980bb)!important}._voteButtonPosition-2_1s4qc_206 svg{fill:var(--against-primary-color, #7980bb)!important}._voteButtonPosition-3_1s4qc_213{color:var(--third-position-color-primary, #9b9b9b)!important}._voteButtonPosition-3_1s4qc_213 svg{fill:var(--third-position-color-primary, #9b9b9b)!important}@media(prefers-color-scheme:dark){._replyStyle_1s4qc_154{background-color:var(--text-tertiary, #fafafa)}._argumentStyle_1s4qc_224{background-color:var(--background-color-primary, white)}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
._dropdownWrapper_5fyic_3{position:relative;display:inline-block}._dropdownHeader_5fyic_8{border:none;padding:0!important;cursor:pointer;background-color:var(--background-color-primary, white)}._dropdownHeader_5fyic_8:focus-visible{outline:revert}._dropdownList_5fyic_18{position:absolute;z-index:3;background:var(--background-color-primary, white);box-shadow:var(--box-shadow, 0px 2px 5px rgba(7, 42, 68, .1));border:var(--box-border, 1px solid rgba(7, 42, 68, .1));border-radius:var(--box-border-radius, 6px);overscroll-behavior-y:contain;width:max-content}._left_5fyic_29{left:0!important}._right_5fyic_33{right:0!important}._center_5fyic_37{left:50%;transform:translate(-50%)}
|