@logora/debate 0.3.87 → 0.3.89
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/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/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 +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/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/spiegel_icons/Downvote.js +0 -6
- package/dist/components/icons/spiegel_icons/Upvote.js +0 -6
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._argument_1d1jw_3{border-radius:var(--box-border-radius, 6px);box-shadow:var(--box-shadow, 0px 2px 5px rgba(7, 42, 68, .1));transition:margin-top 2s;border:var(--box-border, 1px solid rgba(7, 42, 68, .1));scroll-margin-top:150px;background-color:var(--background-color-primary, white);padding:var(--space-unit, 1em)!important;display:flex;flex-direction:column;gap:var(--space-unit, 1em)}._edited_1d1jw_16{font-size:var(--font-size-extra-small, 14px);color:var(--text-secondary, #5F5F5F);line-height:var(--line-height-loose, 1.38em);margin-bottom:var(--spacer-xs, calc(var(--space-unit, 1em) * .325))!important}._argumentReply_1d1jw_23{position:relative;background-color:var(--text-tertiary, #fafafa);border-top-left-radius:0;border-bottom-left-radius:0;box-shadow:var(--box-shadow, 0px 2px 5px rgba(7, 42, 68, .1));border-top-right-radius:var(--box-border-radius, 6px);border-bottom-right-radius:var(--box-border-radius, 6px);border-left:6px solid;border-left-color:var(--call-primary-color, #434343)!important}._argumentReply_1d1jw_23._position-1_1d1jw_34{border-left-color:var(--for-primary-color, #cc6a6d)!important}._argumentReply_1d1jw_23._position-2_1d1jw_37{border-left-color:var(--against-primary-color, #7980bb)!important}._argumentReply_1d1jw_23._position-3_1d1jw_40{border-left-color:var(--third-position-color-primary, #9b9b9b)!important}._argumentReply_1d1jw_23._level-1_1d1jw_43{margin-left:1em!important}._argumentReply_1d1jw_23._level-2_1d1jw_46{margin-left:2em!important}._argumentReply_1d1jw_23._level-3_1d1jw_49{margin-left:3em!important}._argumentReply_1d1jw_23._level-4_1d1jw_52{margin-left:4em!important}._argumentReply_1d1jw_23._level-5_1d1jw_55{margin-left:5em!important}._argumentReply_1d1jw_23:before{content:"";border-left:4px solid var(--text-secondary, #5F5F5F);position:absolute;width:4px;height:10px;top:-10px;left:2em}@container (max-width: 575.98px){._argumentReply_1d1jw_23{border-left:4px solid}}._flash_1d1jw_73{-webkit-transition:box-shadow .8s ease-in-out;-moz-transition:box-shadow .8s ease-in-out;-o-transition:box-shadow .8s ease-in-out;transition:box-shadow .8s ease-in-out;box-shadow:-4px 4px 15px 3px #00000026}._position-1_1d1jw_34._flash_1d1jw_73{border-color:var(--for-primary-color, #cc6a6d)}._position-2_1d1jw_37._flash_1d1jw_73{border-color:var(--against-primary-color, #7980bb)}._position-3_1d1jw_40._flash_1d1jw_73{border-color:var(--third-position-color-primary, #9b9b9b);margin-top:var(--spacer-sm, calc(var(--space-unit, 1em) * .5))!important}._argumentBody_1d1jw_94{font-size:var(--font-size-normal, 16px);line-height:var(--line-height-loose, 1.38em)}._argumentDeletedBody_1d1jw_99{font-size:var(--font-size-small, 16px);color:var(--text-secondary, #5F5F5F)}._fixedHeight_1d1jw_104{height:100px;overflow:hidden;position:relative}._fixedHeight_1d1jw_104:after{content:"";position:absolute;z-index:1;bottom:0;left:0;right:0;pointer-events:none;background-image:linear-gradient(to bottom,#fff0,#fff 90%);width:100%;height:5em}._argumentContent_1d1jw_122{line-height:var(--line-height-loose, 1.38em);overflow-wrap:break-word;word-wrap:break-word}._argumentContent_1d1jw_122 *{font-size:var(--font-size-normal, 16px)}._argumentSourcesList_1d1jw_131{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;font-size:var(--font-size-extra-small, 14px);font-weight:var(--font-weight-normal, 400)}._argumentSourcesList_1d1jw_131 a{text-decoration:none}._repliesList_1d1jw_144{margin-top:var(--spacer-sm, calc(var(--space-unit, 1em) * .5))!important}._readMoreLink_1d1jw_148{margin-top:var(--spacer-md, calc(var(--space-unit, 1em) * .75))!important;display:flex;justify-content:center}._replyStyle_1d1jw_154{background:var(--text-tertiary, #fafafa)}._replyTo_1d1jw_158{display:flex!important;flex-direction:row!important;align-items:center!important;padding-bottom:var(--spacer-sm, calc(var(--space-unit, 1em) * .5))!important;font-size:var(--font-size-extra-small, 14px);color:var(--text-secondary, #5F5F5F);cursor:pointer;overflow:hidden;white-space:nowrap}._replyTo_1d1jw_158 span{padding-left:var(--spacer-xxs, calc(var(--space-unit, 1em) * .25))!important;cursor:pointer;text-decoration:underline}._replyTo_1d1jw_158 svg{padding:2px 0 0 2px;fill:var(--text-secondary, #5F5F5F)}._replyingTo_1d1jw_179{display:flex!important;align-items:center!important}._headerPosition-0_1d1jw_184{background-color:var(--call-primary-color, #434343)!important}._headerPosition-1_1d1jw_188{background-color:var(--for-primary-color, #cc6a6d)!important}._headerPosition-2_1d1jw_192{background-color:var(--against-primary-color, #7980bb)!important}._headerPosition-3_1d1jw_196{background-color:var(--third-position-color-primary, #9b9b9b)!important}._voteButtonPosition-1_1d1jw_200{color:var(--for-primary-color, #cc6a6d)!important}._voteButtonPosition-1_1d1jw_200 svg{fill:var(--for-primary-color, #cc6a6d)!important}._voteButtonPosition-2_1d1jw_207{color:var(--against-primary-color, #7980bb)!important}._voteButtonPosition-2_1d1jw_207 svg{fill:var(--against-primary-color, #7980bb)!important}._voteButtonPosition-3_1d1jw_214{color:var(--third-position-color-primary, #9b9b9b)!important}._voteButtonPosition-3_1d1jw_214 svg{fill:var(--third-position-color-primary, #9b9b9b)!important}@media(prefers-color-scheme:dark){._replyStyle_1d1jw_154{background-color:var(--text-tertiary, #fafafa)}._argumentStyle_1d1jw_225{background-color:var(--background-color-primary, white)}}
|
package/dist/assets/components/consultation/consultation_box/ConsultationBox.module-BnTr5IaF.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._container_1k9w3_3{display:flex!important;flex-direction:column!important;justify-content:space-between!important;box-shadow:var(--box-shadow, 0px 2px 5px rgba(7, 42, 68, .1));border:var(--box-border, 1px solid rgba(7, 42, 68, .1));color:var(--text-primary, #222222);border-radius:var(--box-border-radius, 6px);background:var(--background-color-primary, white)}._container_1k9w3_3 a{text-decoration:none!important;color:var(--text-primary, #222222)!important}._consultationImage_1k9w3_18{border-top-right-radius:var(--box-border-radius, 6px);border-top-left-radius:var(--box-border-radius, 6px);width:100%;aspect-ratio:16/9;object-fit:cover}._consultationTime_1k9w3_26{padding-top:var(--spacer-sm, calc(var(--space-unit, 1em) * .5))!important;padding-bottom:var(--spacer-sm, calc(var(--space-unit, 1em) * .5))!important;width:100%;background-color:var(--source-primary, #4485C3);font-size:var(--font-size-normal, 16px);font-weight:var(--font-weight-bold, 700);color:var(--text-light, white);text-align:center}._consultationTime_1k9w3_26._ended_1k9w3_36{background-color:var(--text-secondary, #5F5F5F)}._consultationTitle_1k9w3_40{padding-top:var(--spacer-lg, calc(var(--space-unit, 1em) * 1.5))!important;padding-bottom:var(--spacer-sm, calc(var(--space-unit, 1em) * .5))!important;padding-right:var(--space-unit, 1em)!important;padding-left:var(--space-unit, 1em)!important;font-size:var(--font-size-normal, 16px);font-weight:var(--font-weight-bold, 700)}._consultationButtonContainer_1k9w3_49{display:flex!important;padding-right:var(--space-unit, 1em)!important;padding-left:var(--space-unit, 1em)!important;padding-bottom:var(--spacer-lg, calc(var(--space-unit, 1em) * 1.5))!important;color:var(--text-secondary, #5F5F5F);font-size:var(--font-size-small, 16px)}._consultationButtonContainer_1k9w3_49:hover{text-decoration:underline;text-decoration-color:var(--text-secondary, #5F5F5F)}._consultationButtonContainer_1k9w3_49 ._arrowIcon_1k9w3_61{margin-left:var(--spacer-xxs, calc(var(--space-unit, 1em) * .25))!important;transform:rotate(180deg);fill:var(--text-secondary, #5F5F5F)}._consultationInformations_1k9w3_67{display:flex!important;justify-content:space-between!important;align-items:center!important;padding-right:var(--space-unit, 1em)!important;padding-left:var(--space-unit, 1em)!important;padding-top:var(--spacer-sm, calc(var(--space-unit, 1em) * .5))!important;padding-bottom:var(--spacer-sm, calc(var(--space-unit, 1em) * .5))!important;border-top:1px solid var(--text-tertiary, #fafafa);min-height:50px}._consultationInformations_1k9w3_67 ._consultationLeft_1k9w3_78{display:flex!important}._consultationInformations_1k9w3_67 ._consultationGroupInformation_1k9w3_81{display:flex!important;align-items:center!important}._consultationInformations_1k9w3_67 ._consultationGroupInformation_1k9w3_81._consultationGroupRight_1k9w3_85{padding-right:var(--space-unit, 1em)!important}._consultationInformations_1k9w3_67 ._progressBarContainer_1k9w3_88{width:60%;display:flex!important;flex-direction:column!important;align-items:flex-end!important;font-size:var(--font-size-extra-small, 14px)}._consultationInformations_1k9w3_67 ._progressBarContainer_1k9w3_88 ._progress_1k9w3_88{margin-top:var(--spacer-xxs, calc(var(--space-unit, 1em) * .25))!important;height:15px;width:100%;border-radius:var(--box-border-radius, 6px);background-color:var(--background-color-secondary, #E8E8E8)!important}._consultationInformations_1k9w3_67 ._progressBarContainer_1k9w3_88 ._bar_1k9w3_102{background-color:var(--call-primary-color, #434343)}._consultationInformations_1k9w3_67 ._progressBarContainer_1k9w3_88 ._totalVotes_1k9w3_105{margin-right:var(--spacer-xxs, calc(var(--space-unit, 1em) * .25))!important}._consultationInformations_1k9w3_67 ._progressBarContainer_1k9w3_88 ._totalVotesPercentage_1k9w3_108{margin-left:var(--spacer-xxs, calc(var(--space-unit, 1em) * .25))!important}._consultationInformations_1k9w3_67 ._consultationTextInformation_1k9w3_111{padding-right:var(--spacer-xxs, calc(var(--space-unit, 1em) * .25))!important}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._ltr_1m7ly_3{text-align:left}._editorContainer_1m7ly_7{color:var(--text-primary, #222222);line-height:var(--line-height-normal, 1.26em);font-weight:var(--font-weight-normal, 400);text-align:left}._editorInner_1m7ly_14{background:var(--background-color-primary, white);position:relative}._editorInner_1m7ly_14._editorInnerInactive_1m7ly_18{display:flex!important;justify-content:space-between!important}._editorPlaceholder_1m7ly_23{color:var(--text-primary, #222222);overflow:hidden;position:absolute;text-overflow:ellipsis;top:15px;font-size:var(--font-size-normal, 16px);-webkit-user-select:none;user-select:none;display:inline-block;pointer-events:none}._editorInput_1m7ly_35{min-height:25px;resize:none;font-size:var(--font-size-normal, 16px);position:relative;tab-size:1;outline:0;padding-top:var(--space-unit, 1em)!important;padding-bottom:var(--space-unit, 1em)!important;caret-color:var(--text-primary, #222222)}._editorInput_1m7ly_35._editorInputInactive_1m7ly_46{min-width:180px;width:100%}._editorTextBold_1m7ly_51{font-weight:var(--font-weight-bold, 700)}._editorTextItalic_1m7ly_55{font-style:italic}._editorTextUnderline_1m7ly_59{text-decoration:underline}._editorTextStrikethrough_1m7ly_63{text-decoration:line-through}._editorTextUnderlineStrikethrough_1m7ly_67{text-decoration:underline line-through}._editorParagraph_1m7ly_71{margin:0!important;margin-bottom:var(--spacer-xxs, calc(var(--space-unit, 1em) * .25))!important;position:relative}._editorParagraph_1m7ly_71:last-child{margin-bottom:0!important}._editorQuote_1m7ly_81{margin:0!important;padding-left:var(--space-unit, 1em)!important;font-size:var(--font-size-normal, 16px);color:var(--text-secondary, #5F5F5F);border-left-color:#ced0d4;border-left-width:4px;border-left-style:solid}._editorListOl_1m7ly_91{margin:0!important;margin-left:var(--spacer-sm, calc(var(--space-unit, 1em) * .5))!important;padding:var(--spacer-xxs, calc(var(--space-unit, 1em) * .25))!important;list-style-type:decimal!important}._editorListItem_1m7ly_98{margin-right:var(--space-unit, 1em)!important;margin-left:var(--space-unit, 1em)!important;margin-top:var(--spacer-sm, calc(var(--space-unit, 1em) * .5))!important;margin-bottom:var(--spacer-sm, calc(var(--space-unit, 1em) * .5))!important}._editorNestedListItem_1m7ly_105{list-style-type:none}pre::-webkit-scrollbar{background:transparent;width:10px}pre::-webkit-scrollbar-thumb{background:var(--text-secondary, #5F5F5F)}._sourcesBox_1m7ly_118{display:flex!important;justify-content:flex-start!important;align-items:center!important;margin-top:var(--spacer-sm, calc(var(--space-unit, 1em) * .5))!important;padding-right:0!important;padding-left:0!important;padding-top:var(--spacer-sm, calc(var(--space-unit, 1em) * .5))!important;padding-bottom:var(--spacer-sm, calc(var(--space-unit, 1em) * .5))!important}._sourceList_1m7ly_129{display:flex!important;flex-direction:column!important;justify-content:flex-start!important;align-items:flex-start!important;padding:0!important}._charactersCount_1m7ly_140{align-self:center;font-size:var(--font-size-small, 16px);color:var(--text-secondary, #5F5F5F);white-space:nowrap;margin-top:var(--spacer-sm, calc(var(--space-unit, 1em) * .5))!important}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._listHeader_fbaxc_3{display:flex;justify-content:space-between;align-items:center;position:relative;flex-wrap:wrap;gap:var(--space-unit, 1em)}@container (max-width: 575.98px){._listHeader_fbaxc_3{flex-direction:column;align-items:flex-start}._listHeader_fbaxc_3._listHeaderOneItem_fbaxc_16{flex-direction:row;align-items:center;flex-wrap:nowrap!important}}._listTitle_fbaxc_23{font-size:var(--font-size-extra-large, 22px);line-height:var(--line-height-tight, 1.08em);font-weight:var(--font-weight-bold, 700);font-family:var(--title-font-family, var(--font-family, "Montserrat"))}._rightBar_fbaxc_30{display:flex;gap:var(--space-unit, 1em);flex-wrap:wrap}@container (max-width: 575.98px){._rightBar_fbaxc_30{width:100%;justify-content:space-between}._rightBar_fbaxc_30._rightBarOneItem_fbaxc_40{justify-content:flex-end}}._rightBar_fbaxc_30{flex:1 1 auto;justify-content:flex-end;align-items:center;flex-direction:row}._search_fbaxc_51{flex:1;max-width:35%}@container (max-width: 575.98px){._search_fbaxc_51{max-width:80%}}._tagList_fbaxc_61{display:flex;flex-direction:row;justify-content:flex-start;overflow-x:auto;overflow-y:hidden;gap:var(--spacer-md, calc(var(--space-unit, 1em) * .75));padding-bottom:var(--spacer-md, calc(var(--space-unit, 1em) * .75))}@container (max-width: 575.98px){._tagList_fbaxc_61{gap:var(--spacer-sm, calc(var(--space-unit, 1em) * .5))}}._tagItem_fbaxc_76{display:flex!important;color:var(--text-secondary, #5F5F5F);cursor:pointer;white-space:nowrap}._select_fbaxc_83{max-width:300px}@container (max-width: 575.98px){._select_fbaxc_83{max-width:300px}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._proposalBoxContainer_awwcm_3{display:flex!important;flex-direction:column!important;justify-content:space-between!important;position:relative;box-shadow:var(--box-shadow, 0px 2px 5px rgba(7, 42, 68, .1));border:var(--box-border, 1px solid rgba(7, 42, 68, .1));color:var(--text-primary, #222222);border-radius:var(--box-border-radius, 6px);background-color:var(--background-color-primary, white);scroll-margin-top:150px;padding:var(--box-spacing, var(--space-unit, 1em));gap:var(--box-spacing, var(--space-unit, 1em))}._proposalBoxContainer_awwcm_3._flash_awwcm_17{-webkit-transition:box-shadow .8s ease-in-out;-moz-transition:box-shadow .8s ease-in-out;-o-transition:box-shadow .8s ease-in-out;transition:box-shadow .8s ease-in-out;box-shadow:0 0 15px var(--call-primary-color, #434343)}._edited_awwcm_25{font-size:var(--font-size-extra-small, 14px);color:var(--text-secondary, #5F5F5F);line-height:var(--line-height-loose, 1.38em);margin-bottom:var(--spacer-xs, calc(var(--space-unit, 1em) * .325))!important}._proposalBoxContent_awwcm_32{text-align:left;white-space:pre-line;line-height:var(--line-height-loose, 1.38em);font-size:var(--font-size-small, 16px)}@container (min-width: 768px){._proposalBoxContent_awwcm_32{min-height:185px}}._proposalBoxContent_awwcm_32 ._proposalTitle_awwcm_44{font-size:var(--font-size-normal, 16px);font-weight:var(--font-weight-bold, 700);padding-bottom:var(--spacer-sm, calc(var(--space-unit, 1em) * .5))!important}._proposalBoxContent_awwcm_32 ._proposalTitle_awwcm_44:first-letter{text-transform:uppercase}._proposalBoxContent_awwcm_32 ._proposalContent_awwcm_52 *{font-size:var(--font-size-small, 16px)}._fixedHeight_awwcm_56{height:200px;overflow:hidden;position:relative}._fixedHeight_awwcm_56:after{content:"";position:absolute;z-index:1;bottom:0;left:0;right:0;pointer-events:none;background-image:linear-gradient(to bottom,#fff0,#fff 90%);width:100%;height:5em}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._sectionBoxContainer_m9zal_3{background-color:var(--background-color-primary, white);box-shadow:var(--box-shadow-main-container, var(--box-shadow, 0px 2px 5px rgba(7, 42, 68, .1)));border:var(--box-border-main-container, var(--box-border, 1px solid rgba(7, 42, 68, .1)));border-radius:var(--box-border-radius, 6px);color:var(--text-primary, #222222)}@container (min-width: 576px){._sectionBoxContainer_m9zal_3{padding:var(--spacer-lg, calc(var(--space-unit, 1em) * 1.5))!important}}._sectionBoxContainer_m9zal_3._isMobile_m9zal_15{padding:var(--space-unit, 1em)!important}._header_m9zal_19{display:flex;justify-content:space-between;align-items:center;width:100%}._collapsible_m9zal_26{cursor:pointer}._iconLightArrow_m9zal_30{transition:transform .3s}._iconRotated_m9zal_34{transform:rotate(180deg)}._titleContainer_m9zal_38{display:flex;align-items:baseline;gap:.5em}._title_m9zal_38{font-size:var(--font-size-large, 20px);line-height:var(--line-height-tight, 1.08em);font-weight:var(--font-weight-bold, 700);font-family:var(--title-font-family, var(--font-family, "Montserrat"));color:var(--text-primary, #222222)}._subtitle_m9zal_52{font-size:var(--font-size-small, 16px);color:var(--text-secondary, #5F5F5F)}._body_m9zal_57{padding-top:var(--space-unit, 1em)!important}
|
package/dist/assets/components/source/context_source_list/ContextSourceList.module-D6X_0dB7.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._title_19ocx_3{font-size:var(--font-size-large, 20px);line-height:var(--line-height-tight, 1.08em);font-weight:var(--font-weight-bold, 700);font-family:var(--title-font-family, var(--font-family, "Montserrat"))}._content_19ocx_10{display:grid;gap:var(--space-unit, 1em)}._content_19ocx_10._contentMobile_19ocx_14{grid-template-columns:repeat(1,1fr)}._content_19ocx_10._contentTablet_19ocx_17{grid-template-columns:repeat(2,1fr)}._content_19ocx_10._contentDesktop_19ocx_20{grid-template-columns:repeat(3,1fr)}._listItem_19ocx_24{text-decoration:none!important;color:inherit!important;border:var(--box-border, 1px solid rgba(7, 42, 68, .1))!important;border-radius:var(--box-border-radius, 6px)!important;padding:var(--space-unit, 1em)!important}._listItem_19ocx_24:hover{border:1px solid var(--text-primary, #222222)!important}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
a._sourceListItem_1498g_3{display:flex;flex-direction:row;justify-content:flex-start;font-size:var(--font-size-extra-small, 14px);margin-top:5px;padding:5px;border:1px solid var(--background-color-secondary, #E8E8E8);border-radius:var(--box-border-radius, 6px);max-width:100%}a._sourceListItem_1498g_3 svg{margin-right:5px;flex-shrink:0!important;width:16px!important;height:16px!important}a._sourceListItem_1498g_3{color:var(--text-primary, #222222)!important;text-decoration:none!important;outline:none!important}._sourceListItemLink_1498g_26{display:-webkit-box;word-wrap:break-word;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis}._sourceListItemLink_1498g_26 span{margin-right:5px}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._summaryContainer_1xdmt_3{display:flex!important;flex-direction:row;flex-wrap:wrap;align-items:stretch!important;gap:1em}@container (max-width: 767.98px){._summaryContainer_1xdmt_3{flex-direction:column!important}}._summaryContainer_1xdmt_3>div{flex:1;display:flex;flex-direction:column}._description_1xdmt_21{color:var(--text-secondary, #5F5F5F);font-size:var(--font-size-small, 16px);margin-bottom:1em}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._box_5a37o_3{display:flex;flex-direction:column;justify-content:flex-start;padding:.7em;border-radius:var(--box-border-radius, 6px);box-shadow:var(--box-shadow, 0px 2px 5px rgba(7, 42, 68, .1));border:var(--box-border, 1px solid rgba(7, 42, 68, .1));flex:1}._stats_5a37o_14{display:flex!important;justify-content:flex-start!important;align-items:center;gap:10px}._stats_5a37o_14._withTag_5a37o_21{margin-bottom:.4em}._tag_5a37o_25{padding:.5em .75em;color:var(--text-light, white);background-color:var(--call-primary-color, #434343);border-radius:var(--box-border-radius, 6px);font-size:var(--font-size-extra-small, 14px);font-weight:var(--font-weight-bold, 700);display:-webkit-box;word-wrap:break-word;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;max-height:3.4em;text-transform:uppercase}._summaryItem_5a37o_44{display:flex;gap:8px;padding:var(--spacer-xs, calc(var(--space-unit, 1em) * .325));align-items:flex-start;font-size:var(--font-size-small, 16px);color:var(--text-primary, #222222)}._emptySummaryText_5a37o_53{font-style:italic;color:var(--text-primary, #222222);font-size:var(--font-size-small, 16px);text-align:start;padding:10px 0}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._voteBox_29yqs_3{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:center!important;width:100%}._voteResultsBox_29yqs_11{display:flex!important;flex-direction:column!important;padding:0!important;width:100%}._voteResults_29yqs_11{padding:0!important}._voteProgressHeader_29yqs_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_29yqs_35{margin-top:var(--spacer-md, calc(var(--space-unit, 1em) * .75))!important}._voteResultsNumberVoters_29yqs_39{display:flex!important;align-items:center!important;padding:0!important;font-size:var(--font-size-normal, 16px);color:var(--text-secondary, #5F5F5F)}._voteBoxFooter_29yqs_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}._voteBoxActions_29yqs_56{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_29yqs_66{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_29yqs_74{grid-template-columns:1fr}._voteAction_29yqs_78{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_29yqs_78._buttonAlignLeft_29yqs_88{justify-content:flex-start!important}button._voteButton_29yqs_92,a._voteButton_29yqs_92{-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_29yqs_103{justify-content:flex-start!important}._voteBoxShowResultContainer_29yqs_107{display:flex!important;flex-direction:row!important;justify-content:center;flex-wrap:wrap!important;margin-top:.3em}._voteBoxShowResult_29yqs_107{cursor:pointer}._voteBoxShowResult_29yqs_107 a{color:inherit;text-decoration:none;background:none!important}._voteBoxShowResult_29yqs_107 a:hover{text-decoration:none;background:none!important}._voteBoxShowResult_29yqs_107 a:focus:not(:focus-visible){outline:none;box-shadow:none}._voteBoxShowResult_29yqs_107 ._boldShowResult_29yqs_131{font-weight:var(--font-weight-bold, 700);color:var(--text-primary, #222222)}._outlined_29yqs_136{padding:7px 15px;border-radius:var(--box-border-radius, 6px);border:1px solid var(--text-primary, #222222)!important;white-space:nowrap}._voteButtonThesis_29yqs_143{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_29yqs_155{text-align:center!important}}._voteBoxActionsBody_29yqs_66 ._voteAction_29yqs_78:first-child ._voteButton_29yqs_92,._voteBoxActionsBody_29yqs_66 ._voteAction_29yqs_78:first-child ._voteButton_29yqs_92: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_29yqs_66 ._voteAction_29yqs_78:nth-child(2) ._voteButton_29yqs_92{background-color:var(--against-primary-color, #7980bb)!important;border-color:var(--against-primary-color, #7980bb)!important;border:1px var(--against-primary-color, #7980bb)!important}._voteBoxActionsBody_29yqs_66 ._voteAction_29yqs_78:nth-child(2) ._voteButton_29yqs_92:hover{background-color:var(--against-primary-color, #7980bb)!important;border-color:var(--against-primary-color, #7980bb)!important;border:1px var(--against-primary-color, #7980bb)!important}._voteBoxActionsBody_29yqs_66 ._voteAction_29yqs_78:nth-child(3) ._voteButton_29yqs_92{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_29yqs_66 ._voteAction_29yqs_78:nth-child(3) ._voteButton_29yqs_92: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}._voteActionButton_29yqs_194{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)}._voteActionButton_29yqs_194:focus:not(:focus-visible){outline:none;box-shadow:none}._sideIcon_29yqs_209 svg{margin-left:5px;fill:var(--text-primary, #222222)}._progress_29yqs_214{border-radius:10px;height:25px;color:var(--text-secondary, #5F5F5F)}._progressBar_29yqs_220{border-radius:10px;height:25px}._voteResults_29yqs_11>div:first-child ._progress_29yqs_214 ._progressBar_29yqs_220{background-color:var(--for-primary-color, #cc6a6d)!important}._voteResults_29yqs_11>div:nth-child(2) ._progress_29yqs_214 ._progressBar_29yqs_220{background-color:var(--against-primary-color, #7980bb)!important}._voteResults_29yqs_11 div:nth-child(3) ._progress_29yqs_214 ._progressBar_29yqs_220{background-color:var(--third-position-color-primary, #9b9b9b)!important}._voteCommentCounts_29yqs_237{display:flex;align-items:center;gap:var(--space-unit, 1em);width:100%;margin-top:var(--spacer-xxs, calc(var(--space-unit, 1em) * .25))!important}._debateNumberItem_29yqs_245{display:flex;align-items:center;gap:var(--spacer-sm, calc(var(--space-unit, 1em) * .5));font-size:var(--font-size-normal, 16px);color:var(--text-primary, #222222);white-space:nowrap}._debateNumberLabel_29yqs_254{white-space:nowrap}._showResultButton_29yqs_258{background:none;border:0;padding:0;font:inherit;color:inherit;cursor:pointer}._showResultButton_29yqs_258:focus:not(:focus-visible){outline:none;box-shadow:none}._voteResultInfoText_29yqs_271{font-size:var(--font-size-small, 16px);color:var(--text-secondary, #5F5F5F);text-align:left;width:100%;align-self:flex-start}
|
|
@@ -1,78 +1,76 @@
|
|
|
1
1
|
import { jsx as o, jsxs as l, Fragment as h } from "react/jsx-runtime";
|
|
2
2
|
import B from "classnames";
|
|
3
|
-
import { useState as f, useEffect as
|
|
4
|
-
import { useIntl as
|
|
3
|
+
import { useState as f, useEffect as ie, useCallback as ae, Suspense as le, lazy as ne } from "react";
|
|
4
|
+
import { useIntl as de } from "react-intl";
|
|
5
5
|
import s from "./Argument.module.scss.js";
|
|
6
|
-
import { ReplyFooter as
|
|
7
|
-
import { useRichContent as
|
|
8
|
-
import { useAuth as
|
|
9
|
-
import { useConfig as
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
|
|
23
|
-
const Ne = ce(() => import("../../input/argument_input/index.js").then((e) => ({ default: e.ArgumentInput }))), F = (e) => e?.replace(/ /g, " "), we = ({
|
|
6
|
+
import { ReplyFooter as ce } from "./ReplyFooter.js";
|
|
7
|
+
import { useRichContent as pe } from "./useRichContent.js";
|
|
8
|
+
import { useAuth as me } from "../../auth/use_auth/useAuth.js";
|
|
9
|
+
import { useConfig as ue } from "../../data/config_provider/useConfig.js";
|
|
10
|
+
import { useTranslatedContent as $ } from "../../translation/translated_content/useTranslatedContent.js";
|
|
11
|
+
import { SourceListItem as he } from "../../source/source_list_item/SourceListItem.js";
|
|
12
|
+
import { HashScroll as fe } from "../../tools/hash_scroll/HashScroll.js";
|
|
13
|
+
import { ContentHeader as ye } from "../../user_content/content_header/ContentHeader.js";
|
|
14
|
+
import { Icon as D } from "../../icons/icon/Icon.js";
|
|
15
|
+
import { ReadMore as ge } from "../../text/read_more/ReadMore.js";
|
|
16
|
+
import { TranslationButton as _e } from "../../translation/translation_button/TranslationButton.js";
|
|
17
|
+
import { ContentFooter as be } from "../../user_content/content_footer/ContentFooter.js";
|
|
18
|
+
import { VoteButton as Me } from "../../vote/vote_button/VoteButton.js";
|
|
19
|
+
import { VotePaginatedList as ve } from "../../list/paginated_list/VotePaginatedList.js";
|
|
20
|
+
import { UserContentSkeleton as Ce } from "../../skeleton/user_content_skeleton/UserContentSkeleton.js";
|
|
21
|
+
import { Button as Ie } from "../../action/button/Button.js";
|
|
22
|
+
const Se = ne(() => import("../../input/argument_input/index.js").then((e) => ({ default: e.ArgumentInput }))), E = (e) => e?.replace(/ /g, " "), Re = ({
|
|
24
23
|
argument: e,
|
|
25
24
|
argumentReplies: n,
|
|
26
25
|
nestingLevel: y = 0,
|
|
27
|
-
|
|
28
|
-
groupType: C,
|
|
26
|
+
groupType: I,
|
|
29
27
|
groupName: S,
|
|
30
|
-
positions:
|
|
28
|
+
positions: g = [],
|
|
31
29
|
disableLinks: P = !1,
|
|
32
30
|
parentArgument: d,
|
|
33
|
-
flashParent:
|
|
34
|
-
expandable:
|
|
35
|
-
disabled:
|
|
31
|
+
flashParent: F,
|
|
32
|
+
expandable: j,
|
|
33
|
+
disabled: _ = !1,
|
|
36
34
|
hideFooter: R = !1,
|
|
37
35
|
hideReplies: T,
|
|
38
|
-
vote:
|
|
39
|
-
fixedContentHeight:
|
|
40
|
-
enableEdition:
|
|
41
|
-
enableDeletion:
|
|
42
|
-
deleteListId:
|
|
43
|
-
showModerationFeedback:
|
|
44
|
-
lineCount:
|
|
45
|
-
replyRedirectUrl:
|
|
46
|
-
hideContent:
|
|
36
|
+
vote: G,
|
|
37
|
+
fixedContentHeight: H = !1,
|
|
38
|
+
enableEdition: V = !0,
|
|
39
|
+
enableDeletion: z = !0,
|
|
40
|
+
deleteListId: O,
|
|
41
|
+
showModerationFeedback: Y,
|
|
42
|
+
lineCount: q = 5,
|
|
43
|
+
replyRedirectUrl: J,
|
|
44
|
+
hideContent: K = !1
|
|
47
45
|
}) => {
|
|
48
|
-
const i =
|
|
46
|
+
const i = de(), { isLoggedIn: Q, currentUser: c } = me(), N = c?.moderation_status === "banned", r = ue(), [p, b] = f(!1), [W, w] = f(!1), [X, Z] = f(!1), x = pe(e), [m, M] = f(), u = $(
|
|
49
47
|
e.content,
|
|
50
48
|
e.language,
|
|
51
49
|
"content",
|
|
52
50
|
e.translation_entries
|
|
53
|
-
),
|
|
51
|
+
), ee = $(
|
|
54
52
|
e.position?.name,
|
|
55
53
|
e.position?.language,
|
|
56
54
|
"name",
|
|
57
55
|
e.position?.translation_entries
|
|
58
|
-
),
|
|
59
|
-
|
|
60
|
-
n !== void 0 &&
|
|
56
|
+
), v = `argument_${e.id}`, C = e.position && g?.map((t) => t.id).indexOf(e.position.id) + 1;
|
|
57
|
+
ie(() => {
|
|
58
|
+
n !== void 0 && re();
|
|
61
59
|
}, [n]);
|
|
62
|
-
const
|
|
63
|
-
if (
|
|
64
|
-
const
|
|
65
|
-
|
|
60
|
+
const te = (t) => {
|
|
61
|
+
if (v === t) {
|
|
62
|
+
const U = document.getElementById(t);
|
|
63
|
+
U && U.scrollIntoView({ behavior: "smooth" }), w(!0);
|
|
66
64
|
}
|
|
65
|
+
}, A = () => {
|
|
66
|
+
Z((t) => !t);
|
|
67
67
|
}, L = () => {
|
|
68
|
-
|
|
69
|
-
},
|
|
70
|
-
b((t) => !t), x([]);
|
|
71
|
-
}, re = (t) => {
|
|
68
|
+
b((t) => !t), M([]);
|
|
69
|
+
}, oe = (t) => {
|
|
72
70
|
if (!m?.find((a) => a.id === t.id))
|
|
73
71
|
return t;
|
|
74
|
-
},
|
|
75
|
-
|
|
72
|
+
}, se = ae((t, a) => /* @__PURE__ */ o(
|
|
73
|
+
he,
|
|
76
74
|
{
|
|
77
75
|
publisher: t.publisher,
|
|
78
76
|
url: t.source_url,
|
|
@@ -80,54 +78,53 @@ const Ne = ce(() => import("../../input/argument_input/index.js").then((e) => ({
|
|
|
80
78
|
index: a
|
|
81
79
|
},
|
|
82
80
|
a
|
|
83
|
-
), []),
|
|
81
|
+
), []), re = () => {
|
|
84
82
|
if (n && Array.isArray(n)) {
|
|
85
83
|
const t = n.filter(
|
|
86
84
|
(a) => a.reply_to_id === e.id
|
|
87
85
|
);
|
|
88
|
-
t.length > 0 && (
|
|
86
|
+
t.length > 0 && (M(t), b(!0));
|
|
89
87
|
}
|
|
90
|
-
},
|
|
91
|
-
|
|
88
|
+
}, k = (t = null) => /* @__PURE__ */ o(
|
|
89
|
+
Te,
|
|
92
90
|
{
|
|
93
91
|
...t ? { argument: t } : {},
|
|
94
92
|
nestingLevel: y + 1,
|
|
95
|
-
|
|
96
|
-
disabled: g,
|
|
93
|
+
disabled: _,
|
|
97
94
|
groupName: S,
|
|
98
|
-
groupType:
|
|
99
|
-
positions:
|
|
95
|
+
groupType: I,
|
|
96
|
+
positions: g,
|
|
100
97
|
argumentReplies: n,
|
|
101
98
|
parentArgument: e,
|
|
102
|
-
flashParent: (a) =>
|
|
99
|
+
flashParent: (a) => te(`argument_${a}`)
|
|
103
100
|
}
|
|
104
101
|
);
|
|
105
|
-
return /* @__PURE__ */ l(
|
|
102
|
+
return /* @__PURE__ */ l(fe, { elementId: v, onScroll: () => w(!0), children: [
|
|
106
103
|
/* @__PURE__ */ l(
|
|
107
104
|
"div",
|
|
108
105
|
{
|
|
109
106
|
className: B(
|
|
110
107
|
s.argument,
|
|
111
108
|
{
|
|
112
|
-
[s.flash]:
|
|
109
|
+
[s.flash]: W,
|
|
113
110
|
[s.argumentReply]: e.is_reply === !0
|
|
114
111
|
},
|
|
115
112
|
s[`level-${y}`],
|
|
116
|
-
s[`position-${!(e.author.role === "editor" || e.author.role === "moderator") &&
|
|
113
|
+
s[`position-${!(e.author.role === "editor" || e.author.role === "moderator") && C}`]
|
|
117
114
|
),
|
|
118
|
-
id:
|
|
115
|
+
id: v,
|
|
119
116
|
children: [
|
|
120
117
|
/* @__PURE__ */ o(
|
|
121
|
-
|
|
118
|
+
ye,
|
|
122
119
|
{
|
|
123
120
|
selectedContent: e.is_selected,
|
|
124
121
|
author: e.author,
|
|
125
|
-
tag: (e.author.role === "editor" || e.author.role === "moderator") && e.is_reply ? null :
|
|
122
|
+
tag: (e.author.role === "editor" || e.author.role === "moderator") && e.is_reply ? null : ee.translatedContent,
|
|
126
123
|
date: e.created_at,
|
|
127
|
-
tagClassName: s[`headerPosition-${
|
|
124
|
+
tagClassName: s[`headerPosition-${C}`],
|
|
128
125
|
disableLinks: P,
|
|
129
126
|
isDeleted: e.is_deleted,
|
|
130
|
-
showModerationFeedback:
|
|
127
|
+
showModerationFeedback: Y ?? (e.status === "rejected" && r.moderation?.showFeedback === !0),
|
|
131
128
|
moderationReason: e.moderation_entry?.moderation_reason,
|
|
132
129
|
moderationNotes: e.moderation_entry?.moderator_notes,
|
|
133
130
|
moderationPolicyUrl: r.provider?.userGuideUrl
|
|
@@ -136,7 +133,7 @@ const Ne = ce(() => import("../../input/argument_input/index.js").then((e) => ({
|
|
|
136
133
|
e.is_deleted ? /* @__PURE__ */ o("div", { className: s.argumentDeletedBody, children: i.formatMessage({
|
|
137
134
|
id: "info.deleted_by_user",
|
|
138
135
|
defaultMessage: "Content deleted by the user"
|
|
139
|
-
}) }) :
|
|
136
|
+
}) }) : K ? /* @__PURE__ */ o("div", { className: s.argumentDeletedBody, children: i.formatMessage({
|
|
140
137
|
id: "argument.argument.content_deleted",
|
|
141
138
|
defaultMessage: "This content has been removed."
|
|
142
139
|
}) }) : /* @__PURE__ */ l(h, { children: [
|
|
@@ -144,14 +141,14 @@ const Ne = ce(() => import("../../input/argument_input/index.js").then((e) => ({
|
|
|
144
141
|
"div",
|
|
145
142
|
{
|
|
146
143
|
className: B(s.argumentBody, {
|
|
147
|
-
[s.fixedHeight]: r?.layout?.showAllArgumentInEmbed !== !0 ?
|
|
144
|
+
[s.fixedHeight]: r?.layout?.showAllArgumentInEmbed !== !0 ? H : !1
|
|
148
145
|
}),
|
|
149
146
|
children: [
|
|
150
147
|
e.is_reply && d && /* @__PURE__ */ l(
|
|
151
148
|
"div",
|
|
152
149
|
{
|
|
153
150
|
className: s.replyTo,
|
|
154
|
-
onClick: () =>
|
|
151
|
+
onClick: () => F(d.id),
|
|
155
152
|
children: [
|
|
156
153
|
i.formatMessage({
|
|
157
154
|
id: "info.replying_to",
|
|
@@ -162,35 +159,35 @@ const Ne = ce(() => import("../../input/argument_input/index.js").then((e) => ({
|
|
|
162
159
|
id: "info.deleted",
|
|
163
160
|
defaultMessage: "Deleted"
|
|
164
161
|
}) : d.author.full_name,
|
|
165
|
-
/* @__PURE__ */ o(
|
|
162
|
+
/* @__PURE__ */ o(D, { name: "chat", height: 16 })
|
|
166
163
|
] })
|
|
167
164
|
]
|
|
168
165
|
}
|
|
169
166
|
),
|
|
170
167
|
/* @__PURE__ */ o(
|
|
171
|
-
|
|
168
|
+
ge,
|
|
172
169
|
{
|
|
173
170
|
content: /* @__PURE__ */ l(h, { children: [
|
|
174
171
|
e.is_edited && /* @__PURE__ */ o("div", { className: s.edited, children: i.formatMessage({
|
|
175
172
|
id: "argument.argument.updated",
|
|
176
173
|
defaultMessage: "Updated argument"
|
|
177
174
|
}) }),
|
|
178
|
-
|
|
175
|
+
x && !u.isTranslated ? /* @__PURE__ */ o(
|
|
179
176
|
"div",
|
|
180
177
|
{
|
|
181
178
|
className: s.argumentContent,
|
|
182
|
-
dangerouslySetInnerHTML: { __html:
|
|
179
|
+
dangerouslySetInnerHTML: { __html: E(x) }
|
|
183
180
|
}
|
|
184
|
-
) : /* @__PURE__ */ o("div", { className: s.argumentContent, children:
|
|
181
|
+
) : /* @__PURE__ */ o("div", { className: s.argumentContent, children: E(u.translatedContent) }),
|
|
185
182
|
u.isTranslated && /* @__PURE__ */ o(
|
|
186
|
-
|
|
183
|
+
_e,
|
|
187
184
|
{
|
|
188
185
|
language: e.language,
|
|
189
186
|
callback: () => u.toggleContent()
|
|
190
187
|
}
|
|
191
188
|
)
|
|
192
189
|
] }),
|
|
193
|
-
lineCount: r?.layout?.showAllArgumentInEmbed !== !0 ?
|
|
190
|
+
lineCount: r?.layout?.showAllArgumentInEmbed !== !0 ? q : void 0,
|
|
194
191
|
readMoreText: i.formatMessage({
|
|
195
192
|
id: "action.read_more",
|
|
196
193
|
defaultMessage: "Read more"
|
|
@@ -199,27 +196,27 @@ const Ne = ce(() => import("../../input/argument_input/index.js").then((e) => ({
|
|
|
199
196
|
id: "action.read_less",
|
|
200
197
|
defaultMessage: "Read less"
|
|
201
198
|
}),
|
|
202
|
-
expandable: r?.layout?.showAllArgumentInEmbed !== !0 ?
|
|
199
|
+
expandable: r?.layout?.showAllArgumentInEmbed !== !0 ? j : !1,
|
|
203
200
|
readMoreClassName: e.is_reply ? s.replyStyle : s.argumentStyle
|
|
204
201
|
}
|
|
205
202
|
)
|
|
206
203
|
]
|
|
207
204
|
}
|
|
208
205
|
),
|
|
209
|
-
e.sources?.length > 0 && /* @__PURE__ */ o("div", { className: s.argumentSourcesList, children: e.sources.map(
|
|
206
|
+
e.sources?.length > 0 && /* @__PURE__ */ o("div", { className: s.argumentSourcesList, children: e.sources.map(se) })
|
|
210
207
|
] }),
|
|
211
208
|
!R && !e.is_deleted && /* @__PURE__ */ o(
|
|
212
|
-
|
|
209
|
+
be,
|
|
213
210
|
{
|
|
214
211
|
resource: e,
|
|
215
|
-
disabled:
|
|
212
|
+
disabled: _ || e.status === "rejected" || !Q && r?.actions?.disableInputForVisitor === !0 || N,
|
|
216
213
|
reportType: "Message",
|
|
217
214
|
softDelete: r.actions?.softDelete,
|
|
218
215
|
deleteType: "messages",
|
|
219
|
-
deleteListId:
|
|
220
|
-
enableReply: y <=
|
|
221
|
-
handleReplyTo:
|
|
222
|
-
replyRedirectUrl:
|
|
216
|
+
deleteListId: O,
|
|
217
|
+
enableReply: y <= 2 || c.role === "editor" || c.role === "moderator",
|
|
218
|
+
handleReplyTo: A,
|
|
219
|
+
replyRedirectUrl: J,
|
|
223
220
|
shareUrl: `https://app.logora.fr/share/a/${e.id}`,
|
|
224
221
|
shareTitle: i.formatMessage({
|
|
225
222
|
id: "share.argument.title",
|
|
@@ -234,28 +231,28 @@ const Ne = ce(() => import("../../input/argument_input/index.js").then((e) => ({
|
|
|
234
231
|
showShareText: !0,
|
|
235
232
|
showShareButton: r?.actions?.hideShareButton !== !0,
|
|
236
233
|
enableReport: !(e.score === 100 && e.manual_score),
|
|
237
|
-
enableEdition:
|
|
238
|
-
enableDeletion:
|
|
234
|
+
enableEdition: V,
|
|
235
|
+
enableDeletion: z,
|
|
239
236
|
children: /* @__PURE__ */ o(
|
|
240
|
-
|
|
237
|
+
Me,
|
|
241
238
|
{
|
|
242
239
|
voteableType: "Message",
|
|
243
240
|
voteableId: e.id,
|
|
244
241
|
totalUpvote: e.upvotes,
|
|
245
242
|
totalDownvote: 0,
|
|
246
|
-
activeClassName: s[`voteButtonPosition-${
|
|
243
|
+
activeClassName: s[`voteButtonPosition-${C}`],
|
|
247
244
|
disabled: e.status === "rejected" || c?.id === e?.author?.id || N
|
|
248
245
|
}
|
|
249
246
|
)
|
|
250
247
|
}
|
|
251
248
|
),
|
|
252
249
|
!R && !T && /* @__PURE__ */ o(
|
|
253
|
-
|
|
250
|
+
ce,
|
|
254
251
|
{
|
|
255
252
|
numberReplies: e.number_replies,
|
|
256
253
|
repliesAuthors: e.replies_authors,
|
|
257
254
|
expandReplies: p,
|
|
258
|
-
onToggleReplies:
|
|
255
|
+
onToggleReplies: L,
|
|
259
256
|
isReply: e.is_reply
|
|
260
257
|
}
|
|
261
258
|
)
|
|
@@ -263,23 +260,21 @@ const Ne = ce(() => import("../../input/argument_input/index.js").then((e) => ({
|
|
|
263
260
|
}
|
|
264
261
|
),
|
|
265
262
|
!T && /* @__PURE__ */ l(h, { children: [
|
|
266
|
-
|
|
267
|
-
|
|
263
|
+
X && /* @__PURE__ */ o(le, { fallback: null, children: /* @__PURE__ */ o(
|
|
264
|
+
Se,
|
|
268
265
|
{
|
|
269
266
|
groupId: e.group_id,
|
|
270
|
-
groupType:
|
|
267
|
+
groupType: I,
|
|
271
268
|
groupName: S,
|
|
272
|
-
positions:
|
|
269
|
+
positions: g,
|
|
273
270
|
parentId: e.id,
|
|
274
|
-
positionId:
|
|
275
|
-
disabled:
|
|
271
|
+
positionId: G?.position_id,
|
|
272
|
+
disabled: _,
|
|
276
273
|
hideSourceAction: r?.actions?.disableUserSources || !1,
|
|
277
274
|
onSubmit: (t) => {
|
|
278
|
-
|
|
279
|
-
X.add(a, [t]), L(), b(!0);
|
|
275
|
+
A(), M([t]), b(!0);
|
|
280
276
|
},
|
|
281
277
|
isReply: !0,
|
|
282
|
-
autoFocus: !0,
|
|
283
278
|
avatarSize: 40,
|
|
284
279
|
placeholder: i.formatMessage({
|
|
285
280
|
id: "input.reply_input.your_answer",
|
|
@@ -290,13 +285,13 @@ const Ne = ce(() => import("../../input/argument_input/index.js").then((e) => ({
|
|
|
290
285
|
},
|
|
291
286
|
`Reply${e.id}`
|
|
292
287
|
) }),
|
|
293
|
-
m?.length > 0 && p && /* @__PURE__ */ o("div", { className: s.repliesList, children: m.map((t) =>
|
|
288
|
+
m?.length > 0 && p && /* @__PURE__ */ o("div", { className: s.repliesList, children: m.map((t) => k(t)) }),
|
|
294
289
|
p && /* @__PURE__ */ o("div", { className: s.repliesList, children: /* @__PURE__ */ o(
|
|
295
|
-
|
|
290
|
+
ve,
|
|
296
291
|
{
|
|
297
292
|
voteableType: "Message",
|
|
298
293
|
currentListId: `argument_${e.id}_reply_list`,
|
|
299
|
-
loadingComponent: /* @__PURE__ */ o(
|
|
294
|
+
loadingComponent: /* @__PURE__ */ o(Ce, {}),
|
|
300
295
|
resource: "messages",
|
|
301
296
|
sort: "+created_at",
|
|
302
297
|
filters: {
|
|
@@ -308,16 +303,16 @@ const Ne = ce(() => import("../../input/argument_input/index.js").then((e) => ({
|
|
|
308
303
|
display: "column",
|
|
309
304
|
resourcePropName: "argument",
|
|
310
305
|
emptyListComponent: /* @__PURE__ */ o(h, {}),
|
|
311
|
-
transformData: (t) =>
|
|
312
|
-
children:
|
|
306
|
+
transformData: (t) => oe(t),
|
|
307
|
+
children: k(e)
|
|
313
308
|
}
|
|
314
309
|
) }),
|
|
315
310
|
m?.length > 0 && !p && /* @__PURE__ */ o("div", { className: s.repliesList, children: e.number_replies > 1 && /* @__PURE__ */ o("div", { className: s.readMoreLink, children: /* @__PURE__ */ o(
|
|
316
|
-
|
|
311
|
+
Ie,
|
|
317
312
|
{
|
|
318
313
|
role: "link",
|
|
319
|
-
rightIcon: /* @__PURE__ */ o(
|
|
320
|
-
handleClick:
|
|
314
|
+
rightIcon: /* @__PURE__ */ o(D, { name: "lightArrow", height: 10, width: 10 }),
|
|
315
|
+
handleClick: L,
|
|
321
316
|
children: i.formatMessage({
|
|
322
317
|
id: "argument.argument.see_more",
|
|
323
318
|
defaultMessage: "See more"
|
|
@@ -326,8 +321,8 @@ const Ne = ce(() => import("../../input/argument_input/index.js").then((e) => ({
|
|
|
326
321
|
) }) })
|
|
327
322
|
] })
|
|
328
323
|
] });
|
|
329
|
-
},
|
|
324
|
+
}, Te = Re;
|
|
330
325
|
export {
|
|
331
|
-
|
|
332
|
-
|
|
326
|
+
Re as Argument,
|
|
327
|
+
Te as ArgumentContainer
|
|
333
328
|
};
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import '../../../assets/components/argument/argument/Argument.module-
|
|
1
|
+
import '../../../assets/components/argument/argument/Argument.module-gLfNRLks.css';const e = "_argument_1d1jw_3", t = "_edited_1d1jw_16", o = "_argumentReply_1d1jw_23", _ = "_flash_1d1jw_73", n = "_argumentBody_1d1jw_94", i = "_argumentDeletedBody_1d1jw_99", d = "_fixedHeight_1d1jw_104", s = "_argumentContent_1d1jw_122", r = "_argumentSourcesList_1d1jw_131", l = "_repliesList_1d1jw_144", a = "_readMoreLink_1d1jw_148", u = "_replyStyle_1d1jw_154", j = "_replyTo_1d1jw_158", w = "_replyingTo_1d1jw_179", g = "_argumentStyle_1d1jw_225", y = {
|
|
2
2
|
argument: e,
|
|
3
3
|
edited: t,
|
|
4
4
|
argumentReply: o,
|
|
5
|
-
"position-1": "_position-
|
|
6
|
-
"position-2": "_position-
|
|
7
|
-
"position-3": "_position-
|
|
8
|
-
"level-1": "_level-
|
|
9
|
-
"level-2": "_level-
|
|
10
|
-
"level-3": "_level-
|
|
11
|
-
"level-4": "_level-
|
|
12
|
-
"level-5": "_level-
|
|
5
|
+
"position-1": "_position-1_1d1jw_34",
|
|
6
|
+
"position-2": "_position-2_1d1jw_37",
|
|
7
|
+
"position-3": "_position-3_1d1jw_40",
|
|
8
|
+
"level-1": "_level-1_1d1jw_43",
|
|
9
|
+
"level-2": "_level-2_1d1jw_46",
|
|
10
|
+
"level-3": "_level-3_1d1jw_49",
|
|
11
|
+
"level-4": "_level-4_1d1jw_52",
|
|
12
|
+
"level-5": "_level-5_1d1jw_55",
|
|
13
13
|
flash: _,
|
|
14
14
|
argumentBody: n,
|
|
15
15
|
argumentDeletedBody: i,
|
|
16
16
|
fixedHeight: d,
|
|
17
17
|
argumentContent: s,
|
|
18
|
-
argumentSourcesList:
|
|
19
|
-
repliesList:
|
|
20
|
-
readMoreLink:
|
|
21
|
-
replyStyle:
|
|
22
|
-
replyTo:
|
|
23
|
-
replyingTo:
|
|
24
|
-
"headerPosition-0": "_headerPosition-
|
|
25
|
-
"headerPosition-1": "_headerPosition-
|
|
26
|
-
"headerPosition-2": "_headerPosition-
|
|
27
|
-
"headerPosition-3": "_headerPosition-
|
|
28
|
-
"voteButtonPosition-1": "_voteButtonPosition-
|
|
29
|
-
"voteButtonPosition-2": "_voteButtonPosition-
|
|
30
|
-
"voteButtonPosition-3": "_voteButtonPosition-
|
|
31
|
-
argumentStyle:
|
|
18
|
+
argumentSourcesList: r,
|
|
19
|
+
repliesList: l,
|
|
20
|
+
readMoreLink: a,
|
|
21
|
+
replyStyle: u,
|
|
22
|
+
replyTo: j,
|
|
23
|
+
replyingTo: w,
|
|
24
|
+
"headerPosition-0": "_headerPosition-0_1d1jw_184",
|
|
25
|
+
"headerPosition-1": "_headerPosition-1_1d1jw_188",
|
|
26
|
+
"headerPosition-2": "_headerPosition-2_1d1jw_192",
|
|
27
|
+
"headerPosition-3": "_headerPosition-3_1d1jw_196",
|
|
28
|
+
"voteButtonPosition-1": "_voteButtonPosition-1_1d1jw_200",
|
|
29
|
+
"voteButtonPosition-2": "_voteButtonPosition-2_1d1jw_207",
|
|
30
|
+
"voteButtonPosition-3": "_voteButtonPosition-3_1d1jw_214",
|
|
31
|
+
argumentStyle: g
|
|
32
32
|
};
|
|
33
33
|
export {
|
|
34
34
|
e as argument,
|
|
@@ -36,15 +36,15 @@ export {
|
|
|
36
36
|
s as argumentContent,
|
|
37
37
|
i as argumentDeletedBody,
|
|
38
38
|
o as argumentReply,
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
39
|
+
r as argumentSourcesList,
|
|
40
|
+
g as argumentStyle,
|
|
41
|
+
y as default,
|
|
42
42
|
t as edited,
|
|
43
43
|
d as fixedHeight,
|
|
44
44
|
_ as flash,
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
45
|
+
a as readMoreLink,
|
|
46
|
+
l as repliesList,
|
|
47
|
+
u as replyStyle,
|
|
48
|
+
j as replyTo,
|
|
49
|
+
w as replyingTo
|
|
50
50
|
};
|