@logora/debate 0.3.58 → 0.3.60

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.
@@ -0,0 +1 @@
1
+ ._container_jsaa0_3{display:flex!important;flex-direction:column!important;justify-content:space-between!important;box-shadow:var(--box-shadow, 0px 2px 5px rgba(7, 42, 68, .1));border:var(--box-border, 1px solid rgba(7, 42, 68, .1));color:var(--text-primary, #222222);border-radius:var(--box-border-radius, 6px);background:var(--background-color-primary, white)}._container_jsaa0_3 a{text-decoration:none!important;color:var(--text-primary, #222222)!important}._consultationImageBox_jsaa0_18{position:relative}._consultationImage_jsaa0_18{border-top-right-radius:var(--box-border-radius, 6px);border-top-left-radius:var(--box-border-radius, 6px);width:100%;aspect-ratio:var(--img-aspect-ratio, 16/9);object-fit:cover;display:block}._consultationTime_jsaa0_31{display:flex!important;align-items:center!important;position:absolute;left:var(--space-unit, 1em);bottom:var(--space-unit, 1em);padding-right:var(--spacer-md, calc(var(--space-unit, 1em) * .75))!important;padding-left:var(--spacer-md, calc(var(--space-unit, 1em) * .75))!important;padding-top:var(--spacer-sm, calc(var(--space-unit, 1em) * .5))!important;padding-bottom:var(--spacer-sm, calc(var(--space-unit, 1em) * .5))!important;background-color:var(--call-primary-color, #434343);border-radius:var(--box-border-radius, 6px);font-size:var(--font-size-normal, 16px);color:var(--text-light, white);max-width:93%;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}._consultationTime_jsaa0_31 span{color:var(--text-light, white)}._consultationTime_jsaa0_31._ended_jsaa0_53{background-color:var(--call-primary-color, #434343)}._consultationTitle_jsaa0_57{padding-top:var(--spacer-lg, calc(var(--space-unit, 1em) * 1.5))!important;padding-bottom:var(--spacer-sm, calc(var(--space-unit, 1em) * .5))!important;padding-right:var(--space-unit, 1em)!important;padding-left:var(--space-unit, 1em)!important;font-size:var(--font-size-normal, 16px);font-weight:var(--font-weight-bold, 700)}._iconVote_jsaa0_66{padding-top:3px!important}._iconChat_jsaa0_70{padding-top:6px!important}._consultationButtonContainer_jsaa0_74{display:flex!important;padding-right:var(--space-unit, 1em)!important;padding-left:var(--space-unit, 1em)!important;padding-bottom:var(--spacer-lg, calc(var(--space-unit, 1em) * 1.5))!important;color:var(--text-secondary, #5F5F5F);font-size:var(--font-size-small, 16px)}._consultationButtonContainer_jsaa0_74:hover{text-decoration:underline;text-decoration-color:var(--text-secondary, #5F5F5F)}._consultationButtonContainer_jsaa0_74 ._arrowIcon_jsaa0_86{margin-left:var(--spacer-xxs, calc(var(--space-unit, 1em) * .25))!important;transform:rotate(180deg);fill:var(--text-secondary, #5F5F5F);top:1px;position:relative}._consultationInformations_jsaa0_94{display:flex!important;justify-content:space-between!important;align-items:center!important;padding-right:var(--space-unit, 1em)!important;padding-left:var(--space-unit, 1em)!important;padding-top:var(--spacer-sm, calc(var(--space-unit, 1em) * .5))!important;padding-bottom:var(--spacer-sm, calc(var(--space-unit, 1em) * .5))!important;min-height:50px}._consultationInformations_jsaa0_94 ._consultationLeft_jsaa0_104{display:flex!important}._consultationInformations_jsaa0_94 ._consultationGroupInformation_jsaa0_107{display:flex!important;align-items:center!important}._consultationInformations_jsaa0_94 ._consultationGroupInformation_jsaa0_107._consultationGroupRight_jsaa0_111{padding-right:var(--space-unit, 1em)!important}._consultationInformations_jsaa0_94 ._progressBarContainer_jsaa0_114{width:60%;display:flex!important;flex-direction:column!important;align-items:flex-end!important;font-size:var(--font-size-extra-small, 14px)}._consultationInformations_jsaa0_94 ._progressBarContainer_jsaa0_114 ._progress_jsaa0_114{margin-top:var(--spacer-xxs, calc(var(--space-unit, 1em) * .25))!important;height:15px;width:100%;border-radius:var(--box-border-radius, 6px);background-color:var(--background-color-secondary, #E8E8E8)!important}._consultationInformations_jsaa0_94 ._progressBarContainer_jsaa0_114 ._bar_jsaa0_128{background-color:var(--call-primary-color, #434343)}._consultationInformations_jsaa0_94 ._progressBarContainer_jsaa0_114 ._totalVotes_jsaa0_131{margin-right:var(--spacer-xxs, calc(var(--space-unit, 1em) * .25))!important}._consultationInformations_jsaa0_94 ._progressBarContainer_jsaa0_114 ._totalVotesPercentage_jsaa0_134{margin-left:var(--spacer-xxs, calc(var(--space-unit, 1em) * .25))!important}._consultationInformations_jsaa0_94 ._consultationTextInformation_jsaa0_137{padding-right:var(--spacer-xxs, calc(var(--space-unit, 1em) * .25))!important;padding-top:10px!important}
@@ -1,77 +1,90 @@
1
- import { jsx as o, jsxs as l, Fragment as h } from "react/jsx-runtime";
2
- import B from "classnames";
3
- import { useState as f, useEffect as ae, useCallback as le, Suspense as ne, lazy as de } from "react";
4
- import { useIntl as ce } from "react-intl";
5
- import s from "./Argument.module.scss.js";
6
- import { ReplyFooter as pe } from "./ReplyFooter.js";
7
- import { useRichContent as me } from "./useRichContent.js";
8
- import { useAuth as ue } from "../../auth/use_auth/useAuth.js";
9
- import { useConfig as he } from "../../data/config_provider/useConfig.js";
10
- import { useTranslatedContent as D } from "../../translation/translated_content/useTranslatedContent.js";
11
- import { SourceListItem as fe } from "../../source/source_list_item/SourceListItem.js";
12
- import { HashScroll as ye } from "../../tools/hash_scroll/HashScroll.js";
13
- import { ContentHeader as _e } from "../../user_content/content_header/ContentHeader.js";
14
- import { Icon as E } from "../../icons/icon/Icon.js";
15
- import { ReadMore as ge } from "../../text/read_more/ReadMore.js";
16
- import { TranslationButton as be } from "../../translation/translation_button/TranslationButton.js";
17
- import { ContentFooter as Me } from "../../user_content/content_footer/ContentFooter.js";
18
- import { VoteButton as ve } from "../../vote/vote_button/VoteButton.js";
19
- import { VotePaginatedList as Ie } from "../../list/paginated_list/VotePaginatedList.js";
20
- import { UserContentSkeleton as Ce } from "../../skeleton/user_content_skeleton/UserContentSkeleton.js";
21
- import { Button as Se } from "../../action/button/Button.js";
22
- const Re = de(() => import("../../input/argument_input/index.js").then((e) => ({ default: e.ArgumentInput }))), P = (e) => e?.replace(/ /g, " "), Te = ({
1
+ import { jsx as s, jsxs as l, Fragment as _ } from "react/jsx-runtime";
2
+ import P from "classnames";
3
+ import { useState as g, useEffect as F, useCallback as pe, Suspense as me, lazy as ue } from "react";
4
+ import { useIntl as he } from "react-intl";
5
+ import o from "./Argument.module.scss.js";
6
+ import { ReplyFooter as fe } from "./ReplyFooter.js";
7
+ import { useRichContent as ye } from "./useRichContent.js";
8
+ import { useAuth as _e } from "../../auth/use_auth/useAuth.js";
9
+ import { useConfig as ge } from "../../data/config_provider/useConfig.js";
10
+ import { useList as be } from "../../list/list_provider/useList.js";
11
+ import { useTranslatedContent as j } from "../../translation/translated_content/useTranslatedContent.js";
12
+ import { SourceListItem as Me } from "../../source/source_list_item/SourceListItem.js";
13
+ import { HashScroll as Ie } from "../../tools/hash_scroll/HashScroll.js";
14
+ import { ContentHeader as ve } from "../../user_content/content_header/ContentHeader.js";
15
+ import { Icon as G } from "../../icons/icon/Icon.js";
16
+ import { ReadMore as Ce } from "../../text/read_more/ReadMore.js";
17
+ import { TranslationButton as Re } from "../../translation/translation_button/TranslationButton.js";
18
+ import { ContentFooter as Se } from "../../user_content/content_footer/ContentFooter.js";
19
+ import { VoteButton as Te } from "../../vote/vote_button/VoteButton.js";
20
+ import { VotePaginatedList as Ne } from "../../list/paginated_list/VotePaginatedList.js";
21
+ import { UserContentSkeleton as we } from "../../skeleton/user_content_skeleton/UserContentSkeleton.js";
22
+ import { Button as Ae } from "../../action/button/Button.js";
23
+ const xe = ue(() => import("../../input/argument_input/index.js").then((e) => ({ default: e.ArgumentInput }))), H = (e) => e?.replace(/ /g, " "), Le = ({
23
24
  argument: e,
24
25
  argumentReplies: n,
25
- nestingLevel: y = 0,
26
- maxNestingLevel: C = 2,
27
- groupType: S,
28
- groupName: R,
29
- positions: _ = [],
30
- disableLinks: F = !1,
31
- parentArgument: d,
32
- flashParent: j,
33
- expandable: G,
34
- disabled: g = !1,
35
- hideFooter: T = !1,
36
- hideReplies: N,
37
- vote: H,
38
- fixedContentHeight: V = !1,
39
- enableEdition: z = !0,
40
- enableDeletion: O = !0,
41
- deleteListId: Y,
42
- showModerationFeedback: q,
43
- lineCount: J = 5,
44
- replyRedirectUrl: K,
45
- hideContent: Q = !1
26
+ nestingLevel: b = 0,
27
+ maxNestingLevel: S = 2,
28
+ groupType: T,
29
+ groupName: N,
30
+ positions: M = [],
31
+ disableLinks: V = !1,
32
+ parentArgument: p,
33
+ flashParent: z,
34
+ expandable: O,
35
+ disabled: I = !1,
36
+ hideFooter: w = !1,
37
+ hideReplies: A,
38
+ vote: Y,
39
+ fixedContentHeight: q = !1,
40
+ enableEdition: J = !0,
41
+ enableDeletion: K = !0,
42
+ deleteListId: Q,
43
+ showModerationFeedback: W,
44
+ lineCount: X = 5,
45
+ replyRedirectUrl: Z,
46
+ hideContent: ee = !1
46
47
  }) => {
47
- const i = ce(), { isLoggedIn: W, currentUser: c } = ue(), w = c?.moderation_status === "banned", r = he(), [p, b] = f(!1), [X, A] = f(!1), [Z, ee] = f(!1), x = me(e), [m, M] = f(), u = D(
48
+ const i = he(), { isLoggedIn: te, currentUser: m } = _e(), x = m?.moderation_status === "banned", r = ge(), [u, v] = g(!1), [se, L] = g(!1), [oe, re] = g(!1), $ = ye(e), [d, h] = g(), f = be(), k = `argument_${e.id}_reply_list`;
49
+ F(() => {
50
+ if (f.updateElements && k in f.updateElements) {
51
+ const t = f.updateElements[k];
52
+ t?.length > 0 && d?.length > 0 && h(
53
+ (a) => a.map((c) => {
54
+ const D = t.find((ce) => ce.id === c.id);
55
+ return D || c;
56
+ })
57
+ );
58
+ }
59
+ }, [f.updateElements]);
60
+ const y = j(
48
61
  e.content,
49
62
  e.language,
50
63
  "content",
51
64
  e.translation_entries
52
- ), te = D(
65
+ ), ie = j(
53
66
  e.position?.name,
54
67
  e.position?.language,
55
68
  "name",
56
69
  e.position?.translation_entries
57
- ), v = `argument_${e.id}`, I = e.position && _?.map((t) => t.id).indexOf(e.position.id) + 1;
58
- ae(() => {
59
- n !== void 0 && ie();
70
+ ), C = `argument_${e.id}`, R = e.position && M?.map((t) => t.id).indexOf(e.position.id) + 1;
71
+ F(() => {
72
+ n !== void 0 && de();
60
73
  }, [n]);
61
- const oe = (t) => {
62
- if (v === t) {
63
- const $ = document.getElementById(t);
64
- $ && $.scrollIntoView({ behavior: "smooth" }), A(!0);
74
+ const ae = (t) => {
75
+ if (C === t) {
76
+ const c = document.getElementById(t);
77
+ c && c.scrollIntoView({ behavior: "smooth" }), L(!0);
65
78
  }
66
- }, L = () => {
67
- ee((t) => !t);
68
- }, k = () => {
69
- b((t) => !t), M([]);
70
- }, se = (t) => {
71
- if (!m?.find((a) => a.id === t.id))
79
+ }, E = () => {
80
+ re((t) => !t);
81
+ }, U = () => {
82
+ v((t) => !t), h([]);
83
+ }, le = (t) => {
84
+ if (!d?.find((a) => a.id === t.id))
72
85
  return t;
73
- }, re = le((t, a) => /* @__PURE__ */ o(
74
- fe,
86
+ }, ne = pe((t, a) => /* @__PURE__ */ s(
87
+ Me,
75
88
  {
76
89
  publisher: t.publisher,
77
90
  url: t.source_url,
@@ -79,117 +92,117 @@ const Re = de(() => import("../../input/argument_input/index.js").then((e) => ({
79
92
  index: a
80
93
  },
81
94
  a
82
- ), []), ie = () => {
95
+ ), []), de = () => {
83
96
  if (n && Array.isArray(n)) {
84
97
  const t = n.filter(
85
98
  (a) => a.reply_to_id === e.id
86
99
  );
87
- t.length > 0 && (M(t), b(!0));
100
+ t.length > 0 && (h(t), v(!0));
88
101
  }
89
- }, U = (t = null) => /* @__PURE__ */ o(
90
- Ne,
102
+ }, B = (t = null) => /* @__PURE__ */ s(
103
+ $e,
91
104
  {
92
105
  ...t ? { argument: t } : {},
93
- nestingLevel: y + 1,
94
- maxNestingLevel: C,
95
- disabled: g,
96
- groupName: R,
97
- groupType: S,
98
- positions: _,
106
+ nestingLevel: b + 1,
107
+ maxNestingLevel: S,
108
+ disabled: I,
109
+ groupName: N,
110
+ groupType: T,
111
+ positions: M,
99
112
  argumentReplies: n,
100
113
  parentArgument: e,
101
- flashParent: (a) => oe(`argument_${a}`)
114
+ flashParent: (a) => ae(`argument_${a}`)
102
115
  }
103
116
  );
104
- return /* @__PURE__ */ l(ye, { elementId: v, onScroll: () => A(!0), children: [
117
+ return /* @__PURE__ */ l(Ie, { elementId: C, onScroll: () => L(!0), children: [
105
118
  /* @__PURE__ */ l(
106
119
  "div",
107
120
  {
108
- className: B(
109
- s.argument,
121
+ className: P(
122
+ o.argument,
110
123
  {
111
- [s.flash]: X,
112
- [s.argumentReply]: e.is_reply === !0
124
+ [o.flash]: se,
125
+ [o.argumentReply]: e.is_reply === !0
113
126
  },
114
- s[`level-${y}`],
115
- s[`position-${!(e.author.role === "editor" || e.author.role === "moderator") && I}`]
127
+ o[`level-${b}`],
128
+ o[`position-${!(e.author.role === "editor" || e.author.role === "moderator") && R}`]
116
129
  ),
117
- id: v,
130
+ id: C,
118
131
  children: [
119
- /* @__PURE__ */ o(
120
- _e,
132
+ /* @__PURE__ */ s(
133
+ ve,
121
134
  {
122
135
  selectedContent: e.is_selected,
123
136
  author: e.author,
124
- tag: (e.author.role === "editor" || e.author.role === "moderator") && e.is_reply ? null : te.translatedContent,
137
+ tag: (e.author.role === "editor" || e.author.role === "moderator") && e.is_reply ? null : ie.translatedContent,
125
138
  date: e.created_at,
126
- tagClassName: s[`headerPosition-${I}`],
127
- disableLinks: F,
139
+ tagClassName: o[`headerPosition-${R}`],
140
+ disableLinks: V,
128
141
  isDeleted: e.is_deleted,
129
- showModerationFeedback: q ?? (e.status === "rejected" && r.moderation?.showFeedback === !0),
142
+ showModerationFeedback: W ?? (e.status === "rejected" && r.moderation?.showFeedback === !0),
130
143
  moderationReason: e.moderation_entry?.moderation_reason,
131
144
  moderationNotes: e.moderation_entry?.moderator_notes,
132
145
  moderationPolicyUrl: r.provider?.userGuideUrl
133
146
  }
134
147
  ),
135
- e.is_deleted ? /* @__PURE__ */ o("div", { className: s.argumentDeletedBody, children: i.formatMessage({
148
+ e.is_deleted ? /* @__PURE__ */ s("div", { className: o.argumentDeletedBody, children: i.formatMessage({
136
149
  id: "info.deleted_by_user",
137
150
  defaultMessage: "Content deleted by the user"
138
- }) }) : Q ? /* @__PURE__ */ o("div", { className: s.argumentDeletedBody, children: i.formatMessage({
151
+ }) }) : ee ? /* @__PURE__ */ s("div", { className: o.argumentDeletedBody, children: i.formatMessage({
139
152
  id: "argument.argument.content_deleted",
140
153
  defaultMessage: "This content has been removed."
141
- }) }) : /* @__PURE__ */ l(h, { children: [
154
+ }) }) : /* @__PURE__ */ l(_, { children: [
142
155
  /* @__PURE__ */ l(
143
156
  "div",
144
157
  {
145
- className: B(s.argumentBody, {
146
- [s.fixedHeight]: r?.layout?.showAllArgumentInEmbed !== !0 ? V : !1
158
+ className: P(o.argumentBody, {
159
+ [o.fixedHeight]: r?.layout?.showAllArgumentInEmbed !== !0 ? q : !1
147
160
  }),
148
161
  children: [
149
- e.is_reply && d && /* @__PURE__ */ l(
162
+ e.is_reply && p && /* @__PURE__ */ l(
150
163
  "div",
151
164
  {
152
- className: s.replyTo,
153
- onClick: () => j(d.id),
165
+ className: o.replyTo,
166
+ onClick: () => z(p.id),
154
167
  children: [
155
168
  i.formatMessage({
156
169
  id: "info.replying_to",
157
170
  defaultMessage: "Replying to"
158
171
  }),
159
- /* @__PURE__ */ l("span", { className: s.replyingTo, children: [
160
- d.is_deleted ? i.formatMessage({
172
+ /* @__PURE__ */ l("span", { className: o.replyingTo, children: [
173
+ p.is_deleted ? i.formatMessage({
161
174
  id: "info.deleted",
162
175
  defaultMessage: "Deleted"
163
- }) : d.author.full_name,
164
- /* @__PURE__ */ o(E, { name: "chat", height: 16 })
176
+ }) : p.author.full_name,
177
+ /* @__PURE__ */ s(G, { name: "chat", height: 16 })
165
178
  ] })
166
179
  ]
167
180
  }
168
181
  ),
169
- /* @__PURE__ */ o(
170
- ge,
182
+ /* @__PURE__ */ s(
183
+ Ce,
171
184
  {
172
- content: /* @__PURE__ */ l(h, { children: [
173
- e.is_edited && /* @__PURE__ */ o("div", { className: s.edited, children: i.formatMessage({
185
+ content: /* @__PURE__ */ l(_, { children: [
186
+ e.is_edited && /* @__PURE__ */ s("div", { className: o.edited, children: i.formatMessage({
174
187
  id: "argument.argument.updated",
175
188
  defaultMessage: "Updated argument"
176
189
  }) }),
177
- x && !u.isTranslated ? /* @__PURE__ */ o(
190
+ $ && !y.isTranslated ? /* @__PURE__ */ s(
178
191
  "div",
179
192
  {
180
- className: s.argumentContent,
181
- dangerouslySetInnerHTML: { __html: P(x) }
193
+ className: o.argumentContent,
194
+ dangerouslySetInnerHTML: { __html: H($) }
182
195
  }
183
- ) : /* @__PURE__ */ o("div", { className: s.argumentContent, children: P(u.translatedContent) }),
184
- u.isTranslated && /* @__PURE__ */ o(
185
- be,
196
+ ) : /* @__PURE__ */ s("div", { className: o.argumentContent, children: H(y.translatedContent) }),
197
+ y.isTranslated && /* @__PURE__ */ s(
198
+ Re,
186
199
  {
187
200
  language: e.language,
188
- callback: () => u.toggleContent()
201
+ callback: () => y.toggleContent()
189
202
  }
190
203
  )
191
204
  ] }),
192
- lineCount: r?.layout?.showAllArgumentInEmbed !== !0 ? J : void 0,
205
+ lineCount: r?.layout?.showAllArgumentInEmbed !== !0 ? X : void 0,
193
206
  readMoreText: i.formatMessage({
194
207
  id: "action.read_more",
195
208
  defaultMessage: "Read more"
@@ -198,27 +211,27 @@ const Re = de(() => import("../../input/argument_input/index.js").then((e) => ({
198
211
  id: "action.read_less",
199
212
  defaultMessage: "Read less"
200
213
  }),
201
- expandable: r?.layout?.showAllArgumentInEmbed !== !0 ? G : !1,
202
- readMoreClassName: e.is_reply ? s.replyStyle : s.argumentStyle
214
+ expandable: r?.layout?.showAllArgumentInEmbed !== !0 ? O : !1,
215
+ readMoreClassName: e.is_reply ? o.replyStyle : o.argumentStyle
203
216
  }
204
217
  )
205
218
  ]
206
219
  }
207
220
  ),
208
- e.sources?.length > 0 && /* @__PURE__ */ o("div", { className: s.argumentSourcesList, children: e.sources.map(re) })
221
+ e.sources?.length > 0 && /* @__PURE__ */ s("div", { className: o.argumentSourcesList, children: e.sources.map(ne) })
209
222
  ] }),
210
- !T && !e.is_deleted && /* @__PURE__ */ o(
211
- Me,
223
+ !w && !e.is_deleted && /* @__PURE__ */ s(
224
+ Se,
212
225
  {
213
226
  resource: e,
214
- disabled: g || e.status === "rejected" || !W && r?.actions?.disableInputForVisitor === !0 || w,
227
+ disabled: I || e.status === "rejected" || !te && r?.actions?.disableInputForVisitor === !0 || x,
215
228
  reportType: "Message",
216
229
  softDelete: r.actions?.softDelete,
217
230
  deleteType: "messages",
218
- deleteListId: Y,
219
- enableReply: y <= C || c.role === "editor" || c.role === "moderator",
220
- handleReplyTo: L,
221
- replyRedirectUrl: K,
231
+ deleteListId: Q,
232
+ enableReply: b <= S || m.role === "editor" || m.role === "moderator",
233
+ handleReplyTo: E,
234
+ replyRedirectUrl: Z,
222
235
  shareUrl: `https://app.logora.fr/share/a/${e.id}`,
223
236
  shareTitle: i.formatMessage({
224
237
  id: "share.argument.title",
@@ -233,49 +246,49 @@ const Re = de(() => import("../../input/argument_input/index.js").then((e) => ({
233
246
  showShareText: !0,
234
247
  showShareButton: r?.actions?.hideShareButton !== !0,
235
248
  enableReport: !(e.score === 100 && e.manual_score),
236
- enableEdition: z,
237
- enableDeletion: O,
238
- children: /* @__PURE__ */ o(
239
- ve,
249
+ enableEdition: J,
250
+ enableDeletion: K,
251
+ children: /* @__PURE__ */ s(
252
+ Te,
240
253
  {
241
254
  voteableType: "Message",
242
255
  voteableId: e.id,
243
256
  totalUpvote: e.upvotes,
244
257
  totalDownvote: 0,
245
- activeClassName: s[`voteButtonPosition-${I}`],
246
- disabled: e.status === "rejected" || c?.id === e?.author?.id || w
258
+ activeClassName: o[`voteButtonPosition-${R}`],
259
+ disabled: e.status === "rejected" || m?.id === e?.author?.id || x
247
260
  }
248
261
  )
249
262
  }
250
263
  ),
251
- !T && !N && /* @__PURE__ */ o(
252
- pe,
264
+ !w && !A && /* @__PURE__ */ s(
265
+ fe,
253
266
  {
254
267
  numberReplies: e.number_replies,
255
268
  repliesAuthors: e.replies_authors,
256
- expandReplies: p,
257
- onToggleReplies: k,
269
+ expandReplies: u,
270
+ onToggleReplies: U,
258
271
  isReply: e.is_reply
259
272
  }
260
273
  )
261
274
  ]
262
275
  }
263
276
  ),
264
- !N && /* @__PURE__ */ l(h, { children: [
265
- Z && /* @__PURE__ */ o(ne, { fallback: null, children: /* @__PURE__ */ o(
266
- Re,
277
+ !A && /* @__PURE__ */ l(_, { children: [
278
+ oe && /* @__PURE__ */ s(me, { fallback: null, children: /* @__PURE__ */ s(
279
+ xe,
267
280
  {
268
281
  groupId: e.group_id,
269
- groupType: S,
270
- groupName: R,
271
- positions: _,
282
+ groupType: T,
283
+ groupName: N,
284
+ positions: M,
272
285
  parentId: e.id,
273
- positionId: H?.position_id,
274
- disabled: g,
286
+ positionId: Y?.position_id,
287
+ disabled: I,
275
288
  hideSourceAction: r?.actions?.disableUserSources || !1,
276
289
  argumentListId: `argument_${e.id}_reply_list`,
277
290
  onSubmit: (t) => {
278
- L(), M([t]), b(!0);
291
+ E(), h([t]), v(!0);
279
292
  },
280
293
  isReply: !0,
281
294
  avatarSize: 40,
@@ -288,13 +301,13 @@ const Re = de(() => import("../../input/argument_input/index.js").then((e) => ({
288
301
  },
289
302
  `Reply${e.id}`
290
303
  ) }),
291
- m?.length > 0 && p && /* @__PURE__ */ o("div", { className: s.repliesList, children: m.map((t) => U(t)) }),
292
- p && /* @__PURE__ */ o("div", { className: s.repliesList, children: /* @__PURE__ */ o(
293
- Ie,
304
+ d?.length > 0 && u && /* @__PURE__ */ s("div", { className: o.repliesList, children: d.map((t) => B(t)) }),
305
+ u && /* @__PURE__ */ s("div", { className: o.repliesList, children: /* @__PURE__ */ s(
306
+ Ne,
294
307
  {
295
308
  voteableType: "Message",
296
309
  currentListId: `argument_${e.id}_reply_list`,
297
- loadingComponent: /* @__PURE__ */ o(Ce, {}),
310
+ loadingComponent: /* @__PURE__ */ s(we, {}),
298
311
  resource: "messages",
299
312
  sort: "+created_at",
300
313
  filters: {
@@ -305,17 +318,17 @@ const Re = de(() => import("../../input/argument_input/index.js").then((e) => ({
305
318
  perPage: 5,
306
319
  display: "column",
307
320
  resourcePropName: "argument",
308
- emptyListComponent: /* @__PURE__ */ o(h, {}),
309
- transformData: (t) => se(t),
310
- children: U(e)
321
+ emptyListComponent: /* @__PURE__ */ s(_, {}),
322
+ transformData: (t) => le(t),
323
+ children: B(e)
311
324
  }
312
325
  ) }),
313
- m?.length > 0 && !p && /* @__PURE__ */ o("div", { className: s.repliesList, children: e.number_replies > 1 && /* @__PURE__ */ o("div", { className: s.readMoreLink, children: /* @__PURE__ */ o(
314
- Se,
326
+ d?.length > 0 && !u && /* @__PURE__ */ s("div", { className: o.repliesList, children: e.number_replies > 1 && /* @__PURE__ */ s("div", { className: o.readMoreLink, children: /* @__PURE__ */ s(
327
+ Ae,
315
328
  {
316
329
  role: "link",
317
- rightIcon: /* @__PURE__ */ o(E, { name: "lightArrow", height: 10, width: 10 }),
318
- handleClick: k,
330
+ rightIcon: /* @__PURE__ */ s(G, { name: "lightArrow", height: 10, width: 10 }),
331
+ handleClick: U,
319
332
  children: i.formatMessage({
320
333
  id: "argument.argument.see_more",
321
334
  defaultMessage: "See more"
@@ -324,8 +337,8 @@ const Re = de(() => import("../../input/argument_input/index.js").then((e) => ({
324
337
  ) }) })
325
338
  ] })
326
339
  ] });
327
- }, Ne = Te;
340
+ }, $e = Le;
328
341
  export {
329
- Te as Argument,
330
- Ne as ArgumentContainer
342
+ Le as Argument,
343
+ $e as ArgumentContainer
331
344
  };
@@ -1,18 +1,18 @@
1
- import '../../../assets/components/consultation/consultation_box/ConsultationBox.module-BPJksgZ-.css';const o = "_container_e2zsr_3", n = "_consultationImageBox_e2zsr_18", t = "_consultationImage_e2zsr_18", s = "_consultationTime_e2zsr_31", a = "_ended_e2zsr_53", e = "_consultationTitle_e2zsr_57", i = "_iconVote_e2zsr_66", r = "_iconChat_e2zsr_70", c = "_consultationInformations_e2zsr_94", _ = "_consultationLeft_e2zsr_104", u = "_consultationGroupInformation_e2zsr_107", l = "_consultationGroupRight_e2zsr_111", m = "_progressBarContainer_e2zsr_114", z = "_progress_e2zsr_114", g = "_bar_e2zsr_128", I = "_consultationTextInformation_e2zsr_137", f = {
1
+ import '../../../assets/components/consultation/consultation_box/ConsultationBox.module-CZB4qRb2.css';const o = "_container_jsaa0_3", n = "_consultationImageBox_jsaa0_18", t = "_consultationImage_jsaa0_18", a = "_consultationTime_jsaa0_31", s = "_ended_jsaa0_53", i = "_consultationTitle_jsaa0_57", c = "_iconVote_jsaa0_66", _ = "_iconChat_jsaa0_70", e = "_consultationInformations_jsaa0_94", r = "_consultationLeft_jsaa0_104", u = "_consultationGroupInformation_jsaa0_107", l = "_consultationGroupRight_jsaa0_111", m = "_progressBarContainer_jsaa0_114", j = "_progress_jsaa0_114", g = "_bar_jsaa0_128", I = "_consultationTextInformation_jsaa0_137", f = {
2
2
  container: o,
3
3
  consultationImageBox: n,
4
4
  consultationImage: t,
5
- consultationTime: s,
6
- ended: a,
7
- consultationTitle: e,
8
- iconVote: i,
9
- iconChat: r,
10
- consultationInformations: c,
11
- consultationLeft: _,
5
+ consultationTime: a,
6
+ ended: s,
7
+ consultationTitle: i,
8
+ iconVote: c,
9
+ iconChat: _,
10
+ consultationInformations: e,
11
+ consultationLeft: r,
12
12
  consultationGroupInformation: u,
13
13
  consultationGroupRight: l,
14
14
  progressBarContainer: m,
15
- progress: z,
15
+ progress: j,
16
16
  bar: g,
17
17
  consultationTextInformation: I
18
18
  };
@@ -22,16 +22,16 @@ export {
22
22
  l as consultationGroupRight,
23
23
  t as consultationImage,
24
24
  n as consultationImageBox,
25
- c as consultationInformations,
26
- _ as consultationLeft,
25
+ e as consultationInformations,
26
+ r as consultationLeft,
27
27
  I as consultationTextInformation,
28
- s as consultationTime,
29
- e as consultationTitle,
28
+ a as consultationTime,
29
+ i as consultationTitle,
30
30
  o as container,
31
31
  f as default,
32
- a as ended,
33
- r as iconChat,
34
- i as iconVote,
35
- z as progress,
32
+ s as ended,
33
+ _ as iconChat,
34
+ c as iconVote,
35
+ j as progress,
36
36
  m as progressBarContainer
37
37
  };
@@ -1,26 +1,26 @@
1
- import { jsxs as P, jsx as c, Fragment as je } from "react/jsx-runtime";
1
+ import { jsxs as $, jsx as c, Fragment as je } from "react/jsx-runtime";
2
2
  import Be from "@rooks/use-previous";
3
3
  import Le from "classnames";
4
4
  import Qe, { useState as m, useEffect as h } from "react";
5
- import { useIntl as Pe } from "react-intl";
6
- import { useLocation as Ue } from "react-router";
5
+ import { useIntl as $e } from "react-intl";
6
+ import { useLocation as Pe } from "react-router";
7
7
  import a from "./PaginatedList.module.scss.js";
8
- import { ActionBar as We } from "./action_bar/ActionBar.js";
9
- import { useList as ze } from "../list_provider/useList.js";
10
- import { useDataProvider as Ge } from "../../data/data_provider/useDataProvider.js";
11
- import { useResponsive as Ve } from "../../hooks/use_responsive/useResponsive.js";
12
- import { useData as Xe } from "../../data/data_provider/useData.js";
13
- import { uniqueBy as A } from "../../util/unique_by/uniqueBy.js";
14
- import { Pagination as Ye } from "../pagination/Pagination.js";
15
- import { StandardErrorBoundary as Ze } from "../../error/standard_error_boundary/StandardErrorBoundary.js";
16
- const rt = ({
8
+ import { ActionBar as Ue } from "./action_bar/ActionBar.js";
9
+ import { useList as We } from "../list_provider/useList.js";
10
+ import { useDataProvider as ze } from "../../data/data_provider/useDataProvider.js";
11
+ import { useResponsive as Ge } from "../../hooks/use_responsive/useResponsive.js";
12
+ import { useData as Ve } from "../../data/data_provider/useData.js";
13
+ import { uniqueBy as x } from "../../util/unique_by/uniqueBy.js";
14
+ import { Pagination as Xe } from "../pagination/Pagination.js";
15
+ import { StandardErrorBoundary as Ye } from "../../error/standard_error_boundary/StandardErrorBoundary.js";
16
+ const dt = ({
17
17
  query: w,
18
18
  sortOptions: i,
19
19
  sort: N,
20
20
  filters: o,
21
21
  tagList: ne,
22
22
  currentPage: M,
23
- resource: _,
23
+ resource: A,
24
24
  currentListId: n,
25
25
  withToken: ae,
26
26
  perPage: p,
@@ -28,51 +28,51 @@ const rt = ({
28
28
  pageParam: ie = "page",
29
29
  sortParam: oe = "sort",
30
30
  queryParam: me = "query",
31
- tagParam: re = "tag_id",
31
+ tagParam: de = "tag_id",
32
32
  totalHeaderParam: D = "total",
33
- onUpdateTotal: U,
33
+ onUpdateTotal: P,
34
34
  onElementsLoad: R,
35
- transformData: W,
35
+ transformData: U,
36
36
  uniqueIdKey: v = "id",
37
- children: de,
37
+ children: re,
38
38
  resourcePropName: fe,
39
- loadingComponent: z,
39
+ loadingComponent: W,
40
40
  searchBar: ce = !1,
41
41
  title: ue,
42
- emptyListComponent: G,
43
- emptyText: V,
44
- display: X,
45
- elementsPerLine: Y,
42
+ emptyListComponent: z,
43
+ emptyText: G,
44
+ display: V,
45
+ elementsPerLine: X,
46
46
  indexLayout: Ee = !1,
47
47
  gap: ge = "1em",
48
48
  withPagination: he = !0,
49
- numberElements: Z,
49
+ numberElements: Y,
50
50
  countless: pe,
51
51
  onElementClick: ve,
52
52
  withUrlParams: Se = !1,
53
- onLoadNewPage: $
53
+ onLoadNewPage: Z
54
54
  }) => {
55
- const J = Pe(), t = ze(), H = Ge(), I = Ue(), { isMobile: K, isTablet: ye, isDesktop: j } = Ve(), [b, u] = m(!1), [we, Ne] = m(!1), [k, S] = Xe(n, []), [O, Me] = m(
55
+ const J = $e(), t = We(), H = ze(), I = Pe(), { isMobile: K, isTablet: ye, isDesktop: j } = Ge(), [b, u] = m(!1), [we, Ne] = m(!1), [k, S] = Ve(n, []), [O, Me] = m(
56
56
  k?.length || 0
57
- ), [E, B] = m(M || 1), [y, L] = m(w || null), [C, q] = m(null), [Re, ee] = m(null), r = new URLSearchParams(
57
+ ), [E, B] = m(M || 1), [y, L] = m(w || null), [C, q] = m(null), [Re, ee] = m(null), d = new URLSearchParams(
58
58
  typeof window < "u" ? window.location.search : I.search
59
59
  ), be = () => i && i[0].type === "sort" && i[0].value || N || "", ke = () => {
60
60
  let e = {};
61
61
  return i && i[0].type === "filter" && (e[i[0].name] = i[0].value), o && (e = Object.assign({}, e, o)), e;
62
- }, [F, T] = m(be()), [Q, x] = m(ke()), te = Be(o);
63
- M && M !== E && B(M), w !== void 0 && w !== y && L(w), N !== void 0 && N !== F && T(N), te && JSON.stringify(o) !== JSON.stringify(te) && JSON.stringify(o) !== JSON.stringify(Q) && x(o), h(() => {
64
- if (r.get("tagId") && q(Number.parseInt(r.get("tagId"))), r.get("search") && L(r.get("search")), r.get("sort")) {
65
- T(r.get("sort"));
66
- for (const e of r.values()) {
62
+ }, [F, T] = m(be()), [Q, _] = m(ke()), te = Be(o);
63
+ M && M !== E && B(M), w !== void 0 && w !== y && L(w), N !== void 0 && N !== F && T(N), te && JSON.stringify(o) !== JSON.stringify(te) && JSON.stringify(o) !== JSON.stringify(Q) && _(o), h(() => {
64
+ if (d.get("tagId") && q(Number.parseInt(d.get("tagId"))), d.get("search") && L(d.get("search")), d.get("sort")) {
65
+ T(d.get("sort"));
66
+ for (const e of d.values()) {
67
67
  i?.map((s) => {
68
68
  s.value === e && ee(s.name);
69
69
  });
70
70
  break;
71
71
  }
72
72
  }
73
- for (const e of r.keys()) {
73
+ for (const e of d.keys()) {
74
74
  i?.map((s) => {
75
- s.name === e && (x({
75
+ s.name === e && (_({
76
76
  ...o,
77
77
  [s.name]: s.value
78
78
  }), ee(s.name));
@@ -80,12 +80,12 @@ const rt = ({
80
80
  break;
81
81
  }
82
82
  }, [I.search]), h(() => {
83
- _ ? (B(1), S([]), u(!0), se(1)) : u(!1);
83
+ A ? (B(1), S([]), u(!0), se(1)) : u(!1);
84
84
  }, [
85
85
  F,
86
86
  Q,
87
87
  y,
88
- _,
88
+ A,
89
89
  C,
90
90
  p
91
91
  ]), h(() => {
@@ -98,43 +98,43 @@ const rt = ({
98
98
  }
99
99
  }, [t.addElements]), h(() => {
100
100
  if (t.updateElements && n in t.updateElements && (console.log("[PaginatedList] update received for listId:", n, t.updateElements[n]), t.updateElements[n].length > 0)) {
101
- xe(t.updateElements[n]);
101
+ _e(t.updateElements[n]);
102
102
  const e = t.updateElements;
103
103
  delete e[n], t.setUpdateElements(e);
104
104
  }
105
105
  }, [t.updateElements]), h(() => {
106
106
  if (t.removeElements && n in t.removeElements && t.removeElements[n].length > 0) {
107
- Ae(t.removeElements[n]);
107
+ xe(t.removeElements[n]);
108
108
  const e = t.removeElements;
109
109
  delete e[n], t.setRemoveElements(e);
110
110
  }
111
111
  }, [t.removeElements]);
112
112
  const Ce = (e) => {
113
- e.type === "filter" ? (T(""), x({
113
+ e.type === "filter" ? (T(""), _({
114
114
  ...o,
115
115
  [e.name]: e.value
116
- })) : (T(e.value), x(o ? { ...o } : {}));
116
+ })) : (T(e.value), _(o ? { ...o } : {}));
117
117
  }, Fe = () => {
118
- typeof $ == "function" && $() !== null || B(E + 1);
118
+ typeof Z == "function" && Z() !== null || B(E + 1);
119
119
  }, se = (e) => {
120
120
  const s = ae ? H.getListWithToken : H.getList;
121
- if ((e - 1) * p <= (Z || O) || e === 1) {
122
- const d = {
121
+ if ((e - 1) * p <= (Y || O) || e === 1) {
122
+ const r = {
123
123
  [ie]: e,
124
124
  [le]: p,
125
125
  ...F && !y && { [oe]: F },
126
126
  ...y && { [me]: y },
127
127
  ...pe === !0 && { countless: !0 },
128
128
  ...Q,
129
- ...C && { [re]: C }
129
+ ...C && { [de]: C }
130
130
  };
131
- s(_, d).then((l) => {
131
+ s(A, r).then((l) => {
132
132
  const f = l.headers;
133
133
  f && D in f && (Me(
134
134
  Number.parseInt(f[D || "total"], 10)
135
- ), U && U(f[D || "total"]));
135
+ ), P && P(f[D || "total"]));
136
136
  let g = l?.data?.data;
137
- R && R(g), W && (g = g.filter(W)), t.addElements && n in t.addElements && t.addElements[n].length > 0 && (g = [...t.addElements[n], g]), _e(g), u(!1);
137
+ R && R(g), U && (g = g.filter(U)), t.addElements && n in t.addElements && t.addElements[n].length > 0 && (g = [...t.addElements[n], g]), Ae(g), u(!1);
138
138
  }).catch((l) => {
139
139
  console.error(l), l?.response?.status !== 404 && Ne(!0), u(!1);
140
140
  });
@@ -142,25 +142,25 @@ const rt = ({
142
142
  u(!1);
143
143
  }, Te = (e) => {
144
144
  S(
145
- (s) => A([...e, ...s], v || "id")
145
+ (s) => x([...e, ...s], v || "id")
146
146
  ), R && R(e);
147
- }, xe = (e) => {
147
+ }, _e = (e) => {
148
148
  S((s) => {
149
- let d = s;
149
+ let r = s;
150
150
  return e.forEach(
151
- (l) => d = d.map(
151
+ (l) => r = r.map(
152
152
  (f) => f.id === l.id ? l : f
153
153
  )
154
- ), A(d, v || "id");
154
+ ), x(r, v || "id");
155
155
  });
156
- }, Ae = (e) => {
157
- const s = e.map((l) => l.id), d = k.filter(
156
+ }, xe = (e) => {
157
+ const s = e.map((l) => l.id), r = k.filter(
158
158
  (l) => s.indexOf(l.id) === -1
159
159
  );
160
- S(A(d, v || "id"));
161
- }, _e = (e) => {
160
+ S(x(r, v || "id"));
161
+ }, Ae = (e) => {
162
162
  S(
163
- (s) => A([...s, ...e], v || "id")
163
+ (s) => x([...s, ...e], v || "id")
164
164
  );
165
165
  }, De = (e, s) => e !== void 0 ? /* @__PURE__ */ c(
166
166
  "li",
@@ -168,13 +168,13 @@ const rt = ({
168
168
  className: a.paginatedListItem,
169
169
  "data-testid": "list-item",
170
170
  onClick: ve,
171
- children: /* @__PURE__ */ c(Ze, { hideMessage: !0, children: Qe.cloneElement(de, {
171
+ children: /* @__PURE__ */ c(Ye, { hideMessage: !0, children: Qe.cloneElement(re, {
172
172
  index: s,
173
173
  [fe]: e
174
174
  }) })
175
175
  },
176
- e[v || "id"]
177
- ) : null, Je = (e) => z ? /* @__PURE__ */ c("li", { className: a.paginatedListItem, children: z }, e) : null;
176
+ `${e[v || "id"]}_${e.updated_at || e.content}`
177
+ ) : null, Je = (e) => W ? /* @__PURE__ */ c("li", { className: a.paginatedListItem, children: W }, e) : null;
178
178
  if (we)
179
179
  throw new Error(
180
180
  J.formatMessage({
@@ -182,9 +182,9 @@ const rt = ({
182
182
  defaultMessage: "Error when loading content."
183
183
  })
184
184
  );
185
- return /* @__PURE__ */ P("div", { className: a.listContainer, children: [
185
+ return /* @__PURE__ */ $("div", { className: a.listContainer, children: [
186
186
  /* @__PURE__ */ c(
187
- We,
187
+ Ue,
188
188
  {
189
189
  title: ue,
190
190
  sortOptions: i,
@@ -198,19 +198,19 @@ const rt = ({
198
198
  withUrlParams: Se
199
199
  }
200
200
  ),
201
- !b && k.length === 0 ? G ? /* @__PURE__ */ c("div", { className: a.emptyListElement, children: G }) : /* @__PURE__ */ c("div", { className: a.emptyList, children: V || J.formatMessage({
201
+ !b && k.length === 0 ? z ? /* @__PURE__ */ c("div", { className: a.emptyListElement, children: z }) : /* @__PURE__ */ c("div", { className: a.emptyList, children: G || J.formatMessage({
202
202
  id: "info.emptyList",
203
203
  defaultMessage: "No items for now."
204
- }) }) : /* @__PURE__ */ P(je, { children: [
205
- /* @__PURE__ */ P(
204
+ }) }) : /* @__PURE__ */ $(je, { children: [
205
+ /* @__PURE__ */ $(
206
206
  "ul",
207
207
  {
208
208
  className: Le(a.paginatedList, {
209
209
  [a.paginatedListIsTablet]: !K && !j,
210
- [a.centeredList]: X === "column",
211
- [a.column]: X === "column",
212
- [a.twoElementsPerLine]: Y === 2,
213
- [a.oneElementPerLine]: Y === 1,
210
+ [a.centeredList]: V === "column",
211
+ [a.column]: V === "column",
212
+ [a.twoElementsPerLine]: X === 2,
213
+ [a.oneElementPerLine]: X === 1,
214
214
  [a.indexLayoutList]: Ee,
215
215
  [a.listIsDesktop]: j,
216
216
  [a.listIsTablet]: ye && !j,
@@ -224,7 +224,7 @@ const rt = ({
224
224
  }
225
225
  ),
226
226
  !b && he !== !1 && /* @__PURE__ */ c(
227
- Ye,
227
+ Xe,
228
228
  {
229
229
  buttonText: J.formatMessage({
230
230
  id: "action.see_more",
@@ -232,7 +232,7 @@ const rt = ({
232
232
  }),
233
233
  currentPage: E,
234
234
  perPage: p,
235
- totalElements: Z || O,
235
+ totalElements: Y || O,
236
236
  onLoad: Fe,
237
237
  isLoading: b,
238
238
  hideLoader: !0,
@@ -243,5 +243,5 @@ const rt = ({
243
243
  ] });
244
244
  };
245
245
  export {
246
- rt as PaginatedList
246
+ dt as PaginatedList
247
247
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@logora/debate",
3
- "version": "0.3.58",
3
+ "version": "0.3.60",
4
4
  "type": "module",
5
5
  "license": "AGPL-3.0",
6
6
  "description": "Design system of @Logora made with React",
@@ -1 +0,0 @@
1
- ._container_e2zsr_3{display:flex!important;flex-direction:column!important;justify-content:space-between!important;box-shadow:var(--box-shadow, 0px 2px 5px rgba(7, 42, 68, .1));border:var(--box-border, 1px solid rgba(7, 42, 68, .1));color:var(--text-primary, #222222);border-radius:var(--box-border-radius, 6px);background:var(--background-color-primary, white)}._container_e2zsr_3 a{text-decoration:none!important;color:var(--text-primary, #222222)!important}._consultationImageBox_e2zsr_18{position:relative}._consultationImage_e2zsr_18{border-top-right-radius:var(--box-border-radius, 6px);border-top-left-radius:var(--box-border-radius, 6px);width:100%;aspect-ratio:16/9;object-fit:cover;display:block}._consultationTime_e2zsr_31{display:flex!important;align-items:center!important;position:absolute;left:var(--space-unit, 1em);bottom:var(--space-unit, 1em);padding-right:var(--spacer-md, calc(var(--space-unit, 1em) * .75))!important;padding-left:var(--spacer-md, calc(var(--space-unit, 1em) * .75))!important;padding-top:var(--spacer-sm, calc(var(--space-unit, 1em) * .5))!important;padding-bottom:var(--spacer-sm, calc(var(--space-unit, 1em) * .5))!important;background-color:var(--call-primary-color, #434343);border-radius:var(--box-border-radius, 6px);font-size:var(--font-size-normal, 16px);color:var(--text-light, white);max-width:93%;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}._consultationTime_e2zsr_31 span{color:var(--text-light, white)}._consultationTime_e2zsr_31._ended_e2zsr_53{background-color:var(--call-primary-color, #434343)}._consultationTitle_e2zsr_57{padding-top:var(--spacer-lg, calc(var(--space-unit, 1em) * 1.5))!important;padding-bottom:var(--spacer-sm, calc(var(--space-unit, 1em) * .5))!important;padding-right:var(--space-unit, 1em)!important;padding-left:var(--space-unit, 1em)!important;font-size:var(--font-size-normal, 16px);font-weight:var(--font-weight-bold, 700)}._iconVote_e2zsr_66{padding-top:3px!important}._iconChat_e2zsr_70{padding-top:6px!important}._consultationButtonContainer_e2zsr_74{display:flex!important;padding-right:var(--space-unit, 1em)!important;padding-left:var(--space-unit, 1em)!important;padding-bottom:var(--spacer-lg, calc(var(--space-unit, 1em) * 1.5))!important;color:var(--text-secondary, #5F5F5F);font-size:var(--font-size-small, 16px)}._consultationButtonContainer_e2zsr_74:hover{text-decoration:underline;text-decoration-color:var(--text-secondary, #5F5F5F)}._consultationButtonContainer_e2zsr_74 ._arrowIcon_e2zsr_86{margin-left:var(--spacer-xxs, calc(var(--space-unit, 1em) * .25))!important;transform:rotate(180deg);fill:var(--text-secondary, #5F5F5F);top:1px;position:relative}._consultationInformations_e2zsr_94{display:flex!important;justify-content:space-between!important;align-items:center!important;padding-right:var(--space-unit, 1em)!important;padding-left:var(--space-unit, 1em)!important;padding-top:var(--spacer-sm, calc(var(--space-unit, 1em) * .5))!important;padding-bottom:var(--spacer-sm, calc(var(--space-unit, 1em) * .5))!important;min-height:50px}._consultationInformations_e2zsr_94 ._consultationLeft_e2zsr_104{display:flex!important}._consultationInformations_e2zsr_94 ._consultationGroupInformation_e2zsr_107{display:flex!important;align-items:center!important}._consultationInformations_e2zsr_94 ._consultationGroupInformation_e2zsr_107._consultationGroupRight_e2zsr_111{padding-right:var(--space-unit, 1em)!important}._consultationInformations_e2zsr_94 ._progressBarContainer_e2zsr_114{width:60%;display:flex!important;flex-direction:column!important;align-items:flex-end!important;font-size:var(--font-size-extra-small, 14px)}._consultationInformations_e2zsr_94 ._progressBarContainer_e2zsr_114 ._progress_e2zsr_114{margin-top:var(--spacer-xxs, calc(var(--space-unit, 1em) * .25))!important;height:15px;width:100%;border-radius:var(--box-border-radius, 6px);background-color:var(--background-color-secondary, #E8E8E8)!important}._consultationInformations_e2zsr_94 ._progressBarContainer_e2zsr_114 ._bar_e2zsr_128{background-color:var(--call-primary-color, #434343)}._consultationInformations_e2zsr_94 ._progressBarContainer_e2zsr_114 ._totalVotes_e2zsr_131{margin-right:var(--spacer-xxs, calc(var(--space-unit, 1em) * .25))!important}._consultationInformations_e2zsr_94 ._progressBarContainer_e2zsr_114 ._totalVotesPercentage_e2zsr_134{margin-left:var(--spacer-xxs, calc(var(--space-unit, 1em) * .25))!important}._consultationInformations_e2zsr_94 ._consultationTextInformation_e2zsr_137{padding-right:var(--spacer-xxs, calc(var(--space-unit, 1em) * .25))!important;padding-top:10px!important}