@logora/debate 0.4.70 → 0.4.73
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/vote/vote_box/VoteBox.module-BM2Iqu7I.css +1 -0
- package/dist/components/input/argument_input/ArgumentInput.js +22 -22
- package/dist/components/input/text_editor/plugins/FocusPlugin.js +12 -12
- package/dist/components/suggestion/suggestion_input/SuggestionInput.js +9 -9
- package/dist/components/vote/vote_box/VoteBox.module.scss.js +37 -37
- package/package.json +1 -1
- package/dist/assets/components/vote/vote_box/VoteBox.module-tPps5JNE.css +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._voteBox_1y5hn_3{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:center!important;width:100%}._voteResultsBox_1y5hn_11{display:flex!important;flex-direction:column!important;padding:0!important;width:100%}._voteResults_1y5hn_11{padding:0!important}._voteProgressHeader_1y5hn_22{margin-bottom:var(--spacer-xxs, calc(var(--space-unit, 1em) * .25))!important;display:flex!important;align-items:center!important;font-size:var(--font-size-normal, 16px);display:-webkit-box;word-wrap:break-word;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis}._voteProgressHeaderAgainst_1y5hn_35{margin-top:var(--spacer-md, calc(var(--space-unit, 1em) * .75))!important}._voteResultsNumberVoters_1y5hn_39{display:flex!important;align-items:center!important;padding:0!important;font-size:var(--font-size-normal, 16px);color:var(--text-secondary, #5F5F5F)}._voteBoxFooter_1y5hn_47{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:space-between!important;margin-top:var(--space-unit, 1em)!important;padding:0!important}._voteBoxActions_1y5hn_56{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center;gap:var(--space-unit, 1em);color:var(--text-secondary, #5F5F5F);width:100%}._voteBoxActionsBody_1y5hn_66{display:grid!important;grid-template-columns:repeat(2,1fr);gap:var(--spacer-md, calc(var(--space-unit, 1em) * .75));padding:0!important;width:100%}._voteBoxActionsBodyColumn_1y5hn_74{grid-template-columns:1fr}._voteAction_1y5hn_78{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:center!important;padding:0!important;max-width:100%!important;width:100%!important;text-align:center}._voteAction_1y5hn_78._buttonAlignLeft_1y5hn_88{justify-content:flex-start!important}button._voteButton_1y5hn_92,a._voteButton_1y5hn_92{-webkit-appearance:initial!important;width:100%;-webkit-hyphens:auto;-ms-hyphens:auto;-moz-hyphens:auto;hyphens:auto;padding:var(--spacer-sm, calc(var(--space-unit, 1em) * .5))!important}._textAlignLeft_1y5hn_103{justify-content:flex-start!important}._voteBoxShowResultContainer_1y5hn_107{display:flex!important;flex-direction:row!important;justify-content:center;flex-wrap:wrap!important;margin-top:.3em}._voteBoxShowResult_1y5hn_107{cursor:pointer}._voteBoxShowResult_1y5hn_107 a{color:inherit;text-decoration:none;background:none!important}._voteBoxShowResult_1y5hn_107 a:hover{text-decoration:none;background:none!important}._voteBoxShowResult_1y5hn_107 a:focus:not(:focus-visible){outline:none;box-shadow:none}._voteBoxShowResult_1y5hn_107 ._boldShowResult_1y5hn_131{font-weight:var(--font-weight-bold, 700);font-variation-settings:var(--font-variation-bold, normal);color:var(--text-primary, #222222)}._outlined_1y5hn_137{padding:7px 15px;border-radius:var(--box-border-radius, 6px);border:1px solid var(--text-primary, #222222)!important;white-space:nowrap}._voteButtonThesis_1y5hn_144{display:block;text-align:left;display:-webkit-box;word-wrap:break-word;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis}@container (max-width: 767.98px){._voteButtonThesisSynthesisMobile_1y5hn_156{text-align:center!important}}._voteBoxActionsBody_1y5hn_66 ._voteAction_1y5hn_78:first-child ._voteButton_1y5hn_92,._voteBoxActionsBody_1y5hn_66 ._voteAction_1y5hn_78:first-child ._voteButton_1y5hn_92:hover{background-color:var(--for-primary-color, #cc6a6d)!important;border-color:var(--for-primary-color, #cc6a6d)!important;border:1px solid var(--for-primary-color, #cc6a6d)!important}._voteBoxActionsBody_1y5hn_66 ._voteAction_1y5hn_78:nth-child(2) ._voteButton_1y5hn_92{background-color:var(--against-primary-color, #7980bb)!important;border-color:var(--against-primary-color, #7980bb)!important;border:1px solid var(--against-primary-color, #7980bb)!important}._voteBoxActionsBody_1y5hn_66 ._voteAction_1y5hn_78:nth-child(2) ._voteButton_1y5hn_92:hover{background-color:var(--against-primary-color, #7980bb)!important;border-color:var(--against-primary-color, #7980bb)!important;border:1px solid var(--against-primary-color, #7980bb)!important}._voteBoxActionsBody_1y5hn_66 ._voteAction_1y5hn_78:nth-child(3) ._voteButton_1y5hn_92{background-color:var(--text-light, white)!important;color:var(--third-position-color-primary, #9b9b9b)!important;border-color:var(--third-position-color-primary, #9b9b9b)!important;border:1px solid var(--third-position-color-primary, #9b9b9b)!important}._voteBoxActionsBody_1y5hn_66 ._voteAction_1y5hn_78:nth-child(3) ._voteButton_1y5hn_92:hover{background-color:var(--text-light, white)!important;color:var(--third-position-color-primary, #9b9b9b)!important;border-color:var(--third-position-color-primary, #9b9b9b)!important;border:1px solid var(--third-position-color-primary, #9b9b9b)!important}._voteBoxActionsBodyOutlined_1y5hn_195 ._voteAction_1y5hn_78:first-child ._voteButton_1y5hn_92,._voteBoxActionsBodyOutlined_1y5hn_195 ._voteAction_1y5hn_78:first-child ._voteButton_1y5hn_92:hover{background-color:var(--text-light, white)!important;color:var(--for-primary-color, #cc6a6d)!important;border-color:var(--for-primary-color, #cc6a6d)!important;border:1px solid var(--for-primary-color, #cc6a6d)!important}._voteBoxActionsBodyOutlined_1y5hn_195 ._voteAction_1y5hn_78:nth-child(2) ._voteButton_1y5hn_92{background-color:var(--text-light, white)!important;color:var(--against-primary-color, #7980bb)!important;border-color:var(--against-primary-color, #7980bb)!important;border:1px solid var(--against-primary-color, #7980bb)!important}._voteBoxActionsBodyOutlined_1y5hn_195 ._voteAction_1y5hn_78:nth-child(2) ._voteButton_1y5hn_92:hover{background-color:var(--text-light, white)!important;color:var(--against-primary-color, #7980bb)!important;border-color:var(--against-primary-color, #7980bb)!important;border:1px solid var(--against-primary-color, #7980bb)!important}._voteBoxActionsBodyOutlined_1y5hn_195 ._voteAction_1y5hn_78:nth-child(3) ._voteButton_1y5hn_92{background-color:var(--text-light, white)!important;color:var(--third-position-color-primary, #9b9b9b)!important;border-color:var(--third-position-color-primary, #9b9b9b)!important;border:1px solid var(--third-position-color-primary, #9b9b9b)!important}._voteBoxActionsBodyOutlined_1y5hn_195 ._voteAction_1y5hn_78:nth-child(3) ._voteButton_1y5hn_92:hover{background-color:var(--text-light, white)!important;color:var(--third-position-color-primary, #9b9b9b)!important;border-color:var(--third-position-color-primary, #9b9b9b)!important;border:1px solid var(--third-position-color-primary, #9b9b9b)!important}._voteBoxActionsBodyFilledNeutral_1y5hn_234 ._voteAction_1y5hn_78:nth-child(3) ._voteButton_1y5hn_92{background-color:var(--third-position-color-primary, #9b9b9b)!important;color:var(--text-light, white)!important;border-color:var(--third-position-color-primary, #9b9b9b)!important;border:1px solid var(--third-position-color-primary, #9b9b9b)!important}._voteBoxActionsBodyFilledNeutral_1y5hn_234 ._voteAction_1y5hn_78:nth-child(3) ._voteButton_1y5hn_92:hover{background-color:var(--third-position-color-primary, #9b9b9b)!important;color:var(--text-light, white)!important;border-color:var(--third-position-color-primary, #9b9b9b)!important;border:1px solid var(--third-position-color-primary, #9b9b9b)!important}._voteActionButton_1y5hn_247{cursor:pointer;-webkit-appearance:initial!important;background:none;border:none;color:var(--text-secondary, #5F5F5F)!important;font-size:inherit;padding:0;font-weight:var(--font-weight-bold, 700);font-variation-settings:var(--font-variation-bold, normal)}._voteActionButton_1y5hn_247:focus:not(:focus-visible){outline:none;box-shadow:none}._sideIcon_1y5hn_263 svg{margin-left:5px;fill:var(--text-primary, #222222)}._progress_1y5hn_268{border-radius:var(--button-border-radius, var(--box-border-radius, 6px));color:var(--text-secondary, #5F5F5F);height:2.2em}._progressBar_1y5hn_274{border-radius:var(--button-border-radius, var(--box-border-radius, 6px));height:100%}._voteResults_1y5hn_11>div:first-child ._progress_1y5hn_268 ._progressBar_1y5hn_274{background-color:var(--for-primary-color, #cc6a6d)!important}._voteResults_1y5hn_11>div:nth-child(2) ._progress_1y5hn_268 ._progressBar_1y5hn_274{background-color:var(--against-primary-color, #7980bb)!important}._voteResults_1y5hn_11 div:nth-child(3) ._progress_1y5hn_268 ._progressBar_1y5hn_274{background-color:var(--third-position-color-primary, #9b9b9b)!important}._voteCommentCounts_1y5hn_291{display:flex;align-items:center;gap:var(--space-unit, 1em);width:100%;margin-top:var(--spacer-xxs, calc(var(--space-unit, 1em) * .25))!important}._debateNumberItem_1y5hn_299{display:flex;align-items:center;gap:var(--spacer-xxs, calc(var(--space-unit, 1em) * .25));font-size:var(--font-size-normal, 16px);color:var(--text-primary, #222222);white-space:nowrap}._debateNumberLabel_1y5hn_308{white-space:nowrap}._showResultButton_1y5hn_312{background:none;border:0;padding:0;font:inherit;color:inherit;cursor:pointer}._showResultButton_1y5hn_312:focus:not(:focus-visible){outline:none;box-shadow:none}._voteResultInfoText_1y5hn_325{font-size:var(--font-size-small, 16px);color:var(--text-secondary, #5F5F5F);text-align:left;width:100%;align-self:flex-start}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as C, jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import { useRef as
|
|
2
|
+
import We from "@rooks/use-sessionstorage-state";
|
|
3
|
+
import { useRef as Ye, useState as c, useEffect as p, Suspense as Re, lazy as je } from "react";
|
|
4
4
|
import { useIntl as ze, FormattedMessage as he } from "react-intl";
|
|
5
5
|
import { useLocation as Oe } from "react-router";
|
|
6
6
|
import x from "classnames";
|
|
@@ -51,12 +51,12 @@ const ut = je(() => import("../../modal/side_modal/index.js").then((N) => ({ def
|
|
|
51
51
|
inputContent: B,
|
|
52
52
|
setInputContent: te,
|
|
53
53
|
setInputRichContent: Ie
|
|
54
|
-
} = He(), { isLoggedIn: S, currentUser: u } = Qe(), { errors: E, validate: $ } = Xe(), { isMobile: m } = Ze(), xe = Oe(), ne =
|
|
54
|
+
} = He(), { isLoggedIn: S, currentUser: u } = Qe(), { errors: E, validate: $ } = Xe(), { isMobile: m } = Ze(), xe = Oe(), ne = Ye(null), [V, k] = c([]), [q, D] = c(""), [ae, U] = c(null), [d, b] = c(null), [se, ie] = c(null), [oe, re] = c(!1), [I, ue] = c(!1), [A, de] = c({}), [Ne, W] = c(!1), [f, ye] = We(
|
|
55
55
|
"userSide",
|
|
56
56
|
{}
|
|
57
57
|
), [g, Te] = c(
|
|
58
58
|
!S && v?.actions?.disableInputForVisitor
|
|
59
|
-
),
|
|
59
|
+
), Y = et(), { showModal: Le } = tt(), { toast: R } = nt() || {}, le = new URLSearchParams(
|
|
60
60
|
typeof window < "u" ? window.location.search : xe.search
|
|
61
61
|
);
|
|
62
62
|
p(() => {
|
|
@@ -69,13 +69,13 @@ const ut = je(() => import("../../modal/side_modal/index.js").then((N) => ({ def
|
|
|
69
69
|
let e = null;
|
|
70
70
|
typeof window < "u" && (e = le.get("positionId")), w && w != a[2]?.id && a?.find((t) => t.id === w) ? b(w) : e && e != a[2]?.id ? b(e) : f && f.groupId == _ && f.positionId != a[2]?.id && b(f.positionId);
|
|
71
71
|
}, [w]), p(() => {
|
|
72
|
-
Q &&
|
|
72
|
+
Q && W(!0);
|
|
73
73
|
}, [Q]), p(() => {
|
|
74
|
-
P && (z(),
|
|
74
|
+
P && (z(), W(!0), L());
|
|
75
75
|
}, [P]), p(() => {
|
|
76
76
|
if (typeof window < "u") {
|
|
77
77
|
const e = be || le.get("initArgument");
|
|
78
|
-
(e === !0 || e === "true") && (
|
|
78
|
+
(e === !0 || e === "true") && (W(!0), L(), qe());
|
|
79
79
|
}
|
|
80
80
|
}, []), p(() => {
|
|
81
81
|
Z && (L(), ee(!1));
|
|
@@ -83,11 +83,11 @@ const ut = je(() => import("../../modal/side_modal/index.js").then((N) => ({ def
|
|
|
83
83
|
B?.id && (Fe(B), ee(!0));
|
|
84
84
|
}, [B]);
|
|
85
85
|
const Fe = (e) => {
|
|
86
|
-
de(e), ue(!0),
|
|
86
|
+
de(e), ue(!0), k(e.sources), D(e.content), U(e.rich_content), ie(e.id), L(), b(e.position?.id), JSON.parse(e.rich_content).hasOwnProperty("root") ? Ie(e.rich_content) : te(e.content);
|
|
87
87
|
}, L = () => {
|
|
88
|
-
ne.current.scrollIntoView(
|
|
88
|
+
ne.current.scrollIntoView({ behavior: "smooth", block: "center" });
|
|
89
89
|
}, me = () => {
|
|
90
|
-
|
|
90
|
+
D(""), U(null), de({}), ie(null), k([]), Se(!0), te(null);
|
|
91
91
|
}, Pe = (e) => {
|
|
92
92
|
b(e), ge(e);
|
|
93
93
|
}, Be = () => {
|
|
@@ -108,11 +108,11 @@ const ut = je(() => import("../../modal/side_modal/index.js").then((N) => ({ def
|
|
|
108
108
|
) })
|
|
109
109
|
);
|
|
110
110
|
}, Ee = () => {
|
|
111
|
-
S ? se ?
|
|
111
|
+
S ? se ? ke() : !a || a?.length === 0 || !y?.find((e) => e?.id === d) && d || j && r ? ge(r && j && a[0]?.id) : Be() : Y({ loginAction: "argument" });
|
|
112
112
|
}, $e = (e, t) => {
|
|
113
|
-
g ?
|
|
113
|
+
g ? Y({ loginAction: "argument" }) : (D(e), U(t), $({ content: e }, [{ content: ["url", null] }]));
|
|
114
114
|
}, Ve = (e) => {
|
|
115
|
-
|
|
115
|
+
k(e);
|
|
116
116
|
}, fe = [
|
|
117
117
|
{ content: ["length", 3] },
|
|
118
118
|
{ content: ["required", null] },
|
|
@@ -120,7 +120,7 @@ const ut = je(() => import("../../modal/side_modal/index.js").then((N) => ({ def
|
|
|
120
120
|
...!a || a?.length === 0 ? [] : [{ position_id: ["required", null] }]
|
|
121
121
|
], ge = (e) => {
|
|
122
122
|
const t = e || d, l = {
|
|
123
|
-
content:
|
|
123
|
+
content: q,
|
|
124
124
|
rich_content: ae,
|
|
125
125
|
group_id: _,
|
|
126
126
|
...J && { group_type: J },
|
|
@@ -152,8 +152,8 @@ const ut = je(() => import("../../modal/side_modal/index.js").then((N) => ({ def
|
|
|
152
152
|
const h = i.data.data.resource;
|
|
153
153
|
let F = N;
|
|
154
154
|
t && !m && (F = `argumentList${h.position.id}`), K?.(
|
|
155
|
-
|
|
156
|
-
a.find((
|
|
155
|
+
q,
|
|
156
|
+
a.find((Ue) => Ue.id === t) || null
|
|
157
157
|
), T.add(F, [h]), R(
|
|
158
158
|
o.formatMessage({
|
|
159
159
|
id: "alert.argument_create",
|
|
@@ -179,9 +179,9 @@ const ut = je(() => import("../../modal/side_modal/index.js").then((N) => ({ def
|
|
|
179
179
|
);
|
|
180
180
|
}
|
|
181
181
|
}));
|
|
182
|
-
},
|
|
182
|
+
}, ke = () => {
|
|
183
183
|
const e = {
|
|
184
|
-
content:
|
|
184
|
+
content: q,
|
|
185
185
|
rich_content: ae,
|
|
186
186
|
source_ids: V?.map((t) => t.id),
|
|
187
187
|
...d && { position_id: d }
|
|
@@ -204,7 +204,7 @@ const ut = je(() => import("../../modal/side_modal/index.js").then((N) => ({ def
|
|
|
204
204
|
}), me();
|
|
205
205
|
}
|
|
206
206
|
});
|
|
207
|
-
},
|
|
207
|
+
}, qe = () => {
|
|
208
208
|
if (!oe) {
|
|
209
209
|
re(!0);
|
|
210
210
|
const e = setTimeout(() => {
|
|
@@ -213,8 +213,8 @@ const ut = je(() => import("../../modal/side_modal/index.js").then((N) => ({ def
|
|
|
213
213
|
return () => clearTimeout(e);
|
|
214
214
|
}
|
|
215
215
|
}, z = () => {
|
|
216
|
-
g ?
|
|
217
|
-
},
|
|
216
|
+
g ? Y({ loginAction: "argument" }) : ue(!0);
|
|
217
|
+
}, De = () => {
|
|
218
218
|
const e = y.find(
|
|
219
219
|
(t) => t.id === d
|
|
220
220
|
);
|
|
@@ -352,7 +352,7 @@ const ut = je(() => import("../../modal/side_modal/index.js").then((N) => ({ def
|
|
|
352
352
|
width: 20
|
|
353
353
|
}
|
|
354
354
|
),
|
|
355
|
-
/* @__PURE__ */ s("div", { className: n.argumentInputWarningText, children:
|
|
355
|
+
/* @__PURE__ */ s("div", { className: n.argumentInputWarningText, children: De() })
|
|
356
356
|
]
|
|
357
357
|
}
|
|
358
358
|
),
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { useLexicalComposerContext as u } from "@lexical/react/LexicalComposerContext";
|
|
2
|
-
import { useRef as c, useEffect as
|
|
3
|
-
import { useInput as
|
|
4
|
-
const
|
|
5
|
-
const [
|
|
6
|
-
return
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
import { useRef as c, useEffect as n } from "react";
|
|
3
|
+
import { useInput as l } from "../../input_provider/useInput.js";
|
|
4
|
+
const p = ({ autoFocus: o = !1 }) => {
|
|
5
|
+
const [e] = u(), { focus: t } = l(), r = c(!1);
|
|
6
|
+
return n(() => {
|
|
7
|
+
t && e.focus(() => {
|
|
8
|
+
e.getRootElement().focus({ preventScroll: !0 });
|
|
9
9
|
});
|
|
10
|
-
}, [
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
}, [t, e]), n(() => {
|
|
11
|
+
o && !r.current && (r.current = !0, e.focus(() => {
|
|
12
|
+
e.getRootElement().focus({ preventScroll: !0 });
|
|
13
13
|
}));
|
|
14
|
-
}, [
|
|
14
|
+
}, [o, e]), null;
|
|
15
15
|
};
|
|
16
16
|
export {
|
|
17
|
-
|
|
17
|
+
p as FocusPlugin
|
|
18
18
|
};
|
|
@@ -21,25 +21,25 @@ const ve = ({
|
|
|
21
21
|
userGuideUrl: d,
|
|
22
22
|
hideUserGuideLink: N = !1
|
|
23
23
|
}) => {
|
|
24
|
-
const o = K(), C = Q(), x = W(), { toast: T } = X() || {}, { isLoggedIn: y } = Z(), { focus: f, setFocus: q } = $(), { errors: p, validate: F } = G(), [h, E] = l(!0), [Y, v] = l(!1), [i, a] = l(""), [S,
|
|
24
|
+
const o = K(), C = Q(), x = W(), { toast: T } = X() || {}, { isLoggedIn: y } = Z(), { focus: f, setFocus: q } = $(), { errors: p, validate: F } = G(), [h, E] = l(!0), [Y, v] = l(!1), [i, a] = l(""), [S, k, A] = z("userSuggestion", {}), R = b(null), u = b(null), V = U();
|
|
25
25
|
c(() => {
|
|
26
26
|
S?.suggestion && a(S.suggestion);
|
|
27
27
|
}, []), c(() => {
|
|
28
28
|
if (h) {
|
|
29
29
|
const s = setInterval(() => {
|
|
30
|
-
i?.length > 0 &&
|
|
30
|
+
i?.length > 0 && k({
|
|
31
31
|
suggestion: i
|
|
32
32
|
});
|
|
33
33
|
}, 1e3);
|
|
34
34
|
return () => clearInterval(s);
|
|
35
35
|
}
|
|
36
36
|
}, [h, i]), c(() => {
|
|
37
|
-
f && (
|
|
37
|
+
f && (j(), w(), O(), q(!1));
|
|
38
38
|
}, [f]);
|
|
39
|
-
const
|
|
40
|
-
u.current.scrollIntoView({ behavior: "smooth" });
|
|
39
|
+
const j = () => {
|
|
40
|
+
u.current.scrollIntoView({ behavior: "smooth", block: "center" });
|
|
41
41
|
}, w = () => {
|
|
42
|
-
u.current.focus();
|
|
42
|
+
u.current.focus({ preventScroll: !0 });
|
|
43
43
|
}, O = () => {
|
|
44
44
|
if (!Y) {
|
|
45
45
|
v(!0);
|
|
@@ -49,7 +49,7 @@ const ve = ({
|
|
|
49
49
|
return () => clearTimeout(s);
|
|
50
50
|
}
|
|
51
51
|
}, L = () => {
|
|
52
|
-
a(""),
|
|
52
|
+
a(""), A();
|
|
53
53
|
}, B = () => {
|
|
54
54
|
if (y) {
|
|
55
55
|
const s = {
|
|
@@ -80,13 +80,13 @@ const ve = ({
|
|
|
80
80
|
}
|
|
81
81
|
}));
|
|
82
82
|
} else
|
|
83
|
-
|
|
83
|
+
V({});
|
|
84
84
|
};
|
|
85
85
|
return /* @__PURE__ */ e(
|
|
86
86
|
"div",
|
|
87
87
|
{
|
|
88
88
|
className: t.suggestionInputContainer,
|
|
89
|
-
ref:
|
|
89
|
+
ref: R,
|
|
90
90
|
children: /* @__PURE__ */ g(P, { children: [
|
|
91
91
|
/* @__PURE__ */ g("div", { className: H(t.suggestionInputItem), children: [
|
|
92
92
|
/* @__PURE__ */ e("div", { className: t.suggestionInputTitle, children: /* @__PURE__ */ e(
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import '../../../assets/components/vote/vote_box/VoteBox.module-
|
|
1
|
+
import '../../../assets/components/vote/vote_box/VoteBox.module-BM2Iqu7I.css';const o = "_voteBox_1y5hn_3", t = "_voteResultsBox_1y5hn_11", e = "_voteResults_1y5hn_11", n = "_voteProgressHeader_1y5hn_22", s = "_voteProgressHeaderAgainst_1y5hn_35", _ = "_voteResultsNumberVoters_1y5hn_39", u = "_voteBoxFooter_1y5hn_47", v = "_voteBoxActions_1y5hn_56", B = "_voteBoxActionsBody_1y5hn_66", l = "_voteBoxActionsBodyColumn_1y5hn_74", i = "_voteAction_1y5hn_78", c = "_buttonAlignLeft_1y5hn_88", r = "_voteButton_1y5hn_92", h = "_textAlignLeft_1y5hn_103", y = "_voteBoxShowResultContainer_1y5hn_107", d = "_voteBoxShowResult_1y5hn_107", x = "_boldShowResult_1y5hn_131", A = "_outlined_1y5hn_137", a = "_voteButtonThesis_1y5hn_144", b = "_voteButtonThesisSynthesisMobile_1y5hn_156", R = "_voteBoxActionsBodyOutlined_1y5hn_195", g = "_voteBoxActionsBodyFilledNeutral_1y5hn_234", m = "_voteActionButton_1y5hn_247", w = "_sideIcon_1y5hn_263", C = "_progress_1y5hn_268", N = "_progressBar_1y5hn_274", S = "_voteCommentCounts_1y5hn_291", f = "_debateNumberItem_1y5hn_299", I = "_debateNumberLabel_1y5hn_308", L = "_showResultButton_1y5hn_312", T = "_voteResultInfoText_1y5hn_325", p = {
|
|
2
2
|
voteBox: o,
|
|
3
3
|
voteResultsBox: t,
|
|
4
4
|
voteResults: e,
|
|
5
|
-
voteProgressHeader:
|
|
6
|
-
voteProgressHeaderAgainst:
|
|
5
|
+
voteProgressHeader: n,
|
|
6
|
+
voteProgressHeaderAgainst: s,
|
|
7
7
|
voteResultsNumberVoters: _,
|
|
8
|
-
voteBoxFooter:
|
|
9
|
-
voteBoxActions:
|
|
10
|
-
voteBoxActionsBody:
|
|
11
|
-
voteBoxActionsBodyColumn:
|
|
12
|
-
voteAction:
|
|
13
|
-
buttonAlignLeft:
|
|
14
|
-
voteButton:
|
|
15
|
-
textAlignLeft:
|
|
16
|
-
voteBoxShowResultContainer:
|
|
8
|
+
voteBoxFooter: u,
|
|
9
|
+
voteBoxActions: v,
|
|
10
|
+
voteBoxActionsBody: B,
|
|
11
|
+
voteBoxActionsBodyColumn: l,
|
|
12
|
+
voteAction: i,
|
|
13
|
+
buttonAlignLeft: c,
|
|
14
|
+
voteButton: r,
|
|
15
|
+
textAlignLeft: h,
|
|
16
|
+
voteBoxShowResultContainer: y,
|
|
17
17
|
voteBoxShowResult: d,
|
|
18
|
-
boldShowResult:
|
|
19
|
-
outlined:
|
|
20
|
-
voteButtonThesis:
|
|
21
|
-
voteButtonThesisSynthesisMobile:
|
|
22
|
-
voteBoxActionsBodyOutlined:
|
|
23
|
-
voteBoxActionsBodyFilledNeutral:
|
|
18
|
+
boldShowResult: x,
|
|
19
|
+
outlined: A,
|
|
20
|
+
voteButtonThesis: a,
|
|
21
|
+
voteButtonThesisSynthesisMobile: b,
|
|
22
|
+
voteBoxActionsBodyOutlined: R,
|
|
23
|
+
voteBoxActionsBodyFilledNeutral: g,
|
|
24
24
|
voteActionButton: m,
|
|
25
|
-
sideIcon:
|
|
25
|
+
sideIcon: w,
|
|
26
26
|
progress: C,
|
|
27
27
|
progressBar: N,
|
|
28
28
|
voteCommentCounts: S,
|
|
@@ -32,34 +32,34 @@ import '../../../assets/components/vote/vote_box/VoteBox.module-tPps5JNE.css';co
|
|
|
32
32
|
voteResultInfoText: T
|
|
33
33
|
};
|
|
34
34
|
export {
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
x as boldShowResult,
|
|
36
|
+
c as buttonAlignLeft,
|
|
37
37
|
f as debateNumberItem,
|
|
38
38
|
I as debateNumberLabel,
|
|
39
39
|
p as default,
|
|
40
|
-
|
|
40
|
+
A as outlined,
|
|
41
41
|
C as progress,
|
|
42
42
|
N as progressBar,
|
|
43
43
|
L as showResultButton,
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
44
|
+
w as sideIcon,
|
|
45
|
+
h as textAlignLeft,
|
|
46
|
+
i as voteAction,
|
|
47
47
|
m as voteActionButton,
|
|
48
48
|
o as voteBox,
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
49
|
+
v as voteBoxActions,
|
|
50
|
+
B as voteBoxActionsBody,
|
|
51
|
+
l as voteBoxActionsBodyColumn,
|
|
52
|
+
g as voteBoxActionsBodyFilledNeutral,
|
|
53
|
+
R as voteBoxActionsBodyOutlined,
|
|
54
|
+
u as voteBoxFooter,
|
|
55
55
|
d as voteBoxShowResult,
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
56
|
+
y as voteBoxShowResultContainer,
|
|
57
|
+
r as voteButton,
|
|
58
|
+
a as voteButtonThesis,
|
|
59
|
+
b as voteButtonThesisSynthesisMobile,
|
|
60
60
|
S as voteCommentCounts,
|
|
61
|
-
|
|
62
|
-
|
|
61
|
+
n as voteProgressHeader,
|
|
62
|
+
s as voteProgressHeaderAgainst,
|
|
63
63
|
T as voteResultInfoText,
|
|
64
64
|
e as voteResults,
|
|
65
65
|
t as voteResultsBox,
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
._voteBox_wx9c7_3{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:center!important;width:100%}._voteResultsBox_wx9c7_11{display:flex!important;flex-direction:column!important;padding:0!important;width:100%}._voteResults_wx9c7_11{padding:0!important}._voteProgressHeader_wx9c7_22{margin-bottom:var(--spacer-xxs, calc(var(--space-unit, 1em) * .25))!important;display:flex!important;align-items:center!important;font-size:var(--font-size-normal, 16px);display:-webkit-box;word-wrap:break-word;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis}._voteProgressHeaderAgainst_wx9c7_35{margin-top:var(--spacer-md, calc(var(--space-unit, 1em) * .75))!important}._voteResultsNumberVoters_wx9c7_39{display:flex!important;align-items:center!important;padding:0!important;font-size:var(--font-size-normal, 16px);color:var(--text-secondary, #5F5F5F)}._voteBoxFooter_wx9c7_47{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:space-between!important;margin-top:var(--space-unit, 1em)!important;padding:0!important}._voteBoxActions_wx9c7_56{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center;gap:var(--space-unit, 1em);color:var(--text-secondary, #5F5F5F);width:100%}._voteBoxActionsBody_wx9c7_66{display:grid!important;grid-template-columns:repeat(2,1fr);gap:var(--spacer-md, calc(var(--space-unit, 1em) * .75));padding:0!important;width:100%}._voteBoxActionsBodyColumn_wx9c7_74{grid-template-columns:1fr}._voteAction_wx9c7_78{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:center!important;padding:0!important;max-width:100%!important;width:100%!important;text-align:center}._voteAction_wx9c7_78._buttonAlignLeft_wx9c7_88{justify-content:flex-start!important}button._voteButton_wx9c7_92,a._voteButton_wx9c7_92{-webkit-appearance:initial!important;width:100%;-webkit-hyphens:auto;-ms-hyphens:auto;-moz-hyphens:auto;hyphens:auto;padding:var(--spacer-sm, calc(var(--space-unit, 1em) * .5))!important}._textAlignLeft_wx9c7_103{justify-content:flex-start!important}._voteBoxShowResultContainer_wx9c7_107{display:flex!important;flex-direction:row!important;justify-content:center;flex-wrap:wrap!important;margin-top:.3em}._voteBoxShowResult_wx9c7_107{cursor:pointer}._voteBoxShowResult_wx9c7_107 a{color:inherit;text-decoration:none;background:none!important}._voteBoxShowResult_wx9c7_107 a:hover{text-decoration:none;background:none!important}._voteBoxShowResult_wx9c7_107 a:focus:not(:focus-visible){outline:none;box-shadow:none}._voteBoxShowResult_wx9c7_107 ._boldShowResult_wx9c7_131{font-weight:var(--font-weight-bold, 700);font-variation-settings:var(--font-variation-bold, normal);color:var(--text-primary, #222222)}._outlined_wx9c7_137{padding:7px 15px;border-radius:var(--box-border-radius, 6px);border:1px solid var(--text-primary, #222222)!important;white-space:nowrap}._voteButtonThesis_wx9c7_144{display:block;text-align:left;display:-webkit-box;word-wrap:break-word;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis}@container (max-width: 767.98px){._voteButtonThesisSynthesisMobile_wx9c7_156{text-align:center!important}}._voteBoxActionsBody_wx9c7_66 ._voteAction_wx9c7_78:first-child ._voteButton_wx9c7_92,._voteBoxActionsBody_wx9c7_66 ._voteAction_wx9c7_78:first-child ._voteButton_wx9c7_92:hover{background-color:var(--for-primary-color, #cc6a6d)!important;border-color:var(--for-primary-color, #cc6a6d)!important;border:1px solid var(--for-primary-color, #cc6a6d)!important}._voteBoxActionsBody_wx9c7_66 ._voteAction_wx9c7_78:nth-child(2) ._voteButton_wx9c7_92{background-color:var(--against-primary-color, #7980bb)!important;border-color:var(--against-primary-color, #7980bb)!important;border:1px solid var(--against-primary-color, #7980bb)!important}._voteBoxActionsBody_wx9c7_66 ._voteAction_wx9c7_78:nth-child(2) ._voteButton_wx9c7_92:hover{background-color:var(--against-primary-color, #7980bb)!important;border-color:var(--against-primary-color, #7980bb)!important;border:1px solid var(--against-primary-color, #7980bb)!important}._voteBoxActionsBody_wx9c7_66 ._voteAction_wx9c7_78:nth-child(3) ._voteButton_wx9c7_92{background-color:var(--text-light, white)!important;color:var(--third-position-color-primary, #9b9b9b)!important;border-color:var(--third-position-color-primary, #9b9b9b)!important;border:1px solid var(--third-position-color-primary, #9b9b9b)!important}._voteBoxActionsBody_wx9c7_66 ._voteAction_wx9c7_78:nth-child(3) ._voteButton_wx9c7_92:hover{background-color:var(--text-light, white)!important;color:var(--third-position-color-primary, #9b9b9b)!important;border-color:var(--third-position-color-primary, #9b9b9b)!important;border:1px solid var(--third-position-color-primary, #9b9b9b)!important}._voteBoxActionsBodyOutlined_wx9c7_195 ._voteAction_wx9c7_78:first-child ._voteButton_wx9c7_92,._voteBoxActionsBodyOutlined_wx9c7_195 ._voteAction_wx9c7_78:first-child ._voteButton_wx9c7_92:hover{background-color:var(--text-light, white)!important;color:var(--for-primary-color, #cc6a6d)!important;border-color:var(--for-primary-color, #cc6a6d)!important;border:1px solid var(--for-primary-color, #cc6a6d)!important}._voteBoxActionsBodyOutlined_wx9c7_195 ._voteAction_wx9c7_78:nth-child(2) ._voteButton_wx9c7_92{background-color:var(--text-light, white)!important;color:var(--against-primary-color, #7980bb)!important;border-color:var(--against-primary-color, #7980bb)!important;border:1px solid var(--against-primary-color, #7980bb)!important}._voteBoxActionsBodyOutlined_wx9c7_195 ._voteAction_wx9c7_78:nth-child(2) ._voteButton_wx9c7_92:hover{background-color:var(--text-light, white)!important;color:var(--against-primary-color, #7980bb)!important;border-color:var(--against-primary-color, #7980bb)!important;border:1px solid var(--against-primary-color, #7980bb)!important}._voteBoxActionsBodyOutlined_wx9c7_195 ._voteAction_wx9c7_78:nth-child(3) ._voteButton_wx9c7_92{background-color:var(--text-light, white)!important;color:var(--third-position-color-primary, #9b9b9b)!important;border-color:var(--third-position-color-primary, #9b9b9b)!important;border:1px solid var(--third-position-color-primary, #9b9b9b)!important}._voteBoxActionsBodyOutlined_wx9c7_195 ._voteAction_wx9c7_78:nth-child(3) ._voteButton_wx9c7_92:hover{background-color:var(--text-light, white)!important;color:var(--third-position-color-primary, #9b9b9b)!important;border-color:var(--third-position-color-primary, #9b9b9b)!important;border:1px solid var(--third-position-color-primary, #9b9b9b)!important}._voteBoxActionsBodyFilledNeutral_wx9c7_234 ._voteAction_wx9c7_78:nth-child(3) ._voteButton_wx9c7_92{background-color:var(--third-position-color-primary, #9b9b9b)!important;border-color:var(--third-position-color-primary, #9b9b9b)!important;border:1px solid var(--third-position-color-primary, #9b9b9b)!important}._voteBoxActionsBodyFilledNeutral_wx9c7_234 ._voteAction_wx9c7_78:nth-child(3) ._voteButton_wx9c7_92:hover{background-color:var(--third-position-color-primary, #9b9b9b)!important;border-color:var(--third-position-color-primary, #9b9b9b)!important;border:1px solid var(--third-position-color-primary, #9b9b9b)!important}._voteActionButton_wx9c7_245{cursor:pointer;-webkit-appearance:initial!important;background:none;border:none;color:var(--text-secondary, #5F5F5F)!important;font-size:inherit;padding:0;font-weight:var(--font-weight-bold, 700);font-variation-settings:var(--font-variation-bold, normal)}._voteActionButton_wx9c7_245:focus:not(:focus-visible){outline:none;box-shadow:none}._sideIcon_wx9c7_261 svg{margin-left:5px;fill:var(--text-primary, #222222)}._progress_wx9c7_266{border-radius:var(--button-border-radius, var(--box-border-radius, 6px));color:var(--text-secondary, #5F5F5F);height:2.2em}._progressBar_wx9c7_272{border-radius:var(--button-border-radius, var(--box-border-radius, 6px));height:100%}._voteResults_wx9c7_11>div:first-child ._progress_wx9c7_266 ._progressBar_wx9c7_272{background-color:var(--for-primary-color, #cc6a6d)!important}._voteResults_wx9c7_11>div:nth-child(2) ._progress_wx9c7_266 ._progressBar_wx9c7_272{background-color:var(--against-primary-color, #7980bb)!important}._voteResults_wx9c7_11 div:nth-child(3) ._progress_wx9c7_266 ._progressBar_wx9c7_272{background-color:var(--third-position-color-primary, #9b9b9b)!important}._voteCommentCounts_wx9c7_289{display:flex;align-items:center;gap:var(--space-unit, 1em);width:100%;margin-top:var(--spacer-xxs, calc(var(--space-unit, 1em) * .25))!important}._debateNumberItem_wx9c7_297{display:flex;align-items:center;gap:var(--spacer-xxs, calc(var(--space-unit, 1em) * .25));font-size:var(--font-size-normal, 16px);color:var(--text-primary, #222222);white-space:nowrap}._debateNumberLabel_wx9c7_306{white-space:nowrap}._showResultButton_wx9c7_310{background:none;border:0;padding:0;font:inherit;color:inherit;cursor:pointer}._showResultButton_wx9c7_310:focus:not(:focus-visible){outline:none;box-shadow:none}._voteResultInfoText_wx9c7_323{font-size:var(--font-size-small, 16px);color:var(--text-secondary, #5F5F5F);text-align:left;width:100%;align-self:flex-start}
|