@saooti/octopus-sdk 42.4.0-beta3 → 42.4.0-beta5

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 (352) hide show
  1. package/dist/{AccessibilityModal-CBIb3UQS.mjs → AccessibilityModal-CHUSDO1F.mjs} +39 -36
  2. package/dist/{AdvancedSearch-B91oao4i.mjs → AdvancedSearch-WPLHS508.mjs} +5 -5
  3. package/dist/{AuthStore-DicEfgQW.mjs → AuthStore-DT2LHFZY.mjs} +19 -15
  4. package/dist/BlueSkyIcon-CvUZXBmu.mjs +29 -0
  5. package/dist/{CategoryChooser-fAUMJNHu.mjs → CategoryChooser-Cg_gq6L_.mjs} +1 -1
  6. package/dist/{CategoryFilter-BEUYdg8x.mjs → CategoryFilter-DCL1IGeO.mjs} +3 -3
  7. package/dist/{CategoryList-CXlZwPx_.mjs → CategoryList-Dn8lcA-a.mjs} +2 -2
  8. package/dist/{CategoryPage-8ASmoXs-.mjs → CategoryPage-evX4IBPl.mjs} +2 -2
  9. package/dist/{CategorySearchFilter-Cce5zxZB.mjs → CategorySearchFilter-eRcZcX0o.mjs} +1 -1
  10. package/dist/{CheckIdentityModal-axczuxN_.mjs → CheckIdentityModal-ByeLORmB.mjs} +3 -3
  11. package/dist/{ClassicAlert-DATLZ8J1.mjs → ClassicAlert-C6Uib0Eg.mjs} +1 -1
  12. package/dist/{ClassicBigChip-BK8v_P0z.mjs → ClassicBigChip-Be7ArxEa.mjs} +1 -1
  13. package/dist/ClassicColorPicker-DcjFDaZ8.mjs +79 -0
  14. package/dist/{ClassicDatePicker-RsK4smk2.mjs → ClassicDatePicker-DX5yvI3X.mjs} +1 -1
  15. package/dist/ClassicEmojiPicker-Bj84fiGG.mjs +63 -0
  16. package/dist/{ClassicHelpButton-BnRLmYuh.mjs → ClassicHelpButton-CDz_GcaZ.mjs} +1 -1
  17. package/dist/{ClassicInputText-YsntJkHk.mjs → ClassicInputText-DKNLu5f5.mjs} +1 -1
  18. package/dist/{ClassicLoading-CXfMjpyl.mjs → ClassicLoading-ydEDL7-R.mjs} +1 -1
  19. package/dist/{ClassicMultiselect-C0yzVQ8Y.mjs → ClassicMultiselect-CEJF_Uo5.mjs} +1 -1
  20. package/dist/{ClassicNotifications-vaUjCTEc.mjs → ClassicNotifications-CF6UK_7o.mjs} +2 -2
  21. package/dist/ClassicPopover-BpFChUHf.mjs +203 -0
  22. package/dist/ClassicSelect-Bj9BkTkd.mjs +121 -0
  23. package/dist/{ClassicSpinner-DFRDD51g.mjs → ClassicSpinner-P6q1es8G.mjs} +4 -1
  24. package/dist/{ClipboardModal-B49yYTXK.mjs → ClipboardModal-Cm3iBGaB.mjs} +1 -1
  25. package/dist/{CommentInput-C8KtLKTd.mjs → CommentInput-K0GcwH6w.mjs} +5 -5
  26. package/dist/CommentItem-B-ie5Qw4.mjs +233 -0
  27. package/dist/CommentList-D0uwI9Ro.mjs +203 -0
  28. package/dist/{CommentMoreActions-vmx-I-Iq.mjs → CommentMoreActions-DR1G7lLY.mjs} +6 -5
  29. package/dist/{CommentName-DfGeg6K5.mjs → CommentName-Bazz-9tx.mjs} +3 -3
  30. package/dist/{CommentParentInfo-4UblopkM.mjs → CommentParentInfo-CJClI-5r.mjs} +3 -3
  31. package/dist/CommentSection-Urn9o9NP.mjs +119 -0
  32. package/dist/{CommentStore-CV6hsdbD.mjs → CommentStore-DUkCxct8.mjs} +76 -88
  33. package/dist/{ContractPreviewModal-CpLWz649.mjs → ContractPreviewModal-DrPILMfQ.mjs} +1 -1
  34. package/dist/{DateFilter-C7fBCqX8.mjs → DateFilter-BqGacRud.mjs} +1 -1
  35. package/dist/{DownloadPodcastButton-D9qdK3Vs.mjs → DownloadPodcastButton-0N71EBNq.mjs} +2 -2
  36. package/dist/{EditCommentModal-CQBWEzRy.mjs → EditCommentModal-Cox6Uipc.mjs} +2 -2
  37. package/dist/{EmissionGroupChooser-CsY37yhE.mjs → EmissionGroupChooser-CJy6ffcX.mjs} +2 -2
  38. package/dist/{EmissionInlineList-BTm-vKT_.mjs → EmissionInlineList-ClSzhvZf.mjs} +36 -26
  39. package/dist/EmissionItem-COZh7Y9N.mjs +123 -0
  40. package/dist/EmissionList-iBxxgBcW.mjs +230 -0
  41. package/dist/EmissionPage-Dw-jGsHu.mjs +191 -0
  42. package/dist/{EmissionPlayerItem-i9qBw7qg.mjs → EmissionPlayerItem-IrimqwPQ.mjs} +9 -9
  43. package/dist/{EmissionPresentationItem-kwkl6gGi.mjs → EmissionPresentationItem-9eswo5Jo.mjs} +7 -4
  44. package/dist/{EmissionPresentationList-DoiPDE0Q.mjs → EmissionPresentationList-BAYzJAyk.mjs} +8 -6
  45. package/dist/EmissionsPage-2nxS4PSb.mjs +117 -0
  46. package/dist/{Error403Page-CIXtXR8O.mjs → Error403Page-DZQtlHZy.mjs} +1 -1
  47. package/dist/ExternalLink-Xd1yTR71.mjs +35 -0
  48. package/dist/{FooterGarSection-D4cHh_7u.mjs → FooterGarSection-OVNPexa0.mjs} +3 -3
  49. package/dist/{FooterSection-DPiDNA4L.mjs → FooterSection-Bu3fpvoT.mjs} +13 -13
  50. package/dist/{HomeDropdown-COrDmwgz.mjs → HomeDropdown-FM1ex5HH.mjs} +3 -3
  51. package/dist/{HomePage-C1M09x-n.mjs → HomePage-oXGT5fVT.mjs} +3 -3
  52. package/dist/InlineRubriqueList-BTIcsWKh.mjs +48 -0
  53. package/dist/LikeButton-CnMZOm9N.mjs +46 -0
  54. package/dist/{LikeSection-BPKNsu_2.mjs → LikeSection-gazwZZcW.mjs} +11 -17
  55. package/dist/ListPaginate-B2pwJkqL.mjs +191 -0
  56. package/dist/{LiveHorizontalList-BxDJY4Ga.mjs → LiveHorizontalList-Bzromhka.mjs} +6 -6
  57. package/dist/{LiveList-Dd9Ek190.mjs → LiveList-Dcwa-y90.mjs} +12 -11
  58. package/dist/{LivesPage-BvScVnlj.mjs → LivesPage-ir2Xsrqn.mjs} +2 -2
  59. package/dist/{MapPage-Daq-G22-.mjs → MapPage-CH0qJP2L.mjs} +1 -1
  60. package/dist/{MessageModal-BcqS77v6.mjs → MessageModal-DyD3HZy0.mjs} +1 -1
  61. package/dist/{MobileMenu-N_uqqPXy.mjs → MobileMenu-CJrZgov0.mjs} +3 -3
  62. package/dist/{MonetizableFilter-B7NHzXEY.mjs → MonetizableFilter-BeBVeGSW.mjs} +1 -1
  63. package/dist/{NewsletterModal-B3l0QC-e.mjs → NewsletterModal-B48V0I0K.mjs} +1 -1
  64. package/dist/{OctopusMultiselect-noQPQMZQ.mjs → OctopusMultiselect-BKTocH90.mjs} +87 -81
  65. package/dist/OrganisationChooser-CLufsAg3.mjs +134 -0
  66. package/dist/{OrganisationChooserLight-p-BVMwyG.mjs → OrganisationChooserLight-BNH5gege.mjs} +2 -2
  67. package/dist/{PageNotFound-DHY46Syf.mjs → PageNotFound-ByGNlABt.mjs} +2 -2
  68. package/dist/PaginateParams-BKSnsVZH.mjs +54 -0
  69. package/dist/{ParticipantInlineList-D8i3AIzH.mjs → ParticipantInlineList-CCjIwpcx.mjs} +24 -19
  70. package/dist/ParticipantItem-C_rZZQyk.mjs +93 -0
  71. package/dist/ParticipantPage-BI5pJZ7H.mjs +127 -0
  72. package/dist/{ParticipantsPage-B1H5qiE5.mjs → ParticipantsPage-Dmg-ECmy.mjs} +16 -16
  73. package/dist/{PlayerAnonymousModal-B6ySHibo.mjs → PlayerAnonymousModal-Brn2UaEl.mjs} +2 -2
  74. package/dist/PlaylistPage-CRnpWwjr.mjs +130 -0
  75. package/dist/{PlaylistsPage-yz5J_dXY.mjs → PlaylistsPage-BjIO6n8e.mjs} +88 -77
  76. package/dist/{PodcastFilterList-BcENzPoH.mjs → PodcastFilterList-saxBJ-Ag.mjs} +4 -3
  77. package/dist/PodcastInlineList-BU6Pdn9D.mjs +186 -0
  78. package/dist/{PodcastInlineListTemplate-jy0vmJx-.mjs → PodcastInlineListTemplate-B1g1D7Pa.mjs} +58 -56
  79. package/dist/PodcastItem-Dt2S9ol1.mjs +305 -0
  80. package/dist/{PodcastList-Dyl543Bp.mjs → PodcastList-CI5SWUV7.mjs} +26 -24
  81. package/dist/{PodcastList-Dm3usBYI.mjs → PodcastList-CYYbgXJQ.mjs} +12 -12
  82. package/dist/PodcastPage-CYBrWQAu.mjs +595 -0
  83. package/dist/PodcastPlayButton-DbES6xKz.mjs +127 -0
  84. package/dist/PodcastPlaylistInlineList-B3xHeLYt.mjs +69 -0
  85. package/dist/{PodcastPresentationList-BQq63Hw8.mjs → PodcastPresentationList-C3Z4AfI6.mjs} +9 -7
  86. package/dist/{PodcastmakerHeader-CL_tjvMk.mjs → PodcastmakerHeader-Cl6lJ1Fv.mjs} +1 -1
  87. package/dist/PodcastsPage-X3dIvktI.mjs +133 -0
  88. package/dist/{ProductorSearch-CPzNgX7W.mjs → ProductorSearch-Bm3Va3YM.mjs} +3 -3
  89. package/dist/QrCode-uG7eyYYm.mjs +116 -0
  90. package/dist/{QrCodeModal-3A2UoPSF.mjs → QrCodeModal-PY3Q43im.mjs} +1 -1
  91. package/dist/{RadioCurrently-BjYJdFaU.mjs → RadioCurrently-DM9gw9b4.mjs} +20 -20
  92. package/dist/{RadioImage-C3P-UQoy.mjs → RadioImage-BJvDTI73.mjs} +1 -1
  93. package/dist/RadioList-pq_OlQ-n.mjs +79 -0
  94. package/dist/{RadioPage-CpdnsZ9i.mjs → RadioPage-Bf6acoPj.mjs} +5 -5
  95. package/dist/{RadioPlanning-mOBlcxk9.mjs → RadioPlanning-Bm_GW61t.mjs} +3 -3
  96. package/dist/{RecaptchaModal-MQuwH4X4.mjs → RecaptchaModal-3fVz4mBV.mjs} +2 -2
  97. package/dist/{ReportAbuseModal-D0XeDyYW.mjs → ReportAbuseModal-B6CjrNER.mjs} +4 -4
  98. package/dist/{RightsIndicator-DzAceGoE.mjs → RightsIndicator-BIyPY5fK.mjs} +4 -4
  99. package/dist/{RightsWrapper-hjzM-Sqr.mjs → RightsWrapper-Bp5Bdi4k.mjs} +41 -42
  100. package/dist/{RubriqueChoice-C-S-veJJ.mjs → RubriqueChoice-Ci23lZBD.mjs} +2 -2
  101. package/dist/{RubriqueChooser-CNGn8LcP.mjs → RubriqueChooser-C5QLRe-b.mjs} +1 -1
  102. package/dist/{RubriqueFilter-UdXMkAQI.mjs → RubriqueFilter-bAyUs9mb.mjs} +3 -3
  103. package/dist/{RubriqueList-DRZ0ETu2.mjs → RubriqueList-C0oaq3Rk.mjs} +4 -4
  104. package/dist/{RubriquePage-C4PvUVhz.mjs → RubriquePage-CwK9z6oV.mjs} +6 -5
  105. package/dist/{SearchPage-mxM-OqW1.mjs → SearchPage-DLvrQ2Af.mjs} +2 -2
  106. package/dist/ShareAnonymous-BxMMZRIE.mjs +210 -0
  107. package/dist/{ShareModalPlayer-B1g9YiSI.mjs → ShareModalPlayer-BXb8wSzk.mjs} +1 -1
  108. package/dist/{ShareNewsletter-CCahfetv.mjs → ShareNewsletter-CMX7C-NX.mjs} +41 -44
  109. package/dist/{SharePlayer-BtArvP3g.mjs → SharePlayer-zYJjFW6G.mjs} +2 -2
  110. package/dist/SharePlayerColors-CfrkwpdM.mjs +50 -0
  111. package/dist/{SharePlayerRadio-BdXEBctc.mjs → SharePlayerRadio-D9bAEkS4.mjs} +2 -2
  112. package/dist/{SharePlayerTypes-BCxXdkz-.mjs → SharePlayerTypes-1XQHtq7z.mjs} +1 -1
  113. package/dist/ShareSocialsButtons-BADlVM1I.mjs +71 -0
  114. package/dist/SmartLinkPage-DC0gUzRQ.mjs +143 -0
  115. package/dist/SubscribeButtons-syapjuge.mjs +126 -0
  116. package/dist/SwiperList-Ccexrxg3.mjs +179 -0
  117. package/dist/{TagList-CvZonJ_a.mjs → TagList-D_wZ0e_7.mjs} +5 -5
  118. package/dist/{TagPage-w4FxxLXT.mjs → TagPage-80BUQBN-.mjs} +3 -3
  119. package/dist/TopBar-BK8cyLvx.mjs +427 -0
  120. package/dist/UserButtonContent-B7DCVigs.mjs +129 -0
  121. package/dist/buttons-HDZylU-2.mjs +151 -0
  122. package/dist/{downloadHelper-9GxSNVWh.mjs → downloadHelper-DtmIJYVZ.mjs} +1 -1
  123. package/dist/index.css +1 -1
  124. package/dist/index.d.ts +6 -2
  125. package/dist/index.mjs +238 -240
  126. package/dist/{messages-DlxMAMOa.mjs → messages-DJAarMHp.mjs} +108 -6
  127. package/dist/src/components/composable/form/useOctopusDropdown.d.ts +6 -0
  128. package/dist/src/components/display/comments/like/LikeButton.vue.d.ts +9 -33
  129. package/dist/src/components/display/comments/like/LikeSection.vue.d.ts +11 -33
  130. package/dist/src/components/display/emission/EmissionInlineList.vue.d.ts +4 -4
  131. package/dist/src/components/display/emission/EmissionItem.vue.d.ts +5 -1
  132. package/dist/src/components/display/emission/EmissionPresentationItem.vue.d.ts +2 -0
  133. package/dist/src/components/display/emission/EmissionPresentationList.vue.d.ts +1 -1
  134. package/dist/src/components/display/list/SwiperList.vue.d.ts +7 -4
  135. package/dist/src/components/display/live/RadioItem.vue.d.ts +11 -0
  136. package/dist/src/components/display/participant/ParticipantInlineList.vue.d.ts +1 -1
  137. package/dist/src/components/display/playlist/PlaylistItem.vue.d.ts +11 -0
  138. package/dist/src/components/display/podcasts/PodcastFilterList.vue.d.ts +3 -3
  139. package/dist/src/components/display/podcasts/PodcastImage.vue.d.ts +29 -9
  140. package/dist/src/components/display/podcasts/PodcastInlineList.vue.d.ts +45 -4
  141. package/dist/src/components/display/podcasts/PodcastInlineListTemplate.vue.d.ts +1 -1
  142. package/dist/src/components/display/podcasts/PodcastItem.vue.d.ts +7 -1
  143. package/dist/src/components/display/podcasts/PodcastItemInfo.vue.d.ts +10 -12
  144. package/dist/src/components/display/podcasts/PodcastList.vue.d.ts +2 -0
  145. package/dist/src/components/display/sharing/FormatSwitch.vue.d.ts +12 -17
  146. package/dist/src/components/form/ClassicColorPicker.vue.d.ts +26 -0
  147. package/dist/src/components/form/ClassicContentEditable.vue.d.ts +1 -1
  148. package/dist/src/components/form/ClassicInputText.vue.d.ts +1 -1
  149. package/dist/src/components/form/ClassicMultiselect.vue.d.ts +4 -4
  150. package/dist/src/components/form/OctopusSelect.vue.d.ts +9 -1
  151. package/dist/src/components/form/index.d.ts +2 -1
  152. package/dist/src/components/icons/BlueSkyIcon.vue.d.ts +6 -28
  153. package/dist/src/components/icons/ThreadsIcon.vue.d.ts +11 -0
  154. package/dist/src/components/icons/TikTokIcon.vue.d.ts +11 -0
  155. package/dist/src/components/icons.d.ts +36 -0
  156. package/dist/src/components/layouts/PresentationItem.vue.d.ts +7 -3
  157. package/dist/src/components/misc/ClassicPopover.vue.d.ts +2 -0
  158. package/dist/src/components/misc/ExternalLink.vue.d.ts +27 -0
  159. package/dist/src/components/misc/LoadingOverlay.vue.d.ts +19 -0
  160. package/dist/src/components/misc/SkipToContent.vue.d.ts +7 -0
  161. package/dist/src/locale/messages.d.ts +102 -0
  162. package/dist/src/stores/CommentStore.d.ts +3 -1
  163. package/dist/src/stores/ParamSdkStore.d.ts +30 -32
  164. package/dist/src/websocket/commentWebsocket.d.ts +3 -2
  165. package/dist/src/websocket/wss.d.ts +35 -32
  166. package/dist/tests-mocks.mjs +3 -2
  167. package/dist/tests.mjs +3 -2
  168. package/dist/{useAdvancedParamInit-BfHuaeW7.mjs → useAdvancedParamInit-DGRksTPR.mjs} +5 -5
  169. package/dist/{useAppleVideo-BwcLJ1Vj.mjs → useAppleVideo-C1OM_xlG.mjs} +1 -1
  170. package/dist/{useDayjs-BnrPJRlV.mjs → useDayjs-C3RCySiJ.mjs} +1 -1
  171. package/dist/{useErrorHandler-DnNlEM3z.mjs → useErrorHandler-cL3DyYF7.mjs} +1 -1
  172. package/dist/{useImageProxy-B5iVux4E.mjs → useImageProxy-TaJ9JzFN.mjs} +1 -1
  173. package/dist/{useOrgaComputed-Cmrkk-ZP.mjs → useOrgaComputed-VI0Jp5Dz.mjs} +1 -1
  174. package/dist/usePresentationItem-BwzUf1IZ.mjs +104 -0
  175. package/dist/{useRights-cTVIlBye.mjs → useRights-CaCJkWnA.mjs} +1 -1
  176. package/dist/{useRubriquesFilterComputed-BrJfTJ4L.mjs → useRubriquesFilterComputed-BWydSjj1.mjs} +1 -1
  177. package/dist/{useRubriquesFilterParam-DMnwILFD.mjs → useRubriquesFilterParam-Dr-X6X3i.mjs} +1 -1
  178. package/dist/{useSharePlatforms-C0JjDxsf.mjs → useSharePlatforms-BauF37io.mjs} +26 -26
  179. package/dist/{useSimplePageParam-X73IKtOi.mjs → useSimplePageParam-DcKZYCaH.mjs} +1 -1
  180. package/eslint-config.mjs +10 -0
  181. package/package.json +5 -3
  182. package/src/api/rubriquesApi.ts +9 -6
  183. package/src/components/composable/form/useOctopusDropdown.ts +24 -1
  184. package/src/components/display/RightsIndicator.vue +0 -13
  185. package/src/components/display/RightsWrapper.vue +1 -16
  186. package/src/components/display/accessibility/AccessibilityModal.vue +7 -12
  187. package/src/components/display/comments/CommentInput.vue +2 -1
  188. package/src/components/display/comments/CommentList.vue +189 -176
  189. package/src/components/display/comments/CommentSection.vue +160 -73
  190. package/src/components/display/comments/item/CommentItem.vue +186 -135
  191. package/src/components/display/comments/item/CommentMoreActions.vue +195 -194
  192. package/src/components/display/comments/like/LikeButton.vue +47 -45
  193. package/src/components/display/comments/like/LikeSection.vue +122 -115
  194. package/src/components/display/emission/EmissionInlineList.vue +118 -116
  195. package/src/components/display/emission/EmissionItem.vue +35 -28
  196. package/src/components/display/emission/EmissionList.vue +41 -24
  197. package/src/components/display/emission/EmissionPresentationItem.vue +3 -0
  198. package/src/components/display/emission/EmissionPresentationList.vue +1 -0
  199. package/src/components/display/filter/ProductorSearch.vue +83 -80
  200. package/src/components/display/list/ListPaginate.vue +51 -37
  201. package/src/components/display/list/PaginateParams.vue +28 -32
  202. package/src/components/display/list/PaginateSection.vue +145 -138
  203. package/src/components/display/list/SwiperList.vue +113 -10
  204. package/src/components/display/live/LiveList.vue +111 -106
  205. package/src/components/display/live/RadioItem.vue +17 -12
  206. package/src/components/display/organisation/OrganisationChooser.vue +2 -1
  207. package/src/components/display/participant/ParticipantInlineList.vue +52 -49
  208. package/src/components/display/participant/ParticipantItem.vue +2 -1
  209. package/src/components/display/playlist/PlaylistItem.vue +19 -15
  210. package/src/components/display/playlist/PlaylistList.vue +16 -10
  211. package/src/components/display/playlist/PodcastPlaylistInlineList.vue +68 -61
  212. package/src/components/display/podcasts/AnimatorsItem.vue +2 -0
  213. package/src/components/display/podcasts/PodcastFilterList.vue +107 -106
  214. package/src/components/display/podcasts/PodcastImage.vue +110 -126
  215. package/src/components/display/podcasts/PodcastInlineList.vue +133 -25
  216. package/src/components/display/podcasts/PodcastInlineListTemplate.vue +2 -0
  217. package/src/components/display/podcasts/PodcastItem.vue +111 -64
  218. package/src/components/display/podcasts/PodcastItemInfo.vue +48 -18
  219. package/src/components/display/podcasts/PodcastList.vue +198 -194
  220. package/src/components/display/podcasts/PodcastModuleBox.vue +1 -0
  221. package/src/components/display/podcasts/PodcastPlayButton.vue +23 -6
  222. package/src/components/display/podcasts/PodcastPresentationList.vue +1 -0
  223. package/src/components/display/rubriques/InlineRubriqueList.vue +35 -16
  224. package/src/components/display/sharing/FormatSwitch.vue +90 -101
  225. package/src/components/display/sharing/QrCode.vue +4 -8
  226. package/src/components/display/sharing/ShareAnonymous.vue +207 -205
  227. package/src/components/display/sharing/ShareNewsletter.vue +3 -7
  228. package/src/components/display/sharing/SharePlayerColors.vue +5 -12
  229. package/src/components/display/sharing/ShareSocialsButtons.vue +67 -60
  230. package/src/components/display/sharing/SubscribeButtons.vue +47 -35
  231. package/src/components/form/ClassicColorPicker.vue +110 -0
  232. package/src/components/form/ClassicEmojiPicker.vue +22 -4
  233. package/src/components/form/ClassicMultiselect.vue +205 -197
  234. package/src/components/form/ClassicSelect.vue +100 -80
  235. package/src/components/form/OctopusMultiselect.vue +10 -11
  236. package/src/components/form/OctopusSelect.vue +18 -12
  237. package/src/components/form/index.ts +2 -0
  238. package/src/components/icons/BlueSkyIcon.vue +24 -21
  239. package/src/components/icons/ThreadsIcon.vue +33 -0
  240. package/src/components/icons/TikTokIcon.vue +41 -0
  241. package/src/components/icons.ts +8 -1
  242. package/src/components/layouts/PresentationItem.vue +18 -12
  243. package/src/components/misc/ClassicDataTable.vue +3 -3
  244. package/src/components/misc/ClassicPopover.vue +95 -1
  245. package/src/components/misc/ClassicSpinner.vue +16 -2
  246. package/src/components/misc/ExternalLink.vue +51 -0
  247. package/src/components/misc/LoadingOverlay.vue +86 -0
  248. package/src/components/misc/RightsScopeMenu.vue +1 -1
  249. package/src/components/misc/SkipToContent.vue +16 -0
  250. package/src/components/misc/TopBarMainContent.vue +6 -9
  251. package/src/components/misc/UserButtonContent.vue +4 -7
  252. package/src/components/pages/EmissionPage.vue +3 -2
  253. package/src/components/pages/EmissionsPage.vue +4 -0
  254. package/src/components/pages/ParticipantPage.vue +2 -1
  255. package/src/components/pages/PlaylistPage.vue +115 -110
  256. package/src/components/pages/PodcastPage.vue +3 -0
  257. package/src/components/pages/PodcastsPage.vue +4 -0
  258. package/src/components/pages/RubriquePage.vue +1 -0
  259. package/src/components/pages/SmartLinkPage.vue +10 -7
  260. package/src/layouts/FullLayout.vue +29 -23
  261. package/src/locale/de.json +18 -1
  262. package/src/locale/en.json +18 -1
  263. package/src/locale/es.json +18 -1
  264. package/src/locale/fr.json +22 -1
  265. package/src/locale/it.json +18 -1
  266. package/src/locale/sl.json +18 -1
  267. package/src/stores/CommentStore.ts +280 -263
  268. package/src/stores/ParamSdkStore.ts +39 -37
  269. package/src/style/_variables.scss +18 -0
  270. package/src/style/bootstrap.scss +40 -1
  271. package/src/style/general.scss +3 -3
  272. package/src/style/share.scss +26 -1
  273. package/src/websocket/commentWebsocket.ts +56 -54
  274. package/src/websocket/wss.ts +136 -163
  275. package/tests/api/rubriquesApi.spec.ts +49 -0
  276. package/tests/components/composable/form/useOctopusDropdown.spec.ts +58 -0
  277. package/tests/components/display/comments/CommentList.spec.ts +45 -0
  278. package/tests/components/display/emission/EmissionItem.spec.ts +35 -0
  279. package/tests/components/display/emission/EmissionPresentationItem.spec.ts +6 -0
  280. package/tests/components/display/filter/ProductorSearch.spec.ts +20 -0
  281. package/tests/components/display/list/ListPaginate.spec.ts +67 -0
  282. package/tests/components/display/list/SwiperList.spec.ts +101 -2
  283. package/tests/components/display/live/RadioItem.spec.ts +41 -0
  284. package/tests/components/display/playlist/PlaylistItem.spec.ts +53 -0
  285. package/tests/components/display/podcasts/AnimatorsItem.spec.ts +18 -0
  286. package/tests/components/display/podcasts/PodcastInlineList.spec.ts +139 -0
  287. package/tests/components/display/podcasts/PodcastInlineListTemplate.spec.ts +16 -0
  288. package/tests/components/display/podcasts/PodcastItem.spec.ts +77 -0
  289. package/tests/components/display/podcasts/PodcastItemInfo.spec.ts +15 -2
  290. package/tests/components/display/podcasts/PodcastPlayButton.spec.ts +67 -0
  291. package/tests/components/display/sharing/FormatSwitch.spec.ts +26 -0
  292. package/tests/components/display/sharing/ShareAnonymous.spec.ts +61 -0
  293. package/tests/components/display/sharing/SubscribeButtons.spec.ts +73 -0
  294. package/tests/components/form/ClassicColorPicker.spec.ts +71 -0
  295. package/tests/components/form/ClassicEmojiPicker.spec.ts +51 -0
  296. package/tests/components/form/ClassicSelect.spec.ts +38 -0
  297. package/tests/components/layouts/PresentationItem.spec.ts +34 -0
  298. package/tests/components/misc/ClassicPopover.spec.ts +112 -0
  299. package/tests/components/misc/ExternalLink.spec.ts +49 -0
  300. package/tests/components/misc/LoadingOverlay.spec.ts +27 -0
  301. package/tests/components/misc/SkipToContent.spec.ts +19 -0
  302. package/tests/components/pages/EmissionPage.spec.ts +9 -0
  303. package/tests/components/pages/EmissionsPage.spec.ts +13 -2
  304. package/tests/components/pages/PlaylistPage.spec.ts +11 -0
  305. package/tests/components/pages/PodcastsPage.spec.ts +13 -2
  306. package/tests/components/pages/SmartLinkPage.spec.ts +13 -0
  307. package/tests/helper/language.spec.ts +7 -3
  308. package/tests/mocks/useAdvancedParamInit.ts +2 -1
  309. package/tests/setup.ts +7 -0
  310. package/tests/stores/CommentStore.spec.ts +19 -0
  311. package/tests/utils.ts +5 -2
  312. package/tests/websocket/wss.spec.ts +153 -0
  313. package/dist/ClassicEmojiPicker-C0gm-DA2.mjs +0 -63
  314. package/dist/ClassicPopover-BUb-1WMB.mjs +0 -172
  315. package/dist/ClassicSelect-BpA0jKN6.mjs +0 -111
  316. package/dist/CommentItem-DvOTEIy-.mjs +0 -226
  317. package/dist/CommentList-BbLPCvLW.mjs +0 -201
  318. package/dist/CommentSection-C9XzY3qd.mjs +0 -79
  319. package/dist/EmissionItem-BF01x9Av.mjs +0 -116
  320. package/dist/EmissionList-sDV1AQ-W.mjs +0 -229
  321. package/dist/EmissionPage-DigMi9wA.mjs +0 -192
  322. package/dist/EmissionsPage-BUKEieK-.mjs +0 -116
  323. package/dist/InlineRubriqueList-Cpkf_s1d.mjs +0 -48
  324. package/dist/LikeButton-Cu8jAJHx.mjs +0 -40
  325. package/dist/ListPaginate-BnLG7-CH.mjs +0 -153
  326. package/dist/OrganisationChooser-DNRrjTTk.mjs +0 -135
  327. package/dist/PaginateParams-Bjz3ZI-5.mjs +0 -75
  328. package/dist/ParticipantItem-DiHsXYRA.mjs +0 -91
  329. package/dist/ParticipantPage-B_-BdfWS.mjs +0 -128
  330. package/dist/PlaylistPage-Dte2m3kv.mjs +0 -132
  331. package/dist/PodcastImage-C3SZgUEd.mjs +0 -115
  332. package/dist/PodcastInlineList-DonkcsVN.mjs +0 -123
  333. package/dist/PodcastItem-fuqcoepp.mjs +0 -151
  334. package/dist/PodcastPage-BlFm87X1.mjs +0 -591
  335. package/dist/PodcastPlayButton-Dmxh2zu8.mjs +0 -111
  336. package/dist/PodcastPlaylistInlineList-1hteCxOy.mjs +0 -63
  337. package/dist/PodcastSwiperList-MVm_zu3R.mjs +0 -170
  338. package/dist/PodcastsPage-_dkn-SRQ.mjs +0 -132
  339. package/dist/QrCode-os6HcLad.mjs +0 -109
  340. package/dist/RadioList-Dqrw26Hd.mjs +0 -70
  341. package/dist/ShareAnonymous-CciJmB9R.mjs +0 -199
  342. package/dist/SharePlayerColors-BpdifsHh.mjs +0 -49
  343. package/dist/ShareSocialsButtons-D1RLmhei.mjs +0 -102
  344. package/dist/SmartLinkPage-7DAeNotv.mjs +0 -136
  345. package/dist/SubscribeButtons-CBJMC8gO.mjs +0 -121
  346. package/dist/SwiperList-Cv3jJ7Uk.mjs +0 -117
  347. package/dist/TopBar-CFAgxhT_.mjs +0 -427
  348. package/dist/UserButtonContent--3-UrgO7.mjs +0 -131
  349. package/dist/buttons-BkfxHdGj.mjs +0 -85
  350. package/dist/usePresentationItem-bTGZOsYf.mjs +0 -100
  351. package/src/components/display/podcasts/PodcastSwiperList.vue +0 -160
  352. package/src/helper/featureHelper.ts +0 -24
