@logora/debate 0.4.104 → 0.4.106

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
+ ._voteBox_3jamb_3{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:center!important;width:100%}._voteResultsBox_3jamb_11{display:flex!important;flex-direction:column!important;padding:0!important;width:100%}._voteResults_3jamb_11{padding:0!important}._voteProgressHeader_3jamb_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_3jamb_35{margin-top:var(--spacer-md, calc(var(--space-unit, 1em) * .75))!important}._voteResultsNumberVoters_3jamb_39{display:flex!important;align-items:center!important;padding:0!important;font-size:var(--font-size-normal, 16px);color:var(--text-secondary, #5F5F5F)}._voteBoxFooter_3jamb_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}._voteFooterActions_3jamb_56{display:flex!important;align-items:center!important;gap:var(--space-unit, 1em)}._voteBoxActions_3jamb_62{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_3jamb_72{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_3jamb_80{grid-template-columns:1fr}._voteAction_3jamb_84{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_3jamb_84._buttonAlignLeft_3jamb_94{justify-content:flex-start!important}button._voteButton_3jamb_98,a._voteButton_3jamb_98{-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_3jamb_109{justify-content:flex-start!important}._voteBoxShowResultContainer_3jamb_113{display:flex!important;flex-direction:row!important;justify-content:center;flex-wrap:wrap!important;margin-top:.3em}._voteBoxShowResult_3jamb_113{cursor:pointer}._voteBoxShowResult_3jamb_113 a{color:inherit;text-decoration:none;background:none!important}._voteBoxShowResult_3jamb_113 a:hover{text-decoration:none;background:none!important}._voteBoxShowResult_3jamb_113 a:focus:not(:focus-visible){outline:none;box-shadow:none}._voteBoxShowResult_3jamb_113 ._boldShowResult_3jamb_137{font-weight:var(--font-weight-bold, 700);font-variation-settings:var(--font-variation-bold, normal);color:var(--text-primary, #222222)}._outlined_3jamb_143{padding:7px 15px;border-radius:var(--box-border-radius, 6px);border:1px solid var(--text-primary, #222222)!important;white-space:nowrap}._voteButtonThesis_3jamb_150{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_3jamb_162{text-align:center!important}}._voteBoxActionsBody_3jamb_72 ._voteAction_3jamb_84:first-child ._voteButton_3jamb_98,._voteBoxActionsBody_3jamb_72 ._voteAction_3jamb_84:first-child ._voteButton_3jamb_98: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_3jamb_72 ._voteAction_3jamb_84:nth-child(2) ._voteButton_3jamb_98{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_3jamb_72 ._voteAction_3jamb_84:nth-child(2) ._voteButton_3jamb_98: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_3jamb_72 ._voteAction_3jamb_84:nth-child(3) ._voteButton_3jamb_98{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_3jamb_72 ._voteAction_3jamb_84:nth-child(3) ._voteButton_3jamb_98: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_3jamb_201 ._voteAction_3jamb_84:first-child ._voteButton_3jamb_98,._voteBoxActionsBodyOutlined_3jamb_201 ._voteAction_3jamb_84:first-child ._voteButton_3jamb_98: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_3jamb_201 ._voteAction_3jamb_84:nth-child(2) ._voteButton_3jamb_98{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_3jamb_201 ._voteAction_3jamb_84:nth-child(2) ._voteButton_3jamb_98: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_3jamb_201 ._voteAction_3jamb_84:nth-child(3) ._voteButton_3jamb_98{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_3jamb_201 ._voteAction_3jamb_84:nth-child(3) ._voteButton_3jamb_98:hover{background-color:var(--text-light, white)!important;color:var(--third-position-color-primary, #9b9b9b)!important;border-color:var(--third-position-color-primary, #9b9b9b)!important;border:1px solid var(--third-position-color-primary, #9b9b9b)!important}._voteBoxActionsBodyFilledNeutral_3jamb_240 ._voteAction_3jamb_84:nth-child(3) ._voteButton_3jamb_98{background-color:var(--third-position-color-primary, #9b9b9b)!important;color:var(--text-light, white)!important;border-color:var(--third-position-color-primary, #9b9b9b)!important;border:1px solid var(--third-position-color-primary, #9b9b9b)!important}._voteBoxActionsBodyFilledNeutral_3jamb_240 ._voteAction_3jamb_84:nth-child(3) ._voteButton_3jamb_98:hover{background-color:var(--third-position-color-primary, #9b9b9b)!important;color:var(--text-light, white)!important;border-color:var(--third-position-color-primary, #9b9b9b)!important;border:1px solid var(--third-position-color-primary, #9b9b9b)!important}._voteActionButton_3jamb_253{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_3jamb_253:focus:not(:focus-visible){outline:none;box-shadow:none}._voteActionButton_3jamb_253:disabled{cursor:default;opacity:.5}._sideIcon_3jamb_273 svg{margin-left:5px;fill:var(--text-primary, #222222)}._progress_3jamb_278{border-radius:var(--button-border-radius, var(--box-border-radius, 6px));color:var(--text-secondary, #5F5F5F);height:2.2em}._progressBar_3jamb_284{border-radius:var(--button-border-radius, var(--box-border-radius, 6px));height:100%}._voteResults_3jamb_11>div:first-child ._progress_3jamb_278 ._progressBar_3jamb_284{background-color:var(--for-primary-color, #cc6a6d)!important}._voteResults_3jamb_11>div:nth-child(2) ._progress_3jamb_278 ._progressBar_3jamb_284{background-color:var(--against-primary-color, #7980bb)!important}._voteResults_3jamb_11 div:nth-child(3) ._progress_3jamb_278 ._progressBar_3jamb_284{background-color:var(--third-position-color-primary, #9b9b9b)!important}._voteCommentCounts_3jamb_301{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-unit, 1em);width:100%;margin-top:var(--spacer-xxs, calc(var(--space-unit, 1em) * .25))!important}._debateNumberItem_3jamb_310{display:flex;flex:0 0 auto;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_3jamb_320{white-space:nowrap}._showResultButton_3jamb_324{background:none;border:0;padding:0;font:inherit;color:inherit;cursor:pointer}._showResultButton_3jamb_324:focus:not(:focus-visible){outline:none;box-shadow:none}._voteResultInfoText_3jamb_337{font-size:var(--font-size-small, 16px);color:var(--text-secondary, #5F5F5F);text-align:left;width:100%;align-self:flex-start}
@@ -1,4 +1,4 @@
1
- function P(g) {
1
+ function w(g) {
2
2
  try {
3
3
  const u = JSON.parse(localStorage.getItem(g));
4
4
  return u && u.access_token ? { authorization: "Bearer " + u.access_token } : {};
@@ -6,83 +6,83 @@ function P(g) {
6
6
  return {};
7
7
  }
8
8
  }
9
- const m = (g, u, S = "", $ = "") => ({
10
- getOne: (s, r, t = {}) => {
9
+ const d = (g, u, S = "", $ = "") => ({
10
+ getOne: (s, n, t = {}) => {
11
11
  t.api_key = S;
12
- const c = new URLSearchParams(t).toString(), n = `${u}/${s}/${r}?${c}`;
12
+ const r = new URLSearchParams(t).toString(), c = `${u}/${s}/${n}?${r}`;
13
13
  return new Promise((o, e) => {
14
- g.get(n).then((a) => {
14
+ g.get(c).then((a) => {
15
15
  o(a);
16
16
  }).catch((a) => {
17
17
  e(a);
18
18
  });
19
19
  });
20
20
  },
21
- getOneWithToken: (s, r, t = {}) => {
22
- const c = new URLSearchParams(t).toString(), n = `${u}/${s}/${r}?${c}`, o = {
23
- headers: P($)
21
+ getOneWithToken: (s, n, t = {}) => {
22
+ const r = new URLSearchParams(t).toString(), c = `${u}/${s}/${n}?${r}`, o = {
23
+ headers: w($)
24
24
  };
25
25
  return new Promise((e, a) => {
26
- g.get(n, o).then((i) => {
26
+ g.get(c, o).then((i) => {
27
27
  e(i);
28
28
  }).catch((i) => {
29
29
  a(i);
30
30
  });
31
31
  });
32
32
  },
33
- getList: (s, r = {}) => {
34
- r.api_key = S;
35
- const t = new URLSearchParams(r).toString(), c = `${u}/${s}?${t}`;
36
- return new Promise((n, o) => {
37
- g.get(c).then((e) => {
38
- n(e);
33
+ getList: (s, n = {}) => {
34
+ n.api_key = S;
35
+ const t = new URLSearchParams(n).toString(), r = `${u}/${s}?${t}`;
36
+ return new Promise((c, o) => {
37
+ g.get(r).then((e) => {
38
+ c(e);
39
39
  }).catch((e) => {
40
40
  o(e);
41
41
  });
42
42
  });
43
43
  },
44
- getListWithToken: (s, r = {}) => {
44
+ getListWithToken: (s, n = {}) => {
45
45
  const t = {
46
- headers: P($)
47
- }, c = new URLSearchParams(r).toString(), n = `${u}/${s}?${c}`;
46
+ headers: w($)
47
+ }, r = new URLSearchParams(n).toString(), c = `${u}/${s}?${r}`;
48
48
  return new Promise((o, e) => {
49
- g.get(n, t).then((a) => {
49
+ g.get(c, t).then((a) => {
50
50
  o(a);
51
51
  }).catch((a) => {
52
52
  e(a);
53
53
  });
54
54
  });
55
55
  },
56
- update: (s, r, t, c = {}, n = !0) => {
57
- const o = {};
58
- n ? o.headers = P($) : c.api_key = S;
59
- const e = new URLSearchParams(c).toString(), a = `${u}/${s}/${r}?${e}`;
60
- return new Promise((i, h) => {
61
- g.patch(a, t, o).then((w) => {
62
- i(w);
63
- }).catch((w) => {
64
- h(w);
56
+ update: (s, n, t, r = {}, c = !0, o = {}) => {
57
+ const e = { ...o };
58
+ c ? e.headers = w($) : r.api_key = S;
59
+ const a = new URLSearchParams(r).toString(), i = `${u}/${s}/${n}?${a}`;
60
+ return new Promise((h, P) => {
61
+ g.patch(i, t, e).then((m) => {
62
+ h(m);
63
+ }).catch((m) => {
64
+ P(m);
65
65
  });
66
66
  });
67
67
  },
68
- create: (s, r, t = {}, c = !0) => {
69
- const n = {};
70
- c ? n.headers = P($) : t.api_key = S;
71
- const o = new URLSearchParams(t).toString(), e = `${u}/${s}?${o}`;
72
- return new Promise((a, i) => {
73
- g.post(e, r, n).then((h) => {
74
- a(h);
75
- }).catch((h) => {
76
- i(h);
68
+ create: (s, n, t = {}, r = !0, c = {}) => {
69
+ const o = { ...c };
70
+ r ? o.headers = w($) : t.api_key = S;
71
+ const e = new URLSearchParams(t).toString(), a = `${u}/${s}?${e}`;
72
+ return new Promise((i, h) => {
73
+ g.post(a, n, o).then((P) => {
74
+ i(P);
75
+ }).catch((P) => {
76
+ h(P);
77
77
  });
78
78
  });
79
79
  },
80
- delete: (s, r, t = {}, c = !0) => {
81
- const n = {};
82
- c ? n.headers = P($) : t.api_key = S;
83
- const o = new URLSearchParams(t).toString(), e = `${u}/${s}/${r}?${o}`;
80
+ delete: (s, n, t = {}, r = !0) => {
81
+ const c = {};
82
+ r ? c.headers = w($) : t.api_key = S;
83
+ const o = new URLSearchParams(t).toString(), e = `${u}/${s}/${n}?${o}`;
84
84
  return new Promise((a, i) => {
85
- g.delete(e, n).then((h) => {
85
+ g.delete(e, c).then((h) => {
86
86
  a(h);
87
87
  }).catch((h) => {
88
88
  i(h);
@@ -90,12 +90,12 @@ const m = (g, u, S = "", $ = "") => ({
90
90
  });
91
91
  },
92
92
  getSettings: (s) => {
93
- const r = {
93
+ const n = {
94
94
  shortname: s
95
- }, t = new URLSearchParams(r).toString(), c = `${u}/settings?${t}`;
96
- return new Promise((n, o) => {
97
- g.post(c).then((e) => {
98
- n(e);
95
+ }, t = new URLSearchParams(n).toString(), r = `${u}/settings?${t}`;
96
+ return new Promise((c, o) => {
97
+ g.post(r).then((e) => {
98
+ c(e);
99
99
  }).catch((e) => {
100
100
  o(e);
101
101
  });
@@ -103,6 +103,6 @@ const m = (g, u, S = "", $ = "") => ({
103
103
  }
104
104
  });
105
105
  export {
106
- m as dataProvider,
107
- P as getAuthHeader
106
+ d as dataProvider,
107
+ w as getAuthHeader
108
108
  };