@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.
- package/dist/assets/components/argument/argument/Argument.module-gLfNRLks.css +1 -0
- package/dist/assets/components/consultation/consultation_box/ConsultationBox.module-BnTr5IaF.css +1 -0
- package/dist/assets/components/input/text_editor/{TextEditor.module-CxuSL3l3.css → TextEditor.module-DePSfOvG.css} +1 -1
- package/dist/assets/components/section/section_box/SectionBox.module-DUeUtdWr.css +1 -0
- package/dist/assets/components/source/context_source_list/ContextSourceList.module-D6X_0dB7.css +1 -0
- package/dist/assets/components/source/source_list_item/SourceListItem.module-mTxHhXPV.css +1 -0
- package/dist/assets/components/summary/summary/Summary.module-DjfmUlkW.css +1 -0
- package/dist/assets/components/summary/summary_box/SummaryBox.module-DQVkA8l7.css +1 -0
- package/dist/assets/components/vote/vote_box/VoteBox.module-CDrqb2SZ.css +1 -0
- package/dist/components/argument/argument/Argument.js +108 -112
- package/dist/components/argument/argument/Argument.module.scss.js +31 -31
- package/dist/components/consultation/consultation_box/ConsultationBox.js +111 -80
- package/dist/components/consultation/consultation_box/ConsultationBox.module.scss.js +21 -23
- package/dist/components/icons/spiegel_icons/index.js +46 -46
- package/dist/components/icons/stern_icons/index.js +70 -100
- package/dist/components/input/argument_input/ArgumentInput.js +142 -142
- package/dist/components/input/text_editor/TextEditor.js +124 -135
- package/dist/components/input/text_editor/TextEditor.module.scss.js +5 -5
- package/dist/components/input/text_editor/plugins/SetContentPlugin.js +13 -13
- package/dist/components/input/text_editor/plugins/SetRichContentPlugin.js +10 -10
- package/dist/components/list/paginated_list/PaginatedList.js +110 -112
- package/dist/components/proposal/proposal_box/ProposalBox.js +10 -8
- package/dist/components/section/section_box/SectionBox.js +10 -10
- package/dist/components/section/section_box/SectionBox.module.scss.js +9 -9
- package/dist/components/source/context_source_list/ContextSourceList.js +7 -8
- package/dist/components/source/context_source_list/ContextSourceList.module.scss.js +12 -14
- package/dist/components/source/source_list_item/SourceListItem.js +28 -42
- package/dist/components/source/source_list_item/SourceListItem.module.scss.js +6 -8
- package/dist/components/summary/summary/Summary.js +63 -41
- package/dist/components/summary/summary/Summary.module.scss.js +6 -10
- package/dist/components/summary/summary_box/SummaryBox.module.scss.js +9 -9
- package/dist/components/vote/vote_box/VoteBox.js +145 -123
- package/dist/components/vote/vote_box/VoteBox.module.scss.js +50 -50
- package/package.json +1 -1
- package/dist/assets/components/argument/argument/Argument.module-QZdPjj_i.css +0 -1
- package/dist/assets/components/consultation/consultation_box/ConsultationBox.module-D2an6OmR.css +0 -1
- package/dist/assets/components/section/section_box/SectionBox.module-qQs4B6bf.css +0 -1
- package/dist/assets/components/source/context_source_list/ContextSourceList.module-DUPbI-wb.css +0 -1
- package/dist/assets/components/source/source_list_item/SourceListItem.module-fm_uHuY4.css +0 -1
- package/dist/assets/components/summary/summary/Summary.module-2bnx3egy.css +0 -1
- package/dist/assets/components/summary/summary_box/SummaryBox.module-Dr9PevSJ.css +0 -1
- package/dist/assets/components/vote/vote_box/VoteBox.module-C9Q6gBw3.css +0 -1
- package/dist/components/icons/spiegel_icons/Downvote.js +0 -6
- package/dist/components/icons/spiegel_icons/Upvote.js +0 -6
|
@@ -1,180 +1,178 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import Qe, { useState as m, useEffect as
|
|
5
|
-
import { useIntl as
|
|
6
|
-
import { useLocation as
|
|
1
|
+
import { jsxs as U, jsx as d, Fragment as Le } from "react/jsx-runtime";
|
|
2
|
+
import je from "@rooks/use-previous";
|
|
3
|
+
import Be from "classnames";
|
|
4
|
+
import Qe, { useState as m, useEffect as g } from "react";
|
|
5
|
+
import { useIntl as Ue } from "react-intl";
|
|
6
|
+
import { useLocation as We } from "react-router";
|
|
7
7
|
import a from "./PaginatedList.module.scss.js";
|
|
8
|
-
import { ActionBar as
|
|
9
|
-
import { useList as
|
|
10
|
-
import { useDataProvider as
|
|
11
|
-
import { useResponsive as
|
|
12
|
-
import { useData as
|
|
13
|
-
import { uniqueBy as
|
|
14
|
-
import { Pagination as
|
|
15
|
-
import { StandardErrorBoundary as
|
|
16
|
-
const
|
|
8
|
+
import { ActionBar as ze } from "./action_bar/ActionBar.js";
|
|
9
|
+
import { useList as Ge } from "../list_provider/useList.js";
|
|
10
|
+
import { useDataProvider as Pe } 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 = ({
|
|
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: _,
|
|
24
24
|
currentListId: n,
|
|
25
25
|
withToken: ae,
|
|
26
|
-
perPage:
|
|
26
|
+
perPage: h,
|
|
27
27
|
perPageParam: le = "per_page",
|
|
28
28
|
pageParam: ie = "page",
|
|
29
29
|
sortParam: oe = "sort",
|
|
30
30
|
queryParam: me = "query",
|
|
31
|
-
tagParam:
|
|
31
|
+
tagParam: re = "tag_id",
|
|
32
32
|
totalHeaderParam: D = "total",
|
|
33
|
-
onUpdateTotal:
|
|
33
|
+
onUpdateTotal: W,
|
|
34
34
|
onElementsLoad: R,
|
|
35
|
-
transformData:
|
|
36
|
-
uniqueIdKey:
|
|
37
|
-
children:
|
|
35
|
+
transformData: z,
|
|
36
|
+
uniqueIdKey: p = "id",
|
|
37
|
+
children: de,
|
|
38
38
|
resourcePropName: fe,
|
|
39
|
-
loadingComponent:
|
|
39
|
+
loadingComponent: G,
|
|
40
40
|
searchBar: ce = !1,
|
|
41
41
|
title: ue,
|
|
42
|
-
emptyListComponent:
|
|
43
|
-
emptyText:
|
|
44
|
-
display:
|
|
45
|
-
elementsPerLine:
|
|
42
|
+
emptyListComponent: P,
|
|
43
|
+
emptyText: V,
|
|
44
|
+
display: X,
|
|
45
|
+
elementsPerLine: Y,
|
|
46
46
|
indexLayout: Ee = !1,
|
|
47
47
|
gap: ge = "1em",
|
|
48
48
|
withPagination: he = !0,
|
|
49
|
-
numberElements:
|
|
49
|
+
numberElements: Z,
|
|
50
50
|
countless: pe,
|
|
51
51
|
onElementClick: ve,
|
|
52
52
|
withUrlParams: Se = !1,
|
|
53
|
-
onLoadNewPage:
|
|
53
|
+
onLoadNewPage: $
|
|
54
54
|
}) => {
|
|
55
|
-
const J =
|
|
56
|
-
|
|
57
|
-
), [
|
|
55
|
+
const J = Ue(), t = Ge(), H = Pe(), I = We(), { isMobile: K, isTablet: ye, isDesktop: L } = Ve(), [b, f] = m(!1), [we, Ne] = m(!1), [v, S] = Xe(n, []), [O, Me] = m(
|
|
56
|
+
v?.length || 0
|
|
57
|
+
), [c, j] = m(M || 1), [y, B] = m(w || null), [k, q] = m(null), [Re, ee] = m(null), r = 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
|
-
}, [
|
|
63
|
-
M && M !==
|
|
64
|
-
if (
|
|
65
|
-
|
|
66
|
-
for (const e of
|
|
62
|
+
}, [C, F] = m(be()), [Q, T] = m(ke()), te = je(o);
|
|
63
|
+
M && M !== c && j(M), w !== void 0 && w !== y && B(w), N !== void 0 && N !== C && F(N), te && JSON.stringify(o) !== JSON.stringify(te) && JSON.stringify(o) !== JSON.stringify(Q) && T(o), g(() => {
|
|
64
|
+
if (r.get("tagId") && q(Number.parseInt(r.get("tagId"))), r.get("search") && B(r.get("search")), r.get("sort")) {
|
|
65
|
+
F(r.get("sort"));
|
|
66
|
+
for (const e of r.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
|
|
73
|
+
for (const e of r.keys()) {
|
|
74
74
|
i?.map((s) => {
|
|
75
|
-
s.name === e && (
|
|
75
|
+
s.name === e && (T({
|
|
76
76
|
...o,
|
|
77
77
|
[s.name]: s.value
|
|
78
78
|
}), ee(s.name));
|
|
79
79
|
});
|
|
80
80
|
break;
|
|
81
81
|
}
|
|
82
|
-
}, [I.search]),
|
|
83
|
-
|
|
82
|
+
}, [I.search]), g(() => {
|
|
83
|
+
_ ? (j(1), S([]), f(!0), se(1)) : f(!1);
|
|
84
84
|
}, [
|
|
85
|
-
|
|
85
|
+
C,
|
|
86
86
|
Q,
|
|
87
87
|
y,
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
]),
|
|
92
|
-
|
|
93
|
-
}, [
|
|
88
|
+
_,
|
|
89
|
+
k,
|
|
90
|
+
h
|
|
91
|
+
]), g(() => {
|
|
92
|
+
c > 1 && (f(!0), se(c));
|
|
93
|
+
}, [c]), g(() => {
|
|
94
94
|
if (t.addElements && n in t.addElements && t.addElements[n].length > 0) {
|
|
95
95
|
Te(t.addElements[n]);
|
|
96
96
|
const e = t.addElements;
|
|
97
97
|
delete e[n], t.setAddElements(e);
|
|
98
98
|
}
|
|
99
|
-
}, [t.addElements]),
|
|
100
|
-
if (t.updateElements && n in t.updateElements &&
|
|
101
|
-
|
|
99
|
+
}, [t.addElements]), g(() => {
|
|
100
|
+
if (t.updateElements && n in t.updateElements && t.updateElements[n].length > 0) {
|
|
101
|
+
xe(t.updateElements[n]);
|
|
102
102
|
const e = t.updateElements;
|
|
103
103
|
delete e[n], t.setUpdateElements(e);
|
|
104
104
|
}
|
|
105
|
-
}, [t.updateElements]),
|
|
105
|
+
}, [t.updateElements]), g(() => {
|
|
106
106
|
if (t.removeElements && n in t.removeElements && t.removeElements[n].length > 0) {
|
|
107
|
-
|
|
107
|
+
Ae(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" ? (
|
|
113
|
+
e.type === "filter" ? (F(""), T({
|
|
114
114
|
...o,
|
|
115
115
|
[e.name]: e.value
|
|
116
|
-
})) : (
|
|
116
|
+
})) : (F(e.value), T(o ? { ...o } : {}));
|
|
117
117
|
}, Fe = () => {
|
|
118
|
-
typeof
|
|
118
|
+
typeof $ == "function" && $() !== null || j(c + 1);
|
|
119
119
|
}, se = (e) => {
|
|
120
120
|
const s = ae ? H.getListWithToken : H.getList;
|
|
121
|
-
if ((e - 1) *
|
|
122
|
-
const
|
|
121
|
+
if ((e - 1) * h <= (Z || O) || e === 1) {
|
|
122
|
+
const u = {
|
|
123
123
|
[ie]: e,
|
|
124
|
-
[le]:
|
|
125
|
-
...
|
|
124
|
+
[le]: h,
|
|
125
|
+
...C && !y && { [oe]: C },
|
|
126
126
|
...y && { [me]: y },
|
|
127
127
|
...pe === !0 && { countless: !0 },
|
|
128
128
|
...Q,
|
|
129
|
-
...
|
|
129
|
+
...k && { [re]: k }
|
|
130
130
|
};
|
|
131
|
-
s(
|
|
132
|
-
const
|
|
133
|
-
|
|
134
|
-
Number.parseInt(
|
|
135
|
-
),
|
|
136
|
-
let
|
|
137
|
-
R && R(
|
|
131
|
+
s(_, u).then((l) => {
|
|
132
|
+
const x = l.headers;
|
|
133
|
+
x && D in x && (Me(
|
|
134
|
+
Number.parseInt(x[D || "total"], 10)
|
|
135
|
+
), W && W(x[D || "total"]));
|
|
136
|
+
let E = l?.data?.data;
|
|
137
|
+
R && R(E), z && (E = E.filter(z)), t.addElements && n in t.addElements && t.addElements[n].length > 0 && (E = [...t.addElements[n], E]), _e(E), f(!1);
|
|
138
138
|
}).catch((l) => {
|
|
139
|
-
console.error(l), l?.response?.status !== 404 && Ne(!0),
|
|
139
|
+
console.error(l), l?.response?.status !== 404 && Ne(!0), f(!1);
|
|
140
140
|
});
|
|
141
141
|
} else
|
|
142
|
-
|
|
142
|
+
f(!1);
|
|
143
143
|
}, Te = (e) => {
|
|
144
144
|
S(
|
|
145
|
-
(s) =>
|
|
145
|
+
(s) => A([...e, ...s], p || "id")
|
|
146
146
|
), R && R(e);
|
|
147
|
-
}, _e = (e) => {
|
|
148
|
-
S((s) => {
|
|
149
|
-
let r = s;
|
|
150
|
-
return e.forEach(
|
|
151
|
-
(l) => r = r.map(
|
|
152
|
-
(f) => f.id === l.id ? l : f
|
|
153
|
-
)
|
|
154
|
-
), x(r, v || "id");
|
|
155
|
-
});
|
|
156
147
|
}, xe = (e) => {
|
|
157
|
-
|
|
148
|
+
let s = v;
|
|
149
|
+
e.forEach(
|
|
150
|
+
(u) => s = s.map(
|
|
151
|
+
(l) => l.id === u.id ? u : l
|
|
152
|
+
)
|
|
153
|
+
), S(A(s, p || "id"));
|
|
154
|
+
}, Ae = (e) => {
|
|
155
|
+
const s = e.map((l) => l.id), u = v.filter(
|
|
158
156
|
(l) => s.indexOf(l.id) === -1
|
|
159
157
|
);
|
|
160
|
-
S(
|
|
161
|
-
},
|
|
158
|
+
S(A(u, p || "id"));
|
|
159
|
+
}, _e = (e) => {
|
|
162
160
|
S(
|
|
163
|
-
(s) =>
|
|
161
|
+
(s) => A([...s, ...e], p || "id")
|
|
164
162
|
);
|
|
165
|
-
}, De = (e, s) => e !== void 0 ? /* @__PURE__ */
|
|
163
|
+
}, De = (e, s) => e !== void 0 ? /* @__PURE__ */ d(
|
|
166
164
|
"li",
|
|
167
165
|
{
|
|
168
166
|
className: a.paginatedListItem,
|
|
169
167
|
"data-testid": "list-item",
|
|
170
168
|
onClick: ve,
|
|
171
|
-
children: /* @__PURE__ */
|
|
169
|
+
children: /* @__PURE__ */ d(Ze, { hideMessage: !0, children: Qe.cloneElement(de, {
|
|
172
170
|
index: s,
|
|
173
171
|
[fe]: e
|
|
174
172
|
}) })
|
|
175
173
|
},
|
|
176
|
-
|
|
177
|
-
) : null, Je = (e) =>
|
|
174
|
+
e[p || "id"]
|
|
175
|
+
) : null, Je = (e) => G ? /* @__PURE__ */ d("li", { className: a.paginatedListItem, children: G }, e) : null;
|
|
178
176
|
if (we)
|
|
179
177
|
throw new Error(
|
|
180
178
|
J.formatMessage({
|
|
@@ -182,57 +180,57 @@ const dt = ({
|
|
|
182
180
|
defaultMessage: "Error when loading content."
|
|
183
181
|
})
|
|
184
182
|
);
|
|
185
|
-
return /* @__PURE__ */
|
|
186
|
-
/* @__PURE__ */
|
|
187
|
-
|
|
183
|
+
return /* @__PURE__ */ U("div", { className: a.listContainer, children: [
|
|
184
|
+
/* @__PURE__ */ d(
|
|
185
|
+
ze,
|
|
188
186
|
{
|
|
189
187
|
title: ue,
|
|
190
188
|
sortOptions: i,
|
|
191
189
|
defaultSelectOption: Re,
|
|
192
190
|
searchBar: ce,
|
|
193
191
|
tagList: ne,
|
|
194
|
-
activeTagId:
|
|
195
|
-
onSearch: (e) =>
|
|
192
|
+
activeTagId: k,
|
|
193
|
+
onSearch: (e) => B(e),
|
|
196
194
|
onSortChange: Ce,
|
|
197
195
|
onTagChange: (e) => q(e),
|
|
198
196
|
withUrlParams: Se
|
|
199
197
|
}
|
|
200
198
|
),
|
|
201
|
-
!b &&
|
|
199
|
+
!b && v.length === 0 ? P ? /* @__PURE__ */ d("div", { className: a.emptyListElement, children: P }) : /* @__PURE__ */ d("div", { className: a.emptyList, children: V || J.formatMessage({
|
|
202
200
|
id: "info.emptyList",
|
|
203
201
|
defaultMessage: "No items for now."
|
|
204
|
-
}) }) : /* @__PURE__ */
|
|
205
|
-
/* @__PURE__ */
|
|
202
|
+
}) }) : /* @__PURE__ */ U(Le, { children: [
|
|
203
|
+
/* @__PURE__ */ U(
|
|
206
204
|
"ul",
|
|
207
205
|
{
|
|
208
|
-
className:
|
|
209
|
-
[a.paginatedListIsTablet]: !K && !
|
|
210
|
-
[a.centeredList]:
|
|
211
|
-
[a.column]:
|
|
212
|
-
[a.twoElementsPerLine]:
|
|
213
|
-
[a.oneElementPerLine]:
|
|
206
|
+
className: Be(a.paginatedList, {
|
|
207
|
+
[a.paginatedListIsTablet]: !K && !L,
|
|
208
|
+
[a.centeredList]: X === "column",
|
|
209
|
+
[a.column]: X === "column",
|
|
210
|
+
[a.twoElementsPerLine]: Y === 2,
|
|
211
|
+
[a.oneElementPerLine]: Y === 1,
|
|
214
212
|
[a.indexLayoutList]: Ee,
|
|
215
|
-
[a.listIsDesktop]:
|
|
216
|
-
[a.listIsTablet]: ye && !
|
|
213
|
+
[a.listIsDesktop]: L,
|
|
214
|
+
[a.listIsTablet]: ye && !L,
|
|
217
215
|
[a.listIsMobile]: K
|
|
218
216
|
}),
|
|
219
217
|
style: { gap: ge },
|
|
220
218
|
children: [
|
|
221
|
-
|
|
222
|
-
b ? Array(
|
|
219
|
+
v.map(De),
|
|
220
|
+
b ? Array(h).fill().map((e, s) => s).map(Je) : null
|
|
223
221
|
]
|
|
224
222
|
}
|
|
225
223
|
),
|
|
226
|
-
!b && he !== !1 && /* @__PURE__ */
|
|
227
|
-
|
|
224
|
+
!b && he !== !1 && /* @__PURE__ */ d(
|
|
225
|
+
Ye,
|
|
228
226
|
{
|
|
229
227
|
buttonText: J.formatMessage({
|
|
230
228
|
id: "action.see_more",
|
|
231
229
|
defaultMessage: "See more"
|
|
232
230
|
}),
|
|
233
|
-
currentPage:
|
|
234
|
-
perPage:
|
|
235
|
-
totalElements:
|
|
231
|
+
currentPage: c,
|
|
232
|
+
perPage: h,
|
|
233
|
+
totalElements: Z || O,
|
|
236
234
|
onLoad: Fe,
|
|
237
235
|
isLoading: b,
|
|
238
236
|
hideLoader: !0,
|
|
@@ -243,5 +241,5 @@ const dt = ({
|
|
|
243
241
|
] });
|
|
244
242
|
};
|
|
245
243
|
export {
|
|
246
|
-
|
|
244
|
+
rt as PaginatedList
|
|
247
245
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as t, jsxs as f, Fragment as y } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import g from "
|
|
2
|
+
import u from "classnames";
|
|
3
|
+
import { useState as g, useEffect as I } from "react";
|
|
4
4
|
import { useIntl as N } from "react-intl";
|
|
5
5
|
import o from "./ProposalBox.module.scss.js";
|
|
6
6
|
import { useConfig as S } from "../../data/config_provider/useConfig.js";
|
|
@@ -13,14 +13,15 @@ import { ReadMore as D } from "../../text/read_more/ReadMore.js";
|
|
|
13
13
|
import { TranslationButton as P } from "../../translation/translation_button/TranslationButton.js";
|
|
14
14
|
import { ContentFooter as R } from "../../user_content/content_footer/ContentFooter.js";
|
|
15
15
|
import { UpDownVoteBox as $ } from "../../vote/up_down_vote_box/UpDownVoteBox.js";
|
|
16
|
-
const
|
|
16
|
+
const Z = ({
|
|
17
17
|
proposal: e,
|
|
18
18
|
disabled: i = !1,
|
|
19
19
|
fixedContentHeight: C,
|
|
20
|
+
contentMaxHeight: F = 156,
|
|
20
21
|
enableEdition: T = !0,
|
|
21
22
|
hideFooter: _ = !1
|
|
22
23
|
}) => {
|
|
23
|
-
const [d,
|
|
24
|
+
const [d, x] = g(null), [v, M] = g(!1), a = N(), r = S(), { currentUser: l } = B(), c = l?.moderation_status === "banned", m = `proposal_${e.id}`, s = p(
|
|
24
25
|
e.title,
|
|
25
26
|
e.language,
|
|
26
27
|
"title",
|
|
@@ -36,7 +37,7 @@ const Y = ({
|
|
|
36
37
|
const h = JSON.parse(e.rich_content);
|
|
37
38
|
if (h.hasOwnProperty("root")) {
|
|
38
39
|
const b = H(h);
|
|
39
|
-
|
|
40
|
+
x(b);
|
|
40
41
|
}
|
|
41
42
|
}
|
|
42
43
|
}, [e.rich_content]);
|
|
@@ -46,7 +47,7 @@ const Y = ({
|
|
|
46
47
|
return /* @__PURE__ */ t(L, { elementId: m, onScroll: () => M(!0), children: /* @__PURE__ */ f(
|
|
47
48
|
"div",
|
|
48
49
|
{
|
|
49
|
-
className:
|
|
50
|
+
className: u(o.proposalBoxContainer, { [o.flash]: v }),
|
|
50
51
|
id: m,
|
|
51
52
|
children: [
|
|
52
53
|
/* @__PURE__ */ t(
|
|
@@ -61,7 +62,7 @@ const Y = ({
|
|
|
61
62
|
/* @__PURE__ */ t(
|
|
62
63
|
"div",
|
|
63
64
|
{
|
|
64
|
-
className:
|
|
65
|
+
className: u(o.proposalBoxContent, {
|
|
65
66
|
[o.fixedHeight]: C
|
|
66
67
|
}),
|
|
67
68
|
children: /* @__PURE__ */ t("div", { children: /* @__PURE__ */ t(
|
|
@@ -109,6 +110,7 @@ const Y = ({
|
|
|
109
110
|
reportType: "Proposal",
|
|
110
111
|
deleteType: "proposals",
|
|
111
112
|
deleteListId: "proposalsList",
|
|
113
|
+
shareModal: !0,
|
|
112
114
|
shareModalTitle: a.formatMessage({ id: "share.proposal" }),
|
|
113
115
|
shareUrl: `https://app.logora.fr/share/p/${e.id}`,
|
|
114
116
|
shareTitle: a.formatMessage({ id: "share.proposal.title" }),
|
|
@@ -135,5 +137,5 @@ const Y = ({
|
|
|
135
137
|
) });
|
|
136
138
|
};
|
|
137
139
|
export {
|
|
138
|
-
|
|
140
|
+
Z as ProposalBox
|
|
139
141
|
};
|
|
@@ -6,20 +6,20 @@ import { useResponsive as N } from "../../hooks/use_responsive/useResponsive.js"
|
|
|
6
6
|
import { Icon as g } from "../../icons/icon/Icon.js";
|
|
7
7
|
const I = ({
|
|
8
8
|
isCollapsible: t = !1,
|
|
9
|
-
isCollapsedByDefault:
|
|
10
|
-
title:
|
|
9
|
+
isCollapsedByDefault: a = !1,
|
|
10
|
+
title: m,
|
|
11
11
|
subtitle: r = "",
|
|
12
|
-
className:
|
|
13
|
-
titleClassName:
|
|
14
|
-
children:
|
|
12
|
+
className: n,
|
|
13
|
+
titleClassName: d,
|
|
14
|
+
children: l
|
|
15
15
|
}) => {
|
|
16
|
-
const [c, h] = x(
|
|
16
|
+
const [c, h] = x(a), { isMobile: f } = N(), p = () => {
|
|
17
17
|
t && h((v) => !v);
|
|
18
18
|
};
|
|
19
19
|
return /* @__PURE__ */ s(
|
|
20
20
|
"div",
|
|
21
21
|
{
|
|
22
|
-
className: o(e.sectionBoxContainer,
|
|
22
|
+
className: o(e.sectionBoxContainer, {
|
|
23
23
|
[e.isMobile]: f
|
|
24
24
|
}),
|
|
25
25
|
children: [
|
|
@@ -30,8 +30,8 @@ const I = ({
|
|
|
30
30
|
onClick: t ? p : null,
|
|
31
31
|
children: [
|
|
32
32
|
/* @__PURE__ */ s("div", { className: e.titleContainer, children: [
|
|
33
|
-
/* @__PURE__ */ i("div", { className: o(
|
|
34
|
-
r && /* @__PURE__ */ i("div", { className: o(e.subtitle), children: r })
|
|
33
|
+
/* @__PURE__ */ i("div", { className: o(d, e.title), children: m }),
|
|
34
|
+
r && /* @__PURE__ */ i("div", { className: o(n, e.subtitle), children: r })
|
|
35
35
|
] }),
|
|
36
36
|
t && /* @__PURE__ */ i(
|
|
37
37
|
g,
|
|
@@ -47,7 +47,7 @@ const I = ({
|
|
|
47
47
|
]
|
|
48
48
|
}
|
|
49
49
|
),
|
|
50
|
-
(!c || !t) && /* @__PURE__ */ i("div", { className: o(e.body), children:
|
|
50
|
+
(!c || !t) && /* @__PURE__ */ i("div", { className: o(e.body, n), children: l })
|
|
51
51
|
]
|
|
52
52
|
}
|
|
53
53
|
);
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import '../../../assets/components/section/section_box/SectionBox.module-
|
|
1
|
+
import '../../../assets/components/section/section_box/SectionBox.module-DUeUtdWr.css';const t = "_sectionBoxContainer_m9zal_3", o = "_isMobile_m9zal_15", e = "_header_m9zal_19", i = "_collapsible_m9zal_26", l = "_iconLightArrow_m9zal_30", n = "_iconRotated_m9zal_34", _ = "_titleContainer_m9zal_38", a = "_title_m9zal_38", s = "_subtitle_m9zal_52", c = "_body_m9zal_57", r = {
|
|
2
2
|
sectionBoxContainer: t,
|
|
3
3
|
isMobile: o,
|
|
4
4
|
header: e,
|
|
5
5
|
collapsible: i,
|
|
6
|
-
iconLightArrow:
|
|
6
|
+
iconLightArrow: l,
|
|
7
7
|
iconRotated: n,
|
|
8
8
|
titleContainer: _,
|
|
9
|
-
title:
|
|
10
|
-
subtitle:
|
|
11
|
-
body:
|
|
9
|
+
title: a,
|
|
10
|
+
subtitle: s,
|
|
11
|
+
body: c
|
|
12
12
|
};
|
|
13
13
|
export {
|
|
14
|
-
|
|
14
|
+
c as body,
|
|
15
15
|
i as collapsible,
|
|
16
16
|
r as default,
|
|
17
17
|
e as header,
|
|
18
|
-
|
|
18
|
+
l as iconLightArrow,
|
|
19
19
|
n as iconRotated,
|
|
20
20
|
o as isMobile,
|
|
21
21
|
t as sectionBoxContainer,
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
s as subtitle,
|
|
23
|
+
a as title,
|
|
24
24
|
_ as titleContainer
|
|
25
25
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import m from "classnames";
|
|
3
3
|
import "react";
|
|
4
|
-
import { useIntl as
|
|
4
|
+
import { useIntl as p } from "react-intl";
|
|
5
5
|
import e from "./ContextSourceList.module.scss.js";
|
|
6
|
-
import { useResponsive as
|
|
6
|
+
import { useResponsive as c } from "../../hooks/use_responsive/useResponsive.js";
|
|
7
7
|
import { SectionBox as u } from "../../section/section_box/SectionBox.js";
|
|
8
8
|
import { Link as d } from "../../action/link/Link.js";
|
|
9
9
|
import { ContextSourceBox as f } from "../context_source_box/ContextSourceBox.js";
|
|
10
|
-
const
|
|
11
|
-
const r =
|
|
10
|
+
const S = ({ sources: i = [] }) => {
|
|
11
|
+
const r = p(), { isMobile: l, isTablet: s, isDesktop: n } = c(), a = (t) => /* @__PURE__ */ o(
|
|
12
12
|
d,
|
|
13
13
|
{
|
|
14
14
|
className: e.listItem,
|
|
@@ -30,7 +30,6 @@ const M = ({ sources: i = [] }) => {
|
|
|
30
30
|
return /* @__PURE__ */ o(
|
|
31
31
|
u,
|
|
32
32
|
{
|
|
33
|
-
className: e.sectionBox,
|
|
34
33
|
isCollapsible: !0,
|
|
35
34
|
isCollapsedByDefault: !1,
|
|
36
35
|
title: r.formatMessage({
|
|
@@ -42,8 +41,8 @@ const M = ({ sources: i = [] }) => {
|
|
|
42
41
|
{
|
|
43
42
|
className: m(e.content, {
|
|
44
43
|
[e.contentDesktop]: n,
|
|
45
|
-
[e.contentTablet]:
|
|
46
|
-
[e.contentMobile]:
|
|
44
|
+
[e.contentTablet]: s,
|
|
45
|
+
[e.contentMobile]: l
|
|
47
46
|
}),
|
|
48
47
|
children: i.map(a)
|
|
49
48
|
}
|
|
@@ -52,5 +51,5 @@ const M = ({ sources: i = [] }) => {
|
|
|
52
51
|
);
|
|
53
52
|
};
|
|
54
53
|
export {
|
|
55
|
-
|
|
54
|
+
S as ContextSourceList
|
|
56
55
|
};
|
|
@@ -1,17 +1,15 @@
|
|
|
1
|
-
import '../../../assets/components/source/context_source_list/ContextSourceList.module-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
listItem: s
|
|
1
|
+
import '../../../assets/components/source/context_source_list/ContextSourceList.module-D6X_0dB7.css';const t = "_content_19ocx_10", n = "_contentMobile_19ocx_14", o = "_contentTablet_19ocx_17", e = "_contentDesktop_19ocx_20", c = "_listItem_19ocx_24", s = {
|
|
2
|
+
content: t,
|
|
3
|
+
contentMobile: n,
|
|
4
|
+
contentTablet: o,
|
|
5
|
+
contentDesktop: e,
|
|
6
|
+
listItem: c
|
|
8
7
|
};
|
|
9
8
|
export {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
t as sectionBox
|
|
9
|
+
t as content,
|
|
10
|
+
e as contentDesktop,
|
|
11
|
+
n as contentMobile,
|
|
12
|
+
o as contentTablet,
|
|
13
|
+
s as default,
|
|
14
|
+
c as listItem
|
|
17
15
|
};
|