@logora/debate 0.3.68 → 0.3.71

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.
Files changed (44) hide show
  1. package/dist/assets/components/argument/argument/Argument.module-gLfNRLks.css +1 -0
  2. package/dist/assets/components/consultation/consultation_box/ConsultationBox.module-BnTr5IaF.css +1 -0
  3. package/dist/assets/components/input/text_editor/{TextEditor.module-CxuSL3l3.css → TextEditor.module-DePSfOvG.css} +1 -1
  4. package/dist/assets/components/section/section_box/SectionBox.module-DUeUtdWr.css +1 -0
  5. package/dist/assets/components/source/context_source_list/ContextSourceList.module-D6X_0dB7.css +1 -0
  6. package/dist/assets/components/source/source_list_item/SourceListItem.module-mTxHhXPV.css +1 -0
  7. package/dist/assets/components/summary/summary/Summary.module-DjfmUlkW.css +1 -0
  8. package/dist/assets/components/summary/summary_box/SummaryBox.module-DQVkA8l7.css +1 -0
  9. package/dist/assets/components/vote/vote_box/VoteBox.module-CDrqb2SZ.css +1 -0
  10. package/dist/components/argument/argument/Argument.js +108 -112
  11. package/dist/components/argument/argument/Argument.module.scss.js +31 -31
  12. package/dist/components/consultation/consultation_box/ConsultationBox.js +111 -80
  13. package/dist/components/consultation/consultation_box/ConsultationBox.module.scss.js +21 -23
  14. package/dist/components/icons/spiegel_icons/index.js +46 -46
  15. package/dist/components/icons/stern_icons/index.js +70 -100
  16. package/dist/components/input/argument_input/ArgumentInput.js +142 -142
  17. package/dist/components/input/text_editor/TextEditor.js +124 -135
  18. package/dist/components/input/text_editor/TextEditor.module.scss.js +5 -5
  19. package/dist/components/input/text_editor/plugins/SetContentPlugin.js +13 -13
  20. package/dist/components/input/text_editor/plugins/SetRichContentPlugin.js +10 -10
  21. package/dist/components/list/paginated_list/PaginatedList.js +110 -112
  22. package/dist/components/proposal/proposal_box/ProposalBox.js +10 -8
  23. package/dist/components/section/section_box/SectionBox.js +10 -10
  24. package/dist/components/section/section_box/SectionBox.module.scss.js +9 -9
  25. package/dist/components/source/context_source_list/ContextSourceList.js +7 -8
  26. package/dist/components/source/context_source_list/ContextSourceList.module.scss.js +12 -14
  27. package/dist/components/source/source_list_item/SourceListItem.js +28 -42
  28. package/dist/components/source/source_list_item/SourceListItem.module.scss.js +6 -8
  29. package/dist/components/summary/summary/Summary.js +63 -41
  30. package/dist/components/summary/summary/Summary.module.scss.js +6 -10
  31. package/dist/components/summary/summary_box/SummaryBox.module.scss.js +9 -9
  32. package/dist/components/vote/vote_box/VoteBox.js +145 -123
  33. package/dist/components/vote/vote_box/VoteBox.module.scss.js +50 -50
  34. package/package.json +1 -1
  35. package/dist/assets/components/argument/argument/Argument.module-QZdPjj_i.css +0 -1
  36. package/dist/assets/components/consultation/consultation_box/ConsultationBox.module-D2an6OmR.css +0 -1
  37. package/dist/assets/components/section/section_box/SectionBox.module-qQs4B6bf.css +0 -1
  38. package/dist/assets/components/source/context_source_list/ContextSourceList.module-DUPbI-wb.css +0 -1
  39. package/dist/assets/components/source/source_list_item/SourceListItem.module-fm_uHuY4.css +0 -1
  40. package/dist/assets/components/summary/summary/Summary.module-2bnx3egy.css +0 -1
  41. package/dist/assets/components/summary/summary_box/SummaryBox.module-Dr9PevSJ.css +0 -1
  42. package/dist/assets/components/vote/vote_box/VoteBox.module-C9Q6gBw3.css +0 -1
  43. package/dist/components/icons/spiegel_icons/Downvote.js +0 -6
  44. package/dist/components/icons/spiegel_icons/Upvote.js +0 -6
