@logora/debate 0.3.72 → 0.3.75

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.
Files changed (47) hide show
  1. package/dist/assets/components/argument/argument/Argument.module-QZdPjj_i.css +1 -0
  2. package/dist/assets/components/consultation/consultation_box/ConsultationBox.module-D2an6OmR.css +1 -0
  3. package/dist/assets/components/input/text_editor/{TextEditor.module-DePSfOvG.css → TextEditor.module-CxuSL3l3.css} +1 -1
  4. package/dist/assets/components/section/section_box/SectionBox.module-qQs4B6bf.css +1 -0
  5. package/dist/assets/components/source/context_source_list/ContextSourceList.module-DUPbI-wb.css +1 -0
  6. package/dist/assets/components/source/source_list_item/SourceListItem.module-fm_uHuY4.css +1 -0
  7. package/dist/assets/components/summary/summary/Summary.module-2bnx3egy.css +1 -0
  8. package/dist/assets/components/summary/summary_box/SummaryBox.module-Dr9PevSJ.css +1 -0
  9. package/dist/assets/components/vote/vote_box/VoteBox.module-C9Q6gBw3.css +1 -0
  10. package/dist/components/argument/argument/Argument.js +112 -108
  11. package/dist/components/argument/argument/Argument.module.scss.js +31 -31
  12. package/dist/components/consultation/consultation_box/ConsultationBox.js +80 -111
  13. package/dist/components/consultation/consultation_box/ConsultationBox.module.scss.js +23 -21
  14. package/dist/components/dialog/dropdown/Dropdown.js +35 -28
  15. package/dist/components/icons/spiegel_icons/Downvote.js +6 -0
  16. package/dist/components/icons/spiegel_icons/Upvote.js +6 -0
  17. package/dist/components/icons/spiegel_icons/index.js +46 -46
  18. package/dist/components/icons/stern_icons/index.js +100 -70
  19. package/dist/components/input/argument_input/ArgumentInput.js +142 -142
  20. package/dist/components/input/select/Select.js +19 -19
  21. package/dist/components/input/text_editor/TextEditor.js +135 -124
  22. package/dist/components/input/text_editor/TextEditor.module.scss.js +5 -5
  23. package/dist/components/input/text_editor/plugins/SetContentPlugin.js +13 -13
  24. package/dist/components/input/text_editor/plugins/SetRichContentPlugin.js +10 -10
  25. package/dist/components/list/paginated_list/PaginatedList.js +112 -110
  26. package/dist/components/notification/notification_menu/NotificationMenu.js +23 -22
  27. package/dist/components/proposal/proposal_box/ProposalBox.js +8 -10
  28. package/dist/components/section/section_box/SectionBox.js +10 -10
  29. package/dist/components/section/section_box/SectionBox.module.scss.js +9 -9
  30. package/dist/components/source/context_source_list/ContextSourceList.js +8 -7
  31. package/dist/components/source/context_source_list/ContextSourceList.module.scss.js +14 -12
  32. package/dist/components/source/source_list_item/SourceListItem.js +42 -28
  33. package/dist/components/source/source_list_item/SourceListItem.module.scss.js +8 -6
  34. package/dist/components/summary/summary/Summary.js +41 -63
  35. package/dist/components/summary/summary/Summary.module.scss.js +10 -6
  36. package/dist/components/summary/summary_box/SummaryBox.module.scss.js +9 -9
  37. package/dist/components/vote/vote_box/VoteBox.js +123 -145
  38. package/dist/components/vote/vote_box/VoteBox.module.scss.js +50 -50
  39. package/package.json +1 -1
  40. package/dist/assets/components/argument/argument/Argument.module-gLfNRLks.css +0 -1
  41. package/dist/assets/components/consultation/consultation_box/ConsultationBox.module-BnTr5IaF.css +0 -1
  42. package/dist/assets/components/section/section_box/SectionBox.module-DUeUtdWr.css +0 -1
  43. package/dist/assets/components/source/context_source_list/ContextSourceList.module-D6X_0dB7.css +0 -1
  44. package/dist/assets/components/source/source_list_item/SourceListItem.module-mTxHhXPV.css +0 -1
  45. package/dist/assets/components/summary/summary/Summary.module-DjfmUlkW.css +0 -1
  46. package/dist/assets/components/summary/summary_box/SummaryBox.module-DQVkA8l7.css +0 -1
  47. package/dist/assets/components/vote/vote_box/VoteBox.module-CDrqb2SZ.css +0 -1