@@ -0,0 +1,203 @@
1
+ import { t as e } from "./rolldown-runtime-Dy4uBu1J.mjs";
2
+ import { Teleport as t, computed as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createTextVNode as s, defineComponent as c, nextTick as l, normalizeClass as ee, normalizeStyle as u, onMounted as d, onUnmounted as f, openBlock as p, ref as m, renderSlot as te, toDisplayString as h, useTemplateRef as ne, vShow as re, watch as g, withDirectives as ie } from "vue";
3
+ import { useRouter as _ } from "vue-router";
4
+ //#region src/components/misc/ClassicPopover.vue?vue&type=script&setup=true&lang.ts
5
+ var v = ["id"], ae = {
6
+ key: 0,
7
+ class: "bg-secondary-light p-2"
8
+ }, y = { class: "p-2" }, oe = "a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])", b = /*@__PURE__*/ c({
9
+ __name: "ClassicPopover",
10
+ props: {
11
+ content: {
12
+ type: String,
13
+ default: ""
14
+ },
15
+ title: {
16
+ type: String,
17
+ default: ""
18
+ },
19
+ target: {
20
+ type: String,
21
+ required: !0
22
+ },
23
+ disable: {
24
+ type: Boolean,
25
+ default: !1
26
+ },
27
+ onlyClick: {
28
+ type: Boolean,
29
+ default: !1
30
+ },
31
+ onlyMouse: {
32
+ type: Boolean,
33
+ default: !1
34
+ },
35
+ isFixed: {
36
+ type: Boolean,
37
+ default: !1
38
+ },
39
+ relativeClass: {
40
+ type: String,
41
+ default: void 0
42
+ },
43
+ leftPos: {
44
+ type: Boolean,
45
+ default: !1
46
+ },
47
+ topPos: {
48
+ type: Boolean,
49
+ default: !1
50
+ },
51
+ popoverClass: {
52
+ type: String,
53
+ default: void 0
54
+ },
55
+ isTopLayer: {
56
+ type: Boolean,
57
+ default: !1
58
+ },
59
+ constrainHeight: {
60
+ type: Boolean,
61
+ default: !0
62
+ },
63
+ zIndex: {
64
+ type: Number,
65
+ default: void 0
66
+ }
67
+ },
68
+ emits: ["updateVisibility"],
69
+ setup(e, { expose: c, emit: b }) {
70
+ let x = e, S = b, C = m(!1), w = m(!1), T = m(!1), E = m(0), D = m(0), O = m(null), k = m(!1), A = m(!1), j = !1, M = m("80dvh"), N = m(void 0), P = ne("popover"), F = _(), I = n(() => "popover" + x.target), L = n(() => ({
71
+ left: `${E.value}px`,
72
+ top: `${D.value}px`,
73
+ "max-height": M.value,
74
+ "z-index": x.zIndex ?? 10
75
+ })), R = n(() => C.value && !x.disable), z = n(() => (x.isTopLayer || x.relativeClass === "octopus-modal") && Object.hasOwn(HTMLElement.prototype, "popover"));
76
+ g(R, async () => {
77
+ z.value && (R.value ? P.value.showPopover() : P.value.hidePopover());
78
+ }), g(C, async () => {
79
+ S("updateVisibility", C.value), x.onlyClick && O.value?.setAttribute("aria-expanded", String(C.value)), C.value ? window.addEventListener("keyup", V) : window.removeEventListener("keyup", V);
80
+ }), g(w, async () => {
81
+ w.value && !T.value ? window.addEventListener("click", B, !0) : window.removeEventListener("click", B, !0);
82
+ }), d(() => H()), f(() => U());
83
+ function B(e) {
84
+ let t = e.target, n = P?.value, r = O.value;
85
+ n && !n.contains(t) && r && !r.contains(t) && Z();
86
+ }
87
+ function V(e) {
88
+ if (!e || e === null) return;
89
+ if (x.onlyClick && e.key === "Escape") {
90
+ Y();
91
+ return;
92
+ }
93
+ if (e.key !== "Tab") return;
94
+ let t = e.target;
95
+ (P?.value)?.contains(t) ? A.value = !0 : Z();
96
+ }
97
+ function H() {
98
+ O.value = document.getElementById(x.target), O.value && (x.onlyClick || (O.value.addEventListener("mouseenter", q), O.value.addEventListener("mouseleave", Q)), x.onlyMouse || O.value.addEventListener("click", q), O.value.addEventListener("focusout", X), x.onlyClick && (O.value.setAttribute("aria-controls", I.value), O.value.setAttribute("aria-expanded", String(C.value))));
99
+ }
100
+ function U() {
101
+ O.value && (x.onlyClick || (O.value.removeEventListener("mouseenter", q), O.value.removeEventListener("mouseleave", Q)), x.onlyMouse || O.value.removeEventListener("click", q), O.value.removeEventListener("focusout", X), x.onlyClick && (O.value.removeAttribute("aria-controls"), O.value.removeAttribute("aria-expanded")));
102
+ }
103
+ function W(e) {
104
+ return C.value && w.value && e.target !== P.value && !P.value?.contains(e.target) ? (w.value = !1, $(), -1) : C.value && z.value ? ((P?.value).showPopover(), w.value = !0, -1) : (w.value = !0, 0);
105
+ }
106
+ function G(e, t, n, r) {
107
+ n - (n - (e.right - t)) > r ? E.value = e.right - t - r : E.value = t;
108
+ }
109
+ function K(e, t, n, r) {
110
+ let i = e.left - t;
111
+ n - i > r ? E.value = i : E.value = n - r + t;
112
+ }
113
+ function q(e) {
114
+ if (clearInterval(N.value), x.disable || !e || !e.target || e.type === "click" && W(e) === -1) return;
115
+ e.type === "mouseenter" && (T.value = !0), C.value = !0;
116
+ let t = P?.value, n = e.target.getBoundingClientRect();
117
+ t.style.display = "block";
118
+ let r = t.clientWidth;
119
+ x.leftPos ? G(n, 0, window.innerWidth, r) : K(n, 0, window.innerWidth, r), E.value = Math.max(0, E.value);
120
+ let i = x.topPos ? n.top : n.bottom, a = x.topPos ? -5 - t.clientHeight : 5;
121
+ D.value = Math.max(0, i + a), M.value = window.innerHeight - D.value + "px", x.onlyClick && e.type === "click" && e.detail === 0 && l(() => se());
122
+ }
123
+ function J() {
124
+ return Array.from(P.value?.querySelectorAll(oe) ?? []);
125
+ }
126
+ function se() {
127
+ let e = J()[0] ?? P.value;
128
+ j = !0, e?.focus(), j = !1;
129
+ }
130
+ function Y() {
131
+ let e = P.value?.contains(document.activeElement) ?? !1;
132
+ Z(), e && O.value?.focus();
133
+ }
134
+ function ce(e) {
135
+ if (!x.onlyClick || e.key !== "Tab") return;
136
+ let t = P.value, n = J(), r = document.activeElement;
137
+ if (e.shiftKey) {
138
+ (r === t || r === n[0]) && (e.preventDefault(), Y());
139
+ return;
140
+ }
141
+ r === (n.at(-1) ?? t) && Y();
142
+ }
143
+ function le(e) {
144
+ x.onlyClick && e.detail === 0 && e.target.closest(".octopus-dropdown-item") && l(() => Y());
145
+ }
146
+ function X(e) {
147
+ if (j) return;
148
+ if (A.value) {
149
+ A.value = !1;
150
+ return;
151
+ }
152
+ if (Array.from(e?.target?.classList ?? []).findIndex((e) => e.startsWith("dp--")) !== -1) return;
153
+ let t = P?.value;
154
+ if (!e.relatedTarget) return t !== null && t.contains(e.target) ? void 0 : Z();
155
+ let n = e.relatedTarget;
156
+ if (I.value !== n.id) {
157
+ if (t === null || !t.contains(n)) return Z();
158
+ if (n.classList !== null && n.classList.contains("octopus-dropdown-item")) {
159
+ if (!n.href) return Z();
160
+ if (n.classList.contains("realLink")) n.click();
161
+ else {
162
+ let { pathname: e, search: t, hash: r } = n;
163
+ F.push(e + t + r);
164
+ }
165
+ l(() => {
166
+ w.value = !1, $();
167
+ });
168
+ }
169
+ }
170
+ }
171
+ function Z() {
172
+ w.value = !1, $();
173
+ }
174
+ function Q() {
175
+ N.value = setTimeout(() => {
176
+ k.value || $(), N.value = void 0;
177
+ }, 500);
178
+ }
179
+ function $() {
180
+ (!w.value || T.value) && (C.value = !1, E.value = 0, D.value = 0, T.value = !1, A.value = !1);
181
+ }
182
+ return c({ clearClick: Z }), (n, c) => (p(), r(t, { to: "#app" }, [ie(o("div", {
183
+ id: "popover" + e.target,
184
+ ref: "popover",
185
+ popover: "",
186
+ tabindex: "0",
187
+ class: ee(["octopus-popover border position-fixed", [
188
+ R.value ? "d-block" : "",
189
+ e.onlyClick ? "octopus-dropdown" : "",
190
+ e.popoverClass
191
+ ]]),
192
+ style: u(L.value),
193
+ onKeydown: ce,
194
+ onClick: le,
195
+ onMouseenter: c[0] ||= (e) => k.value = !0,
196
+ onMouseleave: c[1] ||= (e) => {
197
+ k.value = !1, $();
198
+ }
199
+ }, [e.title ? (p(), a("div", ae, h(e.title), 1)) : i("", !0), o("div", y, [te(n.$slots, "default", {}, () => [s(h(e.content), 1)])])], 46, v), [[re, R.value]])]));
200
+ }
201
+ }), x = /* @__PURE__ */ e({ default: () => S }), S = b;
202
+ //#endregion
203
+ export { x as n, S as t };
@@ -0,0 +1,121 @@
1
+ import { t as e } from "./rolldown-runtime-Dy4uBu1J.mjs";
2
+ import { Fragment as t, computed as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createTextVNode as s, defineComponent as c, nextTick as l, normalizeClass as u, normalizeStyle as d, openBlock as f, renderList as p, renderSlot as m, toDisplayString as h, unref as g, useTemplateRef as _, vShow as v, withDirectives as y } from "vue";
3
+ import { useI18n as b } from "vue-i18n";
4
+ import x from "vue-material-design-icons/Asterisk.vue";
5
+ //#region src/components/form/ClassicSelect.vue?vue&type=script&setup=true&lang.ts
6
+ var S = ["for"], C = [
7
+ "id",
8
+ "disabled",
9
+ "aria-label",
10
+ "required"
11
+ ], w = ["selected"], T = [
12
+ "value",
13
+ "data-selenium",
14
+ "selected"
15
+ ], E = /*@__PURE__*/ c({
16
+ __name: "ClassicSelect",
17
+ props: {
18
+ idSelect: {
19
+ default: "",
20
+ type: String
21
+ },
22
+ label: {
23
+ default: "",
24
+ type: String
25
+ },
26
+ displayLabel: {
27
+ default: !0,
28
+ type: Boolean
29
+ },
30
+ transparent: {
31
+ default: !1,
32
+ type: Boolean
33
+ },
34
+ isDisabled: {
35
+ default: !1,
36
+ type: Boolean
37
+ },
38
+ options: {
39
+ default: () => [],
40
+ type: Array
41
+ },
42
+ topOption: {
43
+ default: void 0,
44
+ type: Object
45
+ },
46
+ textInit: {
47
+ default: void 0,
48
+ type: [String, Number]
49
+ },
50
+ classLabel: {
51
+ default: "form-label",
52
+ type: String
53
+ },
54
+ orderOptions: {
55
+ default: !0,
56
+ type: Boolean
57
+ },
58
+ placeholder: {
59
+ default: void 0,
60
+ type: String
61
+ },
62
+ displayRequired: {
63
+ default: !1,
64
+ type: Boolean
65
+ }
66
+ },
67
+ emits: ["update:textInit"],
68
+ setup(e, { emit: c }) {
69
+ let E = e, D = c, { t: O } = b(), k = _("selectRef"), A = n(() => {
70
+ let e = E.options.find((e) => M(e.value));
71
+ return e?.fontFamily ? "font-family:" + e.fontFamily : "";
72
+ }), j = n(() => {
73
+ let e = Array.from(E.options);
74
+ return E.orderOptions && e.sort((e, t) => e.title > t.title ? 1 : t.title > e.title ? -1 : 0), E.topOption && e.unshift(E.topOption), e;
75
+ });
76
+ function M(e) {
77
+ return E.textInit !== void 0 && String(E.textInit) === String(e);
78
+ }
79
+ async function N(e) {
80
+ D("update:textInit", e), await l();
81
+ let t = E.textInit === void 0 ? "" : String(E.textInit);
82
+ k.value && k.value.value !== t && (k.value.value = t);
83
+ }
84
+ return (n, c) => (f(), a("div", { class: u(["classic-select", { "form-margin": e.displayLabel }]) }, [y(o("label", {
85
+ for: e.idSelect,
86
+ class: u(e.classLabel)
87
+ }, [
88
+ s(h(e.label) + " ", 1),
89
+ e.displayRequired ? (f(), r(x, {
90
+ key: 0,
91
+ size: 10,
92
+ class: "ms-1 mb-2",
93
+ title: g(O)("Mandatory input")
94
+ }, null, 8, ["title"])) : i("", !0),
95
+ m(n.$slots, "after-label")
96
+ ], 10, S), [[v, e.displayLabel]]), o("select", {
97
+ id: e.idSelect,
98
+ ref_key: "selectRef",
99
+ ref: k,
100
+ disabled: e.isDisabled,
101
+ class: u(["c-hand w-100", e.transparent ? "transparent" : ""]),
102
+ style: d(A.value),
103
+ "aria-label": e.label,
104
+ required: e.displayRequired,
105
+ onChange: c[0] ||= (e) => N(e.target.value)
106
+ }, [e.placeholder ? (f(), a("option", {
107
+ key: 0,
108
+ value: "",
109
+ disabled: "",
110
+ selected: e.textInit === void 0 || e.textInit === ""
111
+ }, h(e.placeholder), 9, w)) : i("", !0), (f(!0), a(t, null, p(j.value, (e) => (f(), a("option", {
112
+ key: e.title,
113
+ value: e.value,
114
+ "data-selenium": "select-option-" + e.value,
115
+ style: d(e.fontFamily ? "font-family:" + e.fontFamily : ""),
116
+ selected: M(e.value)
117
+ }, [m(n.$slots, "option", { option: e }, () => [s(h(e.title), 1)])], 12, T))), 128))], 46, C)], 2));
118
+ }
119
+ }), D = /* @__PURE__ */ e({ default: () => O }), O = E;
120
+ //#endregion
121
+ export { D as n, O as t };
@@ -21,7 +21,10 @@ var l = /*@__PURE__*/ a({
21
21
  return (e, n) => (s(), r("div", {
22
22
  class: "octopus-spinner",
23
23
  style: o(l.value)
24
- }, [(s(), r(t, null, c(12, (e) => i("div", { key: e })), 64))], 4));
24
+ }, [(s(), r(t, null, c(12, (e) => i("div", {
25
+ key: e,
26
+ style: o({ "--index": e })
27
+ }, null, 4)), 64))], 4));
25
28
  }