@@ -1,9 +1,9 @@
1
- import { jsxs as M, jsx as i } from "react/jsx-runtime";
2
- import $e from "@rooks/use-sessionstorage-state";
3
- import { useRef as qe, useState as c, useEffect as v, Suspense as De, lazy as We } from "react";
4
- import { useIntl as Ye, FormattedMessage as me } from "react-intl";
1
+ import { jsxs as _, jsx as i } from "react/jsx-runtime";
2
+ import qe from "@rooks/use-sessionstorage-state";
3
+ import { useRef as De, useState as c, useEffect as M, Suspense as We, lazy as Ye } from "react";
4
+ import { useIntl as $e, FormattedMessage as ce } from "react-intl";
5
5
  import { useLocation as ke } from "react-router";
6
- import I from "classnames";
6
+ import w from "classnames";
7
7
  import n from "./ArgumentInput.module.scss.js";
8
8
  import { useDataProvider as Re } from "../../data/data_provider/useDataProvider.js";
9
9
  import { useList as je } from "../../list/list_provider/useList.js";
@@ -20,144 +20,144 @@ import { Avatar as et } from "../../user/avatar/Avatar.js";
20
20
  import { AuthorBox as tt } from "../../user/author_box/AuthorBox.js";
21
21
  import { TextEditor as nt } from "../text_editor/TextEditor.js";
22
22
  import { Icon as at } from "../../icons/icon/Icon.js";
