@logora/debate 0.4.47 → 0.4.49
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/input/argument_input/{ArgumentInput.module-CDv7j77K.css → ArgumentInput.module-DkJmJ9ql.css} +1 -1
- package/dist/assets/components/suggestion/suggestion_input/SuggestionInput.module-DP_VkqVp.css +1 -0
- package/dist/assets/components/vote/vote_box/VoteBox.module-Bv7WY_vr.css +1 -0
- package/dist/components/input/argument_input/ArgumentInput.module.scss.js +36 -36
- package/dist/components/input/text_editor/plugins/ToolbarPlugin.js +150 -136
- package/dist/components/suggestion/suggestion_input/SuggestionInput.module.scss.js +5 -5
- package/dist/components/vote/vote_box/VoteBox.js +104 -112
- package/dist/components/vote/vote_box/VoteBox.module.scss.js +35 -37
- package/package.json +1 -1
- package/dist/assets/components/suggestion/suggestion_input/SuggestionInput.module-r5N57bDp.css +0 -1
- package/dist/assets/components/vote/vote_box/VoteBox.module-DzckmyN1.css +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._inputContainer_6vguk_3{position:relative}._argumentInput_6vguk_7{width:100%}@container (min-width: 576px){._argumentInput_6vguk_7{padding:var(--spacer-lg, calc(var(--space-unit, 1em) * 1.5))!important}}._argumentInput_6vguk_7{padding:var(--space-unit, 1em)!important;background-color:var(--background-color-primary, white);box-shadow:var(--box-shadow, 0px 2px 5px rgba(7, 42, 68, .1));border:var(--box-border-main-container, var(--box-border, 1px solid rgba(7, 42, 68, .1)));border-radius:var(--box-border-radius, 6px);z-index:1;-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}._argumentInput_6vguk_7._flash_6vguk_27,._argumentInput_6vguk_7._flash_6vguk_27:hover,._argumentInput_6vguk_7._flash_6vguk_27:focus-within{box-shadow:0 0 15px var(--call-primary-color, #434343)}._argumentInputBox_6vguk_31{display:flex!important;flex-direction:column!important;justify-content:center!important;gap:var(--spacer-xs, calc(var(--space-unit, 1em) * .325))}._userPosition_6vguk_38{display:flex!important;flex-flow:row wrap;align-items:center;gap:var(--space-unit, 1em);color:var(--text-primary, #222222);width:fit-content}._argumentTextInputBox_6vguk_47{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:var(--spacer-lg, calc(var(--space-unit, 1em) * 1.5))}._argumentTextInputBox_6vguk_47._argumentTextInputBoxisTablet_6vguk_53{flex-direction:row!important}@container (max-width: 575.98px){._argumentTextInputBox_6vguk_47{gap:var(--spacer-xs, calc(var(--space-unit, 1em) * .325))}}._argumentAuthorContainer_6vguk_62{margin-top:var(--spacer-sm, calc(var(--space-unit, 1em) * .5))!important;overflow:hidden;min-width:175px;max-width:230px}._argumentAuthorContainer_6vguk_62._argumentAuthorContainerActivated_6vguk_68{min-width:initial;max-width:initial;overflow:initial}._argumentAuthorContainerMobile_6vguk_74{width:max-content;max-width:initial}._textEditorBox_6vguk_79{width:100%}@container (min-width: 576px){._textEditorBox_6vguk_79{padding-top:var(--spacer-sm, calc(var(--space-unit, 1em) * .5))!important}}._textEditorBox_6vguk_79{padding-top:0!important}._argumentInputWarning_6vguk_91{font-size:var(--font-size-extra-small, 14px);color:var(--cancel-primary, #c73c49);margin-top:var(--space-unit, 1em)!important}._argumentInputWarning_6vguk_91 svg._warningIcon_6vguk_96{fill:transparent!important;min-width:20px;min-height:20px}._argumentInputWarning_6vguk_91 svg._warningIcon_6vguk_96 circle{stroke:var(--cancel-primary, #c73c49);stroke-width:1.5px}._argumentInputWarning_6vguk_91 svg._warningIcon_6vguk_96 path{fill:var(--cancel-primary, #c73c49)}._argumentInputWarning_6vguk_91._disabledPositionWarning_6vguk_108{display:flex!important;align-items:center!important;gap:var(--spacer-sm, calc(var(--space-unit, 1em) * .5))}._disabledInputMask_6vguk_114{position:absolute;width:100%;height:100%;z-index:2;opacity:.9;background:var(--text-tertiary, #fafafa);display:flex;flex-direction:row;justify-content:center;align-items:center;font-style:italic}._replyInputContainer_6vguk_128{transition:margin-top 2s;position:relative;background-color:var(--background-color-primary, white);border-radius:var(--box-border-radius, 6px);box-shadow:var(--box-shadow, 0px 2px 5px rgba(7, 42, 68, .1));border:var(--box-border, 1px solid rgba(7, 42, 68, .1));margin-top:var(--spacer-sm, calc(var(--space-unit, 1em) * .5))!important;padding:var(--space-unit, 1em)!important}._replyInputContainer_6vguk_128:before{content:"";border-left:4px solid var(--text-secondary, #5F5F5F);position:absolute;width:4px;height:10px;top:-10px;left:4em}._replyEditorRow_6vguk_148{display:flex!important;flex-direction:row!important;justify-content:flex-start!important;align-items:flex-start!important;gap:var(--space-unit, 1em)!important;width:100%}._replyTextEditorBox_6vguk_157{padding-top:0!important}._guideMessage_6vguk_161{font-size:var(--font-size-small, 16px);color:var(--text-secondary, #5F5F5F);white-space:nowrap;margin-top:1rem;white-space:normal;word-break:break-word}._guideMessage_6vguk_161 a{display:inline!important;font-size:var(--font-size-small, 16px);color:var(--announcement-text-primary, #004085)!important;text-decoration:underline!important}
|
package/dist/assets/components/suggestion/suggestion_input/SuggestionInput.module-DP_VkqVp.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._suggestionInputContainer_100iq_3{display:flex!important;flex-direction:column!important;color:var(--text-primary, #222222);gap:var(--space-unit, 1em)}._suggestionInputItem_100iq_10{display:flex!important;flex-direction:column!important;gap:var(--space-unit, 1em)}._suggestionInputTitle_100iq_16{font-size:var(--font-size-medium, 18px);line-height:var(--line-height-normal, 1.26em);font-weight:var(--font-weight-bold, 700);font-variation-settings:var(--font-variation-bold, normal);position:relative;width:max-content}._suggestionInputSubtitle_100iq_25{font-size:var(--font-size-normal, 16px)}._suggestionInputSubmit_100iq_29{width:max-content}._charactersCount_100iq_33{font-size:var(--font-size-small, 16px);color:var(--text-secondary, #5F5F5F);white-space:nowrap}._guideMessage_100iq_39{font-size:var(--font-size-small, 16px);color:var(--text-secondary, #5F5F5F);white-space:nowrap;white-space:normal;word-break:break-word}._guideMessage_100iq_39 a{display:inline!important;font-size:var(--font-size-small, 16px);text-decoration:underline!important;font-weight:700!important}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._voteBox_1how7_3{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:center!important;width:100%}._voteResultsBox_1how7_11{display:flex!important;flex-direction:column!important;padding:0!important;width:100%}._voteResults_1how7_11{padding:0!important}._voteProgressHeader_1how7_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_1how7_35{margin-top:var(--spacer-md, calc(var(--space-unit, 1em) * .75))!important}._voteResultsNumberVoters_1how7_39{display:flex!important;align-items:center!important;padding:0!important;font-size:var(--font-size-normal, 16px);color:var(--text-secondary, #5F5F5F)}._voteBoxFooter_1how7_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_1how7_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_1how7_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_1how7_74{grid-template-columns:1fr}._voteAction_1how7_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_1how7_78._buttonAlignLeft_1how7_88{justify-content:flex-start!important}button._voteButton_1how7_92,a._voteButton_1how7_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_1how7_103{justify-content:flex-start!important}._voteBoxShowResultContainer_1how7_107{display:flex!important;flex-direction:row!important;justify-content:center;flex-wrap:wrap!important;margin-top:.3em}._voteBoxShowResult_1how7_107{cursor:pointer}._voteBoxShowResult_1how7_107 a{color:inherit;text-decoration:none;background:none!important}._voteBoxShowResult_1how7_107 a:hover{text-decoration:none;background:none!important}._voteBoxShowResult_1how7_107 a:focus:not(:focus-visible){outline:none;box-shadow:none}._voteBoxShowResult_1how7_107 ._boldShowResult_1how7_131{font-weight:var(--font-weight-bold, 700);font-variation-settings:var(--font-variation-bold, normal);color:var(--text-primary, #222222)}._outlined_1how7_137{padding:7px 15px;border-radius:var(--box-border-radius, 6px);border:1px solid var(--text-primary, #222222)!important;white-space:nowrap}._voteButtonThesis_1how7_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_1how7_156{text-align:center!important}}._voteBoxActionsBody_1how7_66 ._voteAction_1how7_78:first-child ._voteButton_1how7_92,._voteBoxActionsBody_1how7_66 ._voteAction_1how7_78:first-child ._voteButton_1how7_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_1how7_66 ._voteAction_1how7_78:nth-child(2) ._voteButton_1how7_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_1how7_66 ._voteAction_1how7_78:nth-child(2) ._voteButton_1how7_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_1how7_66 ._voteAction_1how7_78:nth-child(3) ._voteButton_1how7_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_1how7_66 ._voteAction_1how7_78:nth-child(3) ._voteButton_1how7_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_1how7_195 ._voteAction_1how7_78:first-child ._voteButton_1how7_92,._voteBoxActionsBodyOutlined_1how7_195 ._voteAction_1how7_78:first-child ._voteButton_1how7_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_1how7_195 ._voteAction_1how7_78:nth-child(2) ._voteButton_1how7_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_1how7_195 ._voteAction_1how7_78:nth-child(2) ._voteButton_1how7_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_1how7_195 ._voteAction_1how7_78:nth-child(3) ._voteButton_1how7_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_1how7_195 ._voteAction_1how7_78:nth-child(3) ._voteButton_1how7_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}._voteActionButton_1how7_234{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_1how7_234:focus:not(:focus-visible){outline:none;box-shadow:none}._sideIcon_1how7_250 svg{margin-left:5px;fill:var(--text-primary, #222222)}._progress_1how7_255{border-radius:var(--button-border-radius, var(--box-border-radius, 6px));color:var(--text-secondary, #5F5F5F);height:2.2em}._progressBar_1how7_261{border-radius:var(--button-border-radius, var(--box-border-radius, 6px));height:100%}._voteResults_1how7_11>div:first-child ._progress_1how7_255 ._progressBar_1how7_261{background-color:var(--for-primary-color, #cc6a6d)!important}._voteResults_1how7_11>div:nth-child(2) ._progress_1how7_255 ._progressBar_1how7_261{background-color:var(--against-primary-color, #7980bb)!important}._voteResults_1how7_11 div:nth-child(3) ._progress_1how7_255 ._progressBar_1how7_261{background-color:var(--third-position-color-primary, #9b9b9b)!important}._voteCommentCounts_1how7_278{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_1how7_286{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_1how7_295{white-space:nowrap}._showResultButton_1how7_299{background:none;border:0;padding:0;font:inherit;color:inherit;cursor:pointer}._showResultButton_1how7_299:focus:not(:focus-visible){outline:none;box-shadow:none}._voteResultInfoText_1how7_312{font-size:var(--font-size-small, 16px);color:var(--text-secondary, #5F5F5F);text-align:left;width:100%;align-self:flex-start}
|
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
import '../../../assets/components/input/argument_input/ArgumentInput.module-
|
|
1
|
+
import '../../../assets/components/input/argument_input/ArgumentInput.module-DkJmJ9ql.css';const t = "_inputContainer_6vguk_3", n = "_argumentInput_6vguk_7", e = "_flash_6vguk_27", o = "_argumentInputBox_6vguk_31", u = "_userPosition_6vguk_38", r = "_argumentTextInputBox_6vguk_47", a = "_argumentTextInputBoxisTablet_6vguk_53", i = "_argumentAuthorContainer_6vguk_62", g = "_argumentAuthorContainerActivated_6vguk_68", _ = "_argumentAuthorContainerMobile_6vguk_74", s = "_textEditorBox_6vguk_79", p = "_argumentInputWarning_6vguk_91", d = "_warningIcon_6vguk_96", x = "_disabledPositionWarning_6vguk_108", c = "_disabledInputMask_6vguk_114", l = "_replyInputContainer_6vguk_128", m = "_replyEditorRow_6vguk_148", I = "_replyTextEditorBox_6vguk_157", k = "_guideMessage_6vguk_161", v = {
|
|
2
2
|
inputContainer: t,
|
|
3
3
|
argumentInput: n,
|
|
4
|
-
flash:
|
|
5
|
-
argumentInputBox:
|
|
6
|
-
userPosition:
|
|
7
|
-
argumentTextInputBox:
|
|
8
|
-
argumentTextInputBoxisTablet:
|
|
9
|
-
argumentAuthorContainer:
|
|
10
|
-
argumentAuthorContainerActivated:
|
|
11
|
-
argumentAuthorContainerMobile:
|
|
12
|
-
textEditorBox:
|
|
13
|
-
argumentInputWarning:
|
|
14
|
-
warningIcon:
|
|
15
|
-
disabledPositionWarning:
|
|
16
|
-
disabledInputMask:
|
|
17
|
-
replyInputContainer:
|
|
18
|
-
replyEditorRow:
|
|
19
|
-
replyTextEditorBox:
|
|
20
|
-
guideMessage:
|
|
4
|
+
flash: e,
|
|
5
|
+
argumentInputBox: o,
|
|
6
|
+
userPosition: u,
|
|
7
|
+
argumentTextInputBox: r,
|
|
8
|
+
argumentTextInputBoxisTablet: a,
|
|
9
|
+
argumentAuthorContainer: i,
|
|
10
|
+
argumentAuthorContainerActivated: g,
|
|
11
|
+
argumentAuthorContainerMobile: _,
|
|
12
|
+
textEditorBox: s,
|
|
13
|
+
argumentInputWarning: p,
|
|
14
|
+
warningIcon: d,
|
|
15
|
+
disabledPositionWarning: x,
|
|
16
|
+
disabledInputMask: c,
|
|
17
|
+
replyInputContainer: l,
|
|
18
|
+
replyEditorRow: m,
|
|
19
|
+
replyTextEditorBox: I,
|
|
20
|
+
guideMessage: k
|
|
21
21
|
};
|
|
22
22
|
export {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
i as argumentAuthorContainer,
|
|
24
|
+
g as argumentAuthorContainerActivated,
|
|
25
|
+
_ as argumentAuthorContainerMobile,
|
|
26
26
|
n as argumentInput,
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
27
|
+
o as argumentInputBox,
|
|
28
|
+
p as argumentInputWarning,
|
|
29
|
+
r as argumentTextInputBox,
|
|
30
|
+
a as argumentTextInputBoxisTablet,
|
|
31
|
+
v as default,
|
|
32
|
+
c as disabledInputMask,
|
|
33
|
+
x as disabledPositionWarning,
|
|
34
|
+
e as flash,
|
|
35
|
+
k as guideMessage,
|
|
36
36
|
t as inputContainer,
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
37
|
+
m as replyEditorRow,
|
|
38
|
+
l as replyInputContainer,
|
|
39
|
+
I as replyTextEditorBox,
|
|
40
|
+
s as textEditorBox,
|
|
41
|
+
u as userPosition,
|
|
42
|
+
d as warningIcon
|
|
43
43
|
};
|
|
@@ -1,252 +1,266 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { $isListNode as
|
|
3
|
-
import { useLexicalComposerContext as
|
|
4
|
-
import { $isHeadingNode as
|
|
5
|
-
import { $setBlocksType as
|
|
6
|
-
import { $getNearestNodeOfType as
|
|
7
|
-
import
|
|
8
|
-
import { $getSelection as
|
|
9
|
-
import { useRef as
|
|
10
|
-
import { useIntl as
|
|
11
|
-
import
|
|
12
|
-
import { Icon as
|
|
13
|
-
import { Button as
|
|
14
|
-
const
|
|
15
|
-
const
|
|
16
|
-
const
|
|
17
|
-
if (
|
|
18
|
-
const c =
|
|
19
|
-
if (l.getElementByKey(
|
|
20
|
-
if (
|
|
21
|
-
const o =
|
|
22
|
-
|
|
1
|
+
import { jsxs as P, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { $isListNode as O, ListNode as Z, INSERT_ORDERED_LIST_COMMAND as ee, $isListItemNode as R, $createListNode as te } from "@lexical/list";
|
|
3
|
+
import { useLexicalComposerContext as oe } from "@lexical/react/LexicalComposerContext";
|
|
4
|
+
import { $isHeadingNode as ne, $createQuoteNode as B } from "@lexical/rich-text";
|
|
5
|
+
import { $setBlocksType as $ } from "@lexical/selection";
|
|
6
|
+
import { $getNearestNodeOfType as ie, mergeRegister as ae } from "@lexical/utils";
|
|
7
|
+
import i from "classnames";
|
|
8
|
+
import { $getSelection as M, $isRangeSelection as I, SELECTION_CHANGE_COMMAND as le, FORMAT_TEXT_COMMAND as re, $createParagraphNode as q } from "lexical";
|
|
9
|
+
import { useRef as k, useState as N, useCallback as se, useEffect as K } from "react";
|
|
10
|
+
import { useIntl as ce } from "react-intl";
|
|
11
|
+
import t from "./ToolbarPlugin.module.scss.js";
|
|
12
|
+
import { Icon as f } from "../../../icons/icon/Icon.js";
|
|
13
|
+
import { Button as de } from "../../../action/button/Button.js";
|
|
14
|
+
const Ce = (a) => {
|
|
15
|
+
const d = ce(), F = 1, [l] = oe(), U = k(null), [T, x] = N("paragraph"), [ue, j] = N(null), [H, Q] = N(!1), [V, z] = N(!1), [G, X] = N(!1), L = a.hideSubmit && a.hideSourceAction && a.disableRichText, _ = se(() => {
|
|
16
|
+
const e = M();
|
|
17
|
+
if (I(e)) {
|
|
18
|
+
const c = e.anchor.getNode(), r = c.getKey() === "root" ? c : c.getTopLevelElementOrThrow(), u = r.getKey();
|
|
19
|
+
if (l.getElementByKey(u) !== null)
|
|
20
|
+
if (j(u), O(r)) {
|
|
21
|
+
const o = ie(c, Z), p = o ? o.getTag() : r.getTag();
|
|
22
|
+
x(p);
|
|
23
23
|
} else {
|
|
24
|
-
const o =
|
|
25
|
-
|
|
24
|
+
const o = ne(r) ? r.getTag() : r.getType();
|
|
25
|
+
x(o);
|
|
26
26
|
}
|
|
27
|
-
|
|
27
|
+
Q(e.hasFormat("bold")), z(e.hasFormat("italic")), X(e.hasFormat("underline"));
|
|
28
28
|
}
|
|
29
29
|
}, [l]);
|
|
30
|
-
|
|
31
|
-
l.registerUpdateListener(({ editorState:
|
|
32
|
-
|
|
33
|
-
|
|
30
|
+
K(() => ae(
|
|
31
|
+
l.registerUpdateListener(({ editorState: e }) => {
|
|
32
|
+
e.read(() => {
|
|
33
|
+
_();
|
|
34
34
|
});
|
|
35
35
|
}),
|
|
36
36
|
l.registerCommand(
|
|
37
|
-
|
|
38
|
-
() => (
|
|
39
|
-
|
|
37
|
+
le,
|
|
38
|
+
() => (_(), !1),
|
|
39
|
+
F
|
|
40
40
|
)
|
|
41
|
-
), [l,
|
|
42
|
-
const
|
|
43
|
-
|
|
44
|
-
},
|
|
41
|
+
), [l, _]);
|
|
42
|
+
const A = (e) => {
|
|
43
|
+
e.pointerType !== "touch" && e.pointerType !== "pen" && e.preventDefault();
|
|
44
|
+
}, y = k(!1), s = k(null);
|
|
45
|
+
K(() => () => {
|
|
46
|
+
s.current && clearTimeout(s.current);
|
|
47
|
+
}, []);
|
|
48
|
+
const g = (e, c) => {
|
|
49
|
+
A(e), (e.pointerType === "touch" || e.pointerType === "pen") && (y.current = !0, c(), s.current && clearTimeout(s.current), s.current = setTimeout(() => {
|
|
50
|
+
y.current = !1, s.current = null;
|
|
51
|
+
}, 500));
|
|
52
|
+
}, h = (e) => {
|
|
53
|
+
if (y.current) {
|
|
54
|
+
y.current = !1, s.current && (clearTimeout(s.current), s.current = null);
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
e();
|
|
58
|
+
}, w = () => {
|
|
45
59
|
setTimeout(() => {
|
|
46
60
|
l.getEditorState().read(() => {
|
|
47
|
-
|
|
61
|
+
_();
|
|
48
62
|
});
|
|
49
63
|
}, 0);
|
|
50
|
-
},
|
|
51
|
-
l.dispatchCommand(
|
|
52
|
-
},
|
|
64
|
+
}, b = (e) => {
|
|
65
|
+
l.dispatchCommand(re, e), w();
|
|
66
|
+
}, J = () => {
|
|
53
67
|
l.update(() => {
|
|
54
|
-
const
|
|
55
|
-
if (!
|
|
68
|
+
const e = M();
|
|
69
|
+
if (!I(e))
|
|
56
70
|
return;
|
|
57
|
-
const c =
|
|
71
|
+
const c = e.getNodes(), r = /* @__PURE__ */ new Set();
|
|
58
72
|
for (const m of c) {
|
|
59
73
|
let o = m;
|
|
60
|
-
for (; o !== null && !
|
|
74
|
+
for (; o !== null && !R(o); )
|
|
61
75
|
o = o.getParent();
|
|
62
|
-
|
|
76
|
+
R(o) && r.add(o);
|
|
63
77
|
}
|
|
64
|
-
const
|
|
65
|
-
for (const m of
|
|
78
|
+
const u = Array.from(r).reverse();
|
|
79
|
+
for (const m of u) {
|
|
66
80
|
const o = m.getParent();
|
|
67
|
-
if (!
|
|
81
|
+
if (!O(o))
|
|
68
82
|
continue;
|
|
69
|
-
const
|
|
70
|
-
for (const
|
|
71
|
-
|
|
72
|
-
const
|
|
73
|
-
if (o.insertAfter(
|
|
74
|
-
const
|
|
75
|
-
for (const
|
|
76
|
-
|
|
77
|
-
|
|
83
|
+
const p = q(), W = m.getChildren();
|
|
84
|
+
for (const S of W)
|
|
85
|
+
p.append(S);
|
|
86
|
+
const C = m.getNextSiblings();
|
|
87
|
+
if (o.insertAfter(p), C.length > 0) {
|
|
88
|
+
const S = C[0].getValue(), E = te(o.getListType(), S);
|
|
89
|
+
for (const Y of C)
|
|
90
|
+
E.append(Y);
|
|
91
|
+
p.insertAfter(E);
|
|
78
92
|
}
|
|
79
93
|
m.remove(), o.getChildrenSize() === 0 && o.remove();
|
|
80
94
|
}
|
|
81
95
|
});
|
|
82
|
-
},
|
|
83
|
-
|
|
84
|
-
},
|
|
85
|
-
|
|
86
|
-
const
|
|
87
|
-
if (
|
|
88
|
-
if (
|
|
89
|
-
const
|
|
90
|
-
|
|
96
|
+
}, D = () => {
|
|
97
|
+
T !== "ol" ? l.dispatchCommand(ee) : J(), w();
|
|
98
|
+
}, v = () => {
|
|
99
|
+
T !== "quote" ? l.update(() => {
|
|
100
|
+
const e = M();
|
|
101
|
+
if (I(e))
|
|
102
|
+
if (e.isCollapsed()) {
|
|
103
|
+
const r = e.anchor.getNode().getTopLevelElementOrThrow(), u = B();
|
|
104
|
+
r.insertAfter(u), u.selectEnd();
|
|
91
105
|
} else
|
|
92
|
-
|
|
106
|
+
$(e, () => B());
|
|
93
107
|
}) : l.update(() => {
|
|
94
|
-
const
|
|
95
|
-
|
|
96
|
-
}),
|
|
108
|
+
const e = M();
|
|
109
|
+
I(e) && $(e, () => q());
|
|
110
|
+
}), w();
|
|
97
111
|
};
|
|
98
|
-
return
|
|
112
|
+
return L ? null : /* @__PURE__ */ P(
|
|
99
113
|
"div",
|
|
100
114
|
{
|
|
101
|
-
className:
|
|
102
|
-
[
|
|
115
|
+
className: i(t.toolbar, {
|
|
116
|
+
[t.toolbarIsActive]: L ? !1 : a.isActive
|
|
103
117
|
}),
|
|
104
|
-
ref:
|
|
118
|
+
ref: U,
|
|
105
119
|
children: [
|
|
106
|
-
|
|
120
|
+
a.isActive ? !a.disableRichText && /* @__PURE__ */ P(
|
|
107
121
|
"div",
|
|
108
122
|
{
|
|
109
|
-
className:
|
|
110
|
-
[
|
|
123
|
+
className: i(t.iconToolbar, {
|
|
124
|
+
[t.shortBar]: a.shortBar
|
|
111
125
|
}),
|
|
112
126
|
children: [
|
|
113
|
-
/* @__PURE__ */
|
|
127
|
+
/* @__PURE__ */ n(
|
|
114
128
|
"button",
|
|
115
129
|
{
|
|
116
|
-
onPointerDown: b,
|
|
117
|
-
onClick: () =>
|
|
130
|
+
onPointerDown: (e) => g(e, () => b("bold")),
|
|
131
|
+
onClick: () => h(() => b("bold")),
|
|
118
132
|
type: "button",
|
|
119
|
-
className:
|
|
133
|
+
className: i(t.toolbarItem, { [t.active]: H }),
|
|
120
134
|
"data-testid": "format-bold",
|
|
121
|
-
"aria-label":
|
|
135
|
+
"aria-label": d.formatMessage({
|
|
122
136
|
id: "input.text_editor.plugins.toolbar_plugin.bold.aria_label",
|
|
123
137
|
defaultMessage: "Make text bold"
|
|
124
138
|
}),
|
|
125
|
-
children: /* @__PURE__ */
|
|
126
|
-
|
|
139
|
+
children: /* @__PURE__ */ n(
|
|
140
|
+
f,
|
|
127
141
|
{
|
|
128
142
|
name: "bold",
|
|
129
143
|
width: 24,
|
|
130
144
|
height: 24,
|
|
131
|
-
className:
|
|
145
|
+
className: i(t.format, t.bold)
|
|
132
146
|
}
|
|
133
147
|
)
|
|
134
148
|
}
|
|
135
149
|
),
|
|
136
|
-
/* @__PURE__ */
|
|
150
|
+
/* @__PURE__ */ n(
|
|
137
151
|
"button",
|
|
138
152
|
{
|
|
139
|
-
onPointerDown: b,
|
|
140
|
-
onClick: () =>
|
|
153
|
+
onPointerDown: (e) => g(e, () => b("italic")),
|
|
154
|
+
onClick: () => h(() => b("italic")),
|
|
141
155
|
type: "button",
|
|
142
|
-
className:
|
|
143
|
-
[
|
|
156
|
+
className: i(t.toolbarItem, {
|
|
157
|
+
[t.active]: V
|
|
144
158
|
}),
|
|
145
|
-
"aria-label":
|
|
159
|
+
"aria-label": d.formatMessage({
|
|
146
160
|
id: "input.text_editor.plugins.toolbar_plugin.italic.aria_label",
|
|
147
161
|
defaultMessage: "Make text italic"
|
|
148
162
|
}),
|
|
149
|
-
children: /* @__PURE__ */
|
|
150
|
-
|
|
163
|
+
children: /* @__PURE__ */ n(
|
|
164
|
+
f,
|
|
151
165
|
{
|
|
152
166
|
name: "italic",
|
|
153
167
|
width: 24,
|
|
154
168
|
height: 24,
|
|
155
|
-
className:
|
|
169
|
+
className: i(t.format, t.italic)
|
|
156
170
|
}
|
|
157
171
|
)
|
|
158
172
|
}
|
|
159
173
|
),
|
|
160
|
-
/* @__PURE__ */
|
|
174
|
+
/* @__PURE__ */ n(
|
|
161
175
|
"button",
|
|
162
176
|
{
|
|
163
|
-
onPointerDown: b,
|
|
164
|
-
onClick: () =>
|
|
177
|
+
onPointerDown: (e) => g(e, () => b("underline")),
|
|
178
|
+
onClick: () => h(() => b("underline")),
|
|
165
179
|
type: "button",
|
|
166
|
-
className:
|
|
167
|
-
[
|
|
180
|
+
className: i(t.toolbarItem, {
|
|
181
|
+
[t.active]: G
|
|
168
182
|
}),
|
|
169
|
-
"aria-label":
|
|
183
|
+
"aria-label": d.formatMessage({
|
|
170
184
|
id: "input.text_editor.plugins.toolbar_plugin.underline.aria_label",
|
|
171
185
|
defaultMessage: "Underline text"
|
|
172
186
|
}),
|
|
173
|
-
children: /* @__PURE__ */
|
|
174
|
-
|
|
187
|
+
children: /* @__PURE__ */ n(
|
|
188
|
+
f,
|
|
175
189
|
{
|
|
176
190
|
name: "underline",
|
|
177
191
|
width: 24,
|
|
178
192
|
height: 24,
|
|
179
|
-
className:
|
|
193
|
+
className: i(t.format, t.underline)
|
|
180
194
|
}
|
|
181
195
|
)
|
|
182
196
|
}
|
|
183
197
|
),
|
|
184
|
-
/* @__PURE__ */
|
|
198
|
+
/* @__PURE__ */ n(
|
|
185
199
|
"button",
|
|
186
200
|
{
|
|
187
|
-
onPointerDown:
|
|
188
|
-
onClick: () =>
|
|
201
|
+
onPointerDown: (e) => g(e, () => v()),
|
|
202
|
+
onClick: () => h(() => v()),
|
|
189
203
|
type: "button",
|
|
190
|
-
className:
|
|
191
|
-
[
|
|
204
|
+
className: i(t.toolbarItem, {
|
|
205
|
+
[t.active]: T === "quote"
|
|
192
206
|
}),
|
|
193
|
-
"aria-label":
|
|
207
|
+
"aria-label": d.formatMessage({
|
|
194
208
|
id: "input.text_editor.plugins.toolbar_plugin.blockquote.aria_label",
|
|
195
209
|
defaultMessage: "Add a blockquote"
|
|
196
210
|
}),
|
|
197
|
-
children: /* @__PURE__ */
|
|
198
|
-
|
|
211
|
+
children: /* @__PURE__ */ n(
|
|
212
|
+
f,
|
|
199
213
|
{
|
|
200
214
|
name: "blockquote",
|
|
201
215
|
width: 24,
|
|
202
216
|
height: 24,
|
|
203
|
-
className:
|
|
217
|
+
className: i(t.format, t.quote)
|
|
204
218
|
}
|
|
205
219
|
)
|
|
206
220
|
}
|
|
207
221
|
),
|
|
208
|
-
/* @__PURE__ */
|
|
222
|
+
/* @__PURE__ */ n(
|
|
209
223
|
"button",
|
|
210
224
|
{
|
|
211
|
-
onPointerDown:
|
|
212
|
-
onClick: () =>
|
|
225
|
+
onPointerDown: (e) => g(e, () => D()),
|
|
226
|
+
onClick: () => h(() => D()),
|
|
213
227
|
type: "button",
|
|
214
|
-
className:
|
|
215
|
-
[
|
|
228
|
+
className: i(t.toolbarItem, {
|
|
229
|
+
[t.active]: T === "ol"
|
|
216
230
|
}),
|
|
217
|
-
"aria-label":
|
|
231
|
+
"aria-label": d.formatMessage({
|
|
218
232
|
id: "input.text_editor.plugins.toolbar_plugin.numbered_list.aria_label",
|
|
219
233
|
defaultMessage: "Insert a numbered list"
|
|
220
234
|
}),
|
|
221
|
-
children: /* @__PURE__ */
|
|
222
|
-
|
|
235
|
+
children: /* @__PURE__ */ n(
|
|
236
|
+
f,
|
|
223
237
|
{
|
|
224
238
|
name: "orderedList",
|
|
225
239
|
width: 24,
|
|
226
240
|
height: 24,
|
|
227
|
-
className:
|
|
241
|
+
className: i(t.format, t.numberedList)
|
|
228
242
|
}
|
|
229
243
|
)
|
|
230
244
|
}
|
|
231
245
|
),
|
|
232
|
-
!
|
|
246
|
+
!a.hideSourceAction && /* @__PURE__ */ n(
|
|
233
247
|
"button",
|
|
234
248
|
{
|
|
235
|
-
onPointerDown:
|
|
236
|
-
onClick:
|
|
249
|
+
onPointerDown: A,
|
|
250
|
+
onClick: a.onAddSource,
|
|
237
251
|
type: "button",
|
|
238
|
-
className:
|
|
239
|
-
"aria-label":
|
|
252
|
+
className: t.toolbarItem,
|
|
253
|
+
"aria-label": d.formatMessage({
|
|
240
254
|
id: "input.text_editor.plugins.toolbar_plugin.add_link.aria_label",
|
|
241
255
|
defaultMessage: "Add hyperlink"
|
|
242
256
|
}),
|
|
243
|
-
children: /* @__PURE__ */
|
|
244
|
-
|
|
257
|
+
children: /* @__PURE__ */ n(
|
|
258
|
+
f,
|
|
245
259
|
{
|
|
246
260
|
name: "link",
|
|
247
261
|
width: 20,
|
|
248
262
|
height: 20,
|
|
249
|
-
className:
|
|
263
|
+
className: i(t.format, t.link)
|
|
250
264
|
}
|
|
251
265
|
)
|
|
252
266
|
}
|
|
@@ -254,18 +268,18 @@ const ye = (n) => {
|
|
|
254
268
|
]
|
|
255
269
|
}
|
|
256
270
|
) : null,
|
|
257
|
-
/* @__PURE__ */
|
|
258
|
-
|
|
271
|
+
/* @__PURE__ */ n("div", { className: t.actionButton, children: a.hideSubmit ? null : /* @__PURE__ */ n(
|
|
272
|
+
de,
|
|
259
273
|
{
|
|
260
274
|
type: "button",
|
|
261
275
|
"data-testid": "submit-button",
|
|
262
|
-
handleClick:
|
|
263
|
-
className:
|
|
264
|
-
"aria-label":
|
|
276
|
+
handleClick: a.onSubmit,
|
|
277
|
+
className: i(t.inputSubmitActionButton, t.submitAction),
|
|
278
|
+
"aria-label": d.formatMessage({
|
|
265
279
|
id: "input.text_editor.plugins.toolbar_plugin.submit_button.aria_label",
|
|
266
280
|
defaultMessage: "Send message"
|
|
267
281
|
}),
|
|
268
|
-
children: /* @__PURE__ */
|
|
282
|
+
children: /* @__PURE__ */ n(f, { name: "send", width: 20, height: 20 })
|
|
269
283
|
}
|
|
270
284
|
) })
|
|
271
285
|
]
|
|
@@ -273,5 +287,5 @@ const ye = (n) => {
|
|
|
273
287
|
);
|
|
274
288
|
};
|
|
275
289
|
export {
|
|
276
|
-
|
|
290
|
+
Ce as ToolbarPlugin
|
|
277
291
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import '../../../assets/components/suggestion/suggestion_input/SuggestionInput.module-
|
|
1
|
+
import '../../../assets/components/suggestion/suggestion_input/SuggestionInput.module-DP_VkqVp.css';const t = "_suggestionInputContainer_100iq_3", s = "_suggestionInputItem_100iq_10", n = "_suggestionInputTitle_100iq_16", u = "_suggestionInputSubtitle_100iq_25", e = "_suggestionInputSubmit_100iq_29", i = "_charactersCount_100iq_33", g = "_guideMessage_100iq_39", o = {
|
|
2
2
|
suggestionInputContainer: t,
|
|
3
3
|
suggestionInputItem: s,
|
|
4
4
|
suggestionInputTitle: n,
|
|
5
5
|
suggestionInputSubtitle: u,
|
|
6
6
|
suggestionInputSubmit: e,
|
|
7
|
-
charactersCount:
|
|
8
|
-
guideMessage:
|
|
7
|
+
charactersCount: i,
|
|
8
|
+
guideMessage: g
|
|
9
9
|
};
|
|
10
10
|
export {
|
|
11
|
-
|
|
11
|
+
i as charactersCount,
|
|
12
12
|
o as default,
|
|
13
|
-
|
|
13
|
+
g as guideMessage,
|
|
14
14
|
t as suggestionInputContainer,
|
|
15
15
|
s as suggestionInputItem,
|
|
16
16
|
e as suggestionInputSubmit,
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { jsx as s, Fragment as pe, jsxs as
|
|
1
|
+
import { jsx as s, Fragment as pe, jsxs as l } from "react/jsx-runtime";
|
|
2
2
|
import P from "@rooks/use-sessionstorage-state";
|
|
3
|
-
import
|
|
4
|
-
import { useState as b, useEffect as
|
|
3
|
+
import d from "classnames";
|
|
4
|
+
import { useState as b, useEffect as L } from "react";
|
|
5
5
|
import { useIntl as _e, FormattedMessage as m } from "react-intl";
|
|
6
6
|
import { useLocation as be } 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 Ne } from "../../dialog/toast_provider/useToast.js";
|
|
10
10
|
import { useAuthRequired as Se } from "../../hooks/use_auth_required/useAuthRequired.js";
|
|
11
11
|
import { useDataProvider as we } from "../../data/data_provider/useDataProvider.js";
|
|
12
12
|
import { useConfig as Be } from "../../data/config_provider/useConfig.js";
|
|
13
13
|
import { useAuth as Ce } from "../../auth/use_auth/useAuth.js";
|
|
14
|
-
import { Icon as
|
|
14
|
+
import { Icon as T } from "../../icons/icon/Icon.js";
|
|
15
15
|
import { ProgressBar as xe } from "../../progress/progress_bar/ProgressBar.js";
|
|
16
16
|
import { Link as Ve } from "../../action/link/Link.js";
|
|
17
17
|
import { Button as Me } from "../../action/button/Button.js";
|
|
@@ -24,40 +24,40 @@ const We = ({
|
|
|
24
24
|
displayColumn: j,
|
|
25
25
|
textAlignLeft: ee,
|
|
26
26
|
showTotal: te = !0,
|
|
27
|
-
voteBoxClassName:
|
|
28
|
-
buttonContainerClassName:
|
|
29
|
-
buttonClassName:
|
|
30
|
-
showResultClassName:
|
|
27
|
+
voteBoxClassName: O,
|
|
28
|
+
buttonContainerClassName: F,
|
|
29
|
+
buttonClassName: E,
|
|
30
|
+
showResultClassName: I,
|
|
31
31
|
onVote: w,
|
|
32
32
|
disabled: M = !1,
|
|
33
33
|
showVotesCommentsNumber: oe = !1,
|
|
34
34
|
commentsCount: se,
|
|
35
|
-
hideShowResultButton:
|
|
35
|
+
hideShowResultButton: U = !1
|
|
36
36
|
}) => {
|
|
37
|
-
const [
|
|
37
|
+
const [H, g] = b(!0), [c, A] = b(void 0), [p, f] = b(!1), [u, ae] = b(
|
|
38
38
|
Number.parseFloat(N.total) || Object.values(N).reduce(
|
|
39
39
|
(e, t) => e + Number.parseFloat(t),
|
|
40
40
|
0
|
|
41
41
|
) || 0
|
|
42
|
-
),
|
|
42
|
+
), $ = k(
|
|
43
43
|
r[0]?.name,
|
|
44
44
|
r[0]?.language,
|
|
45
45
|
"name",
|
|
46
46
|
r[0]?.translation_entries
|
|
47
|
-
),
|
|
47
|
+
), q = k(
|
|
48
48
|
r[1]?.name,
|
|
49
49
|
r[1]?.language,
|
|
50
50
|
"name",
|
|
51
51
|
r[1]?.translation_entries
|
|
52
|
-
),
|
|
52
|
+
), Y = k(
|
|
53
53
|
r[2]?.name,
|
|
54
54
|
r[2]?.language,
|
|
55
55
|
"name",
|
|
56
56
|
r[2]?.translation_entries
|
|
57
|
-
), [_, ne,
|
|
57
|
+
), [_, ne, D] = P(
|
|
58
58
|
"storedUserVote",
|
|
59
59
|
{}
|
|
60
|
-
), [
|
|
60
|
+
), [Ae, re, ie] = P("userSide", {}), { toast: G } = Ne() || {}, ce = () => {
|
|
61
61
|
const e = {};
|
|
62
62
|
return r?.forEach(
|
|
63
63
|
(t) => e[t.id] = {
|
|
@@ -67,27 +67,27 @@ const We = ({
|
|
|
67
67
|
)
|
|
68
68
|
}
|
|
69
69
|
), e;
|
|
70
|
-
}, [i,
|
|
71
|
-
|
|
70
|
+
}, [i, W] = b(ce()), z = Se(), le = be(), y = we(), J = Be(), B = _e(), { isLoggedIn: C, isLoggingIn: K } = Ce();
|
|
71
|
+
L(() => {
|
|
72
72
|
K === !1 && (C ? ue(h) : g(!1));
|
|
73
|
-
}, [K, C]),
|
|
74
|
-
if (
|
|
73
|
+
}, [K, C]), L(() => {
|
|
74
|
+
if (H === !1 && !S) {
|
|
75
75
|
const [e, t] = de();
|
|
76
76
|
e && (t ? X(t) : f(!0));
|
|
77
77
|
}
|
|
78
|
-
}, [
|
|
79
|
-
w && w(
|
|
80
|
-
}, [
|
|
78
|
+
}, [H]), L(() => {
|
|
79
|
+
w && w(c);
|
|
80
|
+
}, [c]);
|
|
81
81
|
const de = () => {
|
|
82
82
|
if (_ && Object.keys(_).length !== 0)
|
|
83
|
-
return _.groupId === h && _.voteableType === v ? [!0, _.positionId] : (
|
|
83
|
+
return _.groupId === h && _.voteableType === v ? [!0, _.positionId] : (D(), [!1, !1]);
|
|
84
84
|
const e = new URLSearchParams(
|
|
85
|
-
typeof window < "u" ? window.location.search :
|
|
85
|
+
typeof window < "u" ? window.location.search : le.search
|
|
86
86
|
), t = !!e.get("initVote"), a = Number.parseInt(e.get("positionId")) || !1;
|
|
87
87
|
return [t, a];
|
|
88
88
|
}, ue = (e) => {
|
|
89
|
-
g(!0), w && w(
|
|
90
|
-
t.data.data.resource ? (
|
|
89
|
+
g(!0), w && w(c), y.getOneWithToken("votes", `${v.toLowerCase()}/${e}`, {}).then((t) => {
|
|
90
|
+
t.data.data.resource ? (A(t.data.data.resource), f(!0), g(!1)) : (g(!1), f(!1));
|
|
91
91
|
}).catch((t) => {
|
|
92
92
|
g(!1);
|
|
93
93
|
});
|
|
@@ -101,16 +101,16 @@ const We = ({
|
|
|
101
101
|
groupId: h,
|
|
102
102
|
voteableType: v,
|
|
103
103
|
positionId: e
|
|
104
|
-
}),
|
|
105
|
-
n.data.success && (
|
|
104
|
+
}), c ? (ve(e, c.position_id), p === !1 && R(), e !== c.position_id && y.update("votes", c.id, t).then((n) => {
|
|
105
|
+
n.data.success && (A(n.data.data.resource), G(
|
|
106
106
|
B.formatMessage({
|
|
107
107
|
id: "header.vote_confirm_modal",
|
|
108
108
|
defaultMessage: "Your vote has been saved !"
|
|
109
109
|
}),
|
|
110
110
|
{ type: "success" }
|
|
111
111
|
));
|
|
112
|
-
})) : (fe(e),
|
|
113
|
-
n.data.success && (
|
|
112
|
+
})) : (fe(e), R(), y.create("votes", t).then((n) => {
|
|
113
|
+
n.data.success && (A(n.data.data.resource), G(
|
|
114
114
|
B.formatMessage({
|
|
115
115
|
id: "header.vote_confirm_modal",
|
|
116
116
|
defaultMessage: "Your vote has been saved !"
|
|
@@ -133,7 +133,7 @@ const We = ({
|
|
|
133
133
|
percentage: x(Z, a)
|
|
134
134
|
};
|
|
135
135
|
}
|
|
136
|
-
}),
|
|
136
|
+
}), W(n), ae(a);
|
|
137
137
|
}, ve = (e, t) => {
|
|
138
138
|
if (t !== e) {
|
|
139
139
|
const a = {
|
|
@@ -153,7 +153,7 @@ const We = ({
|
|
|
153
153
|
)
|
|
154
154
|
}
|
|
155
155
|
};
|
|
156
|
-
|
|
156
|
+
W(a);
|
|
157
157
|
}
|
|
158
158
|
}, Q = (e) => {
|
|
159
159
|
const t = new URLSearchParams({
|
|
@@ -162,21 +162,21 @@ const We = ({
|
|
|
162
162
|
});
|
|
163
163
|
return S + `?${t.toString()}`;
|
|
164
164
|
}, X = (e) => {
|
|
165
|
-
C ? Object.keys(i).includes(e.toString()) && (me(e),
|
|
165
|
+
C ? Object.keys(i).includes(e.toString()) && (me(e), D()) : (Object.keys(i).includes(e.toString()) && ne({
|
|
166
166
|
groupId: h,
|
|
167
167
|
voteableType: v,
|
|
168
168
|
positionId: e
|
|
169
|
-
}),
|
|
170
|
-
},
|
|
169
|
+
}), z({ loginAction: "vote" }));
|
|
170
|
+
}, R = () => {
|
|
171
171
|
p && ie(), f(!p);
|
|
172
172
|
}, he = (e, t) => {
|
|
173
173
|
let a;
|
|
174
|
-
t === 0 ? a =
|
|
174
|
+
t === 0 ? a = $.translatedContent : t === 1 ? a = q.translatedContent : t === 2 && (a = Y.translatedContent);
|
|
175
175
|
const n = typeof window < "u" && !S;
|
|
176
176
|
return /* @__PURE__ */ s(
|
|
177
177
|
"div",
|
|
178
178
|
{
|
|
179
|
-
className:
|
|
179
|
+
className: d(o.voteAction, {
|
|
180
180
|
[o.buttonAlignLeft]: o.buttonAlignLeft
|
|
181
181
|
}),
|
|
182
182
|
children: /* @__PURE__ */ s(
|
|
@@ -185,9 +185,9 @@ const We = ({
|
|
|
185
185
|
"data-tid": "action_vote",
|
|
186
186
|
type: "button",
|
|
187
187
|
title: a,
|
|
188
|
-
className:
|
|
188
|
+
className: d(o.voteButton, {
|
|
189
189
|
[o.textAlignLeft]: ee,
|
|
190
|
-
[
|
|
190
|
+
[E]: E
|
|
191
191
|
}),
|
|
192
192
|
onClick: n ? () => X(e.id) : null,
|
|
193
193
|
disabled: M,
|
|
@@ -200,7 +200,7 @@ const We = ({
|
|
|
200
200
|
"div",
|
|
201
201
|
{
|
|
202
202
|
"data-tid": "action_vote",
|
|
203
|
-
className:
|
|
203
|
+
className: d(o.voteButtonThesis, {
|
|
204
204
|
[o.voteButtonThesisSynthesisMobile]: !j
|
|
205
205
|
}),
|
|
206
206
|
children: a
|
|
@@ -212,64 +212,56 @@ const We = ({
|
|
|
212
212
|
t
|
|
213
213
|
);
|
|
214
214
|
}, ge = () => {
|
|
215
|
-
C ||
|
|
215
|
+
C || J.actions?.unloggedVoteResults === !0 ? f(!0) : z({ loginAction: "vote" });
|
|
216
216
|
};
|
|
217
217
|
return /* @__PURE__ */ s(
|
|
218
218
|
"div",
|
|
219
219
|
{
|
|
220
|
-
className:
|
|
221
|
-
children: /* @__PURE__ */ s(pe, { children: p || M ? /* @__PURE__ */
|
|
222
|
-
/* @__PURE__ */ s(
|
|
223
|
-
|
|
224
|
-
{
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
]
|
|
266
|
-
}
|
|
267
|
-
)
|
|
268
|
-
] }, t);
|
|
269
|
-
})
|
|
270
|
-
}
|
|
271
|
-
),
|
|
272
|
-
/* @__PURE__ */ d("div", { className: o.voteBoxFooter, children: [
|
|
220
|
+
className: d(o.voteBox, { [O]: O }),
|
|
221
|
+
children: /* @__PURE__ */ s(pe, { children: p || M ? /* @__PURE__ */ l("div", { className: o.voteResultsBox, "data-testid": "voteResultsBox", children: [
|
|
222
|
+
/* @__PURE__ */ s("div", { className: o.voteResults, children: r.map((e, t) => {
|
|
223
|
+
let a;
|
|
224
|
+
return t === 0 ? a = $.translatedContent : t === 1 ? a = q.translatedContent : t === 2 && (a = Y.translatedContent), /* @__PURE__ */ l("div", { children: [
|
|
225
|
+
/* @__PURE__ */ l(
|
|
226
|
+
"div",
|
|
227
|
+
{
|
|
228
|
+
className: t > 0 ? d(
|
|
229
|
+
o.voteProgressHeader,
|
|
230
|
+
o.voteProgressHeaderAgainst
|
|
231
|
+
) : o.voteProgressHeader,
|
|
232
|
+
children: [
|
|
233
|
+
a,
|
|
234
|
+
" ",
|
|
235
|
+
c && c.position_id === e.id ? /* @__PURE__ */ s(
|
|
236
|
+
"span",
|
|
237
|
+
{
|
|
238
|
+
title: B.formatMessage({
|
|
239
|
+
id: "vote.vote_box.vote_side"
|
|
240
|
+
}) + a,
|
|
241
|
+
className: o.sideIcon,
|
|
242
|
+
"aria-hidden": "true",
|
|
243
|
+
children: /* @__PURE__ */ s(T, { name: "checkbox", width: 16, height: 16 })
|
|
244
|
+
}
|
|
245
|
+
) : null
|
|
246
|
+
]
|
|
247
|
+
}
|
|
248
|
+
),
|
|
249
|
+
/* @__PURE__ */ l(
|
|
250
|
+
xe,
|
|
251
|
+
{
|
|
252
|
+
progress: i[e.id].percentage / 100,
|
|
253
|
+
goal: 1,
|
|
254
|
+
className: o.progress,
|
|
255
|
+
innerClassName: o.progressBar,
|
|
256
|
+
children: [
|
|
257
|
+
i[e.id].percentage,
|
|
258
|
+
"%"
|
|
259
|
+
]
|
|
260
|
+
}
|
|
261
|
+
)
|
|
262
|
+
] }, t);
|
|
263
|
+
}) }),
|
|
264
|
+
/* @__PURE__ */ l("div", { className: o.voteBoxFooter, children: [
|
|
273
265
|
te && /* @__PURE__ */ s("div", { className: o.voteResultsNumberVoters, children: /* @__PURE__ */ s(
|
|
274
266
|
m,
|
|
275
267
|
{
|
|
@@ -278,13 +270,13 @@ const We = ({
|
|
|
278
270
|
defaultMessage: "{votesCount} votes"
|
|
279
271
|
}
|
|
280
272
|
) }),
|
|
281
|
-
!M && /* @__PURE__ */ s("div", { children:
|
|
273
|
+
!M && /* @__PURE__ */ s("div", { children: c ? /* @__PURE__ */ s(
|
|
282
274
|
"button",
|
|
283
275
|
{
|
|
284
276
|
"data-tid": "action_edit_vote",
|
|
285
277
|
className: o.voteActionButton,
|
|
286
278
|
type: "button",
|
|
287
|
-
onClick:
|
|
279
|
+
onClick: R,
|
|
288
280
|
children: /* @__PURE__ */ s(
|
|
289
281
|
m,
|
|
290
282
|
{
|
|
@@ -293,7 +285,7 @@ const We = ({
|
|
|
293
285
|
}
|
|
294
286
|
)
|
|
295
287
|
}
|
|
296
|
-
) : !
|
|
288
|
+
) : !U && /* @__PURE__ */ s(
|
|
297
289
|
"button",
|
|
298
290
|
{
|
|
299
291
|
type: "button",
|
|
@@ -309,23 +301,23 @@ const We = ({
|
|
|
309
301
|
}
|
|
310
302
|
) })
|
|
311
303
|
] })
|
|
312
|
-
] }) : /* @__PURE__ */
|
|
304
|
+
] }) : /* @__PURE__ */ l("div", { className: o.voteBoxActions, children: [
|
|
313
305
|
/* @__PURE__ */ s(
|
|
314
306
|
"div",
|
|
315
307
|
{
|
|
316
|
-
className:
|
|
308
|
+
className: d(o.voteBoxActionsBody, {
|
|
317
309
|
[o.voteBoxActionsBodyColumn]: j,
|
|
318
|
-
[o.voteBoxActionsBodyOutlined]:
|
|
319
|
-
[
|
|
310
|
+
[o.voteBoxActionsBodyOutlined]: J.layout?.outlinedVoteButtons,
|
|
311
|
+
[F]: F
|
|
320
312
|
}),
|
|
321
313
|
children: r.map(
|
|
322
314
|
(e, t) => he(e, t)
|
|
323
315
|
)
|
|
324
316
|
}
|
|
325
317
|
),
|
|
326
|
-
oe && /* @__PURE__ */
|
|
327
|
-
/* @__PURE__ */
|
|
328
|
-
/* @__PURE__ */ s(
|
|
318
|
+
oe && /* @__PURE__ */ l("div", { className: o.voteCommentCounts, children: [
|
|
319
|
+
/* @__PURE__ */ l("div", { className: o.debateNumberItem, children: [
|
|
320
|
+
/* @__PURE__ */ s(T, { name: "votebox", width: 20, height: 20 }),
|
|
329
321
|
/* @__PURE__ */ s("div", { className: o.debateNumberLabel, children: /* @__PURE__ */ s(
|
|
330
322
|
m,
|
|
331
323
|
{
|
|
@@ -335,8 +327,8 @@ const We = ({
|
|
|
335
327
|
}
|
|
336
328
|
) })
|
|
337
329
|
] }),
|
|
338
|
-
/* @__PURE__ */
|
|
339
|
-
/* @__PURE__ */ s(
|
|
330
|
+
/* @__PURE__ */ l("div", { className: o.debateNumberItem, children: [
|
|
331
|
+
/* @__PURE__ */ s(T, { name: "chat", width: 20, height: 20 }),
|
|
340
332
|
/* @__PURE__ */ s("div", { className: o.debateNumberLabel, children: /* @__PURE__ */ s(
|
|
341
333
|
m,
|
|
342
334
|
{
|
|
@@ -350,12 +342,12 @@ const We = ({
|
|
|
350
342
|
/* @__PURE__ */ s(
|
|
351
343
|
"div",
|
|
352
344
|
{
|
|
353
|
-
className:
|
|
345
|
+
className: d(
|
|
354
346
|
o.voteBoxActions,
|
|
355
347
|
o.voteBoxShowResultContainer,
|
|
356
|
-
{ [
|
|
348
|
+
{ [I]: I }
|
|
357
349
|
),
|
|
358
|
-
children: /* @__PURE__ */ s("div", { className: o.voteBoxShowResult, children:
|
|
350
|
+
children: /* @__PURE__ */ s("div", { className: o.voteBoxShowResult, children: U ? !p && /* @__PURE__ */ s("div", { className: o.voteResultInfoText, children: B.formatMessage({
|
|
359
351
|
id: "vote.vote_box.result_after_vote",
|
|
360
352
|
defaultMessage: "Le résultat s'affichera après le vote."
|
|
361
353
|
}) }) : typeof window < "u" && !S ? /* @__PURE__ */ s(
|
|
@@ -366,7 +358,7 @@ const We = ({
|
|
|
366
358
|
"data-tid": "show_vote_result",
|
|
367
359
|
"data-testid": "show-result",
|
|
368
360
|
className: o.showResultButton,
|
|
369
|
-
children: /* @__PURE__ */ s("span", { className:
|
|
361
|
+
children: /* @__PURE__ */ s("span", { className: d(o.boldShowResult, o.outlined), children: /* @__PURE__ */ s(
|
|
370
362
|
m,
|
|
371
363
|
{
|
|
372
364
|
id: "vote.vote_box.show_result",
|
|
@@ -383,7 +375,7 @@ const We = ({
|
|
|
383
375
|
target: "_top",
|
|
384
376
|
external: !0,
|
|
385
377
|
"data-testid": "show-result",
|
|
386
|
-
children: /* @__PURE__ */ s("span", { className:
|
|
378
|
+
children: /* @__PURE__ */ s("span", { className: d(o.boldShowResult, o.outlined), children: /* @__PURE__ */ s(
|
|
387
379
|
m,
|
|
388
380
|
{
|
|
389
381
|
id: "vote.vote_box.show_result",
|
|
@@ -1,67 +1,65 @@
|
|
|
1
|
-
import '../../../assets/components/vote/vote_box/VoteBox.module-
|
|
2
|
-
voteBox:
|
|
3
|
-
voteResultsBox:
|
|
1
|
+
import '../../../assets/components/vote/vote_box/VoteBox.module-Bv7WY_vr.css';const o = "_voteBox_1how7_3", t = "_voteResultsBox_1how7_11", e = "_voteResults_1how7_11", s = "_voteProgressHeader_1how7_22", n = "_voteProgressHeaderAgainst_1how7_35", _ = "_voteResultsNumberVoters_1how7_39", u = "_voteBoxFooter_1how7_47", v = "_voteBoxActions_1how7_56", B = "_voteBoxActionsBody_1how7_66", c = "_voteBoxActionsBodyColumn_1how7_74", r = "_voteAction_1how7_78", h = "_buttonAlignLeft_1how7_88", i = "_voteButton_1how7_92", l = "_textAlignLeft_1how7_103", w = "_voteBoxShowResultContainer_1how7_107", d = "_voteBoxShowResult_1how7_107", x = "_boldShowResult_1how7_131", b = "_outlined_1how7_137", A = "_voteButtonThesis_1how7_144", a = "_voteButtonThesisSynthesisMobile_1how7_156", R = "_voteBoxActionsBodyOutlined_1how7_195", g = "_voteActionButton_1how7_234", m = "_sideIcon_1how7_250", y = "_progress_1how7_255", C = "_progressBar_1how7_261", S = "_voteCommentCounts_1how7_278", f = "_debateNumberItem_1how7_286", I = "_debateNumberLabel_1how7_295", L = "_showResultButton_1how7_299", N = "_voteResultInfoText_1how7_312", T = {
|
|
2
|
+
voteBox: o,
|
|
3
|
+
voteResultsBox: t,
|
|
4
4
|
voteResults: e,
|
|
5
5
|
voteProgressHeader: s,
|
|
6
6
|
voteProgressHeaderAgainst: n,
|
|
7
7
|
voteResultsNumberVoters: _,
|
|
8
8
|
voteBoxFooter: u,
|
|
9
9
|
voteBoxActions: v,
|
|
10
|
-
voteBoxActionsBody:
|
|
11
|
-
voteBoxActionsBodyColumn:
|
|
12
|
-
voteAction:
|
|
13
|
-
buttonAlignLeft:
|
|
14
|
-
voteButton:
|
|
15
|
-
textAlignLeft:
|
|
10
|
+
voteBoxActionsBody: B,
|
|
11
|
+
voteBoxActionsBodyColumn: c,
|
|
12
|
+
voteAction: r,
|
|
13
|
+
buttonAlignLeft: h,
|
|
14
|
+
voteButton: i,
|
|
15
|
+
textAlignLeft: l,
|
|
16
16
|
voteBoxShowResultContainer: w,
|
|
17
17
|
voteBoxShowResult: d,
|
|
18
18
|
boldShowResult: x,
|
|
19
19
|
outlined: b,
|
|
20
20
|
voteButtonThesis: A,
|
|
21
|
-
voteButtonThesisSynthesisMobile:
|
|
22
|
-
voteBoxActionsBodyOutlined:
|
|
21
|
+
voteButtonThesisSynthesisMobile: a,
|
|
22
|
+
voteBoxActionsBodyOutlined: R,
|
|
23
23
|
voteActionButton: g,
|
|
24
|
-
sideIcon:
|
|
24
|
+
sideIcon: m,
|
|
25
25
|
progress: y,
|
|
26
26
|
progressBar: C,
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
voteResultInfoText: T
|
|
27
|
+
voteCommentCounts: S,
|
|
28
|
+
debateNumberItem: f,
|
|
29
|
+
debateNumberLabel: I,
|
|
30
|
+
showResultButton: L,
|
|
31
|
+
voteResultInfoText: N
|
|
33
32
|
};
|
|
34
33
|
export {
|
|
35
34
|
x as boldShowResult,
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
35
|
+
h as buttonAlignLeft,
|
|
36
|
+
f as debateNumberItem,
|
|
37
|
+
I as debateNumberLabel,
|
|
38
|
+
T as default,
|
|
40
39
|
b as outlined,
|
|
41
40
|
y as progress,
|
|
42
41
|
C as progressBar,
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
42
|
+
L as showResultButton,
|
|
43
|
+
m as sideIcon,
|
|
44
|
+
l as textAlignLeft,
|
|
45
|
+
r as voteAction,
|
|
47
46
|
g as voteActionButton,
|
|
48
|
-
|
|
47
|
+
o as voteBox,
|
|
49
48
|
v as voteBoxActions,
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
49
|
+
B as voteBoxActionsBody,
|
|
50
|
+
c as voteBoxActionsBodyColumn,
|
|
51
|
+
R as voteBoxActionsBodyOutlined,
|
|
53
52
|
u as voteBoxFooter,
|
|
54
53
|
d as voteBoxShowResult,
|
|
55
54
|
w as voteBoxShowResultContainer,
|
|
56
|
-
|
|
55
|
+
i as voteButton,
|
|
57
56
|
A as voteButtonThesis,
|
|
58
|
-
|
|
59
|
-
|
|
57
|
+
a as voteButtonThesisSynthesisMobile,
|
|
58
|
+
S as voteCommentCounts,
|
|
60
59
|
s as voteProgressHeader,
|
|
61
60
|
n as voteProgressHeaderAgainst,
|
|
62
|
-
|
|
61
|
+
N as voteResultInfoText,
|
|
63
62
|
e as voteResults,
|
|
64
|
-
|
|
65
|
-
_ as voteResultsNumberVoters
|
|
66
|
-
S as voteResultsOutlined
|
|
63
|
+
t as voteResultsBox,
|
|
64
|
+
_ as voteResultsNumberVoters
|
|
67
65
|
};
|
package/package.json
CHANGED
package/dist/assets/components/suggestion/suggestion_input/SuggestionInput.module-r5N57bDp.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
._suggestionInputContainer_rr43a_3{display:flex!important;flex-direction:column!important;color:var(--text-primary, #222222);gap:var(--space-unit, 1em)}._suggestionInputItem_rr43a_10{display:flex!important;flex-direction:column!important;gap:var(--space-unit, 1em)}._suggestionInputTitle_rr43a_16{font-size:var(--font-size-medium, 18px);line-height:var(--line-height-normal, 1.26em);font-weight:var(--font-weight-bold, 700);font-variation-settings:var(--font-variation-bold, normal);position:relative;width:max-content}._suggestionInputSubtitle_rr43a_25{font-size:var(--font-size-normal, 16px)}._suggestionInputSubmit_rr43a_29{width:max-content}._charactersCount_rr43a_33{font-size:var(--font-size-small, 16px);color:var(--text-secondary, #5F5F5F);white-space:nowrap}._guideMessage_rr43a_39{font-size:var(--font-size-small, 16px);color:var(--text-secondary, #5F5F5F);white-space:nowrap;white-space:normal;word-break:break-word}._guideMessage_rr43a_39 a{font-size:var(--font-size-small, 16px);text-decoration:underline!important;font-weight:700!important}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
._voteBox_1swmt_3{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:center!important;width:100%}._voteResultsBox_1swmt_11{display:flex!important;flex-direction:column!important;padding:0!important;width:100%}._voteResults_1swmt_11{padding:0!important}._voteProgressHeader_1swmt_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_1swmt_35{margin-top:var(--spacer-md, calc(var(--space-unit, 1em) * .75))!important}._voteResultsNumberVoters_1swmt_39{display:flex!important;align-items:center!important;padding:0!important;font-size:var(--font-size-normal, 16px);color:var(--text-secondary, #5F5F5F)}._voteBoxFooter_1swmt_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_1swmt_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_1swmt_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_1swmt_74{grid-template-columns:1fr}._voteAction_1swmt_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_1swmt_78._buttonAlignLeft_1swmt_88{justify-content:flex-start!important}button._voteButton_1swmt_92,a._voteButton_1swmt_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_1swmt_103{justify-content:flex-start!important}._voteBoxShowResultContainer_1swmt_107{display:flex!important;flex-direction:row!important;justify-content:center;flex-wrap:wrap!important;margin-top:.3em}._voteBoxShowResult_1swmt_107{cursor:pointer}._voteBoxShowResult_1swmt_107 a{color:inherit;text-decoration:none;background:none!important}._voteBoxShowResult_1swmt_107 a:hover{text-decoration:none;background:none!important}._voteBoxShowResult_1swmt_107 a:focus:not(:focus-visible){outline:none;box-shadow:none}._voteBoxShowResult_1swmt_107 ._boldShowResult_1swmt_131{font-weight:var(--font-weight-bold, 700);font-variation-settings:var(--font-variation-bold, normal);color:var(--text-primary, #222222)}._outlined_1swmt_137{padding:7px 15px;border-radius:var(--box-border-radius, 6px);border:1px solid var(--text-primary, #222222)!important;white-space:nowrap}._voteButtonThesis_1swmt_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_1swmt_156{text-align:center!important}}._voteBoxActionsBody_1swmt_66 ._voteAction_1swmt_78:first-child ._voteButton_1swmt_92,._voteBoxActionsBody_1swmt_66 ._voteAction_1swmt_78:first-child ._voteButton_1swmt_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_1swmt_66 ._voteAction_1swmt_78:nth-child(2) ._voteButton_1swmt_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_1swmt_66 ._voteAction_1swmt_78:nth-child(2) ._voteButton_1swmt_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_1swmt_66 ._voteAction_1swmt_78:nth-child(3) ._voteButton_1swmt_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_1swmt_66 ._voteAction_1swmt_78:nth-child(3) ._voteButton_1swmt_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_1swmt_195 ._voteAction_1swmt_78:first-child ._voteButton_1swmt_92,._voteBoxActionsBodyOutlined_1swmt_195 ._voteAction_1swmt_78:first-child ._voteButton_1swmt_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_1swmt_195 ._voteAction_1swmt_78:nth-child(2) ._voteButton_1swmt_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_1swmt_195 ._voteAction_1swmt_78:nth-child(2) ._voteButton_1swmt_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_1swmt_195 ._voteAction_1swmt_78:nth-child(3) ._voteButton_1swmt_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_1swmt_195 ._voteAction_1swmt_78:nth-child(3) ._voteButton_1swmt_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}._voteActionButton_1swmt_234{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_1swmt_234:focus:not(:focus-visible){outline:none;box-shadow:none}._sideIcon_1swmt_250 svg{margin-left:5px;fill:var(--text-primary, #222222)}._progress_1swmt_255{border-radius:var(--button-border-radius, var(--box-border-radius, 6px));color:var(--text-secondary, #5F5F5F);height:2.2em}._progressBar_1swmt_261{border-radius:var(--button-border-radius, var(--box-border-radius, 6px));height:100%}._voteResults_1swmt_11>div:first-child ._progress_1swmt_255 ._progressBar_1swmt_261{background-color:var(--for-primary-color, #cc6a6d)!important}._voteResults_1swmt_11>div:nth-child(2) ._progress_1swmt_255 ._progressBar_1swmt_261{background-color:var(--against-primary-color, #7980bb)!important}._voteResults_1swmt_11 div:nth-child(3) ._progress_1swmt_255 ._progressBar_1swmt_261{background-color:var(--third-position-color-primary, #9b9b9b)!important}._voteResultsOutlined_1swmt_278>div:first-child ._progress_1swmt_255{border:1px solid var(--for-primary-color, #cc6a6d)!important}._voteResultsOutlined_1swmt_278>div:nth-child(2) ._progress_1swmt_255{border:1px solid var(--against-primary-color, #7980bb)!important}._voteResultsOutlined_1swmt_278>div:nth-child(3) ._progress_1swmt_255{border:1px solid var(--third-position-color-primary, #9b9b9b)!important}._voteCommentCounts_1swmt_290{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_1swmt_298{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_1swmt_307{white-space:nowrap}._showResultButton_1swmt_311{background:none;border:0;padding:0;font:inherit;color:inherit;cursor:pointer}._showResultButton_1swmt_311:focus:not(:focus-visible){outline:none;box-shadow:none}._voteResultInfoText_1swmt_324{font-size:var(--font-size-small, 16px);color:var(--text-secondary, #5F5F5F);text-align:left;width:100%;align-self:flex-start}
|