@@ -0,0 +1 @@
1
+ ._argument_1dp33_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_1dp33_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_1dp33_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_1dp33_23._position-1_1dp33_34{border-left-color:var(--for-primary-color, #cc6a6d)!important}._argumentReply_1dp33_23._position-2_1dp33_37{border-left-color:var(--against-primary-color, #7980bb)!important}._argumentReply_1dp33_23._position-3_1dp33_40{border-left-color:var(--third-position-color-primary, #9b9b9b)!important}._argumentReply_1dp33_23._level-1_1dp33_43{margin-left:1em!important}._argumentReply_1dp33_23._level-2_1dp33_46{margin-left:2em!important}._argumentReply_1dp33_23._level-3_1dp33_49{margin-left:3em!important}._argumentReply_1dp33_23._level-4_1dp33_52{margin-left:4em!important}._argumentReply_1dp33_23._level-5_1dp33_55{margin-left:5em!important}._argumentReply_1dp33_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_1dp33_23{border-left:4px solid}}._flash_1dp33_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_1dp33_34._flash_1dp33_73{border-color:var(--for-primary-color, #cc6a6d)}._position-2_1dp33_37._flash_1dp33_73{border-color:var(--against-primary-color, #7980bb)}._position-3_1dp33_40._flash_1dp33_73{border-color:var(--third-position-color-primary, #9b9b9b);margin-top:var(--spacer-sm, calc(var(--space-unit, 1em) * .5))!important}._argumentBody_1dp33_94{font-size:var(--font-size-normal, 16px);line-height:var(--line-height-loose, 1.38em)}._argumentDeletedBody_1dp33_99{font-size:var(--font-size-small, 16px);color:var(--text-secondary, #5F5F5F)}._fixedHeight_1dp33_104{height:100px;overflow:hidden;position:relative}._fixedHeight_1dp33_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_1dp33_122{line-height:var(--line-height-loose, 1.38em);overflow-wrap:break-word;word-wrap:break-word}._argumentContent_1dp33_122 *{font-size:var(--font-size-normal, 16px)}._argumentSourcesList_1dp33_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_1dp33_131 a{text-decoration:none}._repliesList_1dp33_144{margin-top:var(--spacer-sm, calc(var(--space-unit, 1em) * .5))!important}._readMoreLink_1dp33_148{margin-top:var(--spacer-md, calc(var(--space-unit, 1em) * .75))!important;display:flex;justify-content:center}._replyStyle_1dp33_154{background:var(--text-tertiary, #fafafa)}._replyTo_1dp33_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_1dp33_158 span{padding-left:var(--spacer-xxs, calc(var(--space-unit, 1em) * .25))!important;cursor:pointer;text-decoration:underline}._replyTo_1dp33_158 svg{padding:2px 0 0 2px;fill:var(--text-secondary, #5F5F5F)}._replyingTo_1dp33_179{display:flex!important;align-items:center!important}._headerPosition-0_1dp33_184{background-color:var(--call-primary-color, #434343)!important}._headerPosition-1_1dp33_188{background-color:var(--for-primary-color, #cc6a6d)!important}._headerPosition-2_1dp33_192{background-color:var(--against-primary-color, #7980bb)!important}._headerPosition-3_1dp33_196{background-color:var(--third-position-color-primary, #9b9b9b)!important}._voteButtonPosition-1_1dp33_200{color:var(--for-primary-color, #cc6a6d)!important}._voteButtonPosition-1_1dp33_200 svg{fill:var(--for-primary-color, #cc6a6d)!important}._voteButtonPosition-2_1dp33_207{color:var(--against-primary-color, #7980bb)!important}._voteButtonPosition-2_1dp33_207 svg{fill:var(--against-primary-color, #7980bb)!important}._voteButtonPosition-3_1dp33_214{color:var(--third-position-color-primary, #9b9b9b)!important}._voteButtonPosition-3_1dp33_214 svg{fill:var(--third-position-color-primary, #9b9b9b)!important}@media(prefers-color-scheme:dark){._replyStyle_1dp33_154{background-color:var(--text-tertiary, #fafafa)}._argumentStyle_1dp33_225{background-color:var(--background-color-primary, white)}}._argumentContent_1dp33_122 ol{list-style-type:decimal!important;margin-left:var(--spacer-sm, calc(var(--space-unit, 1em) * .5))!important;padding-left:var(--spacer-xl, calc(var(--space-unit, 1em) * 3))!important}._argumentContent_1dp33_122 ul{list-style-type:disc!important;margin-left:var(--spacer-sm, calc(var(--space-unit, 1em) * .5))!important;padding-left:var(--spacer-xl, calc(var(--space-unit, 1em) * 3))!important}._argumentContent_1dp33_122 ol li::marker,._argumentContent_1dp33_122 ul li::marker{content:normal!important}
@@ -0,0 +1 @@
1
+ ._container_1fmcx_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_1fmcx_3 a{text-decoration:none!important;color:var(--text-primary, #222222)!important}._consultationImageBox_1fmcx_18{position:relative}._consultationImage_1fmcx_18{border-top-right-radius:var(--box-border-radius, 6px);border-top-left-radius:var(--box-border-radius, 6px);width:100%;aspect-ratio:var(--img-aspect-ratio, 16/9);object-fit:cover;display:block}._consultationTime_1fmcx_31{display:flex!important;align-items:center!important;position:absolute;left:var(--space-unit, 1em);bottom:var(--space-unit, 1em);padding-right:var(--spacer-md, calc(var(--space-unit, 1em) * .75))!important;padding-left:var(--spacer-md, calc(var(--space-unit, 1em) * .75))!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;background-color:var(--call-primary-color, #434343);border-radius:var(--box-border-radius, 6px);font-size:var(--font-size-normal, 16px);color:var(--text-light, white);max-width:93%;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}._consultationTime_1fmcx_31 span{color:var(--text-light, white)}._consultationTime_1fmcx_31._ended_1fmcx_53{background-color:var(--call-primary-color, #434343)}._consultationTitle_1fmcx_57{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)}._iconVote_1fmcx_66{padding-top:3px!important}._iconChat_1fmcx_70{padding-top:6px!important}._consultationButtonContainer_1fmcx_74{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_1fmcx_74:hover{text-decoration:underline;text-decoration-color:var(--text-secondary, #5F5F5F)}._consultationButtonContainer_1fmcx_74 ._arrowIcon_1fmcx_86{margin-left:var(--spacer-xxs, calc(var(--space-unit, 1em) * .25))!important;transform:rotate(180deg);fill:var(--text-secondary, #5F5F5F);top:1px;position:relative}._consultationInformations_1fmcx_94{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;min-height:50px}._consultationInformations_1fmcx_94 ._consultationLeft_1fmcx_104{display:flex!important}._consultationInformations_1fmcx_94 ._consultationGroupInformation_1fmcx_107{display:flex!important;align-items:center!important}._consultationInformations_1fmcx_94 ._consultationGroupInformation_1fmcx_107._consultationGroupRight_1fmcx_111{padding-right:var(--space-unit, 1em)!important}._consultationInformations_1fmcx_94 ._progressBarContainer_1fmcx_114{width:60%;display:flex!important;flex-direction:column!important;align-items:flex-end!important;font-size:var(--font-size-extra-small, 14px)}._consultationInformations_1fmcx_94 ._progressBarContainer_1fmcx_114 ._progress_1fmcx_114{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_1fmcx_94 ._progressBarContainer_1fmcx_114 ._bar_1fmcx_128{background-color:var(--call-primary-color, #434343)}._consultationInformations_1fmcx_94 ._progressBarContainer_1fmcx_114 ._totalVotes_1fmcx_131{margin-right:var(--spacer-xxs, calc(var(--space-unit, 1em) * .25))!important}._consultationInformations_1fmcx_94 ._progressBarContainer_1fmcx_114 ._totalVotesPercentage_1fmcx_134{margin-left:var(--spacer-xxs, calc(var(--space-unit, 1em) * .25))!important}._consultationInformations_1fmcx_94 ._consultationTextInformation_1fmcx_137{padding-right:var(--spacer-xxs, calc(var(--space-unit, 1em) * .25))!important;padding-top:5px!important}
@@ -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}
1
+ ._ltr_1k7lj_3{text-align:left}._editorContainer_1k7lj_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_1k7lj_14{background:var(--background-color-primary, white);position:relative}._editorInner_1k7lj_14._editorInnerInactive_1k7lj_18{display:flex!important;justify-content:space-between!important}._editorPlaceholder_1k7lj_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_1k7lj_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_1k7lj_35._editorInputInactive_1k7lj_46{min-width:180px;width:100%}._editorTextBold_1k7lj_51{font-weight:var(--font-weight-bold, 700)}._editorTextItalic_1k7lj_55{font-style:italic}._editorTextUnderline_1k7lj_59{text-decoration:underline}._editorTextStrikethrough_1k7lj_63{text-decoration:line-through}._editorTextUnderlineStrikethrough_1k7lj_67{text-decoration:underline line-through}._editorParagraph_1k7lj_71{margin:0!important;margin-bottom:var(--spacer-xxs, calc(var(--space-unit, 1em) * .25))!important;position:relative}._editorParagraph_1k7lj_71:last-child{margin-bottom:0!important}._editorQuote_1k7lj_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_1k7lj_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_1k7lj_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_1k7lj_105{list-style-type:none}pre::-webkit-scrollbar{background:transparent;width:10px}pre::-webkit-scrollbar-thumb{background:var(--text-secondary, #5F5F5F)}._sourcesBox_1k7lj_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_1k7lj_129{display:flex!important;flex-direction:column!important;justify-content:flex-start!important;align-items:flex-start!important;padding:0!important}._charactersCount_1k7lj_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}._editorInput_1k7lj_35 ol li::marker{content:normal!important}._editorInput_1k7lj_35 ul li::marker{content:normal!important}
@@ -0,0 +1 @@
1
+ ._sectionBoxContainer_tcujo_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_tcujo_3{padding:var(--spacer-lg, calc(var(--space-unit, 1em) * 1.5))!important}}._sectionBoxContainer_tcujo_3._isMobile_tcujo_15{padding:var(--space-unit, 1em)!important}._header_tcujo_19{display:flex;justify-content:space-between;align-items:center;width:100%}._collapsible_tcujo_26{cursor:pointer}._iconLightArrow_tcujo_30{flex-shrink:0;margin-left:.75em;transition:transform .3s}._iconRotated_tcujo_36{transform:rotate(180deg)}._titleContainer_tcujo_40{display:flex;align-items:baseline;gap:.5em}._title_tcujo_40{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_tcujo_54{font-size:var(--font-size-small, 16px);color:var(--text-secondary, #5F5F5F)}._body_tcujo_59{padding-top:var(--space-unit, 1em)!important}
@@ -0,0 +1 @@
1
+ ._sectionBox_15pa0_3{padding:1em}._title_15pa0_7{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_15pa0_14{display:grid;gap:var(--space-unit, 1em)}._content_15pa0_14._contentMobile_15pa0_18{grid-template-columns:repeat(1,1fr)}._content_15pa0_14._contentTablet_15pa0_21{grid-template-columns:repeat(2,1fr)}._content_15pa0_14._contentDesktop_15pa0_24{grid-template-columns:repeat(3,1fr)}._listItem_15pa0_28{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_15pa0_28:hover{border:1px solid var(--text-primary, #222222)!important}
@@ -0,0 +1 @@
1
+ ._sourceListItemContainer_as5dp_3{position:relative;display:inline-flex;align-items:center;max-width:100%}a._sourceListItem_as5dp_3{display:flex;flex-direction:row;justify-content:flex-start;font-size:var(--font-size-extra-small, 14px);margin-top:5px;padding:5px 26px 5px 5px;border:1px solid var(--background-color-secondary, #E8E8E8);border-radius:var(--box-border-radius, 6px);max-width:100%}a._sourceListItem_as5dp_3 svg{margin-right:5px;flex-shrink:0!important;width:16px!important;height:16px!important}a._sourceListItem_as5dp_3{color:var(--text-primary, #222222)!important;text-decoration:none!important;outline:none!important}._removeSourceButton_as5dp_33{position:absolute;top:calc(50% + 2px);right:6px;transform:translateY(-50%);border:none;background:transparent;cursor:pointer;padding:0;display:flex;align-items:center;justify-content:center;color:var(--text-primary, #222222);z-index:2}
@@ -0,0 +1 @@
1
+ ._sectionBox_tui97_3{padding:1em}._content_tui97_7{padding-top:1em}._summaryContainer_tui97_11{display:flex;flex-direction:row;flex-wrap:wrap;align-items:stretch;gap:1em}._summaryContainer_tui97_11>div{flex:1 1 calc(50% - .5em);max-width:calc(50% - .5em);display:flex;flex-direction:column}@container (max-width: 767.98px){._summaryContainer_tui97_11{flex-direction:column}._summaryContainer_tui97_11>div{flex:1 1 100%;max-width:100%;width:100%}}._description_tui97_35{color:var(--text-secondary, #5F5F5F);font-size:var(--font-size-small, 16px);margin-bottom:1em}
@@ -0,0 +1 @@
1
+ ._box_f4my1_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;width:100%;max-width:100%;box-sizing:border-box}._stats_f4my1_17{display:flex!important;justify-content:flex-start!important;align-items:center;gap:10px}._stats_f4my1_17._withTag_f4my1_24{margin-bottom:.4em}._tag_f4my1_28{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_f4my1_47{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);overflow-wrap:anywhere}._emptySummaryText_f4my1_57{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_e0cdc_3{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:center!important;width:100%}._voteResultsBox_e0cdc_11{display:flex!important;flex-direction:column!important;padding:0!important;width:100%}._voteResults_e0cdc_11{padding:0!important}._voteProgressHeader_e0cdc_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_e0cdc_35{margin-top:var(--spacer-md, calc(var(--space-unit, 1em) * .75))!important}._voteResultsNumberVoters_e0cdc_39{display:flex!important;align-items:center!important;padding:0!important;font-size:var(--font-size-normal, 16px);color:var(--text-secondary, #5F5F5F)}._voteBoxFooter_e0cdc_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_e0cdc_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_e0cdc_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_e0cdc_74{grid-template-columns:1fr}._voteAction_e0cdc_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_e0cdc_78._buttonAlignLeft_e0cdc_88{justify-content:flex-start!important}button._voteButton_e0cdc_92,a._voteButton_e0cdc_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_e0cdc_103{justify-content:flex-start!important}._voteBoxShowResultContainer_e0cdc_107{display:flex!important;flex-direction:row!important;justify-content:center;flex-wrap:wrap!important;margin-top:.3em}._voteBoxShowResult_e0cdc_107{cursor:pointer}._voteBoxShowResult_e0cdc_107 a{color:inherit;text-decoration:none;background:none!important}._voteBoxShowResult_e0cdc_107 a:hover{text-decoration:none;background:none!important}._voteBoxShowResult_e0cdc_107 a:focus:not(:focus-visible){outline:none;box-shadow:none}._voteBoxShowResult_e0cdc_107 ._boldShowResult_e0cdc_131{font-weight:var(--font-weight-bold, 700);color:var(--text-primary, #222222)}._outlined_e0cdc_136{padding:7px 15px;border-radius:var(--box-border-radius, 6px);border:1px solid var(--text-primary, #222222)!important;white-space:nowrap}._voteButtonThesis_e0cdc_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_e0cdc_155{text-align:center!important}}._voteBoxActionsBody_e0cdc_66 ._voteAction_e0cdc_78:first-child ._voteButton_e0cdc_92,._voteBoxActionsBody_e0cdc_66 ._voteAction_e0cdc_78:first-child ._voteButton_e0cdc_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_e0cdc_66 ._voteAction_e0cdc_78:nth-child(2) ._voteButton_e0cdc_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_e0cdc_66 ._voteAction_e0cdc_78:nth-child(2) ._voteButton_e0cdc_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_e0cdc_66 ._voteAction_e0cdc_78:nth-child(3) ._voteButton_e0cdc_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_e0cdc_66 ._voteAction_e0cdc_78:nth-child(3) ._voteButton_e0cdc_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_e0cdc_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_e0cdc_194:focus:not(:focus-visible){outline:none;box-shadow:none}._sideIcon_e0cdc_209 svg{margin-left:5px;fill:var(--text-primary, #222222)}._progress_e0cdc_214{border-radius:10px;height:25px;color:var(--text-secondary, #5F5F5F)}._progressBar_e0cdc_220{border-radius:10px;height:25px}._voteResults_e0cdc_11>div:first-child ._progress_e0cdc_214 ._progressBar_e0cdc_220{background-color:var(--for-primary-color, #cc6a6d)!important}._voteResults_e0cdc_11>div:nth-child(2) ._progress_e0cdc_214 ._progressBar_e0cdc_220{background-color:var(--against-primary-color, #7980bb)!important}._voteResults_e0cdc_11 div:nth-child(3) ._progress_e0cdc_214 ._progressBar_e0cdc_220{background-color:var(--third-position-color-primary, #9b9b9b)!important}._voteCommentCounts_e0cdc_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_e0cdc_245{display:flex;align-items:center;gap:var(--spacer-xxs, calc(var(--space-unit, 1em) * .25));font-size:var(--font-size-normal, 16px);color:var(--text-primary, #222222);white-space:nowrap}._debateNumberLabel_e0cdc_254{white-space:nowrap}._showResultButton_e0cdc_258{background:none;border:0;padding:0;font:inherit;color:inherit;cursor:pointer}._showResultButton_e0cdc_258:focus:not(:focus-visible){outline:none;box-shadow:none}._voteResultInfoText_e0cdc_271{font-size:var(--font-size-small, 16px);color:var(--text-secondary, #5F5F5F);text-align:left;width:100%;align-self:flex-start}
@@ -1,76 +1,78 @@
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 ie, useCallback as ae, Suspense as le, lazy as ne } from "react";
4
- import { useIntl as de } from "react-intl";
3
+ import { useState as f, useEffect as le, useCallback as ne, Suspense as de, lazy as ce } from "react";
4
+ import { useIntl as pe } from "react-intl";
5
5
  import s from "./Argument.module.scss.js";
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 = ({
6
+ import { ReplyFooter as me } from "./ReplyFooter.js";
7
+ import { useRichContent as ue } from "./useRichContent.js";
8
+ import { useAuth as he } from "../../auth/use_auth/useAuth.js";
9
+ import { useConfig as fe } from "../../data/config_provider/useConfig.js";
10
+ import { useList as ye } from "../../list/list_provider/useList.js";
11
+ import { useTranslatedContent as D } from "../../translation/translated_content/useTranslatedContent.js";
12
+ import { SourceListItem as _e } from "../../source/source_list_item/SourceListItem.js";
13
+ import { HashScroll as ge } from "../../tools/hash_scroll/HashScroll.js";
14
+ import { ContentHeader as be } from "../../user_content/content_header/ContentHeader.js";
15
+ import { Icon as E } from "../../icons/icon/Icon.js";
16
+ import { ReadMore as Me } from "../../text/read_more/ReadMore.js";
17
+ import { TranslationButton as ve } from "../../translation/translation_button/TranslationButton.js";
18
+ import { ContentFooter as Ie } from "../../user_content/content_footer/ContentFooter.js";
19
+ import { VoteButton as Ce } from "../../vote/vote_button/VoteButton.js";
20
+ import { VotePaginatedList as Se } from "../../list/paginated_list/VotePaginatedList.js";
21
+ import { UserContentSkeleton as Re } from "../../skeleton/user_content_skeleton/UserContentSkeleton.js";
22
+ import { Button as Te } from "../../action/button/Button.js";
23
+ const Ne = ce(() => import("../../input/argument_input/index.js").then((e) => ({ default: e.ArgumentInput }))), P = (e) => e?.replace(/ /g, " "), we = ({
23
24
  argument: e,
24
25
  argumentReplies: n,
25
26
  nestingLevel: y = 0,
26
- groupType: I,
27
+ maxNestingLevel: I = 2,
28
+ groupType: C,
27
29
  groupName: S,
28
- positions: g = [],
29
- disableLinks: P = !1,
30
+ positions: _ = [],
31
+ disableLinks: F = !1,
30
32
  parentArgument: d,
31
- flashParent: F,
32
- expandable: j,
33
- disabled: _ = !1,
33
+ flashParent: j,
34
+ expandable: G,
35
+ disabled: g = !1,
34
36
  hideFooter: R = !1,
35
37
  hideReplies: T,
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
38
+ vote: H,
39
+ fixedContentHeight: V = !1,
40
+ enableEdition: z = !0,
41
+ enableDeletion: O = !0,
42
+ deleteListId: Y,
43
+ showModerationFeedback: q,
44
+ lineCount: J = 5,
45
+ replyRedirectUrl: K,
46
+ hideContent: Q = !1
45
47
  }) => {
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 = $(
48
+ const i = pe(), { isLoggedIn: W, currentUser: c } = he(), N = c?.moderation_status === "banned", r = fe(), X = ye(), [p, b] = f(!1), [Z, w] = f(!1), [ee, te] = f(!1), A = ue(e), [m, x] = f(), u = D(
47
49
  e.content,
48
50
  e.language,
49
51
  "content",
50
52
  e.translation_entries
51
- ), ee = $(
53
+ ), oe = D(
52
54
  e.position?.name,
53
55
  e.position?.language,
54
56
  "name",
55
57
  e.position?.translation_entries
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();
58
+ ), M = `argument_${e.id}`, v = e.position && _?.map((t) => t.id).indexOf(e.position.id) + 1;
59
+ le(() => {
60
+ n !== void 0 && ae();
59
61
  }, [n]);
60
- const te = (t) => {
61
- if (v === t) {
62
- const U = document.getElementById(t);
63
- U && U.scrollIntoView({ behavior: "smooth" }), w(!0);
62
+ const se = (t) => {
63
+ if (M === t) {
64
+ const $ = document.getElementById(t);
65
+ $ && $.scrollIntoView({ behavior: "smooth" }), w(!0);
64
66
  }
65
- }, A = () => {
66
- Z((t) => !t);
67
67
  }, L = () => {
68
- b((t) => !t), M([]);
69
- }, oe = (t) => {
68
+ te((t) => !t);
69
+ }, k = () => {
70
+ b((t) => !t), x([]);
71
+ }, re = (t) => {
70
72
  if (!m?.find((a) => a.id === t.id))
71
73
  return t;
72
- }, se = ae((t, a) => /* @__PURE__ */ o(
73
- he,
74
+ }, ie = ne((t, a) => /* @__PURE__ */ o(
75
+ _e,
74
76
  {
75
77
  publisher: t.publisher,
76
78
  url: t.source_url,
@@ -78,53 +80,54 @@ const Se = ne(() => import("../../input/argument_input/index.js").then((e) => ({
78
80
  index: a
79
81
  },
80
82
  a
81
- ), []), re = () => {
83
+ ), []), ae = () => {
82
84
  if (n && Array.isArray(n)) {
83
85
  const t = n.filter(
84
86
  (a) => a.reply_to_id === e.id
85
87
  );
86
- t.length > 0 && (M(t), b(!0));
88
+ t.length > 0 && (x(t), b(!0));
87
89
  }
88
- }, k = (t = null) => /* @__PURE__ */ o(
89
- Te,
90
+ }, U = (t = null) => /* @__PURE__ */ o(
91
+ Ae,
90
92
  {
91
93
  ...t ? { argument: t } : {},
92
94
  nestingLevel: y + 1,
93
- disabled: _,
95
+ maxNestingLevel: I,
96
+ disabled: g,
94
97
  groupName: S,
95
- groupType: I,
96
- positions: g,
98
+ groupType: C,
99
+ positions: _,
97
100
  argumentReplies: n,
98
101
  parentArgument: e,
99
- flashParent: (a) => te(`argument_${a}`)
102
+ flashParent: (a) => se(`argument_${a}`)
100
103
  }
101
104
  );
102
- return /* @__PURE__ */ l(fe, { elementId: v, onScroll: () => w(!0), children: [
105
+ return /* @__PURE__ */ l(ge, { elementId: M, onScroll: () => w(!0), children: [
103
106
  /* @__PURE__ */ l(
104
107
  "div",
105
108
  {
106
109
  className: B(
107
110
  s.argument,
108
111
  {
109
- [s.flash]: W,
112
+ [s.flash]: Z,
110
113
  [s.argumentReply]: e.is_reply === !0
111
114
  },
112
115
  s[`level-${y}`],
113
- s[`position-${!(e.author.role === "editor" || e.author.role === "moderator") && C}`]
116
+ s[`position-${!(e.author.role === "editor" || e.author.role === "moderator") && v}`]
114
117
  ),
115
- id: v,
118
+ id: M,
116
119
  children: [
117
120
  /* @__PURE__ */ o(
118
- ye,
121
+ be,
119
122
  {
120
123
  selectedContent: e.is_selected,
121
124
  author: e.author,
122
- tag: (e.author.role === "editor" || e.author.role === "moderator") && e.is_reply ? null : ee.translatedContent,
125
+ tag: (e.author.role === "editor" || e.author.role === "moderator") && e.is_reply ? null : oe.translatedContent,
123
126
  date: e.created_at,
124
- tagClassName: s[`headerPosition-${C}`],
125
- disableLinks: P,
127
+ tagClassName: s[`headerPosition-${v}`],
128
+ disableLinks: F,
126
129
  isDeleted: e.is_deleted,
127
- showModerationFeedback: Y ?? (e.status === "rejected" && r.moderation?.showFeedback === !0),
130
+ showModerationFeedback: q ?? (e.status === "rejected" && r.moderation?.showFeedback === !0),
128
131
  moderationReason: e.moderation_entry?.moderation_reason,
129
132
  moderationNotes: e.moderation_entry?.moderator_notes,
130
133
  moderationPolicyUrl: r.provider?.userGuideUrl
@@ -133,7 +136,7 @@ const Se = ne(() => import("../../input/argument_input/index.js").then((e) => ({
133
136
  e.is_deleted ? /* @__PURE__ */ o("div", { className: s.argumentDeletedBody, children: i.formatMessage({
134
137
  id: "info.deleted_by_user",
135
138
  defaultMessage: "Content deleted by the user"
136
- }) }) : K ? /* @__PURE__ */ o("div", { className: s.argumentDeletedBody, children: i.formatMessage({
139
+ }) }) : Q ? /* @__PURE__ */ o("div", { className: s.argumentDeletedBody, children: i.formatMessage({
137
140
  id: "argument.argument.content_deleted",
138
141
  defaultMessage: "This content has been removed."
139
142
  }) }) : /* @__PURE__ */ l(h, { children: [
@@ -141,14 +144,14 @@ const Se = ne(() => import("../../input/argument_input/index.js").then((e) => ({
141
144
  "div",
142
145
  {
143
146
  className: B(s.argumentBody, {
144
- [s.fixedHeight]: r?.layout?.showAllArgumentInEmbed !== !0 ? H : !1
147
+ [s.fixedHeight]: r?.layout?.showAllArgumentInEmbed !== !0 ? V : !1
145
148
  }),
146
149
  children: [
147
150
  e.is_reply && d && /* @__PURE__ */ l(
148
151
  "div",
149
152
  {
150
153
  className: s.replyTo,
151
- onClick: () => F(d.id),
154
+ onClick: () => j(d.id),
152
155
  children: [
153
156
  i.formatMessage({
154
157
  id: "info.replying_to",
@@ -159,35 +162,35 @@ const Se = ne(() => import("../../input/argument_input/index.js").then((e) => ({
159
162
  id: "info.deleted",
160
163
  defaultMessage: "Deleted"
161
164
  }) : d.author.full_name,
162
- /* @__PURE__ */ o(D, { name: "chat", height: 16 })
165
+ /* @__PURE__ */ o(E, { name: "chat", height: 16 })
163
166
  ] })
164
167
  ]
165
168
  }
166
169
  ),
167
170
  /* @__PURE__ */ o(
168
- ge,
171
+ Me,
169
172
  {
170
173
  content: /* @__PURE__ */ l(h, { children: [
171
174
  e.is_edited && /* @__PURE__ */ o("div", { className: s.edited, children: i.formatMessage({
172
175
  id: "argument.argument.updated",
173
176
  defaultMessage: "Updated argument"
174
177
  }) }),
175
- x && !u.isTranslated ? /* @__PURE__ */ o(
178
+ A && !u.isTranslated ? /* @__PURE__ */ o(
176
179
  "div",
177
180
  {
178
181
  className: s.argumentContent,
179
- dangerouslySetInnerHTML: { __html: E(x) }
182
+ dangerouslySetInnerHTML: { __html: P(A) }
180
183
  }
181
- ) : /* @__PURE__ */ o("div", { className: s.argumentContent, children: E(u.translatedContent) }),
184
+ ) : /* @__PURE__ */ o("div", { className: s.argumentContent, children: P(u.translatedContent) }),
182
185
  u.isTranslated && /* @__PURE__ */ o(
183
- _e,
186
+ ve,
184
187
  {
185
188
  language: e.language,
186
189
  callback: () => u.toggleContent()
187
190
  }
188
191
  )
189
192
  ] }),
190
- lineCount: r?.layout?.showAllArgumentInEmbed !== !0 ? q : void 0,
193
+ lineCount: r?.layout?.showAllArgumentInEmbed !== !0 ? J : void 0,
191
194
  readMoreText: i.formatMessage({
192
195
  id: "action.read_more",
193
196
  defaultMessage: "Read more"
@@ -196,27 +199,27 @@ const Se = ne(() => import("../../input/argument_input/index.js").then((e) => ({
196
199
  id: "action.read_less",
197
200
  defaultMessage: "Read less"
198
201
  }),
199
- expandable: r?.layout?.showAllArgumentInEmbed !== !0 ? j : !1,
202
+ expandable: r?.layout?.showAllArgumentInEmbed !== !0 ? G : !1,
200
203
  readMoreClassName: e.is_reply ? s.replyStyle : s.argumentStyle
201
204
  }
202
205
  )
203
206
  ]
204
207
  }
205
208
  ),
206
- e.sources?.length > 0 && /* @__PURE__ */ o("div", { className: s.argumentSourcesList, children: e.sources.map(se) })
209
+ e.sources?.length > 0 && /* @__PURE__ */ o("div", { className: s.argumentSourcesList, children: e.sources.map(ie) })
207
210
  ] }),
208
211
  !R && !e.is_deleted && /* @__PURE__ */ o(
209
- be,
212
+ Ie,
210
213
  {
211
214
  resource: e,
212
- disabled: _ || e.status === "rejected" || !Q && r?.actions?.disableInputForVisitor === !0 || N,
215
+ disabled: g || e.status === "rejected" || !W && r?.actions?.disableInputForVisitor === !0 || N,
213
216
  reportType: "Message",
214
217
  softDelete: r.actions?.softDelete,
215
218
  deleteType: "messages",
216
- deleteListId: O,
217
- enableReply: y <= 2 || c.role === "editor" || c.role === "moderator",
218
- handleReplyTo: A,
219
- replyRedirectUrl: J,
219
+ deleteListId: Y,
220
+ enableReply: y <= I || c.role === "editor" || c.role === "moderator",
221
+ handleReplyTo: L,
222
+ replyRedirectUrl: K,
220
223
  shareUrl: `https://app.logora.fr/share/a/${e.id}`,
221
224
  shareTitle: i.formatMessage({
222
225
  id: "share.argument.title",
@@ -231,28 +234,28 @@ const Se = ne(() => import("../../input/argument_input/index.js").then((e) => ({
231
234
  showShareText: !0,
232
235
  showShareButton: r?.actions?.hideShareButton !== !0,
233
236
  enableReport: !(e.score === 100 && e.manual_score),
234
- enableEdition: V,
235
- enableDeletion: z,
237
+ enableEdition: z,
238
+ enableDeletion: O,
236
239
  children: /* @__PURE__ */ o(
237
- Me,
240
+ Ce,
238
241
  {
239
242
  voteableType: "Message",
240
243
  voteableId: e.id,
241
244
  totalUpvote: e.upvotes,
242
245
  totalDownvote: 0,
243
- activeClassName: s[`voteButtonPosition-${C}`],
246
+ activeClassName: s[`voteButtonPosition-${v}`],
244
247
  disabled: e.status === "rejected" || c?.id === e?.author?.id || N
245
248
  }
246
249
  )
247
250
  }
248
251
  ),
249
252
  !R && !T && /* @__PURE__ */ o(
250
- ce,
253
+ me,
251
254
  {
252
255
  numberReplies: e.number_replies,
253
256
  repliesAuthors: e.replies_authors,
254
257
  expandReplies: p,
255
- onToggleReplies: L,
258
+ onToggleReplies: k,
256
259
  isReply: e.is_reply
257
260
  }
258
261
  )
@@ -260,19 +263,20 @@ const Se = ne(() => import("../../input/argument_input/index.js").then((e) => ({
260
263
  }
261
264
  ),
262
265
  !T && /* @__PURE__ */ l(h, { children: [
263
- X && /* @__PURE__ */ o(le, { fallback: null, children: /* @__PURE__ */ o(
264
- Se,
266
+ ee && /* @__PURE__ */ o(de, { fallback: null, children: /* @__PURE__ */ o(
267
+ Ne,
265
268
  {
266
269
  groupId: e.group_id,
267
- groupType: I,
270
+ groupType: C,
268
271
  groupName: S,
269
- positions: g,
272
+ positions: _,
270
273
  parentId: e.id,
271
- positionId: G?.position_id,
272
- disabled: _,
274
+ positionId: H?.position_id,
275
+ disabled: g,
273
276
  hideSourceAction: r?.actions?.disableUserSources || !1,
274
277
  onSubmit: (t) => {
275
- A(), M([t]), b(!0);
278
+ const a = `argument_${e.id}_reply_list`;
279
+ X.add(a, [t]), L(), b(!0);
276
280
  },
277
281
  isReply: !0,
278
282
  avatarSize: 40,
@@ -285,13 +289,13 @@ const Se = ne(() => import("../../input/argument_input/index.js").then((e) => ({
285
289
  },
286
290
  `Reply${e.id}`
287
291
  ) }),
288
- m?.length > 0 && p && /* @__PURE__ */ o("div", { className: s.repliesList, children: m.map((t) => k(t)) }),
292
+ m?.length > 0 && p && /* @__PURE__ */ o("div", { className: s.repliesList, children: m.map((t) => U(t)) }),
289
293
  p && /* @__PURE__ */ o("div", { className: s.repliesList, children: /* @__PURE__ */ o(
290
- ve,
294
+ Se,
291
295
  {
292
296
  voteableType: "Message",
293
297
  currentListId: `argument_${e.id}_reply_list`,
294
- loadingComponent: /* @__PURE__ */ o(Ce, {}),
298
+ loadingComponent: /* @__PURE__ */ o(Re, {}),
295
299
  resource: "messages",
296
300
  sort: "+created_at",
297
301
  filters: {
@@ -303,16 +307,16 @@ const Se = ne(() => import("../../input/argument_input/index.js").then((e) => ({
303
307
  display: "column",
304
308
  resourcePropName: "argument",
305
309
  emptyListComponent: /* @__PURE__ */ o(h, {}),
306
- transformData: (t) => oe(t),
307
- children: k(e)
310
+ transformData: (t) => re(t),
311
+ children: U(e)
308
312
  }
309
313
  ) }),
310
314
  m?.length > 0 && !p && /* @__PURE__ */ o("div", { className: s.repliesList, children: e.number_replies > 1 && /* @__PURE__ */ o("div", { className: s.readMoreLink, children: /* @__PURE__ */ o(
311
- Ie,
315
+ Te,
312
316
  {
313
317
  role: "link",
314
- rightIcon: /* @__PURE__ */ o(D, { name: "lightArrow", height: 10, width: 10 }),
315
- handleClick: L,
318
+ rightIcon: /* @__PURE__ */ o(E, { name: "lightArrow", height: 10, width: 10 }),
319
+ handleClick: k,
316
320
  children: i.formatMessage({
317
321
  id: "argument.argument.see_more",
318
322
  defaultMessage: "See more"
@@ -321,8 +325,8 @@ const Se = ne(() => import("../../input/argument_input/index.js").then((e) => ({
321
325
  ) }) })
322
326
  ] })
323
327
  ] });
324
- }, Te = Re;
328
+ }, Ae = we;
325
329
  export {
326
- Re as Argument,
327
- Te as ArgumentContainer
330
+ we as Argument,
331
+ Ae as ArgumentContainer
328
332
  };
@@ -1,34 +1,34 @@
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 = {
1
+ import '../../../assets/components/argument/argument/Argument.module-QZdPjj_i.css';const e = "_argument_1dp33_3", t = "_edited_1dp33_16", o = "_argumentReply_1dp33_23", _ = "_flash_1dp33_73", n = "_argumentBody_1dp33_94", i = "_argumentDeletedBody_1dp33_99", d = "_fixedHeight_1dp33_104", s = "_argumentContent_1dp33_122", p = "_argumentSourcesList_1dp33_131", r = "_repliesList_1dp33_144", l = "_readMoreLink_1dp33_148", a = "_replyStyle_1dp33_154", u = "_replyTo_1dp33_158", g = "_replyingTo_1dp33_179", y = "_argumentStyle_1dp33_225", m = {
2
2
  argument: e,
3
3
  edited: t,
4
4
  argumentReply: o,
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",
5
+ "position-1": "_position-1_1dp33_34",
6
+ "position-2": "_position-2_1dp33_37",
7
+ "position-3": "_position-3_1dp33_40",
8
+ "level-1": "_level-1_1dp33_43",
9
+ "level-2": "_level-2_1dp33_46",
10
+ "level-3": "_level-3_1dp33_49",
11
+ "level-4": "_level-4_1dp33_52",
12
+ "level-5": "_level-5_1dp33_55",
13
13
  flash: _,
14
14
  argumentBody: n,
15
15
  argumentDeletedBody: i,
16
16
  fixedHeight: d,
17
17
  argumentContent: s,
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
18
+ argumentSourcesList: p,
19
+ repliesList: r,
20
+ readMoreLink: l,
21
+ replyStyle: a,
22
+ replyTo: u,
23
+ replyingTo: g,
24
+ "headerPosition-0": "_headerPosition-0_1dp33_184",
25
+ "headerPosition-1": "_headerPosition-1_1dp33_188",
26
+ "headerPosition-2": "_headerPosition-2_1dp33_192",
27
+ "headerPosition-3": "_headerPosition-3_1dp33_196",
28
+ "voteButtonPosition-1": "_voteButtonPosition-1_1dp33_200",
29
+ "voteButtonPosition-2": "_voteButtonPosition-2_1dp33_207",
30
+ "voteButtonPosition-3": "_voteButtonPosition-3_1dp33_214",
31
+ argumentStyle: y
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
- r as argumentSourcesList,
40
- g as argumentStyle,
41
- y as default,
39
+ p as argumentSourcesList,
40
+ y as argumentStyle,
41
+ m as default,
42
42
  t as edited,
43
43
  d as fixedHeight,
44
44
  _ as flash,
45
- a as readMoreLink,
46
- l as repliesList,
47
- u as replyStyle,
48
- j as replyTo,
49
- w as replyingTo
45
+ l as readMoreLink,
46
+ r as repliesList,
47
+ a as replyStyle,
48
+ u as replyTo,
49
+ g as replyingTo
50
50
  };