26
29
  }), u = /* @__PURE__ */ e({ default: () => d }), d = l;
27
30
  //#endregion
@@ -1,4 +1,4 @@
1
- import { t as e } from "./AuthStore-DicEfgQW.mjs";
1
+ import { t as e } from "./AuthStore-DT2LHFZY.mjs";
2
2
  import { t } from "./ClassicModal-Dl2IdzXZ.mjs";
3
3
  import { t as n } from "./ClassicCopyButton-DJ9T09fS.mjs";
4
4
  import { createBlock as r, createCommentVNode as i, createElementVNode as a, createTextVNode as o, createVNode as s, defineComponent as c, openBlock as l, resolveComponent as u, toDisplayString as d, unref as f, withCtx as p } from "vue";
@@ -1,5 +1,5 @@
1
- import { C as e, t } from "./AuthStore-DicEfgQW.mjs";
2
- import { t as n } from "./CommentStore-CV6hsdbD.mjs";
1
+ import { C as e, t } from "./AuthStore-DT2LHFZY.mjs";
2
+ import { t as n } from "./CommentStore-DUkCxct8.mjs";
3
3
  import { t as r } from "./config-DMjLBcZ2.mjs";
4
4
  import { t as i } from "./useSaootiPlayer-B1evOwnH.mjs";