23
- const it = We(() => import("../../modal/side_modal/index.js").then((S) => ({ default: S.SideModal }))), Nt = ({
24
- argumentListId: S,
25
- avatarSize: fe = 48,
26
- disabled: z = !1,
23
+ const it = Ye(() => import("../../modal/side_modal/index.js").then((I) => ({ default: I.SideModal }))), Nt = ({
24
+ argumentListId: I,
25
+ avatarSize: me = 48,
26
+ disabled: j = !1,
27
27
  positions: a = [],
28
- disabledPositions: x = [],
29
- groupId: b,
30
- groupName: ge,
31
- groupType: O,
32
- hideSourceAction: he = !1,
28
+ disabledPositions: S = [],
29
+ groupId: v,
30
+ groupName: fe,
31
+ groupType: z,
32
+ hideSourceAction: ge = !1,
33
33
  isReply: r = !1,
34
- onSubmit: J,
35
- parentId: F,
36
- placeholder: pe,
37
- positionId: A,
38
- focusOnInit: _e = !1,
39
- activeOnInit: P = !1,
40
- userGuideUrl: K,
41
- hideUserGuideLink: Me = !1,
42
- hideCharCount: ve = !1,
43
- disableAutoActivate: be = !1
34
+ onSubmit: O,
35
+ parentId: y,
36
+ placeholder: he,
37
+ positionId: b,
38
+ focusOnInit: pe = !1,
39
+ activeOnInit: F = !1,
40
+ userGuideUrl: J,
41
+ hideUserGuideLink: _e = !1,
42
+ hideCharCount: Me = !1,
43
+ disableAutoActivate: ve = !1
44
44
  }) => {
45
- const o = Ye(), G = Re(), N = je(), h = ze(), {
46
- focus: H,
47
- setFocus: T,
48
- setReset: Ae,
49
- inputContent: B,
50
- setInputContent: Q,
45
+ const s = $e(), K = Re(), x = je(), h = ze(), {
46
+ focus: G,
47
+ setFocus: N,
48
+ setReset: be,
49
+ inputContent: P,
50
+ setInputContent: Ae,
51
51
  setInputRichContent: Ce
52
- } = Oe(), { isLoggedIn: C, currentUser: u } = Je(), { errors: E, validate: V } = Ke(), { isMobile: m } = Ge(), we = ke(), X = qe(null), [U, $] = c([]), [q, D] = c(""), [Z, W] = c(null), [d, p] = c(null), [ee, te] = c(null), [ne, ae] = c(!1), [w, ie] = c(!1), [_, se] = c({}), [f, Ie] = $e(
52
+ } = Oe(), { isLoggedIn: A, currentUser: u } = Je(), { errors: B, validate: E } = Ke(), { isMobile: m } = Ge(), we = ke(), H = De(null), [V, U] = c([]), [q, D] = c(""), [Q, W] = c(null), [d, p] = c(null), [X, Z] = c(null), [ee, te] = c(!1), [C, ne] = c(!1), [ae, ie] = c({}), [f, Ie] = qe(
53
53
  "userSide",
54
54
  {}
55
55
  ), [g, Se] = c(
56
- !C && h?.actions?.disableInputForVisitor
57
- ), Y = He(), { showModal: xe } = Qe(), { toast: k } = Xe() || {}, oe = new URLSearchParams(
56
+ !A && h?.actions?.disableInputForVisitor
57
+ ), Y = He(), { showModal: xe } = Qe(), { toast: $ } = Xe() || {}, se = new URLSearchParams(
58
58
  typeof window < "u" ? window.location.search : we.search
59
59
  );
60
- v(() => {
60
+ M(() => {
61
61
  Se(
62
- !C && h?.actions?.disableInputForVisitor
62
+ !A && h?.actions?.disableInputForVisitor
63
63
  );
64
- }, [C, h]);
65
- const R = u?.role === "editor" || u?.role === "moderator", re = u?.moderation_status === "banned";
66
- v(() => {
64
+ }, [A, h]);
65
+ const k = u?.role === "editor" || u?.role === "moderator", oe = u?.moderation_status === "banned";
66
+ M(() => {
67
67
  let e = null;
68
- typeof window < "u" && (e = oe.get("positionId")), A && A != a[2]?.id && a?.find((t) => t.id === A) ? p(A) : e && e != a[2]?.id ? p(e) : f && f.groupId == b && f.positionId != a[2]?.id && p(f.positionId);
69
- }, [A]), v(() => {
70
- P && (j(), T(!0));
71
- }, [P]), v(() => {
68
+ typeof window < "u" && (e = se.get("positionId")), b && b != a[2]?.id && a?.find((t) => t.id === b) ? p(b) : e && e != a[2]?.id ? p(e) : f && f.groupId == v && f.positionId != a[2]?.id && p(f.positionId);
69
+ }, [b]), M(() => {
70
+ F && (R(), N(!0));
71
+ }, [F]), M(() => {
72
72
  if (typeof window < "u") {
73
- const e = _e || oe.get("initArgument");
74
- (e === !0 || e === "true") && (T(!0), Ee());
73
+ const e = pe || se.get("initArgument");
74
+ (e === !0 || e === "true") && (N(!0), Ee());
75
75
  }
76
- }, []), v(() => {
77
- H && (ue(), T(!1));
78
- }, [H]), v(() => {
79
- B?.id && (Ne(B), T(!0));
80
- }, [B]);
76
+ }, []), M(() => {
77
+ G && (re(), N(!1));
78
+ }, [G]), M(() => {
79
+ P?.id && (Ne(P), N(!0));
80
+ }, [P]);
81
81
  const Ne = (e) => {
82
- se(e), ie(!0), $(e.sources), D(e.content), W(e.rich_content), te(e.id), ue(), p(e.position?.id), JSON.parse(e.rich_content).hasOwnProperty("root") ? Ce(e.rich_content) : Q(e.content);
82
+ ie(e), ne(!0), U(e.sources), D(e.content), W(e.rich_content), Z(e.id), re(), p(e.position?.id), JSON.parse(e.rich_content).hasOwnProperty("root") ? Ce(e.rich_content) : Ae(e.content);
83
+ }, re = () => {
84
+ H.current.scrollIntoView(!1);
83
85
  }, ue = () => {
84
- X.current.scrollIntoView(!1);
85
- }, de = () => {
86
- D(""), W(null), se({}), te(null), $([]), Ae(!0), Q(null);
86
+ D(""), W(null), ie({}), Z(null), U([]), be(!0);
87
87
  }, Te = (e) => {
88
- p(e), ce(e);
89
- }, ye = () => {
88
+ p(e), le(e);
89
+ }, Le = () => {
90
90
  xe(
91
- /* @__PURE__ */ i(De, { fallback: null, children: /* @__PURE__ */ i(
91
+ /* @__PURE__ */ i(We, { fallback: null, children: /* @__PURE__ */ i(
92
92
  it,
93
93
  {
94
- modalTitle: o.formatMessage({
94
+ modalTitle: s.formatMessage({
95
95
  id: "modal.side_modal.modal_title",
96
96
  defaultMessage: "Choose your side"
97
97
  }),
98
98
  onChooseSide: Te,
99
99
  positions: a,
100
- title: ge,
101
- disabledPositions: !r && x,
102
- isNeutral: f && f.groupId == b && f.positionId === a[2]?.id
100
+ title: fe,
101
+ disabledPositions: !r && S,
102
+ isNeutral: f && f.groupId == v && f.positionId === a[2]?.id
103
103
  }
104
104
  ) })
105
105
  );
106
- }, Le = () => {
107
- C ? ee ? Be() : !a || a?.length === 0 || !x?.find((e) => e?.id === d) && d || R && r ? ce(r && R && a[0]?.id) : ye() : Y({ loginAction: "argument" });
106
+ }, ye = () => {
107
+ A ? X ? Be() : !a || a?.length === 0 || !S?.find((e) => e?.id === d) && d || k && r ? le(r && k && a[0]?.id) : Le() : Y({ loginAction: "argument" });
108
108
  }, Fe = (e, t) => {
109
- g ? Y({ loginAction: "argument" }) : (D(e), W(t), V({ content: e }, [{ content: ["url", null] }]));
109
+ g ? Y({ loginAction: "argument" }) : (D(e), W(t), E({ content: e }, [{ content: ["url", null] }]));
110
110
  }, Pe = (e) => {
111
- $(e);
112
- }, le = [
111
+ U(e);
112
+ }, de = [
113
113
  { content: ["length", 3] },
114
114
  { content: ["required", null] },
115
115
  { content: ["url", null] },
116
116
  ...!a || a?.length === 0 ? [] : [{ position_id: ["required", null] }]
117
- ], ce = (e) => {
117
+ ], le = (e) => {
118
118
  const t = e || d, l = {
119
119
  content: q,
120
- rich_content: Z,
121
- group_id: b,
122
- ...O && { group_type: O },
120
+ rich_content: Q,
121
+ group_id: v,
122
+ ...z && { group_type: z },
123
123
  ...t && { position_id: t },
124
- is_reply: !!F,
125
- message_id: F || null,
126
- source_ids: U?.map((s) => s.id)
124
+ is_reply: !!y,
125
+ message_id: y || null,
126
+ source_ids: V?.map((o) => o.id)
127
127
  };
128
- V(l, le) && (t && a && a.map((s) => s.id).includes(t) && Ie({
129
- groupId: b,
128
+ E(l, de) && (t && a && a.map((o) => o.id).includes(t) && Ie({
129
+ groupId: v,
130
130
  positionId: t
131
- }), de(), G.create("messages", l).then((s) => {
132
- if (s.data.success) {
133
- if (F)
134
- J(s.data.data.resource), k(
135
- o.formatMessage({
131
+ }), ue(), K.create("messages", l).then((o) => {
132
+ if (o.data.success) {
133
+ if (y)
134
+ O(o.data.data.resource), $(
135
+ s.formatMessage({
136
136
  id: "alert.argument_create",
137
137
  defaultMessage: "Your contribution has been sent !"
138
138
  }),
139
139
  {
140
140
  type: "success",
141
- points: o.formatMessage({
141
+ points: s.formatMessage({
142
142
  id: "alert.reply_gain",
143
143
  defaultMessage: " "
144
144
  })
145
145
  }
146
146
  );
147
147
  else {
148
- const y = s.data.data.resource;
149
- let L = S;
150
- t && !m && (L = `argumentList${y.position.id}`), J?.(
148
+ const T = o.data.data.resource;
149
+ let L = I;
150
+ t && !m && (L = `argumentList${T.position.id}`), O?.(
151
151
  q,
152
152
  a.find((Ue) => Ue.id === t) || null
153
- ), N.add(L, [y]), k(
154
- o.formatMessage({
153
+ ), x.add(L, [T]), $(
154
+ s.formatMessage({
155
155
  id: "alert.argument_create",
156
156
  defaultMessage: "Your contribution has been sent !"
157
157
  }),
158
158
  {
159
159
  type: "success",
160
- points: o.formatMessage({
160
+ points: s.formatMessage({
161
161
  id: "alert.argument_create_gain",
162
162
  defaultMessage: "Up to 10 eloquence points"
163
163
  }),
@@ -169,7 +169,7 @@ const it = We(() => import("../../modal/side_modal/index.js").then((S) => ({ def
169
169
  typeof window < "u" && window.dispatchEvent(
170
170
  new CustomEvent("logora:user_content:created", {
171
171
  detail: {
172
- content: s.data.data?.resource
172
+ content: o.data.data?.resource
173
173
  }
174
174
  })
175
175
  );
@@ -178,40 +178,40 @@ const it = We(() => import("../../modal/side_modal/index.js").then((S) => ({ def
178
178
  }, Be = () => {
179
179
  const e = {
180
180
  content: q,
181
- rich_content: Z,
182
- source_ids: U?.map((t) => t.id),
181
+ rich_content: Q,
182
+ source_ids: V?.map((t) => t.id),
183
183
  ...d && { position_id: d }
184
184
  };
185
- V(e, le) && G.update("messages", ee, e).then((t) => {
185
+ E(e, de) && K.update("messages", X, e).then((t) => {
186
186
  if (t.data.success) {
187
187
  const l = t.data.data.resource;
188
- let s = S;
189
- if (_?.is_reply && _?.message_id ? s = `argument_${_.message_id}_reply_list` : d && !m && (s = `argumentList${l.position?.id}`), !_?.is_reply && _?.position?.id != l.position?.id && !m) {
190
- const y = `argumentList${_.position.id}`, L = `argumentList${l.position.id}`;
191
- N.remove(y, [l]), N.add(L, [l]);
188
+ let o = I;
189
+ if (d && !m && (o = `argumentList${l.position?.id}`), ae?.position?.id != l.position?.id && !m && !l.is_reply) {
190
+ const T = `argumentList${ae.position.id}`, L = `argumentList${l.position.id}`;
191
+ x.remove(T, [l]), x.add(L, [l]);
192
192
  } else
193
- N.update(s, [l]);
194
- k(o.formatMessage({ id: "alert.argument_modify" }), {
193
+ x.update(o, [l]);
194
+ $(s.formatMessage({ id: "alert.argument_modify" }), {
195
195
  type: "success"
196
- }), de();
196
+ }), ue();
197
197
  }
198
198
  });
199
199
  }, Ee = () => {
200
- if (!ne) {
201
- ae(!0);
200
+ if (!ee) {
201
+ te(!0);
202
202
  const e = setTimeout(() => {
203
- ae(!1);
203
+ te(!1);
204
204
  }, 2e3);
205
205
  return () => clearTimeout(e);
206
206
  }
207
- }, j = () => {
208
- g ? Y({ loginAction: "argument" }) : ie(!0);
207
+ }, R = () => {
208
+ g ? Y({ loginAction: "argument" }) : ne(!0);
209
209
  }, Ve = () => {
210
- const e = x.find(
210
+ const e = S.find(
211
211
  (t) => t.id === d
212
212
  );
213
213
  if (e)
214
- return o.formatMessage(
214
+ return s.formatMessage(
215
215
  {
216
216
  id: "info.argument_side_limit",
217
217
  defaultMessage: "You have reached the argument limit (10) for position {position}."
@@ -219,24 +219,24 @@ const it = We(() => import("../../modal/side_modal/index.js").then((S) => ({ def
219
219
  { position: e.name }
220
220
  );
221
221
  };
222
- return /* @__PURE__ */ M("div", { className: n.inputContainer, children: [
223
- z && /* @__PURE__ */ i("div", { className: n.disabledInputMask, children: re ? o.formatMessage({
222
+ return /* @__PURE__ */ _("div", { className: n.inputContainer, children: [
223
+ j && /* @__PURE__ */ i("div", { className: n.disabledInputMask, children: oe ? s.formatMessage({
224
224
  id: "input.argument_input.user_banned",
225
225
  defaultMessage: "You are banned from the debate space."
226
- }) : o.formatMessage({
226
+ }) : s.formatMessage({
227
227
  id: "info.debate_is_inactive",
228
228
  defaultMessage: "Debate is closed"
229
229
  }) }),
230
230
  /* @__PURE__ */ i(
231
231
  "div",
232
232
  {
233
- className: I(n.argumentInput, {
234
- [n.flash]: ne,
233
+ className: w(n.argumentInput, {
234
+ [n.flash]: ee,
235
235
  [n.replyInputContainer]: r
236
236
  }),
237
- children: /* @__PURE__ */ i("div", { "data-tid": "action_add_argument", ref: X, children: /* @__PURE__ */ M("div", { className: n.argumentInputBox, children: [
238
- a.length > 0 && C && (!r || !R) && /* @__PURE__ */ M("div", { className: n.userPosition, children: [
239
- /* @__PURE__ */ i("div", { children: o.formatMessage({
237
+ children: /* @__PURE__ */ i("div", { "data-tid": "action_add_argument", ref: H, children: /* @__PURE__ */ _("div", { className: n.argumentInputBox, children: [
238
+ a.length > 0 && A && (!r || !k) && /* @__PURE__ */ _("div", { className: n.userPosition, children: [
239
+ /* @__PURE__ */ i("div", { children: s.formatMessage({
240
240
  id: "input.position",
241
241
  defaultMessage: "Your position"
242
242
  }) }),
@@ -250,10 +250,10 @@ const it = We(() => import("../../modal/side_modal/index.js").then((S) => ({ def
250
250
  }
251
251
  )
252
252
  ] }),
253
- /* @__PURE__ */ M(
253
+ /* @__PURE__ */ _(
254
254
  "div",
255
255
  {
256
- className: I(n.argumentTextInputBox, {
256
+ className: w(n.argumentTextInputBox, {
257
257
  [n.argumentTextInputBoxisTablet]: !m,
258
258
  [n.replyEditorRow]: r
259
259
  }),
@@ -261,21 +261,21 @@ const it = We(() => import("../../modal/side_modal/index.js").then((S) => ({ def
261
261
  /* @__PURE__ */ i(
262
262
  "div",
263
263
  {
264
- className: I(n.argumentAuthorContainer, {
264
+ className: w(n.argumentAuthorContainer, {
265
265
  [n.argumentAuthorContainerMobile]: m,
266
- [n.argumentAuthorContainerActivated]: !m && w || r
266
+ [n.argumentAuthorContainerActivated]: !m && C || r
267
267
  }),
268
- children: !m && w || r ? /* @__PURE__ */ i(
268
+ children: !m && C || r ? /* @__PURE__ */ i(
269
269
  et,
270
270
  {
271
271
  avatarUrl: u.image_url,
272
272
  userName: u.full_name,
273
- size: fe
273
+ size: me
274
274
  }
275
275
  ) : /* @__PURE__ */ i(
276
276
  tt,
277
277
  {
278
- fullName: u?.full_name || o.formatMessage({ id: "default_author.full_name" }),
278
+ fullName: u?.full_name || s.formatMessage({ id: "default_author.full_name" }),
279
279
  avatarUrl: u?.image_url,
280
280
  points: u?.points || 0,
281
281
  slug: u?.hash_id
@@ -283,12 +283,12 @@ const it = We(() => import("../../modal/side_modal/index.js").then((S) => ({ def
283
283
  )
284
284
  }
285
285
  ),
286
- /* @__PURE__ */ M(
286
+ /* @__PURE__ */ _(
287
287
  "div",
288
288
  {
289
- onClick: j,
289
+ onClick: R,
290
290
  "data-testid": "argument-input",
291
- className: I(n.textEditorBox, {
291
+ className: w(n.textEditorBox, {
292
292
  [n.replyTextEditorBox]: r
293
293
  }),
294
294
  children: [
@@ -301,35 +301,35 @@ const it = We(() => import("../../modal/side_modal/index.js").then((S) => ({ def
301
301
  handleSourcesChange: (e) => {
302
302
  Pe(e);
303
303
  },
304
- placeholder: pe,
305
- "aria-label": o.formatMessage({
304
+ placeholder: he,
305
+ "aria-label": s.formatMessage({
306
306
  id: "input.argument_input.aria_label",
307
307
  defaultMessage: "Message input field"
308
308
  }),
309
- onSubmit: Le,
310
- sources: U,
311
- hideSourceAction: he || g,
312
- uid: `Argument${b}`,
313
- onActivation: j,
314
- showStylesControls: w,
315
- disabled: z || g || re,
309
+ onSubmit: ye,
310
+ sources: V,
311
+ hideSourceAction: ge || g,
312
+ uid: `Argument${v}`,
313
+ onActivation: R,
314
+ showStylesControls: C,
315
+ disabled: j || g || oe,
316
316
  maxLength: g ? !1 : h?.actions?.argumentMaxLength,
317
317
  disableRichText: h?.actions?.disableRichText || g,
318
318
  shortBar: r,
319
319
  hideSubmit: g,
320
320
  allowedDomains: h?.allowed_sources,
321
- active: P,
322
- hideCharCount: ve,
323
- disableAutoActivate: be
321
+ active: F,
322
+ hideCharCount: Me,
323
+ disableAutoActivate: ve
324
324
  }
325
325
  ),
326
- E?.content && /* @__PURE__ */ i("div", { className: n.argumentInputWarning, children: E && Object.values(E).map((e, t) => /* @__PURE__ */ i("div", { children: e }, t)) }),
327
- w && x?.find(
326
+ B?.content && /* @__PURE__ */ i("div", { className: n.argumentInputWarning, children: B && Object.values(B).map((e, t) => /* @__PURE__ */ i("div", { children: e }, t)) }),
327
+ C && S?.find(
328
328
  (e) => e.id === d
329
- ) && /* @__PURE__ */ M(
329
+ ) && /* @__PURE__ */ _(
330
330
  "div",
331
331
  {
332
- className: I(
332
+ className: w(
333
333
  n.argumentInputWarning,
334
334
  n.disabledPositionWarning
335
335
  ),
@@ -347,8 +347,8 @@ const it = We(() => import("../../modal/side_modal/index.js").then((S) => ({ def
347
347
  ]
348
348
  }
349
349
  ),
350
- w && K && !Me && /* @__PURE__ */ i("div", { className: n.guideMessage, children: /* @__PURE__ */ i(
351
- me,
350
+ C && J && !_e && /* @__PURE__ */ i("div", { className: n.guideMessage, children: /* @__PURE__ */ i(
351
+ ce,
352
352
  {
353
353
  id: "alert.guide_message",
354
354
  defaultMessage: "Contributions must comply with our {userCharter}.",
@@ -357,11 +357,11 @@ const it = We(() => import("../../modal/side_modal/index.js").then((S) => ({ def
357
357
  "a",
358
358
  {
359
359
  className: n.guideMessage,
360
- href: K,
360
+ href: J,
361
361
  target: "_blank",
362
362
  rel: "noreferrer",
363
363
  children: /* @__PURE__ */ i(
364
- me,
364
+ ce,
365
365
  {
366
366
  id: "alert.user_charter",
367
367
  defaultMessage: "user charter"