@logora/debate 0.2.0 → 0.2.2

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 (545) hide show
  1. package/README.md +1 -0
  2. package/dist/_virtual/_rolldown/runtime.js +6 -18
  3. package/dist/assets/debate-89_S7oMP.css +2 -0
  4. package/dist/components/action/back_link/BackLink.js +15 -16
  5. package/dist/components/action/button/Button.js +21 -22
  6. package/dist/components/action/icon_text_link/IconTextLink.js +26 -27
  7. package/dist/components/action/link/Link.js +7 -7
  8. package/dist/components/ad/ad_unit/AdUnit.js +17 -17
  9. package/dist/components/ad/with_ad/WithAd.js +10 -10
  10. package/dist/components/argument/argument/Argument.js +123 -124
  11. package/dist/components/argument/argument/ReplyFooter.js +22 -23
  12. package/dist/components/argument/top_arguments/TopArguments.js +43 -43
  13. package/dist/components/auth/auth_modal/AuthModal.js +55 -55
  14. package/dist/components/auth/facebook_login_button/FacebookIcon.js +5 -5
  15. package/dist/components/auth/facebook_login_button/FacebookLoginButton.js +14 -14
  16. package/dist/components/auth/google_login_button/GoogleIcon.js +7 -7
  17. package/dist/components/auth/google_login_button/GoogleLoginButton.js +15 -15
  18. package/dist/components/auth/login_form/LoginForm.js +37 -38
  19. package/dist/components/auth/oauth2_button/OAuth2Button.js +18 -19
  20. package/dist/components/auth/signup_form/SignupForm.js +68 -69
  21. package/dist/components/auth/social_auth_form/SocialAuthForm.js +109 -110
  22. package/dist/components/auth/sso_form/SSOForm.js +68 -70
  23. package/dist/components/auth/use_auth/AuthProvider.js +11 -11
  24. package/dist/components/chart/line_chart/LineChart.js +53 -54
  25. package/dist/components/chart/pie_chart/PieChart.js +20 -20
  26. package/dist/components/consultation/consultation_box/ConsultationBox.js +70 -72
  27. package/dist/components/data/axios_client/httpClient.js +1 -1
  28. package/dist/components/data/config_provider/ConfigProvider.js +5 -5
  29. package/dist/components/data/config_provider/withConfig.js +5 -5
  30. package/dist/components/debate/debate_box/DebateBox.js +95 -97
  31. package/dist/components/dialog/announcement_dialog/AnnouncementDialog.js +14 -15
  32. package/dist/components/dialog/confirm_modal/ConfirmModal.js +26 -27
  33. package/dist/components/dialog/countdown/Countdown.js +12 -12
  34. package/dist/components/dialog/dialog_box/DialogBox.js +33 -34
  35. package/dist/components/dialog/drawer/Drawer.js +85 -85
  36. package/dist/components/dialog/dropdown/Dropdown.js +21 -22
  37. package/dist/components/dialog/modal/Modal.js +37 -38
  38. package/dist/components/dialog/modal/ModalProvider.js +14 -14
  39. package/dist/components/dialog/toast/Toast.js +26 -27
  40. package/dist/components/dialog/toast_provider/ToastProvider.js +18 -18
  41. package/dist/components/dialog/tooltip/Tooltip.js +23 -24
  42. package/dist/components/embed/embed_header/EmbedHeader.js +38 -39
  43. package/dist/components/error/standard_error_boundary/StandardErrorBoundary.js +7 -7
  44. package/dist/components/follow/follow_button/FollowButton.js +25 -26
  45. package/dist/components/forms/form/form.js +9 -10
  46. package/dist/components/forms/use_form_validation/useFormValidation.js +3 -3
  47. package/dist/components/gamification/badge_box/BadgeBox.js +50 -52
  48. package/dist/components/gamification/point_box/PointBox.js +12 -12
  49. package/dist/components/hooks/use_auth_required/useAuthRequired.js +10 -10
  50. package/dist/components/hooks/use_font_loader/useFontLoader.js +5 -5
  51. package/dist/components/hooks/use_relative_time/useRelativeTime.js +1 -1
  52. package/dist/components/hooks/use_responsive/ResponsiveProvider.js +17 -17
  53. package/dist/components/icons/bild_icons/Alarm.js +15 -0
  54. package/dist/components/icons/bild_icons/Announcement.js +20 -0
  55. package/dist/components/icons/bild_icons/Arrow.js +11 -0
  56. package/dist/components/icons/bild_icons/Blockquote.js +11 -0
  57. package/dist/components/icons/bild_icons/Bold.js +11 -0
  58. package/dist/components/icons/bild_icons/Camera.js +11 -0
  59. package/dist/components/icons/bild_icons/Chat.js +44 -0
  60. package/dist/components/icons/bild_icons/Check.js +12 -0
  61. package/dist/components/icons/bild_icons/CheckCircle.js +20 -0
  62. package/dist/components/icons/bild_icons/Checkbox.js +11 -0
  63. package/dist/components/icons/bild_icons/Clap.js +21 -0
  64. package/dist/components/icons/bild_icons/Clock.js +11 -0
  65. package/dist/components/icons/bild_icons/Close.js +11 -0
  66. package/dist/components/icons/bild_icons/Code.js +32 -0
  67. package/dist/components/icons/bild_icons/Community.js +11 -0
  68. package/dist/components/icons/bild_icons/Crown.js +12 -0
  69. package/dist/components/icons/bild_icons/Document.js +11 -0
  70. package/dist/components/icons/bild_icons/Downvote.js +11 -0
  71. package/dist/components/icons/bild_icons/Ellipsis.js +12 -0
  72. package/dist/components/icons/bild_icons/ExpertBadge.js +33 -0
  73. package/dist/components/icons/bild_icons/Facebook.js +11 -0
  74. package/dist/components/icons/bild_icons/Flag.js +11 -0
  75. package/dist/components/icons/bild_icons/Home.js +11 -0
  76. package/dist/components/icons/bild_icons/Italic.js +11 -0
  77. package/dist/components/icons/bild_icons/LightArrow.js +12 -0
  78. package/dist/components/icons/bild_icons/Link.js +11 -0
  79. package/dist/components/icons/bild_icons/Login.js +19 -0
  80. package/dist/components/icons/bild_icons/Logora.js +25 -0
  81. package/dist/components/icons/bild_icons/Mail.js +11 -0
  82. package/dist/components/icons/bild_icons/MinusCircle.js +24 -0
  83. package/dist/components/icons/bild_icons/MobileClose.js +19 -0
  84. package/dist/components/icons/bild_icons/MobileMenu.js +29 -0
  85. package/dist/components/icons/bild_icons/Next.js +22 -0
  86. package/dist/components/icons/bild_icons/OpenBlank.js +15 -0
  87. package/dist/components/icons/bild_icons/OrderedList.js +11 -0
  88. package/dist/components/icons/bild_icons/PauseCircle.js +34 -0
  89. package/dist/components/icons/bild_icons/Point.js +21 -0
  90. package/dist/components/icons/bild_icons/Question.js +18 -0
  91. package/dist/components/icons/bild_icons/Refresh.js +11 -0
  92. package/dist/components/icons/bild_icons/Reply.js +11 -0
  93. package/dist/components/icons/bild_icons/Search.js +11 -0
  94. package/dist/components/icons/bild_icons/Send.js +11 -0
  95. package/dist/components/icons/bild_icons/Share.js +12 -0
  96. package/dist/components/icons/bild_icons/SmallArrow.js +11 -0
  97. package/dist/components/icons/bild_icons/Source.js +11 -0
  98. package/dist/components/icons/bild_icons/Suggestion.js +19 -0
  99. package/dist/components/icons/bild_icons/Twitter.js +29 -0
  100. package/dist/components/icons/bild_icons/Underline.js +11 -0
  101. package/dist/components/icons/bild_icons/Upvote.js +11 -0
  102. package/dist/components/icons/bild_icons/User.js +11 -0
  103. package/dist/components/icons/bild_icons/Versus.js +14 -0
  104. package/dist/components/icons/bild_icons/Votebox.js +12 -0
  105. package/dist/components/icons/bild_icons/index.js +110 -0
  106. package/dist/components/icons/hero_icons/Alarm.js +18 -0
  107. package/dist/components/icons/hero_icons/Announcement.js +18 -0
  108. package/dist/components/icons/hero_icons/Arrow.js +18 -0
  109. package/dist/components/icons/hero_icons/Blockquote.js +27 -0
  110. package/dist/components/icons/hero_icons/Bold.js +17 -0
  111. package/dist/components/icons/hero_icons/Camera.js +22 -0
  112. package/dist/components/icons/hero_icons/Chat.js +18 -0
  113. package/dist/components/icons/hero_icons/Check.js +18 -0
  114. package/dist/components/icons/hero_icons/CheckCircle.js +20 -0
  115. package/dist/components/icons/hero_icons/Checkbox.js +18 -0
  116. package/dist/components/icons/hero_icons/Clap.js +18 -0
  117. package/dist/components/icons/hero_icons/Clock.js +18 -0
  118. package/dist/components/icons/hero_icons/Close.js +18 -0
  119. package/dist/components/icons/hero_icons/Code.js +18 -0
  120. package/dist/components/icons/hero_icons/Community.js +18 -0
  121. package/dist/components/icons/hero_icons/Crown.js +18 -0
  122. package/dist/components/icons/hero_icons/Downvote.js +18 -0
  123. package/dist/components/icons/hero_icons/Ellipsis.js +18 -0
  124. package/dist/components/icons/hero_icons/ExpertBadge.js +18 -0
  125. package/dist/components/icons/hero_icons/Facebook.js +11 -0
  126. package/dist/components/icons/hero_icons/Flag.js +11 -0
  127. package/dist/components/icons/hero_icons/Home.js +18 -0
  128. package/dist/components/icons/hero_icons/Italic.js +17 -0
  129. package/dist/components/icons/hero_icons/LightArrow.js +12 -0
  130. package/dist/components/icons/hero_icons/Link.js +18 -0
  131. package/dist/components/icons/hero_icons/Login.js +19 -0
  132. package/dist/components/icons/hero_icons/Logora.js +25 -0
  133. package/dist/components/icons/hero_icons/Mail.js +18 -0
  134. package/dist/components/icons/hero_icons/MinusCircle.js +24 -0
  135. package/dist/components/icons/hero_icons/MobileClose.js +18 -0
  136. package/dist/components/icons/hero_icons/MobileMenu.js +18 -0
  137. package/dist/components/icons/hero_icons/Next.js +18 -0
  138. package/dist/components/icons/hero_icons/OpenBlank.js +18 -0
  139. package/dist/components/icons/hero_icons/OrderedList.js +47 -0
  140. package/dist/components/icons/hero_icons/PauseCircle.js +34 -0
  141. package/dist/components/icons/hero_icons/Point.js +21 -0
  142. package/dist/components/icons/hero_icons/Question.js +18 -0
  143. package/dist/components/icons/hero_icons/Refresh.js +18 -0
  144. package/dist/components/icons/hero_icons/Reply.js +18 -0
  145. package/dist/components/icons/hero_icons/Search.js +18 -0
  146. package/dist/components/icons/hero_icons/Send.js +18 -0
  147. package/dist/components/icons/hero_icons/Share.js +18 -0
  148. package/dist/components/icons/hero_icons/SmallArrow.js +18 -0
  149. package/dist/components/icons/hero_icons/Source.js +18 -0
  150. package/dist/components/icons/hero_icons/Suggestion.js +18 -0
  151. package/dist/components/icons/hero_icons/Twitter.js +29 -0
  152. package/dist/components/icons/hero_icons/Underline.js +27 -0
  153. package/dist/components/icons/hero_icons/Upvote.js +18 -0
  154. package/dist/components/icons/hero_icons/User.js +18 -0
  155. package/dist/components/icons/hero_icons/Versus.js +18 -0
  156. package/dist/components/icons/hero_icons/Votebox.js +18 -0
  157. package/dist/components/icons/hero_icons/index.js +108 -0
  158. package/dist/components/icons/icon/Icon.js +9 -9
  159. package/dist/components/icons/icon_provider/IconProvider.js +5 -5
  160. package/dist/components/icons/krone_icons/Alarm.js +28 -0
  161. package/dist/components/icons/krone_icons/Announcement.js +16 -0
  162. package/dist/components/icons/krone_icons/Arrow.js +11 -0
  163. package/dist/components/icons/krone_icons/Blockquote.js +11 -0
  164. package/dist/components/icons/krone_icons/Bold.js +11 -0
  165. package/dist/components/icons/krone_icons/Camera.js +11 -0
  166. package/dist/components/icons/krone_icons/Chat.js +30 -0
  167. package/dist/components/icons/krone_icons/Check.js +11 -0
  168. package/dist/components/icons/krone_icons/CheckBox.js +5 -5
  169. package/dist/components/icons/krone_icons/CheckCircle.js +20 -0
  170. package/dist/components/icons/krone_icons/Clap.js +30 -0
  171. package/dist/components/icons/krone_icons/Clock.js +11 -0
  172. package/dist/components/icons/krone_icons/Close.js +11 -0
  173. package/dist/components/icons/krone_icons/Code.js +32 -0
  174. package/dist/components/icons/krone_icons/Community.js +11 -0
  175. package/dist/components/icons/krone_icons/Crown.js +11 -0
  176. package/dist/components/icons/krone_icons/Document.js +11 -0
  177. package/dist/components/icons/krone_icons/Downvote.js +11 -0
  178. package/dist/components/icons/krone_icons/Ellipsis.js +18 -0
  179. package/dist/components/icons/krone_icons/ExpertBadge.js +30 -0
  180. package/dist/components/icons/krone_icons/Facebook.js +11 -0
  181. package/dist/components/icons/krone_icons/Flag.js +11 -0
  182. package/dist/components/icons/krone_icons/Home.js +30 -0
  183. package/dist/components/icons/krone_icons/Italic.js +11 -0
  184. package/dist/components/icons/krone_icons/LightArrow.js +11 -0
  185. package/dist/components/icons/krone_icons/Link.js +11 -0
  186. package/dist/components/icons/krone_icons/Login.js +18 -0
  187. package/dist/components/icons/krone_icons/Logora.js +25 -0
  188. package/dist/components/icons/krone_icons/Mail.js +11 -0
  189. package/dist/components/icons/krone_icons/MinusCircle.js +24 -0
  190. package/dist/components/icons/krone_icons/MobileClose.js +18 -0
  191. package/dist/components/icons/krone_icons/MobileMenu.js +29 -0
  192. package/dist/components/icons/krone_icons/Next.js +22 -0
  193. package/dist/components/icons/krone_icons/OpenBlank.js +15 -0
  194. package/dist/components/icons/krone_icons/OrderedList.js +11 -0
  195. package/dist/components/icons/krone_icons/PauseCircle.js +33 -0
  196. package/dist/components/icons/krone_icons/Point.js +21 -0
  197. package/dist/components/icons/krone_icons/Question.js +30 -0
  198. package/dist/components/icons/krone_icons/Refresh.js +11 -0
  199. package/dist/components/icons/krone_icons/Reply.js +18 -0
  200. package/dist/components/icons/krone_icons/Search.js +11 -0
  201. package/dist/components/icons/krone_icons/Send.js +26 -0
  202. package/dist/components/icons/krone_icons/Share.js +14 -0
  203. package/dist/components/icons/krone_icons/SmallArrow.js +11 -0
  204. package/dist/components/icons/krone_icons/Source.js +11 -0
  205. package/dist/components/icons/krone_icons/Suggestion.js +30 -0
  206. package/dist/components/icons/krone_icons/Twitter.js +29 -0
  207. package/dist/components/icons/krone_icons/Underline.js +11 -0
  208. package/dist/components/icons/krone_icons/Upvote.js +30 -0
  209. package/dist/components/icons/krone_icons/User.js +33 -0
  210. package/dist/components/icons/krone_icons/Versus.js +11 -0
  211. package/dist/components/icons/krone_icons/Votebox.js +30 -0
  212. package/dist/components/icons/krone_icons/index.js +110 -0
  213. package/dist/components/icons/regular_icons/Alarm.js +15 -0
  214. package/dist/components/icons/regular_icons/Announcement.js +20 -0
  215. package/dist/components/icons/regular_icons/Arrow.js +11 -0
  216. package/dist/components/icons/regular_icons/Blockquote.js +11 -0
  217. package/dist/components/icons/regular_icons/Bold.js +11 -0
  218. package/dist/components/icons/regular_icons/Camera.js +11 -0
  219. package/dist/components/icons/regular_icons/Chat.js +16 -0
  220. package/dist/components/icons/regular_icons/Check.js +11 -0
  221. package/dist/components/icons/regular_icons/CheckCircle.js +20 -0
  222. package/dist/components/icons/regular_icons/Checkbox.js +11 -0
  223. package/dist/components/icons/regular_icons/Clap.js +15 -0
  224. package/dist/components/icons/regular_icons/Clock.js +11 -0
  225. package/dist/components/icons/regular_icons/Close.js +11 -0
  226. package/dist/components/icons/regular_icons/Code.js +32 -0
  227. package/dist/components/icons/regular_icons/Community.js +11 -0
  228. package/dist/components/icons/regular_icons/Crown.js +11 -0
  229. package/dist/components/icons/regular_icons/Document.js +11 -0
  230. package/dist/components/icons/regular_icons/Downvote.js +11 -0
  231. package/dist/components/icons/regular_icons/Ellipsis.js +11 -0
  232. package/dist/components/icons/regular_icons/ExpertBadge.js +32 -0
  233. package/dist/components/icons/regular_icons/Facebook.js +11 -0
  234. package/dist/components/icons/regular_icons/Flag.js +11 -0
  235. package/dist/components/icons/regular_icons/Home.js +11 -0
  236. package/dist/components/icons/regular_icons/Italic.js +11 -0
  237. package/dist/components/icons/regular_icons/LightArrow.js +11 -0
  238. package/dist/components/icons/regular_icons/Link.js +11 -0
  239. package/dist/components/icons/regular_icons/Login.js +18 -0
  240. package/dist/components/icons/regular_icons/Logora.js +25 -0
  241. package/dist/components/icons/regular_icons/Mail.js +11 -0
  242. package/dist/components/icons/regular_icons/MinusCircle.js +24 -0
  243. package/dist/components/icons/regular_icons/MobileClose.js +18 -0
  244. package/dist/components/icons/regular_icons/MobileMenu.js +29 -0
  245. package/dist/components/icons/regular_icons/Next.js +22 -0
  246. package/dist/components/icons/regular_icons/OpenBlank.js +15 -0
  247. package/dist/components/icons/regular_icons/OrderedList.js +11 -0
  248. package/dist/components/icons/regular_icons/PauseCircle.js +33 -0
  249. package/dist/components/icons/regular_icons/Point.js +21 -0
  250. package/dist/components/icons/regular_icons/Question.js +18 -0
  251. package/dist/components/icons/regular_icons/Refresh.js +11 -0
  252. package/dist/components/icons/regular_icons/Reply.js +11 -0
  253. package/dist/components/icons/regular_icons/Search.js +11 -0
  254. package/dist/components/icons/regular_icons/Send.js +11 -0
  255. package/dist/components/icons/regular_icons/Share.js +12 -0
  256. package/dist/components/icons/regular_icons/SmallArrow.js +11 -0
  257. package/dist/components/icons/regular_icons/Source.js +11 -0
  258. package/dist/components/icons/regular_icons/Suggestion.js +19 -0
  259. package/dist/components/icons/regular_icons/Twitter.js +29 -0
  260. package/dist/components/icons/regular_icons/Underline.js +11 -0
  261. package/dist/components/icons/regular_icons/Upvote.js +11 -0
  262. package/dist/components/icons/regular_icons/User.js +11 -0
  263. package/dist/components/icons/regular_icons/Versus.js +11 -0
  264. package/dist/components/icons/regular_icons/Votebox.js +12 -0
  265. package/dist/components/icons/regular_icons/index.js +110 -0
  266. package/dist/components/icons/spiegel_icons/Alarm.js +15 -0
  267. package/dist/components/icons/spiegel_icons/Announcement.js +20 -0
  268. package/dist/components/icons/spiegel_icons/Arrow.js +11 -0
  269. package/dist/components/icons/spiegel_icons/Blockquote.js +26 -0
  270. package/dist/components/icons/spiegel_icons/Bold.js +16 -0
  271. package/dist/components/icons/spiegel_icons/Camera.js +11 -0
  272. package/dist/components/icons/spiegel_icons/Chat.js +12 -0
  273. package/dist/components/icons/spiegel_icons/Check.js +11 -0
  274. package/dist/components/icons/spiegel_icons/CheckCircle.js +20 -0
  275. package/dist/components/icons/spiegel_icons/Checkbox.js +26 -0
  276. package/dist/components/icons/spiegel_icons/Clap.js +26 -0
  277. package/dist/components/icons/spiegel_icons/Clock.js +26 -0
  278. package/dist/components/icons/spiegel_icons/Close.js +15 -0
  279. package/dist/components/icons/spiegel_icons/Code.js +32 -0
  280. package/dist/components/icons/spiegel_icons/Community.js +11 -0
  281. package/dist/components/icons/spiegel_icons/Crown.js +12 -0
  282. package/dist/components/icons/spiegel_icons/Downvote.js +11 -0
  283. package/dist/components/icons/spiegel_icons/Ellipsis.js +12 -0
  284. package/dist/components/icons/spiegel_icons/ExpertBadge.js +28 -0
  285. package/dist/components/icons/spiegel_icons/Facebook.js +16 -0
  286. package/dist/components/icons/spiegel_icons/Flag.js +20 -0
  287. package/dist/components/icons/spiegel_icons/Home.js +11 -0
  288. package/dist/components/icons/spiegel_icons/Italic.js +16 -0
  289. package/dist/components/icons/spiegel_icons/LightArrow.js +12 -0
  290. package/dist/components/icons/spiegel_icons/Link.js +26 -0
  291. package/dist/components/icons/spiegel_icons/Login.js +19 -0
  292. package/dist/components/icons/spiegel_icons/Logora.js +25 -0
  293. package/dist/components/icons/spiegel_icons/Mail.js +16 -0
  294. package/dist/components/icons/spiegel_icons/MinusCircle.js +20 -0
  295. package/dist/components/icons/spiegel_icons/MobileClose.js +19 -0
  296. package/dist/components/icons/spiegel_icons/MobileMenu.js +29 -0
  297. package/dist/components/icons/spiegel_icons/Next.js +22 -0
  298. package/dist/components/icons/spiegel_icons/OpenBlank.js +15 -0
  299. package/dist/components/icons/spiegel_icons/OrderedList.js +29 -0
  300. package/dist/components/icons/spiegel_icons/PauseCircle.js +20 -0
  301. package/dist/components/icons/spiegel_icons/Point.js +21 -0
  302. package/dist/components/icons/spiegel_icons/Question.js +30 -0
  303. package/dist/components/icons/spiegel_icons/Refresh.js +11 -0
  304. package/dist/components/icons/spiegel_icons/Reply.js +12 -0
  305. package/dist/components/icons/spiegel_icons/Search.js +11 -0
  306. package/dist/components/icons/spiegel_icons/Send.js +11 -0
  307. package/dist/components/icons/spiegel_icons/Share.js +26 -0
  308. package/dist/components/icons/spiegel_icons/SmallArrow.js +12 -0
  309. package/dist/components/icons/spiegel_icons/Source.js +11 -0
  310. package/dist/components/icons/spiegel_icons/Suggestion.js +16 -0
  311. package/dist/components/icons/spiegel_icons/Twitter.js +29 -0
  312. package/dist/components/icons/spiegel_icons/Underline.js +26 -0
  313. package/dist/components/icons/spiegel_icons/Upvote.js +11 -0
  314. package/dist/components/icons/spiegel_icons/User.js +11 -0
  315. package/dist/components/icons/spiegel_icons/Versus.js +14 -0
  316. package/dist/components/icons/spiegel_icons/Votebox.js +26 -0
  317. package/dist/components/icons/spiegel_icons/index.js +108 -0
  318. package/dist/components/input/argument_input/ArgumentInput.js +167 -169
  319. package/dist/components/input/checkbox/hidden/hidden-checkbox.js +9 -11
  320. package/dist/components/input/checkbox/indicator/checkbox-indicator.js +11 -12
  321. package/dist/components/input/checkbox/label/checkbox-label.js +17 -18
  322. package/dist/components/input/input_provider/InputProvider.js +7 -7
  323. package/dist/components/input/search_input/SearchInput.js +25 -25
  324. package/dist/components/input/select/Select.js +38 -39
  325. package/dist/components/input/text_editor/TextEditor.js +107 -108
  326. package/dist/components/input/text_editor/lexicalToHtml.js +10 -10
  327. package/dist/components/input/text_editor/plugins/AutoSavePlugin.js +12 -12
  328. package/dist/components/input/text_editor/plugins/FocusPlugin.js +4 -4
  329. package/dist/components/input/text_editor/plugins/MaxLengthPlugin.js +14 -14
  330. package/dist/components/input/text_editor/plugins/ResetPlugin.js +9 -9
  331. package/dist/components/input/text_editor/plugins/SetContentPlugin.js +8 -8
  332. package/dist/components/input/text_editor/plugins/SetRichContentPlugin.js +4 -4
  333. package/dist/components/input/text_editor/plugins/ToolbarPlugin.js +84 -85
  334. package/dist/components/input/text_input/TextInput.js +28 -29
  335. package/dist/components/input/text_input/color-accent.js +8 -9
  336. package/dist/components/input/text_input/message.js +9 -11
  337. package/dist/components/input/toggle/Toggle.js +19 -21
  338. package/dist/components/input/toggle_position/TogglePosition.js +33 -34
  339. package/dist/components/intl/intl_provider/IntlProvider.js +28 -28
  340. package/dist/components/list/list_provider/ListProvider.js +7 -7
  341. package/dist/components/list/paginated_list/PaginatedList.js +133 -134
  342. package/dist/components/list/paginated_list/VotePaginatedList.js +13 -13
  343. package/dist/components/list/paginated_list/action_bar/ActionBar.js +53 -54
  344. package/dist/components/list/pagination/Pagination.js +17 -17
  345. package/dist/components/modal/side_modal/SideModal.js +36 -36
  346. package/dist/components/navbar/navbar_button/NavbarButton.js +16 -17
  347. package/dist/components/navbar/navbar_modal/NavbarModal.js +85 -86
  348. package/dist/components/notification/notification_item/NotificationItem.js +31 -32
  349. package/dist/components/notification/notification_menu/NotificationMenu.js +27 -27
  350. package/dist/components/progress/loader/Loader.js +7 -7
  351. package/dist/components/progress/progress_bar/ProgressBar.js +37 -38
  352. package/dist/components/proposal/proposal_box/ProposalBox.js +72 -73
  353. package/dist/components/report/report_box/ReportBox.js +59 -60
  354. package/dist/components/section/section_box/SectionBox.js +27 -28
  355. package/dist/components/share/share_box/ShareBox.js +53 -53
  356. package/dist/components/share/share_button/ShareButton.js +43 -44
  357. package/dist/components/share/share_modal/ShareModal.js +12 -12
  358. package/dist/components/skeleton/box_skeleton/BoxSkeleton.js +22 -22
  359. package/dist/components/skeleton/user_content_skeleton/UserContentSkeleton.js +31 -32
  360. package/dist/components/source/context_source_box/ContextSourceBox.js +28 -29
  361. package/dist/components/source/context_source_list/ContextSourceList.js +27 -28
  362. package/dist/components/source/source_box/SourceBox.js +23 -23
  363. package/dist/components/source/source_list_item/SourceListItem.js +15 -15
  364. package/dist/components/source/source_modal/SourceModal.js +59 -60
  365. package/dist/components/suggestion/suggestion_banner/SuggestionBanner.js +46 -48
  366. package/dist/components/suggestion/suggestion_box/SuggestionBox.js +57 -59
  367. package/dist/components/suggestion/suggestion_input/SuggestionInput.js +86 -88
  368. package/dist/components/summary/argument_summary_box/ArgumentSummaryBox.js +40 -41
  369. package/dist/components/summary/keyword_box/KeywordBox.js +21 -21
  370. package/dist/components/summary/summary/Summary.js +34 -34
  371. package/dist/components/summary/summary_box/SummaryBox.js +16 -16
  372. package/dist/components/tag/tag/Tag.js +9 -10
  373. package/dist/components/text/expandable_text/ArrowIcon.js +5 -5
  374. package/dist/components/text/expandable_text/ExpandableText.js +36 -37
  375. package/dist/components/text/read_more/ReadMore.js +46 -47
  376. package/dist/components/tools/hash_scroll/HashScroll.js +12 -12
  377. package/dist/components/translation/translated_content/TranslatedContent.js +3 -3
  378. package/dist/components/translation/translated_content/useTranslatedContent.js +5 -5
  379. package/dist/components/translation/translation_button/TranslationButton.js +14 -16
  380. package/dist/components/user/author_box/AuthorBox.js +69 -71
  381. package/dist/components/user/avatar/Avatar.js +37 -38
  382. package/dist/components/user/avatar/DefaultAvatar.js +6 -6
  383. package/dist/components/user/avatar_selector/AvatarSelector.js +55 -56
  384. package/dist/components/user/update_user_info_modal/UpdateUserInfoModal.js +123 -124
  385. package/dist/components/user/update_user_info_modal/useUpdateUserInfo.js +12 -12
  386. package/dist/components/user/user_box/UserBox.js +47 -49
  387. package/dist/components/user/user_box_small/UserBoxSmall.js +26 -27
  388. package/dist/components/user_content/content_footer/ContentFooter.js +84 -85
  389. package/dist/components/user_content/content_header/ContentHeader.js +68 -69
  390. package/dist/components/user_content/summary_content_box/SummaryContentBox.js +42 -43
  391. package/dist/components/user_content/use_delete_content/useDeleteContent.js +16 -16
  392. package/dist/components/user_content/use_report_content/ReportModal.js +117 -118
  393. package/dist/components/user_content/use_report_content/useReportContent.js +13 -13
  394. package/dist/components/util/location/Location.js +1 -1
  395. package/dist/components/vote/suggestion_vote_box/SuggestionVoteBox.js +37 -37
  396. package/dist/components/vote/up_down_vote_box/UpDownVoteBox.js +31 -32
  397. package/dist/components/vote/vote_box/VoteBox.js +165 -167
  398. package/dist/components/vote/vote_button/VoteButton.js +21 -22
  399. package/dist/components/vote/vote_provider/VoteProvider.js +17 -17
  400. package/dist/index.js +85 -29
  401. package/package.json +7 -2
  402. package/dist/assets/debate-Bv79XlHp.css +0 -2
  403. package/dist/node_modules/.pnpm/@formatjs_fast-memoize@2.2.7/node_modules/@formatjs/fast-memoize/lib/index.js +0 -51
  404. package/dist/node_modules/.pnpm/@formatjs_icu-messageformat-parser@2.11.4/node_modules/@formatjs/icu-messageformat-parser/lib/date-time-pattern-generator.js +0 -28
  405. package/dist/node_modules/.pnpm/@formatjs_icu-messageformat-parser@2.11.4/node_modules/@formatjs/icu-messageformat-parser/lib/error.js +0 -7
  406. package/dist/node_modules/.pnpm/@formatjs_icu-messageformat-parser@2.11.4/node_modules/@formatjs/icu-messageformat-parser/lib/index.js +0 -26
  407. package/dist/node_modules/.pnpm/@formatjs_icu-messageformat-parser@2.11.4/node_modules/@formatjs/icu-messageformat-parser/lib/manipulator.js +0 -1
  408. package/dist/node_modules/.pnpm/@formatjs_icu-messageformat-parser@2.11.4/node_modules/@formatjs/icu-messageformat-parser/lib/parser.js +0 -499
  409. package/dist/node_modules/.pnpm/@formatjs_icu-messageformat-parser@2.11.4/node_modules/@formatjs/icu-messageformat-parser/lib/regex.generated.js +0 -4
  410. package/dist/node_modules/.pnpm/@formatjs_icu-messageformat-parser@2.11.4/node_modules/@formatjs/icu-messageformat-parser/lib/time-data.generated.js +0 -1159
  411. package/dist/node_modules/.pnpm/@formatjs_icu-messageformat-parser@2.11.4/node_modules/@formatjs/icu-messageformat-parser/lib/types.js +0 -44
  412. package/dist/node_modules/.pnpm/@formatjs_icu-skeleton-parser@1.8.16/node_modules/@formatjs/icu-skeleton-parser/lib/date-time.js +0 -101
  413. package/dist/node_modules/.pnpm/@formatjs_icu-skeleton-parser@1.8.16/node_modules/@formatjs/icu-skeleton-parser/lib/number.js +0 -182
  414. package/dist/node_modules/.pnpm/@formatjs_icu-skeleton-parser@1.8.16/node_modules/@formatjs/icu-skeleton-parser/lib/regex.generated.js +0 -4
  415. package/dist/node_modules/.pnpm/@formatjs_intl@3.1.8_typescript@5.9.3/node_modules/@formatjs/intl/lib/src/create-intl.js +0 -39
  416. package/dist/node_modules/.pnpm/@formatjs_intl@3.1.8_typescript@5.9.3/node_modules/@formatjs/intl/lib/src/dateTime.js +0 -80
  417. package/dist/node_modules/.pnpm/@formatjs_intl@3.1.8_typescript@5.9.3/node_modules/@formatjs/intl/lib/src/displayName.js +0 -22
  418. package/dist/node_modules/.pnpm/@formatjs_intl@3.1.8_typescript@5.9.3/node_modules/@formatjs/intl/lib/src/error.js +0 -66
  419. package/dist/node_modules/.pnpm/@formatjs_intl@3.1.8_typescript@5.9.3/node_modules/@formatjs/intl/lib/src/list.js +0 -39
  420. package/dist/node_modules/.pnpm/@formatjs_intl@3.1.8_typescript@5.9.3/node_modules/@formatjs/intl/lib/src/message.js +0 -59
  421. package/dist/node_modules/.pnpm/@formatjs_intl@3.1.8_typescript@5.9.3/node_modules/@formatjs/intl/lib/src/number.js +0 -53
  422. package/dist/node_modules/.pnpm/@formatjs_intl@3.1.8_typescript@5.9.3/node_modules/@formatjs/intl/lib/src/plural.js +0 -18
  423. package/dist/node_modules/.pnpm/@formatjs_intl@3.1.8_typescript@5.9.3/node_modules/@formatjs/intl/lib/src/relativeTime.js +0 -22
  424. package/dist/node_modules/.pnpm/@formatjs_intl@3.1.8_typescript@5.9.3/node_modules/@formatjs/intl/lib/src/utils.js +0 -115
  425. package/dist/node_modules/.pnpm/@kurkle_color@0.3.4/node_modules/@kurkle/color/dist/color.esm.js +0 -470
  426. package/dist/node_modules/.pnpm/@lexical_clipboard@0.38.2/node_modules/@lexical/clipboard/LexicalClipboard.prod.js +0 -163
  427. package/dist/node_modules/.pnpm/@lexical_dragon@0.38.2/node_modules/@lexical/dragon/LexicalDragon.prod.js +0 -51
  428. package/dist/node_modules/.pnpm/@lexical_extension@0.38.2/node_modules/@lexical/extension/LexicalExtension.prod.js +0 -796
  429. package/dist/node_modules/.pnpm/@lexical_headless@0.38.2/node_modules/@lexical/headless/LexicalHeadless.prod.js +0 -21
  430. package/dist/node_modules/.pnpm/@lexical_history@0.38.2/node_modules/@lexical/history/LexicalHistory.prod.js +0 -132
  431. package/dist/node_modules/.pnpm/@lexical_html@0.38.2/node_modules/@lexical/html/LexicalHtml.prod.js +0 -88
  432. package/dist/node_modules/.pnpm/@lexical_list@0.38.2/node_modules/@lexical/list/LexicalList.prod.js +0 -737
  433. package/dist/node_modules/.pnpm/@lexical_overflow@0.38.2/node_modules/@lexical/overflow/LexicalOverflow.prod.js +0 -37
  434. package/dist/node_modules/.pnpm/@lexical_react@0.38.2_react-dom@18.3.1_react@18.3.1__react@18.3.1_yjs@13.6.30/node_modules/@lexical/react/LexicalCharacterLimitPlugin.prod.js +0 -136
  435. package/dist/node_modules/.pnpm/@lexical_react@0.38.2_react-dom@18.3.1_react@18.3.1__react@18.3.1_yjs@13.6.30/node_modules/@lexical/react/LexicalComposer.prod.js +0 -53
  436. package/dist/node_modules/.pnpm/@lexical_react@0.38.2_react-dom@18.3.1_react@18.3.1__react@18.3.1_yjs@13.6.30/node_modules/@lexical/react/LexicalComposerContext.prod.js +0 -20
  437. package/dist/node_modules/.pnpm/@lexical_react@0.38.2_react-dom@18.3.1_react@18.3.1__react@18.3.1_yjs@13.6.30/node_modules/@lexical/react/LexicalContentEditable.prod.js +0 -85
  438. package/dist/node_modules/.pnpm/@lexical_react@0.38.2_react-dom@18.3.1_react@18.3.1__react@18.3.1_yjs@13.6.30/node_modules/@lexical/react/LexicalEditorRefPlugin.prod.js +0 -11
  439. package/dist/node_modules/.pnpm/@lexical_react@0.38.2_react-dom@18.3.1_react@18.3.1__react@18.3.1_yjs@13.6.30/node_modules/@lexical/react/LexicalErrorBoundary.prod.js +0 -20
  440. package/dist/node_modules/.pnpm/@lexical_react@0.38.2_react-dom@18.3.1_react@18.3.1__react@18.3.1_yjs@13.6.30/node_modules/@lexical/react/LexicalHistoryPlugin.prod.js +0 -17
  441. package/dist/node_modules/.pnpm/@lexical_react@0.38.2_react-dom@18.3.1_react@18.3.1__react@18.3.1_yjs@13.6.30/node_modules/@lexical/react/LexicalListPlugin.prod.js +0 -16
  442. package/dist/node_modules/.pnpm/@lexical_react@0.38.2_react-dom@18.3.1_react@18.3.1__react@18.3.1_yjs@13.6.30/node_modules/@lexical/react/LexicalOnChangePlugin.prod.js +0 -20
  443. package/dist/node_modules/.pnpm/@lexical_react@0.38.2_react-dom@18.3.1_react@18.3.1__react@18.3.1_yjs@13.6.30/node_modules/@lexical/react/LexicalReactProviderExtension.prod.js +0 -5
  444. package/dist/node_modules/.pnpm/@lexical_react@0.38.2_react-dom@18.3.1_react@18.3.1__react@18.3.1_yjs@13.6.30/node_modules/@lexical/react/LexicalRichTextPlugin.prod.js +0 -96
  445. package/dist/node_modules/.pnpm/@lexical_react@0.38.2_react-dom@18.3.1_react@18.3.1__react@18.3.1_yjs@13.6.30/node_modules/@lexical/react/useLexicalEditable.prod.js +0 -23
  446. package/dist/node_modules/.pnpm/@lexical_rich-text@0.38.2/node_modules/@lexical/rich-text/LexicalRichText.prod.js +0 -418
  447. package/dist/node_modules/.pnpm/@lexical_selection@0.38.2/node_modules/@lexical/selection/LexicalSelection.prod.js +0 -170
  448. package/dist/node_modules/.pnpm/@lexical_text@0.38.2/node_modules/@lexical/text/LexicalText.prod.js +0 -33
  449. package/dist/node_modules/.pnpm/@lexical_utils@0.38.2/node_modules/@lexical/utils/LexicalUtils.prod.js +0 -112
  450. package/dist/node_modules/.pnpm/@rooks_use-localstorage-state@4.11.2_react@18.3.1/node_modules/@rooks/use-localstorage-state/lib/index.esm.js +0 -50
  451. package/dist/node_modules/.pnpm/@rooks_use-previous@4.11.2/node_modules/@rooks/use-previous/lib/index.esm.js +0 -10
  452. package/dist/node_modules/.pnpm/@rooks_use-sessionstorage-state@4.11.2_react@18.3.1/node_modules/@rooks/use-sessionstorage-state/lib/index.esm.js +0 -50
  453. package/dist/node_modules/.pnpm/are-passive-events-supported@1.1.1/node_modules/are-passive-events-supported/dist/are-passive-events-supported.esm.browser.js +0 -11
  454. package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/adapters/adapters.js +0 -41
  455. package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/adapters/fetch.js +0 -128
  456. package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/adapters/xhr.js +0 -59
  457. package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/axios.js +0 -30
  458. package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/cancel/CancelToken.js +0 -59
  459. package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/cancel/CanceledError.js +0 -9
  460. package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/cancel/isCancel.js +0 -6
  461. package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/core/Axios.js +0 -131
  462. package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/core/AxiosError.js +0 -34
  463. package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/core/AxiosHeaders.js +0 -171
  464. package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/core/InterceptorManager.js +0 -28
  465. package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/core/buildFullPath.js +0 -9
  466. package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/core/dispatchRequest.js +0 -23
  467. package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/core/mergeConfig.js +0 -67
  468. package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/core/settle.js +0 -8
  469. package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/core/transformData.js +0 -12
  470. package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/defaults/index.js +0 -81
  471. package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/defaults/transitional.js +0 -9
  472. package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/env/data.js +0 -4
  473. package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +0 -32
  474. package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/HttpStatusCode.js +0 -77
  475. package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/bind.js +0 -8
  476. package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/buildURL.js +0 -17
  477. package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/combineURLs.js +0 -6
  478. package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/composeSignals.js +0 -27
  479. package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/cookies.js +0 -26
  480. package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/formDataToJSON.js +0 -27
  481. package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/isAbsoluteURL.js +0 -6
  482. package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/isAxiosError.js +0 -7
  483. package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/isURLSameOrigin.js +0 -5
  484. package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/parseHeaders.js +0 -28
  485. package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/parseProtocol.js +0 -7
  486. package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/progressEventReducer.js +0 -30
  487. package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/resolveConfig.js +0 -28
  488. package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/speedometer.js +0 -16
  489. package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/spread.js +0 -8
  490. package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/throttle.js +0 -14
  491. package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/toFormData.js +0 -67
  492. package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/toURLEncodedForm.js +0 -14
  493. package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/trackStream.js +0 -51
  494. package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/validator.js +0 -47
  495. package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/platform/browser/classes/Blob.js +0 -4
  496. package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/platform/browser/classes/FormData.js +0 -4
  497. package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +0 -5
  498. package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/platform/browser/index.js +0 -22
  499. package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/platform/common/utils.js +0 -15
  500. package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/platform/index.js +0 -9
  501. package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/utils.js +0 -235
  502. package/dist/node_modules/.pnpm/chart.js@4.5.1/node_modules/chart.js/auto/auto.js +0 -5
  503. package/dist/node_modules/.pnpm/chart.js@4.5.1/node_modules/chart.js/dist/chart.js +0 -6301
  504. package/dist/node_modules/.pnpm/chart.js@4.5.1/node_modules/chart.js/dist/chunks/helpers.dataset.js +0 -1381
  505. package/dist/node_modules/.pnpm/chartjs-plugin-datalabels@2.2.0_chart.js@4.5.1/node_modules/chartjs-plugin-datalabels/dist/chartjs-plugin-datalabels.esm.js +0 -354
  506. package/dist/node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/index.js +0 -32
  507. package/dist/node_modules/.pnpm/copy-to-clipboard@3.3.3/node_modules/copy-to-clipboard/index.js +0 -43
  508. package/dist/node_modules/.pnpm/dompurify@3.3.3/node_modules/dompurify/dist/purify.es.js +0 -549
  509. package/dist/node_modules/.pnpm/flat@5.0.2/node_modules/flat/index.js +0 -59
  510. package/dist/node_modules/.pnpm/goober@2.1.18_csstype@3.2.3/node_modules/goober/dist/goober.modern.js +0 -75
  511. package/dist/node_modules/.pnpm/hoist-non-react-statics@3.3.2/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js +0 -68
  512. package/dist/node_modules/.pnpm/intl-messageformat@10.7.18/node_modules/intl-messageformat/lib/src/core.js +0 -154
  513. package/dist/node_modules/.pnpm/intl-messageformat@10.7.18/node_modules/intl-messageformat/lib/src/error.js +0 -36
  514. package/dist/node_modules/.pnpm/intl-messageformat@10.7.18/node_modules/intl-messageformat/lib/src/formatters.js +0 -107
  515. package/dist/node_modules/.pnpm/lexical@0.38.2/node_modules/lexical/Lexical.prod.js +0 -5093
  516. package/dist/node_modules/.pnpm/path-to-regexp@6.3.0/node_modules/path-to-regexp/dist.es2015/index.js +0 -198
  517. package/dist/node_modules/.pnpm/react-chartjs-2@5.3.1_chart.js@4.5.1_react@18.3.1/node_modules/react-chartjs-2/dist/index.js +0 -76
  518. package/dist/node_modules/.pnpm/react-copy-to-clipboard@5.1.1_react@18.3.1/node_modules/react-copy-to-clipboard/lib/Component.js +0 -160
  519. package/dist/node_modules/.pnpm/react-copy-to-clipboard@5.1.1_react@18.3.1/node_modules/react-copy-to-clipboard/lib/index.js +0 -10
  520. package/dist/node_modules/.pnpm/react-error-boundary@6.1.1_react@18.3.1/node_modules/react-error-boundary/dist/react-error-boundary.js +0 -58
  521. package/dist/node_modules/.pnpm/react-hot-toast@2.6.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/react-hot-toast/dist/index.js +0 -494
  522. package/dist/node_modules/.pnpm/react-intl@7.1.14_react@18.3.1_typescript@5.9.3/node_modules/react-intl/lib/index.js +0 -13
  523. package/dist/node_modules/.pnpm/react-intl@7.1.14_react@18.3.1_typescript@5.9.3/node_modules/react-intl/lib/src/components/createFormattedComponent.js +0 -35
  524. package/dist/node_modules/.pnpm/react-intl@7.1.14_react@18.3.1_typescript@5.9.3/node_modules/react-intl/lib/src/components/createIntl.js +0 -39
  525. package/dist/node_modules/.pnpm/react-intl@7.1.14_react@18.3.1_typescript@5.9.3/node_modules/react-intl/lib/src/components/injectIntl.js +0 -9
  526. package/dist/node_modules/.pnpm/react-intl@7.1.14_react@18.3.1_typescript@5.9.3/node_modules/react-intl/lib/src/components/message.js +0 -22
  527. package/dist/node_modules/.pnpm/react-intl@7.1.14_react@18.3.1_typescript@5.9.3/node_modules/react-intl/lib/src/components/provider.js +0 -45
  528. package/dist/node_modules/.pnpm/react-intl@7.1.14_react@18.3.1_typescript@5.9.3/node_modules/react-intl/lib/src/components/useIntl.js +0 -10
  529. package/dist/node_modules/.pnpm/react-intl@7.1.14_react@18.3.1_typescript@5.9.3/node_modules/react-intl/lib/src/utils.js +0 -33
  530. package/dist/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.development.js +0 -82
  531. package/dist/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.production.min.js +0 -62
  532. package/dist/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.js +0 -10
  533. package/dist/node_modules/.pnpm/react-loading-skeleton@3.5.0_react@18.3.1/node_modules/react-loading-skeleton/dist/index.js +0 -49
  534. package/dist/node_modules/.pnpm/react-modern-drawer@1.4.0_react@18.3.1/node_modules/react-modern-drawer/dist/index.modern.js +0 -84
  535. package/dist/node_modules/.pnpm/react-oauth-popup@1.0.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/react-oauth-popup/dist/index.js +0 -106
  536. package/dist/node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react-jsx-runtime.development.js +0 -453
  537. package/dist/node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react-jsx-runtime.production.min.js +0 -27
  538. package/dist/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js +0 -10
  539. package/dist/node_modules/.pnpm/toggle-selection@1.0.6/node_modules/toggle-selection/index.js +0 -26
  540. package/dist/node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.js +0 -34
  541. package/dist/node_modules/.pnpm/use-debounce@10.1.1_react@18.3.1/node_modules/use-debounce/dist/index.module.js +0 -70
  542. package/dist/node_modules/.pnpm/use-isomorphic-layout-effect@1.2.1_@types_react@19.2.14_react@18.3.1/node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.browser.esm.js +0 -5
  543. package/dist/node_modules/.pnpm/use-latest@1.3.0_@types_react@19.2.14_react@18.3.1/node_modules/use-latest/dist/use-latest.esm.js +0 -11
  544. package/dist/node_modules/.pnpm/use-onclickoutside@0.4.1_@types_react@19.2.14_react@18.3.1/node_modules/use-onclickoutside/dist/use-onclickoutside.browser.esm.js +0 -26
  545. package/dist/node_modules/.pnpm/webfontloader@1.6.28/node_modules/webfontloader/webfontloader.js +0 -482