5
5
  import { computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createVNode as u, defineAsyncComponent as d, defineComponent as f, normalizeClass as p, openBlock as m, ref as h, toDisplayString as g, unref as _, useTemplateRef as v, watch as y } from "vue";
@@ -27,7 +27,7 @@ var S = { class: "d-flex flex-column comment-input-container mt-3" }, C = {
27
27
  },
28
28
  emits: ["cancelAction", "newComment"],
29
29
  setup(f, { emit: E }) {
30
- let D = d(() => import("./CheckIdentityModal-axczuxN_.mjs")), O = d(() => import("./CommentName-DfGeg6K5.mjs")), k = d(() => import("./MessageModal-BcqS77v6.mjs").then((e) => e.n)), A = d(() => import("./ClassicEmojiPicker-C0gm-DA2.mjs")), j = d(() => import("./ClassicContentEditable-CWmtRihd.mjs")), M = f, N = E, P = r.MAX_COMMENT, F = h(""), I = h(!1), L = h(!1), R = h(!1), z = v("textarea"), { t: B } = b(), V = n(), H = t(), { podcastPlaying: U } = i(), W = a(() => G.value <= P), G = a(() => F.value.length), K = a(() => M.inAnswerComment?.commentId ? B("Answer a comment") : B("Write a comment")), q = a(() => "-comment" + (M.inAnswerComment?.commentId ?? "-parent"));
30
+ let D = d(() => import("./CheckIdentityModal-ByeLORmB.mjs")), O = d(() => import("./CommentName-Bazz-9tx.mjs")), k = d(() => import("./MessageModal-DyD3HZy0.mjs").then((e) => e.n)), A = d(() => import("./ClassicEmojiPicker-Bj84fiGG.mjs")), j = d(() => import("./ClassicContentEditable-CWmtRihd.mjs")), M = f, N = E, P = r.MAX_COMMENT, F = h(""), I = h(!1), L = h(!1), R = h(!1), z = v("textarea"), { t: B } = b(), V = n(), H = t(), { podcastPlaying: U } = i(), W = a(() => G.value <= P), G = a(() => F.value.length), K = a(() => M.inAnswerComment?.commentId ? B("Answer a comment") : B("Write a comment")), q = a(() => "-comment" + (M.inAnswerComment?.commentId ?? "-parent"));
31
31
  y(() => M.focus, () => z?.value?.focus());
32
32
  function J(e) {
33
33
  F.value += e;
@@ -54,8 +54,8 @@ var S = { class: "d-flex flex-column comment-input-container mt-3" }, C = {
54
54
  isNotAuth: H.authOrgaId === void 0
55
55
  });
56
56
  N("newComment", t), F.value = "", I.value = !1;
57
- } catch {
58
- R.value = !0;
57
+ } catch (e) {
58
+ console.error(e), R.value = !0;
59
59
  }
