@logora/debate 0.3.88 → 0.3.90
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/follow/follow_button/FollowButton.module-Da-cPgwT.css +1 -0
- package/dist/assets/components/input/text_editor/{TextEditor.module-CxuSL3l3.css → TextEditor.module-DePSfOvG.css} +1 -1
- package/dist/assets/components/list/paginated_list/action_bar/ActionBar.module-pxwFC_Y2.css +1 -0
- package/dist/assets/components/proposal/proposal_box/ProposalBox.module-T4ms_LQ7.css +1 -0
- 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 +106 -111
- 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 +29 -31
- package/dist/components/dialog/dropdown/Dropdown.js +28 -35
- package/dist/components/follow/follow_button/FollowButton.js +16 -17
- package/dist/components/follow/follow_button/FollowButton.module.scss.js +4 -6
- package/dist/components/icons/bild_icons/index.js +56 -58
- package/dist/components/icons/hero_icons/index.js +18 -20
- package/dist/components/icons/krone_icons/index.js +46 -48
- package/dist/components/icons/regular_icons/index.js +18 -20
- package/dist/components/icons/spiegel_icons/index.js +52 -54
- package/dist/components/icons/stern_icons/index.js +70 -102
- package/dist/components/input/argument_input/ArgumentInput.js +197 -201
- package/dist/components/input/select/Select.js +19 -19
- package/dist/components/input/text_editor/TextEditor.js +129 -143
- package/dist/components/input/text_editor/TextEditor.module.scss.js +5 -5
- package/dist/components/input/text_editor/plugins/FocusPlugin.js +8 -12
- 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/input/text_editor/plugins/ToolbarPlugin.js +72 -70
- package/dist/components/list/paginated_list/PaginatedList.js +125 -131
- package/dist/components/list/paginated_list/action_bar/ActionBar.js +50 -53
- package/dist/components/list/paginated_list/action_bar/ActionBar.module.scss.js +16 -18
- package/dist/components/notification/notification_menu/NotificationMenu.js +22 -23
- package/dist/components/proposal/proposal_box/ProposalBox.js +59 -70
- package/dist/components/proposal/proposal_box/ProposalBox.module.scss.js +10 -14
- 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_box/ContextSourceBox.js +7 -7
- package/dist/components/source/context_source_list/ContextSourceList.js +13 -10
- 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/source/source_modal/SourceModal.js +15 -15
- 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 +143 -122
- package/dist/components/vote/vote_box/VoteBox.module.scss.js +48 -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-DjNiVt-p.css +0 -1
- package/dist/assets/components/follow/follow_button/FollowButton.module-C9YXM8AM.css +0 -1
- package/dist/assets/components/list/paginated_list/action_bar/ActionBar.module-DvwCbS9k.css +0 -1
- package/dist/assets/components/proposal/proposal_box/ProposalBox.module-Dm8XDnr1.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-D5sSSHpi.css +0 -1
- package/dist/components/icons/regular_icons/Follow.js +0 -6
- package/dist/components/icons/spiegel_icons/Downvote.js +0 -6
- package/dist/components/icons/spiegel_icons/Upvote.js +0 -6
|
@@ -2,13 +2,13 @@ import { jsxs as a, Fragment as n, jsx as s } from "react/jsx-runtime";
|
|
|
2
2
|
import "react";
|
|
3
3
|
import { useIntl as l, FormattedDate as m } from "react-intl";
|
|
4
4
|
import e from "./ContextSourceBox.module.scss.js";
|
|
5
|
-
const
|
|
5
|
+
const g = ({ title: t, imageUrl: c, date: i, author: r }) => {
|
|
6
6
|
const o = l();
|
|
7
7
|
return /* @__PURE__ */ a("div", { className: e.container, children: [
|
|
8
8
|
/* @__PURE__ */ a("div", { className: e.content, children: [
|
|
9
9
|
/* @__PURE__ */ a("div", { className: e.infos, children: [
|
|
10
|
-
|
|
11
|
-
/* @__PURE__ */ s("span", { className: e.sourceAuthor, children:
|
|
10
|
+
r && /* @__PURE__ */ a(n, { children: [
|
|
11
|
+
/* @__PURE__ */ s("span", { className: e.sourceAuthor, children: r }),
|
|
12
12
|
/* @__PURE__ */ s("span", { className: e.separator, children: "·" })
|
|
13
13
|
] }),
|
|
14
14
|
/* @__PURE__ */ s("span", { className: e.sourcePublishedDate, children: /* @__PURE__ */ s(
|
|
@@ -21,21 +21,21 @@ const x = ({ title: r, imageUrl: c, date: i, author: t }) => {
|
|
|
21
21
|
}
|
|
22
22
|
) })
|
|
23
23
|
] }),
|
|
24
|
-
/* @__PURE__ */ s("div", { className: e.sourceTitle, children:
|
|
24
|
+
/* @__PURE__ */ s("div", { className: e.sourceTitle, children: t })
|
|
25
25
|
] }),
|
|
26
26
|
/* @__PURE__ */ s(
|
|
27
27
|
"img",
|
|
28
28
|
{
|
|
29
29
|
src: c,
|
|
30
30
|
alt: o.formatMessage({
|
|
31
|
-
id: "source.context_source_box.alt"
|
|
31
|
+
id: "source.context_source_box.alt",
|
|
32
|
+
defaultMessage: "Debate source image"
|
|
32
33
|
}),
|
|
33
|
-
"data-testid": "context-source-image",
|
|
34
34
|
className: e.image
|
|
35
35
|
}
|
|
36
36
|
)
|
|
37
37
|
] });
|
|
38
38
|
};
|
|
39
39
|
export {
|
|
40
|
-
|
|
40
|
+
g as ContextSourceBox
|
|
41
41
|
};
|
|
@@ -1,13 +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 p } from "react-intl";
|
|
4
5
|
import e from "./ContextSourceList.module.scss.js";
|
|
5
|
-
import { useResponsive as
|
|
6
|
-
import { SectionBox as
|
|
6
|
+
import { useResponsive as c } from "../../hooks/use_responsive/useResponsive.js";
|
|
7
|
+
import { SectionBox as u } from "../../section/section_box/SectionBox.js";
|
|
7
8
|
import { Link as d } from "../../action/link/Link.js";
|
|
8
|
-
import { ContextSourceBox as
|
|
9
|
-
const
|
|
10
|
-
const { isMobile: l, isTablet: s, isDesktop: n } =
|
|
9
|
+
import { ContextSourceBox as f } from "../context_source_box/ContextSourceBox.js";
|
|
10
|
+
const S = ({ sources: i = [] }) => {
|
|
11
|
+
const r = p(), { isMobile: l, isTablet: s, isDesktop: n } = c(), a = (t) => /* @__PURE__ */ o(
|
|
11
12
|
d,
|
|
12
13
|
{
|
|
13
14
|
className: e.listItem,
|
|
@@ -15,7 +16,7 @@ const C = ({ sources: i = [], title: r = "" }) => {
|
|
|
15
16
|
target: "_blank",
|
|
16
17
|
external: !0,
|
|
17
18
|
children: /* @__PURE__ */ o(
|
|
18
|
-
|
|
19
|
+
f,
|
|
19
20
|
{
|
|
20
21
|
imageUrl: t.origin_image_url,
|
|
21
22
|
author: t.publisher,
|
|
@@ -27,12 +28,14 @@ const C = ({ sources: i = [], title: r = "" }) => {
|
|
|
27
28
|
t.id
|
|
28
29
|
);
|
|
29
30
|
return /* @__PURE__ */ o(
|
|
30
|
-
|
|
31
|
+
u,
|
|
31
32
|
{
|
|
32
|
-
className: e.sectionBox,
|
|
33
33
|
isCollapsible: !0,
|
|
34
34
|
isCollapsedByDefault: !1,
|
|
35
|
-
title: r
|
|
35
|
+
title: r.formatMessage({
|
|
36
|
+
id: "source.context_source_list.title",
|
|
37
|
+
defaultMessage: "Debate context"
|
|
38
|
+
}),
|
|
36
39
|
children: /* @__PURE__ */ o(
|
|
37
40
|
"div",
|
|
38
41
|
{
|
|
@@ -48,5 +51,5 @@ const C = ({ sources: i = [], title: r = "" }) => {
|
|
|
48
51
|
);
|
|
49
52
|
};
|
|
50
53
|
export {
|
|
51
|
-
|
|
54
|
+
S as ContextSourceList
|
|
52
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
|
};
|
|
@@ -1,48 +1,34 @@
|
|
|
1
|
-
import { jsxs as e, jsx as
|
|
1
|
+
import { jsxs as e, jsx as s } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
3
|
import t from "./SourceListItem.module.scss.js";
|
|
4
4
|
import { Link as m } from "../../action/link/Link.js";
|
|
5
|
-
import { Icon as
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
/* @__PURE__ */ e("
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
c
|
|
28
|
-
] })
|
|
5
|
+
import { Icon as l } from "../../icons/icon/Icon.js";
|
|
6
|
+
const h = ({ index: o = 0, url: i, title: n, publisher: r }) => /* @__PURE__ */ e(
|
|
7
|
+
m,
|
|
8
|
+
{
|
|
9
|
+
className: t.sourceListItem,
|
|
10
|
+
to: i,
|
|
11
|
+
external: !0,
|
|
12
|
+
target: "_blank",
|
|
13
|
+
rel: "nofollow noreferrer noopener",
|
|
14
|
+
"data-tid": "link_view_source",
|
|
15
|
+
children: [
|
|
16
|
+
/* @__PURE__ */ s(l, { name: "link", width: 16, height: 16 }),
|
|
17
|
+
/* @__PURE__ */ e("div", { className: t.sourceListItemLink, children: [
|
|
18
|
+
/* @__PURE__ */ e("span", { children: [
|
|
19
|
+
"[ ",
|
|
20
|
+
o + 1,
|
|
21
|
+
" ]"
|
|
22
|
+
] }),
|
|
23
|
+
/* @__PURE__ */ e("span", { children: [
|
|
24
|
+
r && `${r} – `,
|
|
25
|
+
" ",
|
|
26
|
+
n
|
|
29
27
|
] })
|
|
30
|
-
]
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
"button",
|
|
35
|
-
{
|
|
36
|
-
type: "button",
|
|
37
|
-
className: t.removeSourceButton,
|
|
38
|
-
onClick: (n) => {
|
|
39
|
-
n.preventDefault(), n.stopPropagation(), i();
|
|
40
|
-
},
|
|
41
|
-
"aria-label": "Remove source",
|
|
42
|
-
children: /* @__PURE__ */ r(s, { name: "close", width: 10, height: 10 })
|
|
43
|
-
}
|
|
44
|
-
)
|
|
45
|
-
] });
|
|
28
|
+
] })
|
|
29
|
+
]
|
|
30
|
+
}
|
|
31
|
+
);
|
|
46
32
|
export {
|
|
47
|
-
|
|
33
|
+
h as SourceListItem
|
|
48
34
|
};
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import '../../../assets/components/source/source_list_item/SourceListItem.module-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
removeSourceButton: o
|
|
1
|
+
import '../../../assets/components/source/source_list_item/SourceListItem.module-mTxHhXPV.css';const s = "_sourceListItem_1498g_3", t = "_sourceListItemLink_1498g_26", e = {
|
|
2
|
+
sourceListItem: s,
|
|
3
|
+
sourceListItemLink: t
|
|
5
4
|
};
|
|
6
5
|
export {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
t as sourceListItemContainer
|
|
6
|
+
e as default,
|
|
7
|
+
s as sourceListItem,
|
|
8
|
+
t as sourceListItemLink
|
|
11
9
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as e, jsxs as a, Fragment as
|
|
1
|
+
import { jsx as e, jsxs as a, Fragment as _ } from "react/jsx-runtime";
|
|
2
2
|
import { useState as d } from "react";
|
|
3
3
|
import { useIntl as B, FormattedMessage as f } from "react-intl";
|
|
4
4
|
import s from "./SourceModal.module.scss.js";
|
|
@@ -6,24 +6,24 @@ import { useDataProvider as x } from "../../data/data_provider/useDataProvider.j
|
|
|
6
6
|
import { useModal as y } from "../../dialog/modal/useModal.js";
|
|
7
7
|
import { Modal as z } from "../../dialog/modal/Modal.js";
|
|
8
8
|
import { SearchInput as A } from "../../input/search_input/SearchInput.js";
|
|
9
|
-
import { AnnouncementDialog as
|
|
9
|
+
import { AnnouncementDialog as M } from "../../dialog/announcement_dialog/AnnouncementDialog.js";
|
|
10
10
|
import { SourceBox as I } from "../source_box/SourceBox.js";
|
|
11
11
|
import { Button as C } from "../../action/button/Button.js";
|
|
12
12
|
import { Loader as j } from "../../progress/loader/Loader.js";
|
|
13
13
|
const Q = ({
|
|
14
|
-
onAddSource:
|
|
14
|
+
onAddSource: v,
|
|
15
15
|
onHideModal: h,
|
|
16
16
|
allowedSources: t = []
|
|
17
17
|
}) => {
|
|
18
|
-
const [p, u] = d(!1), [r, n] = d(), [
|
|
19
|
-
|
|
18
|
+
const [p, u] = d(!1), [r, n] = d(), [w, i] = d(!1), b = x(), [S, g] = d(!1), l = B(), { hideModal: E } = y(), N = () => {
|
|
19
|
+
v(r), n(null), E(), h && h();
|
|
20
20
|
}, P = (o) => {
|
|
21
21
|
if (!t || t.length === 0)
|
|
22
22
|
return !0;
|
|
23
23
|
const c = o.hostname.replace("www.", "");
|
|
24
24
|
return !!t.includes(c);
|
|
25
25
|
}, U = (o) => {
|
|
26
|
-
if (
|
|
26
|
+
if (g(!1), n(null), i(!1), !o)
|
|
27
27
|
return !1;
|
|
28
28
|
let c;
|
|
29
29
|
try {
|
|
@@ -31,14 +31,14 @@ const Q = ({
|
|
|
31
31
|
} catch {
|
|
32
32
|
return i(!0), !1;
|
|
33
33
|
}
|
|
34
|
-
P(c) ? (u(!0),
|
|
34
|
+
P(c) ? (u(!0), b.create("sources/fetch", { query: o }).then(
|
|
35
35
|
(m) => {
|
|
36
36
|
m.data.success ? (n(m.data.data.resource), u(!1)) : (u(!1), i(!0));
|
|
37
37
|
},
|
|
38
38
|
(m) => {
|
|
39
39
|
u(!1), i(!0);
|
|
40
40
|
}
|
|
41
|
-
)) :
|
|
41
|
+
)) : g(!0);
|
|
42
42
|
};
|
|
43
43
|
return /* @__PURE__ */ e(
|
|
44
44
|
z,
|
|
@@ -62,14 +62,14 @@ const Q = ({
|
|
|
62
62
|
type: "url"
|
|
63
63
|
}
|
|
64
64
|
),
|
|
65
|
-
|
|
65
|
+
/* @__PURE__ */ e("div", { className: s.sourceInputHelp, children: /* @__PURE__ */ e(
|
|
66
66
|
f,
|
|
67
67
|
{
|
|
68
68
|
id: "source.source_modal.input_help",
|
|
69
69
|
defaultMessage: "Press Enter to add the source"
|
|
70
70
|
}
|
|
71
71
|
) }),
|
|
72
|
-
t.length > 0 && /* @__PURE__ */ a(
|
|
72
|
+
t.length > 0 && /* @__PURE__ */ a(_, { children: [
|
|
73
73
|
/* @__PURE__ */ e("div", { className: s.separator }),
|
|
74
74
|
/* @__PURE__ */ e("div", { className: s.allowedSourcesInfo, children: /* @__PURE__ */ e(
|
|
75
75
|
f,
|
|
@@ -82,8 +82,8 @@ const Q = ({
|
|
|
82
82
|
] })
|
|
83
83
|
] }),
|
|
84
84
|
/* @__PURE__ */ a("div", { className: s.sourcePreviewBox, children: [
|
|
85
|
-
|
|
86
|
-
|
|
85
|
+
w && /* @__PURE__ */ e(
|
|
86
|
+
M,
|
|
87
87
|
{
|
|
88
88
|
message: l.formatMessage({
|
|
89
89
|
id: "source.source_modal.error",
|
|
@@ -92,8 +92,8 @@ const Q = ({
|
|
|
92
92
|
fullWidth: !0
|
|
93
93
|
}
|
|
94
94
|
),
|
|
95
|
-
|
|
96
|
-
|
|
95
|
+
S && /* @__PURE__ */ e(
|
|
96
|
+
M,
|
|
97
97
|
{
|
|
98
98
|
message: l.formatMessage({
|
|
99
99
|
id: "source.source_modal.error_unauthorized",
|
|
@@ -102,7 +102,7 @@ const Q = ({
|
|
|
102
102
|
fullWidth: !0
|
|
103
103
|
}
|
|
104
104
|
),
|
|
105
|
-
r && /* @__PURE__ */ e("div", { children: p ? /* @__PURE__ */ e(j, {}) : /* @__PURE__ */ a(
|
|
105
|
+
r && /* @__PURE__ */ e("div", { children: p ? /* @__PURE__ */ e(j, {}) : /* @__PURE__ */ a(_, { children: [
|
|
106
106
|
/* @__PURE__ */ e(
|
|
107
107
|
I,
|
|
108
108
|
{
|
|
@@ -1,66 +1,88 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "react";
|
|
3
|
-
import { useIntl as
|
|
4
|
-
import
|
|
5
|
-
import { SectionBox as
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
import { jsxs as S, jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { useState as w, useEffect as b } from "react";
|
|
3
|
+
import { useIntl as j } from "react-intl";
|
|
4
|
+
import l from "./Summary.module.scss.js";
|
|
5
|
+
import { SectionBox as B } from "../../section/section_box/SectionBox.js";
|
|
6
|
+
import { BoxSkeleton as f } from "../../skeleton/box_skeleton/BoxSkeleton.js";
|
|
7
|
+
import { SummaryBox as h } from "../summary_box/SummaryBox.js";
|
|
8
|
+
const k = ({
|
|
9
|
+
apiUrl: d,
|
|
10
|
+
summaryId: a,
|
|
11
|
+
tags: t = [],
|
|
12
|
+
tagClassNames: p = [],
|
|
13
|
+
title: y,
|
|
14
|
+
subtitle: g
|
|
13
15
|
}) => {
|
|
14
|
-
const
|
|
15
|
-
if (!t) return {};
|
|
16
|
-
if (typeof t == "object") return t;
|
|
16
|
+
const [n, x] = w({}), i = j(), u = async (e, r = "") => {
|
|
17
17
|
try {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
const o = `${d}/${e}${r ? `-${r}` : ""}`, m = await fetch(o);
|
|
19
|
+
if (!m.ok)
|
|
20
|
+
throw new Error(`HTTP error! Status: ${m.status}`);
|
|
21
|
+
return (await m.json()).data?.content?.arguments || [];
|
|
22
|
+
} catch (o) {
|
|
23
|
+
console.error(o);
|
|
21
24
|
}
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
25
|
+
};
|
|
26
|
+
return b(() => {
|
|
27
|
+
(async () => {
|
|
28
|
+
try {
|
|
29
|
+
const r = {};
|
|
30
|
+
if (t.length === 0)
|
|
31
|
+
r["no-position"] = await u(a);
|
|
32
|
+
else {
|
|
33
|
+
const o = await Promise.all(
|
|
34
|
+
t.map((m) => u(a, m.id))
|
|
35
|
+
);
|
|
36
|
+
t.forEach((m, c) => {
|
|
37
|
+
r[m.id] = o[c];
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
x(r);
|
|
41
|
+
} catch (r) {
|
|
42
|
+
console.error(r);
|
|
43
|
+
}
|
|
44
|
+
})();
|
|
45
|
+
}, [a, t]), /* @__PURE__ */ S(
|
|
46
|
+
B,
|
|
26
47
|
{
|
|
27
|
-
className: m.sectionBox,
|
|
28
48
|
isCollapsible: !0,
|
|
29
49
|
isCollapsedByDefault: !0,
|
|
30
|
-
title:
|
|
31
|
-
subtitle:
|
|
32
|
-
children:
|
|
33
|
-
/* @__PURE__ */
|
|
50
|
+
title: y,
|
|
51
|
+
subtitle: g,
|
|
52
|
+
children: [
|
|
53
|
+
/* @__PURE__ */ s("div", { className: l.description, children: i.formatMessage({
|
|
34
54
|
id: "summary.description.argument_summary",
|
|
35
55
|
defaultMessage: "Our algorithm produces comprehensive, well-structured summaries of the most recurrent arguments. Each published argument influences the content of this summary. The better structured the argument, the more weight it carries."
|
|
36
56
|
}) }),
|
|
37
|
-
/* @__PURE__ */
|
|
38
|
-
|
|
57
|
+
/* @__PURE__ */ s("div", { className: l.summaryContainer, children: Object.keys(n).length === 0 ? t.length === 0 ? /* @__PURE__ */ s(f, { onlyEdgeBox: !0, boxHeight: 120 }) : t.map((e) => /* @__PURE__ */ s(f, { onlyEdgeBox: !0, boxHeight: 120 }, e.id)) : t.length === 0 ? /* @__PURE__ */ s("div", { children: /* @__PURE__ */ s(
|
|
58
|
+
h,
|
|
39
59
|
{
|
|
40
|
-
summaryItems:
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
emptySummaryText:
|
|
60
|
+
summaryItems: (n["no-position"] || []).map(
|
|
61
|
+
(e) => e.argument
|
|
62
|
+
),
|
|
63
|
+
emptySummaryText: i.formatMessage({
|
|
44
64
|
id: "info.emptysummary",
|
|
45
65
|
defaultMessage: "No resume found."
|
|
46
66
|
})
|
|
47
67
|
}
|
|
48
|
-
) },
|
|
49
|
-
|
|
68
|
+
) }) : t.map((e, r) => /* @__PURE__ */ s("div", { children: /* @__PURE__ */ s(
|
|
69
|
+
h,
|
|
50
70
|
{
|
|
51
|
-
summaryItems:
|
|
52
|
-
|
|
71
|
+
summaryItems: (n[e.id] || []).map(
|
|
72
|
+
(o) => o.argument
|
|
53
73
|
),
|
|
54
|
-
|
|
74
|
+
tag: e.name,
|
|
75
|
+
tagClassName: p[r],
|
|
76
|
+
emptySummaryText: i.formatMessage({
|
|
55
77
|
id: "info.emptysummary",
|
|
56
78
|
defaultMessage: "No resume found."
|
|
57
79
|
})
|
|
58
80
|
}
|
|
59
|
-
) })
|
|
60
|
-
]
|
|
81
|
+
) }, e.id)) })
|
|
82
|
+
]
|
|
61
83
|
}
|
|
62
84
|
);
|
|
63
85
|
};
|
|
64
86
|
export {
|
|
65
|
-
|
|
87
|
+
k as Summary
|
|
66
88
|
};
|
|
@@ -1,13 +1,9 @@
|
|
|
1
|
-
import '../../../assets/components/summary/summary/Summary.module-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
summaryContainer: o,
|
|
5
|
-
description: s
|
|
1
|
+
import '../../../assets/components/summary/summary/Summary.module-DjfmUlkW.css';const t = "_summaryContainer_1xdmt_3", n = "_description_1xdmt_21", s = {
|
|
2
|
+
summaryContainer: t,
|
|
3
|
+
description: n
|
|
6
4
|
};
|
|
7
5
|
export {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
t as sectionBox,
|
|
12
|
-
o as summaryContainer
|
|
6
|
+
s as default,
|
|
7
|
+
n as description,
|
|
8
|
+
t as summaryContainer
|
|
13
9
|
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import '../../../assets/components/summary/summary_box/SummaryBox.module-
|
|
1
|
+
import '../../../assets/components/summary/summary_box/SummaryBox.module-DQVkA8l7.css';const t = "_box_5a37o_3", a = "_stats_5a37o_14", s = "_withTag_5a37o_21", m = "_tag_5a37o_25", _ = "_summaryItem_5a37o_44", o = "_emptySummaryText_5a37o_53", e = {
|
|
2
2
|
box: t,
|
|
3
|
-
stats:
|
|
3
|
+
stats: a,
|
|
4
4
|
withTag: s,
|
|
5
|
-
tag:
|
|
6
|
-
summaryItem:
|
|
7
|
-
emptySummaryText:
|
|
5
|
+
tag: m,
|
|
6
|
+
summaryItem: _,
|
|
7
|
+
emptySummaryText: o
|
|
8
8
|
};
|
|
9
9
|
export {
|
|
10
10
|
t as box,
|
|
11
11
|
e as default,
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
o as emptySummaryText,
|
|
13
|
+
a as stats,
|
|
14
|
+
_ as summaryItem,
|
|
15
|
+
m as tag,
|
|
16
16
|
s as withTag
|
|
17
17
|
};
|