@@ -1,54 +1,53 @@
1
- import { __toESM as e } from "../../../_virtual/_rolldown/runtime.js";
2
- import { require_jsx_runtime as t } from "../../../node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
3
- import { require_classnames as n } from "../../../node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/index.js";
4
- import r from "../../../node_modules/.pnpm/react-intl@7.1.14_react@18.3.1_typescript@5.9.3/node_modules/react-intl/lib/src/components/useIntl.js";
5
- import i from "./ProgressBar.module.js";
1
+ import e from "./ProgressBar.module.js";
6
2
  import "react";
3
+ import { jsx as t, jsxs as n } from "react/jsx-runtime";
4
+ import r from "classnames";
5
+ import { useIntl as i } from "react-intl";
7
6
  //#region src/components/progress/progress_bar/ProgressBar.jsx
8
- var a = /* @__PURE__ */ e(n()), o = t(), s = ({ goal: e, progress: t, title: n, showPercentageSubtitle: s = !1, showProgressSubtitle: c = !1, barFull: l = !1, progressUnit: u, className: d, innerClassName: f, subtitleClassName: p, children: m }) => {
9
- let h = r(), g = Number(((e === 0 ? 0 : t || 0) / (e === 0 ? 1 : e) * 100).toFixed(1));
10
- return /* @__PURE__ */ (0, o.jsxs)("div", {
11
- className: i.progressContainer,
12
- children: [/* @__PURE__ */ (0, o.jsxs)("div", {
13
- className: i.titleContainer,
7
+ var a = ({ goal: a, progress: o, title: s, showPercentageSubtitle: c = !1, showProgressSubtitle: l = !1, barFull: u = !1, progressUnit: d, className: f, innerClassName: p, subtitleClassName: m, children: h }) => {
8
+ let g = i(), _ = Number(((a === 0 ? 0 : o || 0) / (a === 0 ? 1 : a) * 100).toFixed(1));
9
+ return /* @__PURE__ */ n("div", {
10
+ className: e.progressContainer,
11
+ children: [/* @__PURE__ */ n("div", {
12
+ className: e.titleContainer,
14
13
  children: [
15
- n && /* @__PURE__ */ (0, o.jsx)("div", {
16
- className: i.title,
17
- children: n
14
+ s && /* @__PURE__ */ t("div", {
15
+ className: e.title,
16
+ children: s
18
17
  }),
19
- c && /* @__PURE__ */ (0, o.jsx)("div", {
20
- className: (0, a.default)(i.subtitleContainer, p),
21
- children: l ? /* @__PURE__ */ (0, o.jsx)("span", {
22
- className: i.progressSubtitle,
23
- children: `${t} ${u || ""}`
24
- }) : /* @__PURE__ */ (0, o.jsx)("span", {
25
- className: i.progressSubtitle,
26
- children: `${t || 0} / ${e} ${u || ""} (${g}%)`
18
+ l && /* @__PURE__ */ t("div", {
19
+ className: r(e.subtitleContainer, m),
20
+ children: u ? /* @__PURE__ */ t("span", {
21
+ className: e.progressSubtitle,
22
+ children: `${o} ${d || ""}`
23
+ }) : /* @__PURE__ */ t("span", {
24
+ className: e.progressSubtitle,
25
+ children: `${o || 0} / ${a} ${d || ""} (${_}%)`
27
26
  })
28
27
  }),
29
- s && /* @__PURE__ */ (0, o.jsx)("div", {
30
- className: (0, a.default)(i.subtitleContainer, p),
31
- children: /* @__PURE__ */ (0, o.jsx)("span", { children: `${g}%` })
28
+ c && /* @__PURE__ */ t("div", {
29
+ className: r(e.subtitleContainer, m),
30
+ children: /* @__PURE__ */ t("span", { children: `${_}%` })
32
31
  })
33
32
  ]
34
- }), /* @__PURE__ */ (0, o.jsx)("div", {
35
- className: (0, a.default)(i.progressBarContainer, d),
36
- children: /* @__PURE__ */ (0, o.jsx)("div", {
37
- className: i.currentProgressBar,
38
- style: { width: g >= 100 || l ? "100%" : g + "%" },
33
+ }), /* @__PURE__ */ t("div", {
34
+ className: r(e.progressBarContainer, f),
35
+ children: /* @__PURE__ */ t("div", {
36
+ className: e.currentProgressBar,
37
+ style: { width: _ >= 100 || u ? "100%" : _ + "%" },
39
38
  role: "progressbar",
40
39
  "aria-valuemin": "0",
41
- "aria-valuenow": g >= 100 || l ? 100 : g,
40
+ "aria-valuenow": _ >= 100 || u ? 100 : _,
42
41
  "aria-valuemax": "100",
43
- "aria-label": h.formatMessage({
42
+ "aria-label": g.formatMessage({
44
43
  id: "progress.progress_bar.aria_label",
45
44
  defaultMessage: "Progress bar"
46
45
  }),
47
- children: /* @__PURE__ */ (0, o.jsx)("div", {
48
- className: (0, a.default)(i.progressBar, f),
49
- children: /* @__PURE__ */ (0, o.jsx)("div", {
50
- className: i.progressBarContent,
51
- children: m
46
+ children: /* @__PURE__ */ t("div", {
47
+ className: r(e.progressBar, p),
48
+ children: /* @__PURE__ */ t("div", {
49
+ className: e.progressBarContent,
50
+ children: h
52
51
  })
53
52
  })
54
53
  })
@@ -56,4 +55,4 @@ var a = /* @__PURE__ */ e(n()), o = t(), s = ({ goal: e, progress: t, title: n,
56
55
  });
57
56
  };
58
57
  //#endregion
59
- export { s as ProgressBar };
58
+ export { a as ProgressBar };
@@ -1,103 +1,102 @@
1
- import { __toESM as e } from "../../../_virtual/_rolldown/runtime.js";
2
- import { require_jsx_runtime as t } from "../../../node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
3
- import { require_classnames as n } from "../../../node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/index.js";
4
- import { useAuth as r } from "../../auth/use_auth/useAuth.js";
5
- import { useConfig as i } from "../../data/config_provider/useConfig.js";
6
- import a from "../../../node_modules/.pnpm/react-intl@7.1.14_react@18.3.1_typescript@5.9.3/node_modules/react-intl/lib/src/components/useIntl.js";
7
- import { ReadMore as o } from "../../text/read_more/ReadMore.js";
8
- import { HashScroll as s } from "../../tools/hash_scroll/HashScroll.js";
9
- import { useTranslatedContent as c } from "../../translation/translated_content/useTranslatedContent.js";
10
- import { TranslationButton as l } from "../../translation/translation_button/TranslationButton.js";
11
- import { ContentFooter as u } from "../../user_content/content_footer/ContentFooter.js";
12
- import { ContentHeader as d } from "../../user_content/content_header/ContentHeader.js";
13
- import { lexicalToHtml as f } from "../../input/text_editor/lexicalToHtml.js";
14
- import { UpDownVoteBox as p } from "../../vote/up_down_vote_box/UpDownVoteBox.js";
15
- import m from "./ProposalBox.module.js";
16
- import { useEffect as h, useState as g } from "react";
1
+ import { useAuth as e } from "../../auth/use_auth/useAuth.js";
2
+ import { useConfig as t } from "../../data/config_provider/useConfig.js";
3
+ import { ReadMore as n } from "../../text/read_more/ReadMore.js";
4
+ import { HashScroll as r } from "../../tools/hash_scroll/HashScroll.js";
5
+ import { useTranslatedContent as i } from "../../translation/translated_content/useTranslatedContent.js";
6
+ import { TranslationButton as a } from "../../translation/translation_button/TranslationButton.js";
7
+ import { ContentFooter as o } from "../../user_content/content_footer/ContentFooter.js";
8
+ import { ContentHeader as s } from "../../user_content/content_header/ContentHeader.js";
9
+ import { lexicalToHtml as c } from "../../input/text_editor/lexicalToHtml.js";
10
+ import { UpDownVoteBox as l } from "../../vote/up_down_vote_box/UpDownVoteBox.js";
11
+ import u from "./ProposalBox.module.js";
12
+ import { useEffect as d, useState as f } from "react";
13
+ import { Fragment as p, jsx as m, jsxs as h } from "react/jsx-runtime";
14
+ import g from "classnames";
15
+ import { useIntl as _ } from "react-intl";
17
16
  //#region src/components/proposal/proposal_box/ProposalBox.jsx
18
- var _ = /* @__PURE__ */ e(n()), v = t(), y = ({ proposal: e, disabled: t = !1, fixedContentHeight: n, contentMaxHeight: y = 156, enableEdition: b = !0, hideFooter: x = !1 }) => {
19
- let [S, C] = g(null), [w, T] = g(!1), E = a(), D = i(), { currentUser: O } = r(), k = O?.moderation_status === "banned", A = `proposal_${e.id}`, j = c(e.title, e.language, "title", e.translation_entries), M = c(e.content, e.language, "content", e.translation_entries);
20
- h(() => {
21
- if (e.rich_content) {
22
- let t = JSON.parse(e.rich_content);
23
- t.hasOwnProperty("root") && C(f(t));
17
+ var v = ({ proposal: v, disabled: y = !1, fixedContentHeight: b, contentMaxHeight: x = 156, enableEdition: S = !0, hideFooter: C = !1 }) => {
18
+ let [w, T] = f(null), [E, D] = f(!1), O = _(), k = t(), { currentUser: A } = e(), j = A?.moderation_status === "banned", M = `proposal_${v.id}`, N = i(v.title, v.language, "title", v.translation_entries), P = i(v.content, v.language, "content", v.translation_entries);
19
+ d(() => {
20
+ if (v.rich_content) {
21
+ let e = JSON.parse(v.rich_content);
22
+ e.hasOwnProperty("root") && T(c(e));
24
23
  }
25
- }, [e.rich_content]);
26
- let N = () => {
27
- j.toggleContent(), M.toggleContent();
24
+ }, [v.rich_content]);
25
+ let F = () => {
26
+ N.toggleContent(), P.toggleContent();
28
27
  };
29
- return /* @__PURE__ */ (0, v.jsx)(s, {
30
- elementId: A,
31
- onScroll: () => T(!0),
32
- children: /* @__PURE__ */ (0, v.jsxs)("div", {
33
- className: (0, _.default)(m.proposalBoxContainer, { [m.flash]: w }),
34
- id: A,
28
+ return /* @__PURE__ */ m(r, {
29
+ elementId: M,
30
+ onScroll: () => D(!0),
31
+ children: /* @__PURE__ */ h("div", {
32
+ className: g(u.proposalBoxContainer, { [u.flash]: E }),
33
+ id: M,
35
34
  children: [
36
- /* @__PURE__ */ (0, v.jsx)(d, {
37
- author: e.author,
38
- tag: e.tag?.display_name,
39
- date: e.created_at,
35
+ /* @__PURE__ */ m(s, {
36
+ author: v.author,
37
+ tag: v.tag?.display_name,
38
+ date: v.created_at,
40
39
  oneLine: !1
41
40
  }),
42
- /* @__PURE__ */ (0, v.jsx)("div", {
43
- className: (0, _.default)(m.proposalBoxContent, { [m.fixedHeight]: n }),
44
- children: /* @__PURE__ */ (0, v.jsx)("div", { children: /* @__PURE__ */ (0, v.jsx)(o, {
45
- content: /* @__PURE__ */ (0, v.jsxs)(v.Fragment, { children: [
46
- e.is_edited && /* @__PURE__ */ (0, v.jsx)("div", {
47
- className: m.edited,
48
- children: E.formatMessage({
41
+ /* @__PURE__ */ m("div", {
42
+ className: g(u.proposalBoxContent, { [u.fixedHeight]: b }),
43
+ children: /* @__PURE__ */ m("div", { children: /* @__PURE__ */ m(n, {
44
+ content: /* @__PURE__ */ h(p, { children: [
45
+ v.is_edited && /* @__PURE__ */ m("div", {
46
+ className: u.edited,
47
+ children: O.formatMessage({
49
48
  id: "proposal.updated",
50
49
  defaultMessage: "Updated proposal"
51
50
  })
52
51
  }),
53
- /* @__PURE__ */ (0, v.jsx)("div", {
54
- className: m.proposalTitle,
55
- children: j.translatedContent
52
+ /* @__PURE__ */ m("div", {
53
+ className: u.proposalTitle,
54
+ children: N.translatedContent
56
55
  }),
57
- S && !M.isTranslated ? /* @__PURE__ */ (0, v.jsx)("div", {
58
- className: m.proposalContent,
59
- dangerouslySetInnerHTML: { __html: S }
60
- }) : /* @__PURE__ */ (0, v.jsx)("div", {
61
- className: m.proposalContent,
62
- children: M.translatedContent
56
+ w && !P.isTranslated ? /* @__PURE__ */ m("div", {
57
+ className: u.proposalContent,
58
+ dangerouslySetInnerHTML: { __html: w }
59
+ }) : /* @__PURE__ */ m("div", {
60
+ className: u.proposalContent,
61
+ children: P.translatedContent
63
62
  }),
64
- (M.isTranslated || j.isTranslated) && /* @__PURE__ */ (0, v.jsx)(l, {
65
- language: e.language,
66
- callback: () => N()
63
+ (P.isTranslated || N.isTranslated) && /* @__PURE__ */ m(a, {
64
+ language: v.language,
65
+ callback: () => F()
67
66
  })
68
67
  ] }),
69
68
  lineCount: 7,
70
- readMoreText: E.formatMessage({
69
+ readMoreText: O.formatMessage({
71
70
  id: "action.read_more",
72
71
  defaultMessage: "Read more"
73
72
  }),
74
- readLessText: E.formatMessage({
73
+ readLessText: O.formatMessage({
75
74
  id: "action.read_less",
76
75
  defaultMessage: "Read less"
77
76
  })
78
77
  }) })
79
78
  }),
80
- !x && /* @__PURE__ */ (0, v.jsx)(u, {
81
- resource: e,
82
- disabled: t || k,
79
+ !C && /* @__PURE__ */ m(o, {
80
+ resource: v,
81
+ disabled: y || j,
83
82
  reportType: "Proposal",
84
83
  deleteType: "proposals",
85
84
  deleteListId: "proposalsList",
86
85
  shareModal: !0,
87
- shareModalTitle: E.formatMessage({ id: "share.proposal" }),
88
- shareUrl: `https://app.logora.fr/share/p/${e.id}`,
89
- shareTitle: E.formatMessage({ id: "share.proposal.title" }),
90
- shareText: E.formatMessage({ id: "share.proposal.text" }),
91
- shareCode: `<iframe src="https://cdn.logora.com/embed.html?shortname=${D.shortname}&id=${e.id}&resource=proposal" frameborder="0" width="100%" height="335px" scrolling="no"></iframe>`,
92
- showShareCode: D?.actions?.hideCodeShare !== !0,
93
- showActions: !e.author.consultation_id,
94
- enableEdition: b,
95
- children: /* @__PURE__ */ (0, v.jsx)(p, {
86
+ shareModalTitle: O.formatMessage({ id: "share.proposal" }),
87
+ shareUrl: `https://app.logora.fr/share/p/${v.id}`,
88
+ shareTitle: O.formatMessage({ id: "share.proposal.title" }),
89
+ shareText: O.formatMessage({ id: "share.proposal.text" }),
90
+ shareCode: `<iframe src="https://cdn.logora.com/embed.html?shortname=${k.shortname}&id=${v.id}&resource=proposal" frameborder="0" width="100%" height="335px" scrolling="no"></iframe>`,
91
+ showShareCode: k?.actions?.hideCodeShare !== !0,
92
+ showActions: !v.author.consultation_id,
93
+ enableEdition: S,
94
+ children: /* @__PURE__ */ m(l, {
96
95
  voteableType: "Proposal",
97
- voteableId: e.id,
98
- totalUpvote: e.total_upvotes,
99
- totalDownvote: e.total_downvotes,
100
- disabled: t || O?.id === e?.author?.id || k
96
+ voteableId: v.id,
97
+ totalUpvote: v.total_upvotes,
98
+ totalDownvote: v.total_downvotes,
99
+ disabled: y || A?.id === v?.author?.id || j
101
100
  })
102
101
  })
103
102
  ]
@@ -105,4 +104,4 @@ var _ = /* @__PURE__ */ e(n()), v = t(), y = ({ proposal: e, disabled: t = !1, f
105
104
  });
106
105
  };
107
106
  //#endregion
108
- export { y as ProposalBox };
107
+ export { v as ProposalBox };
@@ -1,102 +1,101 @@
1
- import { __toESM as e } from "../../../_virtual/_rolldown/runtime.js";
2
- import { require_jsx_runtime as t } from "../../../node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
3
- import { Icon as n } from "../../icons/icon/Icon.js";
4
- import { require_classnames as r } from "../../../node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/index.js";
5
- import i from "../../../node_modules/.pnpm/react-intl@7.1.14_react@18.3.1_typescript@5.9.3/node_modules/react-intl/lib/src/components/useIntl.js";
6
- import { Argument as a } from "../../argument/argument/Argument.js";
7
- import { ProposalBox as o } from "../../proposal/proposal_box/ProposalBox.js";
8
- import { SuggestionBox as s } from "../../suggestion/suggestion_box/SuggestionBox.js";
9
- import c from "./ReportBox.module.js";
10
- import { useEffect as l, useState as u } from "react";
1
+ import { Icon as e } from "../../icons/icon/Icon.js";
2
+ import { Argument as t } from "../../argument/argument/Argument.js";
3
+ import { ProposalBox as n } from "../../proposal/proposal_box/ProposalBox.js";
4
+ import { SuggestionBox as r } from "../../suggestion/suggestion_box/SuggestionBox.js";
5
+ import i from "./ReportBox.module.js";
6
+ import { useEffect as a, useState as o } from "react";
7
+ import { jsx as s, jsxs as c } from "react/jsx-runtime";
8
+ import l from "classnames";
9
+ import { useIntl as u } from "react-intl";
11
10
  //#region src/components/report/report_box/ReportBox.jsx
12
- var d = /* @__PURE__ */ e(r()), f = t(), p = ({ report: e, flash: t }) => {
13
- let r = i(), [p, m] = u(!1);
14
- l(() => {
15
- if (t === e.id) {
16
- let t = document.getElementById(`reports_${e.id}`);
17
- t && t.scrollIntoView({
11
+ var d = ({ report: d, flash: f }) => {
12
+ let p = u(), [m, h] = o(!1);
13
+ a(() => {
14
+ if (f === d.id) {
15
+ let e = document.getElementById(`reports_${d.id}`);
16
+ e && e.scrollIntoView({
18
17
  behavior: "smooth",
19
18
  block: "center"
20
- }), m(!0);
21
- } else m(!1);
22
- }, [t, e.id]);
23
- let h = () => {
24
- let { reportable_type: t, reportable: n } = e;
25
- switch (t) {
19
+ }), h(!0);
20
+ } else h(!1);
21
+ }, [f, d.id]);
22
+ let g = () => {
23
+ let { reportable_type: e, reportable: i } = d;
24
+ switch (e) {
26
25
  case "Message": {
27
- let t = e.is_processed === !0 && e.reportable?.status === "rejected";
28
- return /* @__PURE__ */ (0, f.jsx)(a, {
29
- argument: n,
30
- positions: n.group?.group_context?.positions?.slice(0, 2) || [],
26
+ let e = d.is_processed === !0 && d.reportable?.status === "rejected";
27
+ return /* @__PURE__ */ s(t, {
28
+ argument: i,
29
+ positions: i.group?.group_context?.positions?.slice(0, 2) || [],
31
30
  hideReplies: !0,
32
31
  hideFooter: !0,
33
32
  showModerationFeedback: !1,
34
- hideContent: t
33
+ hideContent: e
35
34
  });
36
35
  }
37
- case "Proposal": return /* @__PURE__ */ (0, f.jsx)(o, {
38
- proposal: n,
36
+ case "Proposal": return /* @__PURE__ */ s(n, {
37
+ proposal: i,
39
38
  hideFooter: !0
40
39
  });
41
- case "Group": return /* @__PURE__ */ (0, f.jsx)(s, {
42
- suggestion: n,
40
+ case "Group": return /* @__PURE__ */ s(r, {
41
+ suggestion: i,
43
42
  hideFooter: !0
44
43
  });
45
- default: return /* @__PURE__ */ (0, f.jsx)("div", { children: r.formatMessage({
44
+ default: return /* @__PURE__ */ s("div", { children: p.formatMessage({
46
45
  id: "report.unknown_type",
47
46
  defaultMessage: " Unknown content type"
48
47
  }) });
49
48
  }
50
- }, g = (e, t) => e ? t === "rejected" ? /* @__PURE__ */ (0, f.jsx)("div", {
51
- className: c.statusMessage,
49
+ }, _ = (e, t) => e ? t === "rejected" ? /* @__PURE__ */ s("div", {
50
+ className: i.statusMessage,
52
51
  "data-testid": "report-status-message",
53
- children: r.formatMessage({
52
+ children: p.formatMessage({
54
53
  id: "report.content_header.status_rejected",
55
54
  defaultMessage: "Thank you for your report. After verification, the content has been removed."
56
55
  })
57
- }) : /* @__PURE__ */ (0, f.jsx)("div", {
58
- className: c.statusMessage,
59
- children: r.formatMessage({
56
+ }) : /* @__PURE__ */ s("div", {
57
+ className: i.statusMessage,
58
+ children: p.formatMessage({
60
59
  id: "report.content_header.status_accepted",
61
60
  defaultMessage: "Thank you for your report. After verification, we have not removed the content."
62
61
  })
63
- }) : /* @__PURE__ */ (0, f.jsx)("div", {
64
- className: c.statusMessage,
65
- children: r.formatMessage({
62
+ }) : /* @__PURE__ */ s("div", {
63
+ className: i.statusMessage,
64
+ children: p.formatMessage({
66
65
  id: "report.content_header.status_pending",
67
66
  defaultMessage: "The report is currently in process"
68
67
  })
69
68
  });
70
- return /* @__PURE__ */ (0, f.jsx)("div", {
71
- id: `reports_${e.id}`,
72
- className: (0, d.default)(c.reportBox, { [c.reportHighlighted]: p }),
73
- children: e && /* @__PURE__ */ (0, f.jsxs)("div", {
74
- className: c.reportItem,
75
- children: [/* @__PURE__ */ (0, f.jsxs)("div", {
76
- className: c.reportHeader,
77
- children: [e.classification && /* @__PURE__ */ (0, f.jsxs)("div", {
78
- className: c.reportReason,
69
+ return /* @__PURE__ */ s("div", {
70
+ id: `reports_${d.id}`,
71
+ className: l(i.reportBox, { [i.reportHighlighted]: m }),
72
+ children: d && /* @__PURE__ */ c("div", {
73
+ className: i.reportItem,
74
+ children: [/* @__PURE__ */ c("div", {
75
+ className: i.reportHeader,
76
+ children: [d.classification && /* @__PURE__ */ c("div", {
77
+ className: i.reportReason,
79
78
  children: [
80
- /* @__PURE__ */ (0, f.jsx)(n, {
79
+ /* @__PURE__ */ s(e, {
81
80
  name: "announcement",
82
81
  width: 18,
83
82
  height: 18,
84
- className: c.warningIcon
83
+ className: i.warningIcon
85
84
  }),
86
- r.formatMessage({
85
+ p.formatMessage({
87
86
  id: "report.content_header.moderation_reason",
88
87
  defaultMessage: "Report reason:"
89
88
  }),
90
89
  " ",
91
- r.messages[`report.content_header.moderation_reason.${e.classification.toLowerCase()}`] ? r.formatMessage({
92
- id: `report.content_header.moderation_reason.${e.classification.toLowerCase()}`,
93
- defaultMessage: e.classification
94
- }) : e.classification
90
+ p.messages[`report.content_header.moderation_reason.${d.classification.toLowerCase()}`] ? p.formatMessage({
91
+ id: `report.content_header.moderation_reason.${d.classification.toLowerCase()}`,
92
+ defaultMessage: d.classification
93
+ }) : d.classification
95
94
  ]
96
- }), g(e.is_processed, e.reportable?.status)]
97
- }), h()]
95
+ }), _(d.is_processed, d.reportable?.status)]
96
+ }), g()]
98
97
  })
99
98
  });
100
99
  };
101
100
  //#endregion
102
- export { p as default };
101
+ export { d as default };
@@ -1,40 +1,39 @@
1
- import { __toESM as e } from "../../../_virtual/_rolldown/runtime.js";
2
- import { require_jsx_runtime as t } from "../../../node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
3
- import { Icon as n } from "../../icons/icon/Icon.js";
4
- import { require_classnames as r } from "../../../node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/index.js";
5
- import { useResponsive as i } from "../../hooks/use_responsive/useResponsive.js";
6
- import a from "./SectionBox.module.js";
7
- import { useState as o } from "react";
1
+ import { Icon as e } from "../../icons/icon/Icon.js";
2
+ import { useResponsive as t } from "../../hooks/use_responsive/useResponsive.js";
3
+ import n from "./SectionBox.module.js";
4
+ import { useState as r } from "react";
5
+ import { jsx as i, jsxs as a } from "react/jsx-runtime";
6
+ import o from "classnames";
8
7
  //#region src/components/section/section_box/SectionBox.jsx
9
- var s = /* @__PURE__ */ e(r()), c = t(), l = ({ isCollapsible: e = !1, isCollapsedByDefault: t = !1, title: r, subtitle: l = "", className: u, titleClassName: d, children: f }) => {
10
- let [p, m] = o(t), { isMobile: h } = i(), g = () => {
11
- e && m((e) => !e);
8
+ var s = ({ isCollapsible: s = !1, isCollapsedByDefault: c = !1, title: l, subtitle: u = "", className: d, titleClassName: f, children: p }) => {
9
+ let [m, h] = r(c), { isMobile: g } = t(), _ = () => {
10
+ s && h((e) => !e);
12
11
  };
13
- return /* @__PURE__ */ (0, c.jsxs)("div", {
14
- className: (0, s.default)(a.sectionBoxContainer, { [a.isMobile]: h }),
15
- children: [/* @__PURE__ */ (0, c.jsxs)("div", {
16
- className: (0, s.default)(a.header, { [a.collapsible]: e }),
17
- onClick: e ? g : null,
18
- children: [/* @__PURE__ */ (0, c.jsxs)("div", {
19
- className: a.titleContainer,
20
- children: [/* @__PURE__ */ (0, c.jsx)("div", {
21
- className: (0, s.default)(d, a.title),
22
- children: r
23
- }), l && /* @__PURE__ */ (0, c.jsx)("div", {
24
- className: (0, s.default)(u, a.subtitle),
12
+ return /* @__PURE__ */ a("div", {
13
+ className: o(n.sectionBoxContainer, { [n.isMobile]: g }),
14
+ children: [/* @__PURE__ */ a("div", {
15
+ className: o(n.header, { [n.collapsible]: s }),
16
+ onClick: s ? _ : null,
17
+ children: [/* @__PURE__ */ a("div", {
18
+ className: n.titleContainer,
19
+ children: [/* @__PURE__ */ i("div", {
20
+ className: o(f, n.title),
25
21
  children: l
22
+ }), u && /* @__PURE__ */ i("div", {
23
+ className: o(d, n.subtitle),
24
+ children: u
26
25
  })]
27
- }), e && /* @__PURE__ */ (0, c.jsx)(n, {
26
+ }), s && /* @__PURE__ */ i(e, {
28
27
  name: "lightArrow",
29
- className: (0, s.default)(a.iconLightArrow, { [a.iconRotated]: !p }),
28
+ className: o(n.iconLightArrow, { [n.iconRotated]: !m }),
30
29
  height: 15,
31
30
  width: 15
32
31
  })]
33
- }), (!p || !e) && /* @__PURE__ */ (0, c.jsx)("div", {
34
- className: (0, s.default)(a.body, u),
35
- children: f
32
+ }), (!m || !s) && /* @__PURE__ */ i("div", {
33
+ className: o(n.body, d),
34
+ children: p
36
35
  })]
37
36
  });
38
37
  };
39
38
  //#endregion
40
- export { l as SectionBox };
39
+ export { s as SectionBox };