60
60
  L.value = !1;
61
61
  }
@@ -0,0 +1,233 @@
1
+ import { t as e } from "./rolldown-runtime-Dy4uBu1J.mjs";
2
+ import { t } from "./_plugin-vue_export-helper-B3ysoDQm.mjs";
3
+ import { t as n } from "./AuthStore-DT2LHFZY.mjs";
4
+ import { t as r } from "./displayHelper-DQtoqc_6.mjs";
5
+ import { t as i } from "./CommentStore-DUkCxct8.mjs";
6
+ import { t as a } from "./ClassicPopover-BpFChUHf.mjs";
7
+ import { Fragment as o, computed as s, createBlock as c, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createTextVNode as f, createVNode as p, defineAsyncComponent as m, defineComponent as h, normalizeClass as g, onMounted as _, onUnmounted as v, openBlock as y, ref as b, toDisplayString as x, unref as S } from "vue";
8
+ import { useI18n as C } from "vue-i18n";
9
+ import w from "vue-material-design-icons/ChevronDown.vue";
10
+ import T from "dayjs";
11
+ import E from "dayjs/plugin/relativeTime";
12
+ import D from "vue-material-design-icons/Alert.vue";
13
+ import O from "vue-material-design-icons/ReplyOutline.vue";
14
+ //#region src/components/display/comments/item/CommentBasicView.vue?vue&type=script&setup=true&lang.ts
15
+ var k = { class: "d-flex flex-column w-100" }, A = { class: "d-flex align-items-center h6 mb-2" }, j = ["id"], M = ["datetime"], N = {
16
+ key: 0,
17
+ class: "d-flex align-items-center text-danger me-2"
18
+ }, P = ["innerHTML"], F = /* @__PURE__ */ h({
19
+ __name: "CommentBasicView",
20
+ props: {
21
+ comment: {
22
+ default: () => ({}),
23
+ type: Object
24
+ },
25
+ editRight: {
26
+ default: !1,
27
+ type: Boolean
28
+ }
29
+ },
30
+ setup(e) {
31
+ T.extend(E);
32
+ let t = e, n = b(!0), i = b(""), o = b(void 0), { t: c } = C(), m = s(() => t.comment.content.length > 300), h = s(() => t.comment.poster.userName), w = s(() => t.comment.state === "VALIDATED"), O = s(() => n.value ? c("Read more") : c("Read less")), F = s(() => !n.value || !m.value ? t.comment.content : t.comment.content.substring(0, 300) + "...");
33
+ _(() => {
34
+ L(), o.value = setInterval(() => {
35
+ L();
36
+ }, 6e4);
37
+ }), v(() => clearInterval(o.value));
38
+ function I(e) {
39
+ return r.urlify(e);
40
+ }
41
+ function L() {
42
+ t.comment.date || (i.value = ""), i.value = T(t.comment.date).fromNow();
43
+ }
44
+ return (t, r) => (y(), u("div", k, [
45
+ d("div", A, [
46
+ d("button", {
47
+ id: "popover-comment" + e.comment.commentId,
48
+ class: g([w.value ? "c-hand-auto" : "text-danger", "btn-transparent me-2"])
49
+ }, x(h.value), 11, j),
50
+ p(a, {
51
+ disable: w.value,
52
+ target: "popover-comment" + e.comment.commentId,
53
+ content: S(c)("Comment waiting")
54
+ }, null, 8, [
55
+ "disable",
56
+ "target",
57
+ "content"
58
+ ]),
59
+ d("time", {
60
+ datetime: e.comment.date,
61
+ class: "me-2"
62
+ }, x(i.value), 9, M),
63
+ e.comment.abuse && e.editRight ? (y(), u("div", N, [p(D, {
64
+ size: 16,
65
+ class: "me-1"
66
+ }), f(" " + x(S(c)("abuse denounced", { nb: e.comment.abuse })), 1)])) : l("", !0),
67
+ e.editRight ? (y(), u("span", {
68
+ key: 1,
69
+ class: g("status-" + e.comment.state)
70
+ }, null, 2)) : l("", !0)
71
+ ]),
72
+ d("pre", { innerHTML: I(F.value) }, null, 8, P),
73
+ m.value ? (y(), u("a", {
74
+ key: 0,
75
+ class: "c-hand font-italic",
76
+ onClick: r[0] ||= (e) => n.value = !n.value
77
+ }, x(O.value), 1)) : l("", !0)
78
+ ]));
79
+ }
80
+ }), I = { class: "d-flex flex-nowrap justify-content-between align-items-center" }, L = { class: "d-flex" }, R = ["title"], z = { class: "d-flex align-items-center mt-1" }, B = {
81
+ key: 1,
82
+ class: "ms-2 answers-section"
83
+ }, V = /*@__PURE__*/ h({
84
+ __name: "CommentItem",
85
+ props: {
86
+ comment: {
87
+ default: () => ({}),
88
+ type: Object
89
+ },
90
+ podcast: {
91
+ default: void 0,
92
+ type: Object
93
+ },
94
+ isFlatList: {
95
+ default: !1,
96
+ type: Boolean
97
+ },
98
+ config: {
99
+ default: void 0,
100
+ type: Object
101
+ },
102
+ organisationId: {
103
+ default: void 0,
104
+ type: String
105
+ }
106
+ },
107
+ emits: ["deleteComment", "update:comment"],
108
+ setup(e, { expose: t, emit: r }) {
109
+ let a = m(() => import("./CommentInput-K0GcwH6w.mjs")), h = m(() => import("./CommentParentInfo-CJClI-5r.mjs")), _ = m(() => import("./LikeSection-gazwZZcW.mjs")), v = m(() => import("./CommentMoreActions-DR1G7lLY.mjs")), T = m(() => import("./CommentList-D0uwI9Ro.mjs")), E = e, D = r, k = b(!1), A = b(!1), j = b(!1), M = b(!1), N = b(void 0), { t: P } = C(), V = n(), H = i(), U = s({
110
+ get() {
111
+ return E.comment;
112
+ },
113
+ set(e) {
114
+ Y.value || D("update:comment", e);
115
+ }
116
+ }), W = s(() => (V.authProfile?.userId ?? H.commentUser?.uuidHash) === E.comment?.poster.uuid), G = s(() => E.comment.answerTo !== void 0), K = s(() => !0 === V.isRoleComments && (V.authOrgaId === E.podcast?.organisation.id || V.authOrgaId === E.organisationId) || !0 === V.isRoleAdmin), q = s(() => E.comment.state === "VALIDATED"), J = s(() => H.getCanPostComment(E.config, E.podcast, V.authOrgaId !== void 0)), Y = s(() => E.podcast?.conferenceId !== void 0), X = s(() => {
117
+ let e = [];
118
+ return G.value && !E.isFlatList ? e.push("my-1", "px-1") : e.push("my-2", "p-2"), W.value && e.push("my-own"), E.comment.answerTo && e.push("response"), e;
119
+ });
120
+ function Z() {
121
+ k.value = !0, j.value = !j.value;
122
+ }
123
+ function Q(e) {
124
+ $(e.commentId), Y.value || (N.value = {
125
+ type: "CREATE",
126
+ comment: e
127
+ }), k.value = !1;
128
+ }
129
+ function $(e, t = !0) {
130
+ let n = E.comment;
131
+ if (n.responses) {
132
+ if (t) n.responses.push(e);
133
+ else {
134
+ let t = n.responses.indexOf(e);
135
+ t !== -1 && n.responses.splice(t, 1);
136
+ }
137
+ } else t && (n.responses = [e]);
138
+ D("update:comment", n);
139
+ }
140
+ function ee() {
141
+ Y.value || D("deleteComment");
142
+ }
143
+ function te(e) {
144
+ e.type === "CREATE" ? $(e.comment.commentId) : e.type === "DELETE" && $(e.comment.commentId, !1), N.value = e;
145
+ }
146
+ function ne(e) {
147
+ $(e, !1);
148
+ }
149
+ return t({ receiveEvent: te }), (t, n) => (y(), u("div", { class: g(["d-flex flex-column flex-grow-1 w-100 comment-item", X.value]) }, [
150
+ d("div", I, [p(F, {
151
+ comment: e.comment,
152
+ "edit-right": K.value
153
+ }, null, 8, ["comment", "edit-right"]), d("div", L, [
154
+ !e.comment.answerTo && J.value ? (y(), u("button", {
155
+ key: 0,
156
+ class: "btn btn-transparent",
157
+ title: S(P)("To answer"),
158
+ onClick: Z
159
+ }, [p(O)], 8, R)) : l("", !0),
160
+ p(S(_), {
161
+ comment: U.value,
162
+ "onUpdate:comment": n[0] ||= (e) => U.value = e,
163
+ "edit-right": K.value,
164
+ podcast: e.podcast,
165
+ "button-size": 20
166
+ }, null, 8, [
167
+ "comment",
168
+ "edit-right",
169
+ "podcast"
170
+ ]),
171
+ p(S(v), {
172
+ comment: U.value,
173
+ "onUpdate:comment": n[1] ||= (e) => U.value = e,
174
+ "edit-right": K.value,
175
+ podcast: e.podcast,
176
+ config: e.config,
177
+ onDeleteComment: ee
178
+ }, null, 8, [
179
+ "comment",
180
+ "edit-right",
181
+ "podcast",
182
+ "config"
183
+ ])
184
+ ])]),
185
+ q.value ? (y(), u(o, { key: 0 }, [
186
+ d("div", z, [e.isFlatList && e.comment.answerTo ? (y(), u("button", {
187
+ key: 0,
188
+ class: "btn btn-transparent d-flex align-items-center",
189
+ onClick: n[2] ||= (e) => M.value = !M.value
190
+ }, [f(x(S(P)("In response to")) + " ", 1), p(w, { class: g({ "arrow-transform": M.value }) }, null, 8, ["class"])])) : l("", !0)]),
191
+ k.value && J.value ? (y(), c(S(a), {
192
+ key: 0,
193
+ class: "ms-4",
194
+ focus: j.value,
195
+ podcast: e.podcast,
196
+ "in-answer-comment": e.comment,
197
+ onCancelAction: n[3] ||= (e) => k.value = !1,
198
+ onNewComment: Q
199
+ }, null, 8, [
200
+ "focus",
201
+ "podcast",
202
+ "in-answer-comment"
203
+ ])) : l("", !0),
204
+ e.comment.responses?.length && !e.isFlatList ? (y(), u("div", B, [d("button", {
205
+ class: "d-flex align-items-center btn-transparent text-primary",
206
+ onClick: n[4] ||= (e) => A.value = !A.value
207
+ }, [p(w, { class: g({ "arrow-transform": A.value }) }, null, 8, ["class"]), f(" " + x(S(P)("nb answers", { nb: e.comment.responses.length })), 1)]), A.value ? (y(), c(S(T), {
208
+ key: 0,
209
+ ref: "commentList",
210
+ podcast: e.podcast,
211
+ size: 5,
212
+ "answer-to-comment": e.comment.commentId,
213
+ config: e.config,
214
+ "event-to-handle": N.value,
215
+ onCommentDeleted: ne
216
+ }, null, 8, [
217
+ "podcast",
218
+ "answer-to-comment",
219
+ "config",
220
+ "event-to-handle"
221
+ ])) : l("", !0)])) : l("", !0)
222
+ ], 64)) : l("", !0),
223
+ M.value ? (y(), c(S(h), {
224
+ key: 1,
225
+ class: "ms-4",
226
+ "comment-id": e.comment.answerTo,
227
+ "edit-right": K.value
228
+ }, null, 8, ["comment-id", "edit-right"])) : l("", !0)
229
+ ], 2));
230
+ }
231
+ }), H = /* @__PURE__ */ e({ default: () => U }), U = /*#__PURE__*/ t(V, [["__scopeId", "data-v-a125ab62"]]);
232
+ //#endregion
233
+ export { U as default, F as n, H as t };