@logora/debate 0.4.85 → 0.4.86

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.
@@ -12,7 +12,7 @@ import { Icon as S } from "../../icons/icon/Icon.js";
12
12
  import { Tooltip as P } from "../../dialog/tooltip/Tooltip.js";
13
13
  import { Avatar as y } from "../../user/avatar/Avatar.js";
14
14
  const R = ({ debate: e }) => {
15
- const d = B(), r = w(), l = x(), { isMobile: N } = M(), g = e.votes_count?.total || Object.values(e.votes_count).reduce(
15
+ const d = B(), r = w(), l = x(), { isMobile: v } = M(), g = e.votes_count?.total || Object.values(e.votes_count).reduce(
16
16
  (o, s) => o + Number.parseFloat(s),
17
17
  0
18
18
  ) || 0, n = e.group_context?.positions.reduce(
@@ -27,7 +27,7 @@ const R = ({ debate: e }) => {
27
27
  n.language,
28
28
  "name",
29
29
  n.translation_entries
30
- ), _ = (o, s) => s == 0 || o == 0 ? 0 : Math.round(100 * (o / s)), v = (o, s) => /* @__PURE__ */ t("div", { className: a.debateParticipantItem, children: /* @__PURE__ */ t(
30
+ ), _ = (o, s) => s == 0 || o == 0 ? 0 : Math.round(100 * (o / s)), N = (o, s) => /* @__PURE__ */ t("div", { className: a.debateParticipantItem, children: /* @__PURE__ */ t(
31
31
  c,
32
32
  {
33
33
  to: r.userShowLocation.toUrl({ userSlug: o.hash_id }),
@@ -110,7 +110,7 @@ const R = ({ debate: e }) => {
110
110
  c,
111
111
  {
112
112
  to: r.debateShowLocation.toUrl({ debateSlug: e.slug }),
113
- children: /* @__PURE__ */ t(u, { children: N ? /* @__PURE__ */ t(
113
+ children: /* @__PURE__ */ t(u, { children: v ? /* @__PURE__ */ t(
114
114
  "div",
115
115
  {
116
116
  "data-tid": "view_debate_title",
@@ -133,7 +133,7 @@ const R = ({ debate: e }) => {
133
133
  id: "debate.debate_box.fallback_no_participants",
134
134
  defaultMessage: "No participants"
135
135
  }) }) : /* @__PURE__ */ i(u, { children: [
136
- e.participants.map(v),
136
+ e.participants.map(N),
137
137
  e.participants_count > 3 && /* @__PURE__ */ t("div", { className: a.debateParticipantItem, children: /* @__PURE__ */ t(
138
138
  P,
139
139
  {
@@ -160,7 +160,7 @@ const R = ({ debate: e }) => {
160
160
  }
161
161
  ) })
162
162
  ] }) }),
163
- d.modules.votes === !1 ? null : /* @__PURE__ */ t("div", { className: a.debateBoxNumbers, children: /* @__PURE__ */ t(
163
+ d.modules.votes === !1 || e.allow_votes === !1 ? null : /* @__PURE__ */ t("div", { className: a.debateBoxNumbers, children: /* @__PURE__ */ t(
164
164
  "div",
165
165
  {
166
166
  className: a.debateBoxNumbersText,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@logora/debate",
3
- "version": "0.4.85",
3
+ "version": "0.4.86",
4
4
  "type": "module",
5
5
  "license": "AGPL-3.0",
6
6
  "description": "Design system of @Logora made with React",