@saooti/octopus-sdk 42.4.0-beta2 → 42.4.0-beta4

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 (334) hide show
  1. package/dist/{AccessibilityModal-CBIb3UQS.mjs → AccessibilityModal-CHUSDO1F.mjs} +39 -36
  2. package/dist/{AdvancedSearch-DVWO6WtG.mjs → AdvancedSearch-S-OMg1XH.mjs} +5 -5
  3. package/dist/{AuthStore-BBZTjLTf.mjs → AuthStore-BdiVUQBK.mjs} +268 -261
  4. package/dist/{CategoryChooser-fAUMJNHu.mjs → CategoryChooser-Cg_gq6L_.mjs} +1 -1
  5. package/dist/{CategoryFilter-CU4D9VlH.mjs → CategoryFilter-CI5PfekR.mjs} +3 -3
  6. package/dist/{CategoryList-CNRdGnw0.mjs → CategoryList-B0hCDa0Q.mjs} +2 -2
  7. package/dist/{CategoryPage-CJ_OohkC.mjs → CategoryPage-j1c3a9Ti.mjs} +2 -2
  8. package/dist/{CategorySearchFilter-Cce5zxZB.mjs → CategorySearchFilter-eRcZcX0o.mjs} +1 -1
  9. package/dist/{CheckIdentityModal-DEXrqR2G.mjs → CheckIdentityModal-DTA9VPdd.mjs} +3 -3
  10. package/dist/{ClassicAlert-DATLZ8J1.mjs → ClassicAlert-fZ4qLB-c.mjs} +1 -1
  11. package/dist/{ClassicBigChip-BK8v_P0z.mjs → ClassicBigChip-D0pRqFwb.mjs} +1 -1
  12. package/dist/ClassicColorPicker-DcjFDaZ8.mjs +79 -0
  13. package/dist/{ClassicDatePicker-CKIkZWmW.mjs → ClassicDatePicker-DlNlvjA0.mjs} +1 -1
  14. package/dist/{ClassicEmojiPicker-C0gm-DA2.mjs → ClassicEmojiPicker-Cc4UZRvZ.mjs} +1 -1
  15. package/dist/{ClassicHelpButton-BnRLmYuh.mjs → ClassicHelpButton-CDz_GcaZ.mjs} +1 -1
  16. package/dist/{ClassicInputText-YsntJkHk.mjs → ClassicInputText-4bPGD_kV.mjs} +1 -1
  17. package/dist/{ClassicLoading-CXfMjpyl.mjs → ClassicLoading-ydEDL7-R.mjs} +1 -1
  18. package/dist/{ClassicMultiselect-C0yzVQ8Y.mjs → ClassicMultiselect-CEJF_Uo5.mjs} +1 -1
  19. package/dist/{ClassicNotifications-Bt7HmFoU.mjs → ClassicNotifications-olXwz4qY.mjs} +2 -2
  20. package/dist/ClassicPopover-BpFChUHf.mjs +203 -0
  21. package/dist/ClassicSelect-Bj9BkTkd.mjs +121 -0
  22. package/dist/{ClassicSpinner-DFRDD51g.mjs → ClassicSpinner-P6q1es8G.mjs} +4 -1
  23. package/dist/{ClipboardModal-cHMlAcg3.mjs → ClipboardModal-D40ImhpB.mjs} +1 -1
  24. package/dist/{CommentInput-BiGn-skv.mjs → CommentInput-BGAQHUZh.mjs} +5 -5
  25. package/dist/CommentItem-CBtedADn.mjs +233 -0
  26. package/dist/CommentList-BqY6dXMt.mjs +203 -0
  27. package/dist/{CommentMoreActions-Cew7m8vJ.mjs → CommentMoreActions-BPDPuoeI.mjs} +6 -5
  28. package/dist/{CommentName-BQR1xl1T.mjs → CommentName-DiN2v6zm.mjs} +3 -3
  29. package/dist/{CommentParentInfo-BuM6sFV4.mjs → CommentParentInfo-DIyzK-2k.mjs} +3 -3
  30. package/dist/CommentSection-BUQsGQcN.mjs +119 -0
  31. package/dist/{CommentStore-BjzpqB_1.mjs → CommentStore-D-2Q49xZ.mjs} +76 -88
  32. package/dist/{ContractPreviewModal-CgEfHeyW.mjs → ContractPreviewModal-Duf8yY-7.mjs} +1 -1
  33. package/dist/{DateFilter-Bzx36_ol.mjs → DateFilter-Drn-Thgy.mjs} +1 -1
  34. package/dist/{DownloadPodcastButton-NStAbAZa.mjs → DownloadPodcastButton-BFZI5jmS.mjs} +2 -2
  35. package/dist/{EditCommentModal-coXmYdY_.mjs → EditCommentModal-CVihXEGS.mjs} +2 -2
  36. package/dist/{EmissionGroupChooser-XK05Hye9.mjs → EmissionGroupChooser-BaorNk90.mjs} +2 -2
  37. package/dist/{EmissionInlineList-CWP6yZLk.mjs → EmissionInlineList-DuzgE8hS.mjs} +36 -26
  38. package/dist/EmissionItem-R8ugPYq7.mjs +123 -0
  39. package/dist/EmissionList-Dk8Xtmm1.mjs +230 -0
  40. package/dist/EmissionPage-DE_T-aNF.mjs +191 -0
  41. package/dist/{EmissionPlayerItem-B-poSf0h.mjs → EmissionPlayerItem-w3F7l_dL.mjs} +9 -9
  42. package/dist/{EmissionPresentationItem-Ic_4QTAV.mjs → EmissionPresentationItem-VwylQjvv.mjs} +7 -4
  43. package/dist/{EmissionPresentationList-CZVjxQUN.mjs → EmissionPresentationList-Xu3G_Ozt.mjs} +8 -6
  44. package/dist/EmissionsPage--rvX0YYh.mjs +117 -0
  45. package/dist/{Error403Page-paQBIk_S.mjs → Error403Page-Cb0LAznd.mjs} +1 -1
  46. package/dist/ExternalLink-Xd1yTR71.mjs +35 -0
  47. package/dist/{FooterGarSection-GKI36V98.mjs → FooterGarSection-CnjLLyXU.mjs} +3 -3
  48. package/dist/{FooterSection-vNIJikKR.mjs → FooterSection-0e6Z_wff.mjs} +13 -13
  49. package/dist/{HomeDropdown-B_5YrOSF.mjs → HomeDropdown-5JO7NDSl.mjs} +3 -3
  50. package/dist/{HomePage-KC-CcJky.mjs → HomePage-Bze7mTbZ.mjs} +3 -3
  51. package/dist/InlineRubriqueList-MYnSX_eZ.mjs +48 -0
  52. package/dist/LikeButton-CnMZOm9N.mjs +46 -0
  53. package/dist/{LikeSection-BZcy0TOS.mjs → LikeSection-BFh6c0_F.mjs} +11 -17
  54. package/dist/ListPaginate-DMir5lKe.mjs +191 -0
  55. package/dist/{LiveHorizontalList-CARJlSBl.mjs → LiveHorizontalList-DpfoJMa8.mjs} +6 -6
  56. package/dist/{LiveList-DtXz2jZd.mjs → LiveList-BXcxoWAn.mjs} +12 -11
  57. package/dist/{LivesPage-DRyMTzoZ.mjs → LivesPage-X_Cuj5RC.mjs} +2 -2
  58. package/dist/{MapPage-CyDwoNuG.mjs → MapPage-DR7057o0.mjs} +1 -1
  59. package/dist/{MessageModal-BcqS77v6.mjs → MessageModal-DyD3HZy0.mjs} +1 -1
  60. package/dist/{MobileMenu-DWAO2ARf.mjs → MobileMenu-CaFQBVFA.mjs} +3 -3
  61. package/dist/{MonetizableFilter-B7NHzXEY.mjs → MonetizableFilter-BeBVeGSW.mjs} +1 -1
  62. package/dist/{NewsletterModal-GkC9RDyD.mjs → NewsletterModal-CaaLFdAc.mjs} +1 -1
  63. package/dist/{OctopusMultiselect-noQPQMZQ.mjs → OctopusMultiselect-B_VBxbac.mjs} +19 -19
  64. package/dist/OrganisationChooser-BSJWSByJ.mjs +134 -0
  65. package/dist/{OrganisationChooserLight-Afgr1M7a.mjs → OrganisationChooserLight-BpqeFaQP.mjs} +2 -2
  66. package/dist/{PageNotFound-B7hdl-yk.mjs → PageNotFound-BB2Der8l.mjs} +2 -2
  67. package/dist/PaginateParams-BKSnsVZH.mjs +54 -0
  68. package/dist/{ParticipantInlineList-BwPZSUqb.mjs → ParticipantInlineList-DBlnlk8x.mjs} +24 -19
  69. package/dist/ParticipantItem-1fs3gVfe.mjs +93 -0
  70. package/dist/ParticipantPage-BaWObZn8.mjs +127 -0
  71. package/dist/{ParticipantsPage-CHWCYVS6.mjs → ParticipantsPage-QsAeLeb5.mjs} +16 -16
  72. package/dist/{PlayerAnonymousModal-BdgjFawf.mjs → PlayerAnonymousModal-B9fZFffi.mjs} +2 -2
  73. package/dist/PlaylistPage-Blu1HnPY.mjs +130 -0
  74. package/dist/{PlaylistsPage-DTL-ovBn.mjs → PlaylistsPage-DLNnZSJT.mjs} +88 -77
  75. package/dist/{PodcastFilterList-2nVutkmB.mjs → PodcastFilterList-DrZA5iQa.mjs} +4 -3
  76. package/dist/PodcastInlineList-C-ICxCWh.mjs +186 -0
  77. package/dist/{PodcastInlineListTemplate-DPBRFNio.mjs → PodcastInlineListTemplate-CDigJ7BJ.mjs} +58 -56
  78. package/dist/PodcastItem-m3k-Kix9.mjs +305 -0
  79. package/dist/{PodcastList-R0TvKt6G.mjs → PodcastList-Cww-0Swl.mjs} +12 -12
  80. package/dist/{PodcastList-RMFwG0hb.mjs → PodcastList-s4gxQjq5.mjs} +26 -24
  81. package/dist/PodcastPage-DE5gGN-2.mjs +595 -0
  82. package/dist/PodcastPlayButton-Df0Z63M0.mjs +127 -0
  83. package/dist/PodcastPlaylistInlineList-D6FMozVy.mjs +69 -0
  84. package/dist/{PodcastPresentationList-BvXr6uwb.mjs → PodcastPresentationList-SouqGyw9.mjs} +9 -7
  85. package/dist/{PodcastmakerHeader-CKbQLcJR.mjs → PodcastmakerHeader-DJXLJTF6.mjs} +1 -1
  86. package/dist/PodcastsPage-BXBARaTK.mjs +133 -0
  87. package/dist/{ProductorSearch-DiKNztPx.mjs → ProductorSearch-hTTU45pI.mjs} +3 -3
  88. package/dist/QrCode-OEI1du8P.mjs +116 -0
  89. package/dist/{QrCodeModal-CWrtwMmo.mjs → QrCodeModal-DmzFi0FH.mjs} +1 -1
  90. package/dist/{RadioCurrently-Dp9E529F.mjs → RadioCurrently-CrRnrOIT.mjs} +20 -20
  91. package/dist/{RadioImage-C9DiBLS9.mjs → RadioImage-DmMQTUjw.mjs} +1 -1
  92. package/dist/RadioList-Bj_bfSqy.mjs +79 -0
  93. package/dist/{RadioPage-BxwU7iT4.mjs → RadioPage-BHAxW4eG.mjs} +5 -5
  94. package/dist/{RadioPlanning-iJ7XDZSH.mjs → RadioPlanning-Cg47XjD9.mjs} +3 -3
  95. package/dist/{RecaptchaModal-Bfq6A8y2.mjs → RecaptchaModal-DLMoPxPf.mjs} +2 -2
  96. package/dist/{ReportAbuseModal-DBoOqnzQ.mjs → ReportAbuseModal-CIiBTSpw.mjs} +4 -4
  97. package/dist/{RightsIndicator-DiA2ldB-.mjs → RightsIndicator-Dr75KTRE.mjs} +4 -4
  98. package/dist/{RightsWrapper-JmJz5r95.mjs → RightsWrapper-C6zNaunR.mjs} +41 -42
  99. package/dist/{RubriqueChoice-C-S-veJJ.mjs → RubriqueChoice-Ci23lZBD.mjs} +2 -2
  100. package/dist/{RubriqueChooser-CNGn8LcP.mjs → RubriqueChooser-C5QLRe-b.mjs} +1 -1
  101. package/dist/{RubriqueFilter-CD_iXdC1.mjs → RubriqueFilter-B_lwmZ8m.mjs} +3 -3
  102. package/dist/{RubriqueList-COReG7_w.mjs → RubriqueList-DNwhze-d.mjs} +4 -4
  103. package/dist/{RubriquePage-C63TsvkH.mjs → RubriquePage-Bh59Y29D.mjs} +6 -5
  104. package/dist/{SearchPage-ChdImq8B.mjs → SearchPage-DfsoWBQU.mjs} +2 -2
  105. package/dist/ShareAnonymous-QT4t2_n7.mjs +210 -0
  106. package/dist/{ShareModalPlayer-Dr0BUSDx.mjs → ShareModalPlayer-D0NzOzX0.mjs} +1 -1
  107. package/dist/{ShareNewsletter-DJbBxYn3.mjs → ShareNewsletter-DT893L87.mjs} +41 -44
  108. package/dist/{SharePlayer-AeYTgJw6.mjs → SharePlayer-Ctivrvmn.mjs} +2 -2
  109. package/dist/SharePlayerColors-CfrkwpdM.mjs +50 -0
  110. package/dist/{SharePlayerRadio-DxcP73-X.mjs → SharePlayerRadio-Gvc5Gc0f.mjs} +2 -2
  111. package/dist/{SharePlayerTypes-CuDLz2mJ.mjs → SharePlayerTypes-B3OKl3HO.mjs} +1 -1
  112. package/dist/ShareSocialsButtons-MbK7ivGa.mjs +103 -0
  113. package/dist/SmartLinkPage-BKihppLi.mjs +143 -0
  114. package/dist/SubscribeButtons-DKylNvPo.mjs +126 -0
  115. package/dist/SwiperList-CqElRAFt.mjs +179 -0
  116. package/dist/{TagList-DPkw1vux.mjs → TagList-CFgCrA_i.mjs} +5 -5
  117. package/dist/{TagPage-uVe7N9oG.mjs → TagPage-CWGLni8k.mjs} +3 -3
  118. package/dist/TopBar-CmZSpIiz.mjs +427 -0
  119. package/dist/UserButtonContent-CvVebdKv.mjs +129 -0
  120. package/dist/{buttons-BkfxHdGj.mjs → buttons-s19oovgO.mjs} +1 -1
  121. package/dist/{downloadHelper-CvnGPosg.mjs → downloadHelper-B7bFMASS.mjs} +1 -1
  122. package/dist/index.css +1 -1
  123. package/dist/index.d.ts +4 -2
  124. package/dist/index.mjs +235 -232
  125. package/dist/{messages-DlxMAMOa.mjs → messages-DJAarMHp.mjs} +108 -6
  126. package/dist/src/components/display/comments/like/LikeButton.vue.d.ts +9 -33
  127. package/dist/src/components/display/comments/like/LikeSection.vue.d.ts +11 -33
  128. package/dist/src/components/display/emission/EmissionInlineList.vue.d.ts +4 -4
  129. package/dist/src/components/display/emission/EmissionItem.vue.d.ts +5 -1
  130. package/dist/src/components/display/emission/EmissionPresentationItem.vue.d.ts +2 -0
  131. package/dist/src/components/display/emission/EmissionPresentationList.vue.d.ts +1 -1
  132. package/dist/src/components/display/list/SwiperList.vue.d.ts +7 -4
  133. package/dist/src/components/display/live/RadioItem.vue.d.ts +11 -0
  134. package/dist/src/components/display/participant/ParticipantInlineList.vue.d.ts +1 -1
  135. package/dist/src/components/display/playlist/PlaylistItem.vue.d.ts +11 -0
  136. package/dist/src/components/display/podcasts/PodcastFilterList.vue.d.ts +3 -3
  137. package/dist/src/components/display/podcasts/PodcastImage.vue.d.ts +29 -9
  138. package/dist/src/components/display/podcasts/PodcastInlineList.vue.d.ts +45 -4
  139. package/dist/src/components/display/podcasts/PodcastInlineListTemplate.vue.d.ts +1 -1
  140. package/dist/src/components/display/podcasts/PodcastItem.vue.d.ts +7 -1
  141. package/dist/src/components/display/podcasts/PodcastItemInfo.vue.d.ts +10 -12
  142. package/dist/src/components/display/podcasts/PodcastList.vue.d.ts +2 -0
  143. package/dist/src/components/display/sharing/FormatSwitch.vue.d.ts +12 -17
  144. package/dist/src/components/form/ClassicColorPicker.vue.d.ts +26 -0
  145. package/dist/src/components/form/ClassicContentEditable.vue.d.ts +1 -1
  146. package/dist/src/components/form/ClassicInputText.vue.d.ts +1 -1
  147. package/dist/src/components/form/ClassicMultiselect.vue.d.ts +4 -4
  148. package/dist/src/components/form/index.d.ts +2 -1
  149. package/dist/src/components/layouts/PresentationItem.vue.d.ts +7 -3
  150. package/dist/src/components/misc/ClassicPopover.vue.d.ts +2 -0
  151. package/dist/src/components/misc/ExternalLink.vue.d.ts +27 -0
  152. package/dist/src/components/misc/LoadingOverlay.vue.d.ts +19 -0
  153. package/dist/src/components/misc/SkipToContent.vue.d.ts +7 -0
  154. package/dist/src/locale/messages.d.ts +102 -0
  155. package/dist/src/stores/AuthStore.d.ts +1 -0
  156. package/dist/src/stores/CommentStore.d.ts +3 -1
  157. package/dist/src/stores/ParamSdkStore.d.ts +30 -32
  158. package/dist/src/websocket/commentWebsocket.d.ts +3 -2
  159. package/dist/src/websocket/wss.d.ts +35 -32
  160. package/dist/tests-mocks.mjs +3 -2
  161. package/dist/tests.mjs +3 -2
  162. package/dist/{useAdvancedParamInit-Bn2nYh9V.mjs → useAdvancedParamInit-CdXta4Fd.mjs} +5 -5
  163. package/dist/{useAppleVideo-MNXcA2S0.mjs → useAppleVideo-C0gGIXRR.mjs} +1 -1
  164. package/dist/{useDayjs-DV3H3JdH.mjs → useDayjs-B6txyR3X.mjs} +1 -1
  165. package/dist/{useErrorHandler-BVeBrWmP.mjs → useErrorHandler-BPwwQKrG.mjs} +1 -1
  166. package/dist/{useImageProxy-aLDjafm4.mjs → useImageProxy-XMMC_IC2.mjs} +1 -1
  167. package/dist/{useOrgaComputed-q48Zu9Fs.mjs → useOrgaComputed-B0wJ-ALx.mjs} +1 -1
  168. package/dist/usePresentationItem-D6mrQ7Zp.mjs +104 -0
  169. package/dist/{useRights-tS_KEToi.mjs → useRights-B-RH3q3n.mjs} +1 -1
  170. package/dist/{useRubriquesFilterComputed-Xl5Dt2Xq.mjs → useRubriquesFilterComputed-Bp6L2o9-.mjs} +1 -1
  171. package/dist/{useRubriquesFilterParam-CIvIwIvX.mjs → useRubriquesFilterParam-B05QATg9.mjs} +1 -1
  172. package/dist/{useSharePlatforms-fUzHb1WM.mjs → useSharePlatforms-CbcKb6yZ.mjs} +26 -26
  173. package/dist/{useSimplePageParam-3Nn8EFc0.mjs → useSimplePageParam-DaoVpYoG.mjs} +1 -1
  174. package/eslint-config.mjs +10 -0
  175. package/package.json +4 -2
  176. package/src/api/rubriquesApi.ts +4 -4
  177. package/src/components/display/RightsIndicator.vue +0 -13
  178. package/src/components/display/RightsWrapper.vue +1 -16
  179. package/src/components/display/accessibility/AccessibilityModal.vue +7 -12
  180. package/src/components/display/comments/CommentInput.vue +2 -1
  181. package/src/components/display/comments/CommentList.vue +189 -176
  182. package/src/components/display/comments/CommentSection.vue +160 -73
  183. package/src/components/display/comments/item/CommentItem.vue +186 -135
  184. package/src/components/display/comments/item/CommentMoreActions.vue +195 -194
  185. package/src/components/display/comments/like/LikeButton.vue +47 -45
  186. package/src/components/display/comments/like/LikeSection.vue +122 -115
  187. package/src/components/display/emission/EmissionInlineList.vue +118 -116
  188. package/src/components/display/emission/EmissionItem.vue +35 -28
  189. package/src/components/display/emission/EmissionList.vue +41 -24
  190. package/src/components/display/emission/EmissionPresentationItem.vue +3 -0
  191. package/src/components/display/emission/EmissionPresentationList.vue +1 -0
  192. package/src/components/display/filter/ProductorSearch.vue +83 -80
  193. package/src/components/display/list/ListPaginate.vue +51 -37
  194. package/src/components/display/list/PaginateParams.vue +28 -32
  195. package/src/components/display/list/PaginateSection.vue +145 -138
  196. package/src/components/display/list/SwiperList.vue +113 -10
  197. package/src/components/display/live/LiveList.vue +111 -106
  198. package/src/components/display/live/RadioItem.vue +17 -12
  199. package/src/components/display/organisation/OrganisationChooser.vue +2 -1
  200. package/src/components/display/participant/ParticipantInlineList.vue +52 -49
  201. package/src/components/display/participant/ParticipantItem.vue +2 -1
  202. package/src/components/display/playlist/PlaylistItem.vue +19 -15
  203. package/src/components/display/playlist/PlaylistList.vue +16 -10
  204. package/src/components/display/playlist/PodcastPlaylistInlineList.vue +68 -61
  205. package/src/components/display/podcasts/AnimatorsItem.vue +2 -0
  206. package/src/components/display/podcasts/PodcastFilterList.vue +107 -106
  207. package/src/components/display/podcasts/PodcastImage.vue +110 -126
  208. package/src/components/display/podcasts/PodcastInlineList.vue +133 -25
  209. package/src/components/display/podcasts/PodcastInlineListTemplate.vue +2 -0
  210. package/src/components/display/podcasts/PodcastItem.vue +111 -64
  211. package/src/components/display/podcasts/PodcastItemInfo.vue +48 -18
  212. package/src/components/display/podcasts/PodcastList.vue +198 -194
  213. package/src/components/display/podcasts/PodcastModuleBox.vue +1 -0
  214. package/src/components/display/podcasts/PodcastPlayButton.vue +23 -6
  215. package/src/components/display/podcasts/PodcastPresentationList.vue +1 -0
  216. package/src/components/display/rubriques/InlineRubriqueList.vue +35 -16
  217. package/src/components/display/sharing/FormatSwitch.vue +90 -101
  218. package/src/components/display/sharing/QrCode.vue +4 -8
  219. package/src/components/display/sharing/ShareAnonymous.vue +207 -205
  220. package/src/components/display/sharing/ShareNewsletter.vue +3 -7
  221. package/src/components/display/sharing/SharePlayerColors.vue +5 -12
  222. package/src/components/display/sharing/ShareSocialsButtons.vue +67 -60
  223. package/src/components/display/sharing/SubscribeButtons.vue +47 -35
  224. package/src/components/form/ClassicColorPicker.vue +110 -0
  225. package/src/components/form/ClassicMultiselect.vue +205 -197
  226. package/src/components/form/ClassicSelect.vue +100 -80
  227. package/src/components/form/index.ts +2 -0
  228. package/src/components/layouts/PresentationItem.vue +18 -12
  229. package/src/components/misc/ClassicDataTable.vue +3 -3
  230. package/src/components/misc/ClassicPopover.vue +95 -1
  231. package/src/components/misc/ClassicSpinner.vue +16 -2
  232. package/src/components/misc/ExternalLink.vue +51 -0
  233. package/src/components/misc/LoadingOverlay.vue +86 -0
  234. package/src/components/misc/RightsScopeMenu.vue +1 -1
  235. package/src/components/misc/SkipToContent.vue +16 -0
  236. package/src/components/misc/TopBarMainContent.vue +6 -9
  237. package/src/components/misc/UserButtonContent.vue +4 -7
  238. package/src/components/pages/EmissionPage.vue +3 -2
  239. package/src/components/pages/EmissionsPage.vue +4 -0
  240. package/src/components/pages/ParticipantPage.vue +2 -1
  241. package/src/components/pages/PlaylistPage.vue +115 -110
  242. package/src/components/pages/PodcastPage.vue +3 -0
  243. package/src/components/pages/PodcastsPage.vue +4 -0
  244. package/src/components/pages/RubriquePage.vue +1 -0
  245. package/src/components/pages/SmartLinkPage.vue +10 -7
  246. package/src/layouts/FullLayout.vue +29 -23
  247. package/src/locale/de.json +18 -1
  248. package/src/locale/en.json +18 -1
  249. package/src/locale/es.json +18 -1
  250. package/src/locale/fr.json +22 -1
  251. package/src/locale/it.json +18 -1
  252. package/src/locale/sl.json +18 -1
  253. package/src/stores/AuthStore.ts +11 -1
  254. package/src/stores/CommentStore.ts +280 -263
  255. package/src/stores/ParamSdkStore.ts +39 -37
  256. package/src/style/_variables.scss +18 -0
  257. package/src/style/bootstrap.scss +40 -1
  258. package/src/style/general.scss +3 -3
  259. package/src/style/share.scss +26 -1
  260. package/src/websocket/commentWebsocket.ts +56 -54
  261. package/src/websocket/wss.ts +136 -163
  262. package/tests/components/display/comments/CommentList.spec.ts +45 -0
  263. package/tests/components/display/emission/EmissionItem.spec.ts +35 -0
  264. package/tests/components/display/emission/EmissionPresentationItem.spec.ts +6 -0
  265. package/tests/components/display/filter/ProductorSearch.spec.ts +20 -0
  266. package/tests/components/display/list/ListPaginate.spec.ts +67 -0
  267. package/tests/components/display/list/SwiperList.spec.ts +101 -2
  268. package/tests/components/display/live/RadioItem.spec.ts +41 -0
  269. package/tests/components/display/playlist/PlaylistItem.spec.ts +53 -0
  270. package/tests/components/display/podcasts/AnimatorsItem.spec.ts +18 -0
  271. package/tests/components/display/podcasts/PodcastInlineList.spec.ts +139 -0
  272. package/tests/components/display/podcasts/PodcastInlineListTemplate.spec.ts +16 -0
  273. package/tests/components/display/podcasts/PodcastItem.spec.ts +77 -0
  274. package/tests/components/display/podcasts/PodcastItemInfo.spec.ts +15 -2
  275. package/tests/components/display/podcasts/PodcastPlayButton.spec.ts +67 -0
  276. package/tests/components/display/sharing/FormatSwitch.spec.ts +26 -0
  277. package/tests/components/display/sharing/ShareAnonymous.spec.ts +61 -0
  278. package/tests/components/display/sharing/SubscribeButtons.spec.ts +73 -0
  279. package/tests/components/form/ClassicColorPicker.spec.ts +71 -0
  280. package/tests/components/form/ClassicSelect.spec.ts +38 -0
  281. package/tests/components/layouts/PresentationItem.spec.ts +34 -0
  282. package/tests/components/misc/ClassicPopover.spec.ts +112 -0
  283. package/tests/components/misc/ExternalLink.spec.ts +49 -0
  284. package/tests/components/misc/LoadingOverlay.spec.ts +27 -0
  285. package/tests/components/misc/SkipToContent.spec.ts +19 -0
  286. package/tests/components/pages/EmissionPage.spec.ts +9 -0
  287. package/tests/components/pages/EmissionsPage.spec.ts +13 -2
  288. package/tests/components/pages/PlaylistPage.spec.ts +11 -0
  289. package/tests/components/pages/PodcastsPage.spec.ts +13 -2
  290. package/tests/components/pages/SmartLinkPage.spec.ts +13 -0
  291. package/tests/helper/language.spec.ts +7 -3
  292. package/tests/mocks/useAdvancedParamInit.ts +2 -1
  293. package/tests/setup.ts +7 -0
  294. package/tests/stores/CommentStore.spec.ts +19 -0
  295. package/tests/utils.ts +5 -2
  296. package/tests/websocket/wss.spec.ts +153 -0
  297. package/dist/ClassicPopover-BUb-1WMB.mjs +0 -172
  298. package/dist/ClassicSelect-BpA0jKN6.mjs +0 -111
  299. package/dist/CommentItem-CY2-D9P3.mjs +0 -226
  300. package/dist/CommentList-CDIYZEq_.mjs +0 -201
  301. package/dist/CommentSection-BJZtgsut.mjs +0 -79
  302. package/dist/EmissionItem-BVsuGOnv.mjs +0 -116
  303. package/dist/EmissionList-E8czEUK3.mjs +0 -229
  304. package/dist/EmissionPage-CaDFKkE8.mjs +0 -192
  305. package/dist/EmissionsPage-C0jLjKTK.mjs +0 -116
  306. package/dist/InlineRubriqueList-BeGu04QD.mjs +0 -48
  307. package/dist/LikeButton-Cu8jAJHx.mjs +0 -40
  308. package/dist/ListPaginate-BYBfYtD5.mjs +0 -153
  309. package/dist/OrganisationChooser-CNNIw66c.mjs +0 -135
  310. package/dist/PaginateParams-Bjz3ZI-5.mjs +0 -75
  311. package/dist/ParticipantItem-CRnquj4R.mjs +0 -91
  312. package/dist/ParticipantPage-D0lJjj0p.mjs +0 -128
  313. package/dist/PlaylistPage-DMnkTMHk.mjs +0 -132
  314. package/dist/PodcastImage-DrIX2U4c.mjs +0 -115
  315. package/dist/PodcastInlineList-BtVDNokV.mjs +0 -123
  316. package/dist/PodcastItem-DYOmggEB.mjs +0 -151
  317. package/dist/PodcastPage-ClhwIq9v.mjs +0 -591
  318. package/dist/PodcastPlayButton-Bv61tl0L.mjs +0 -111
  319. package/dist/PodcastPlaylistInlineList-aZhxjz3p.mjs +0 -63
  320. package/dist/PodcastSwiperList-Cwh53maw.mjs +0 -170
  321. package/dist/PodcastsPage-CiEknka_.mjs +0 -132
  322. package/dist/QrCode-DITqqZq6.mjs +0 -109
  323. package/dist/RadioList-CTlVQuyN.mjs +0 -70
  324. package/dist/ShareAnonymous-kxt4P4zK.mjs +0 -199
  325. package/dist/SharePlayerColors-BpdifsHh.mjs +0 -49
  326. package/dist/ShareSocialsButtons-BhBqmgz7.mjs +0 -102
  327. package/dist/SmartLinkPage-Bupxsq-O.mjs +0 -136
  328. package/dist/SubscribeButtons-P1Jh_rFJ.mjs +0 -121
  329. package/dist/SwiperList-1mHT07oe.mjs +0 -117
  330. package/dist/TopBar-CeVHXg03.mjs +0 -427
  331. package/dist/UserButtonContent-CIq9izAe.mjs +0 -131
  332. package/dist/usePresentationItem-DWIj-6bU.mjs +0 -100
  333. package/src/components/display/podcasts/PodcastSwiperList.vue +0 -160
  334. package/src/helper/featureHelper.ts +0 -24
@@ -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-BdiVUQBK.mjs";
4
+ import { t as r } from "./displayHelper-DQtoqc_6.mjs";
5
+ import { t as i } from "./CommentStore-D-2Q49xZ.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-BGAQHUZh.mjs")), h = m(() => import("./CommentParentInfo-DIyzK-2k.mjs")), _ = m(() => import("./LikeSection-BFh6c0_F.mjs")), v = m(() => import("./CommentMoreActions-BPDPuoeI.mjs")), T = m(() => import("./CommentList-BqY6dXMt.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 };
@@ -0,0 +1,203 @@
1
+ import { t as e } from "./ClassicLoading-ydEDL7-R.mjs";
2
+ import { t } from "./_plugin-vue_export-helper-B3ysoDQm.mjs";
3
+ import { C as n } from "./AuthStore-BdiVUQBK.mjs";
4
+ import { Fragment as r, computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createVNode as l, defineAsyncComponent as u, defineComponent as d, normalizeClass as f, onMounted as p, onUnmounted as m, openBlock as h, ref as g, renderList as _, toDisplayString as v, unref as y, useTemplateRef as b, watch as x, withCtx as S, withKeys as C } from "vue";
5
+ import ee from "vue-material-design-icons/Plus.vue";
6
+ import { useI18n as te } from "vue-i18n";
7
+ import w from "vue-material-design-icons/SortVariant.vue";
8
+ //#region src/components/display/comments/CommentList.vue?vue&type=script&setup=true&lang.ts
9
+ var T = { class: "d-flex flex-column" }, E = {
10
+ key: 0,
11
+ class: "d-flex align-items-center mb-2"
12
+ }, D = { class: "text-secondary me-3" }, O = {
13
+ id: "sort-by-comments",
14
+ class: "btn btn-transparent d-flex align-items-center"
15
+ }, k = { class: "ms-1" }, A = [
16
+ "disabled",
17
+ "onMousedown",
18
+ "onKeydown"
19
+ ], ne = {
20
+ key: 1,
21
+ class: "text-center"
22
+ }, re = ["title"], j = /*#__PURE__*/ t(/* @__PURE__ */ d({
23
+ __name: "CommentList",
24
+ props: {
25
+ size: {
26
+ default: 10,
27
+ type: Number
28
+ },
29
+ podcast: {
30
+ default: void 0,
31
+ type: Object
32
+ },
33
+ reload: {
34
+ default: !1,
35
+ type: Boolean
36
+ },
37
+ answerToComment: {
38
+ default: void 0,
39
+ type: Number
40
+ },
41
+ isFlatList: {
42
+ default: !1,
43
+ type: Boolean
44
+ },
45
+ stateFilter: {
46
+ default: "",
47
+ type: String
48
+ },
49
+ organisationId: {
50
+ default: void 0,
51
+ type: String
52
+ },
53
+ nbComments: {
54
+ default: 0,
55
+ type: Number
56
+ },
57
+ config: {
58
+ default: void 0,
59
+ type: Object
60
+ },
61
+ eventToHandle: {
62
+ default: void 0,
63
+ type: Object
64
+ }
65
+ },
66
+ emits: ["update:nbComments", "commentDeleted"],
67
+ setup(t, { emit: d }) {
68
+ let j = u(() => import("./CommentItem-CBtedADn.mjs").then((e) => e.t)), ie = u(() => import("./ClassicPopover-BpFChUHf.mjs").then((e) => e.n)), M = t, N = d, P = g(!1), F = g(!1), I = g(0), L = g(M.size), R = g(0), z = g("DATE_DESC"), B = g([]), V = g(void 0), H = b("scrollComponent"), U = /* @__PURE__ */ new Map(), { t: W } = te(), G = i(() => M.answerToComment === void 0), K = i(() => `${M.size}|${M.reload}|${L.value}|${M.stateFilter}|${M.podcast?.podcastId}|${M.organisationId}`), q = i(() => [{
69
+ title: W("The most recent"),
70
+ value: "DATE_DESC"
71
+ }, {
72
+ title: W("Top comments"),
73
+ value: "LIKE_DESC"
74
+ }]);
75
+ x(R, () => N("update:nbComments", R.value)), x(K, () => $(!0)), x(() => M.eventToHandle, async () => {
76
+ if (M.eventToHandle) {
77
+ if (M.answerToComment === M.eventToHandle.comment.answerTo) {
78
+ switch (M.eventToHandle.type) {
79
+ case "CREATE":
80
+ ae(M.eventToHandle.comment);
81
+ break;
82
+ case "UPDATE":
83
+ oe(M.eventToHandle.comment);
84
+ break;
85
+ case "DELETE": Q(M.eventToHandle.comment.commentId);
86
+ }
87
+ return;
88
+ }
89
+ M.eventToHandle.comment.answerTo !== void 0 && U.get(M.eventToHandle.comment.answerTo)?.receiveEvent(M.eventToHandle);
90
+ }
91
+ }, { deep: !0 }), p(() => {
92
+ $(!0), G.value && (V.value = H?.value, V.value.addEventListener("scroll", X));
93
+ }), m(() => {
94
+ G.value && V.value?.removeEventListener("scroll", X);
95
+ });
96
+ function J(e, t) {
97
+ t ? U.set(e, t) : U.delete(e);
98
+ }
99
+ function Y(e) {
100
+ z.value = e, $(!0);
101
+ }
102
+ function X() {
103
+ V.value && R.value > B.value.length && V.value.scrollTop + V.value.clientHeight >= V.value.scrollHeight && $(!1);
104
+ }
105
+ function Z(e) {
106
+ return B.value.findIndex((t) => t.commentId === e);
107
+ }
108
+ function ae(e) {
109
+ B.value.unshift(e), R.value += 1;
110
+ }
111
+ function oe(e) {
112
+ let t = Z(e.commentId);
113
+ t !== -1 && B.value.splice(t, 1, e);
114
+ }
115
+ function Q(e) {
116
+ let t = Z(e);
117
+ t !== -1 && (B.value.splice(t, 1), --R.value, N("commentDeleted", e));
118
+ }
119
+ async function $(e) {
120
+ if (P.value) return;
121
+ P.value = !0, e && (I.value = 0, B.value.length = 0);
122
+ let t = {
123
+ first: I.value,
124
+ size: L.value,
125
+ podcastId: M.podcast?.podcastId,
126
+ sort: z.value,
127
+ answerTo: M.answerToComment,
128
+ hideAnswers: !M.isFlatList,
129
+ state: M.stateFilter.length ? M.stateFilter : void 0,
130
+ organisationId: M.organisationId
131
+ };
132
+ try {
133
+ let r = await n.fetchData({
134
+ api: 2,
135
+ path: "comment/list",
136
+ parameters: t
137
+ });
138
+ e && (B.value.length = 0), B.value.push(...r.result), R.value = r.count, I.value += L.value, P.value = !1;
139
+ } catch (e) {
140
+ console.error(e), F.value = !0;
141
+ }
142
+ }
143
+ return (n, i) => (h(), s("div", T, [
144
+ G.value && R.value !== 0 ? (h(), s("div", E, [
145
+ c("div", D, v(y(W)("Number comments", { nb: R.value })), 1),
146
+ c("button", O, [l(w, { size: 30 }), c("p", k, v(y(W)("Sort by")), 1)]),
147
+ l(y(ie), {
148
+ target: "sort-by-comments",
149
+ "only-click": !0,
150
+ "is-top-layer": ""
151
+ }, {
152
+ default: S(() => [(h(!0), s(r, null, _(q.value, (e) => (h(), s("button", {
153
+ key: e.value,
154
+ class: "me-3 octopus-dropdown-item",
155
+ disabled: e.value === z.value,
156
+ onMousedown: (t) => Y(e.value),
157
+ onKeydown: C((t) => Y(e.value), ["enter"])
158
+ }, v(e.title), 41, A))), 128))]),
159
+ _: 1
160
+ })
161
+ ])) : o("", !0),
162
+ !P.value && !F.value && R.value === 0 ? (h(), s("div", ne, v(y(W)("No comments")), 1)) : o("", !0),
163
+ c("div", {
164
+ ref: "scrollComponent",
165
+ class: f([G.value ? "scrolling-comments" : "", "pe-2"])
166
+ }, [
167
+ (h(!0), s(r, null, _(B.value, (e, n) => (h(), a(y(j), {
168
+ id: "comItem" + e.commentId,
169
+ key: e.commentId,
170
+ ref_for: !0,
171
+ ref: (t) => J(e.commentId, t),
172
+ comment: B.value[n],
173
+ "onUpdate:comment": (e) => B.value[n] = e,
174
+ podcast: t.podcast,
175
+ "is-flat-list": t.isFlatList,
176
+ config: t.config,
177
+ "organisation-id": t.organisationId,
178
+ onDeleteComment: (t) => Q(e.commentId)
179
+ }, null, 8, [
180
+ "id",
181
+ "comment",
182
+ "onUpdate:comment",
183
+ "podcast",
184
+ "is-flat-list",
185
+ "config",
186
+ "organisation-id",
187
+ "onDeleteComment"
188
+ ]))), 128)),
189
+ l(e, {
190
+ "loading-text": P.value && !F.value ? y(W)("Loading content ...") : void 0,
191
+ "error-text": F.value ? y(W)("Comments loading error") : void 0
192
+ }, null, 8, ["loading-text", "error-text"]),
193
+ !G.value && I.value + L.value < R.value ? (h(), s("button", {
194
+ key: 0,
195
+ class: "btn share-btn mx-2",
196
+ title: y(W)("See more")
197
+ }, [l(ee)], 8, re)) : o("", !0)
198
+ ], 2)
199
+ ]));
200
+ }
201
+ }), [["__scopeId", "data-v-cf8317bb"]]);
202
+ //#endregion
203
+ export { j as default };
@@ -1,6 +1,6 @@
1
- import { C as e, t } from "./AuthStore-BBZTjLTf.mjs";
1
+ import { C as e, t } from "./AuthStore-BdiVUQBK.mjs";
2
2
  import { t as n } from "./useSelenium-DAM6EF3J.mjs";
3
- import { t as r } from "./CommentStore-BjzpqB_1.mjs";
3
+ import { t as r } from "./CommentStore-D-2Q49xZ.mjs";
4
4
  import { Fragment as i, computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createVNode as u, defineAsyncComponent as d, defineComponent as f, openBlock as p, ref as m, renderList as h, resolveComponent as g, toDisplayString as _, unref as v, withCtx as y, withKeys as b } from "vue";
5
5
  import { useI18n as x } from "vue-i18n";
6
6
  import S from "vue-material-design-icons/DotsVertical.vue";
@@ -31,7 +31,7 @@ var C = { key: 0 }, w = [
31
31
  },
32
32
  emits: ["update:comment", "deleteComment"],
33
33
  setup(f, { emit: E }) {
34
- let D = d(() => import("./ClassicPopover-BUb-1WMB.mjs").then((e) => e.n)), O = d(() => import("./ReportAbuseModal-DBoOqnzQ.mjs")), k = d(() => import("./EditCommentModal-coXmYdY_.mjs")), A = d(() => import("./MessageModal-BcqS77v6.mjs").then((e) => e.n)), j = f, M = E, N = m(!1), P = m(!1), F = m(void 0), I = m(void 0), L = m(!1), R = m(!1), z = m(!1), { t: B } = x(), { seleniumFormat: V } = n(), H = t(), U = r(), W = a({
34
+ let D = d(() => import("./ClassicPopover-BpFChUHf.mjs").then((e) => e.n)), O = d(() => import("./ReportAbuseModal-CIiBTSpw.mjs")), k = d(() => import("./EditCommentModal-CVihXEGS.mjs")), A = d(() => import("./MessageModal-DyD3HZy0.mjs").then((e) => e.n)), j = f, M = E, N = m(!1), P = m(!1), F = m(void 0), I = m(void 0), L = m(!1), R = m(!1), z = m(!1), { t: B } = x(), { seleniumFormat: V } = n(), H = t(), U = r(), W = a({
35
35
  get() {
36
36
  return j.comment;
37
37
  },
@@ -164,14 +164,15 @@ var C = { key: 0 }, w = [
164
164
  ])) : s("", !0),
165
165
  l("button", {
166
166
  id: "comment-dropdown" + f.comment.commentId,
167
- class: "btn share-btn",
167
+ class: "btn btn-transparent",
168
168
  title: v(B)("See more"),
169
169
  "data-selenium": "comment-dropdown-" + v(V)(f.comment.poster.userName)
170
170
  }, [u(S)], 8, w),
171
171
  u(v(D), {
172
172
  target: "comment-dropdown" + f.comment.commentId,
173
173
  "only-click": !0,
174
- "left-pos": !0
174
+ "left-pos": !0,
175
+ "is-top-layer": ""
175
176
  }, {
176
177
  default: y(() => [(p(!0), c(i, null, h(q.value, (e) => (p(), c(i, { key: e }, [e.condition ? (p(), c("button", {
177
178
  key: 0,
@@ -1,7 +1,7 @@
1
- import { t as e } from "./AuthStore-BBZTjLTf.mjs";
2
- import { t } from "./CommentStore-BjzpqB_1.mjs";
1
+ import { t as e } from "./AuthStore-BdiVUQBK.mjs";
2
+ import { t } from "./CommentStore-D-2Q49xZ.mjs";
3
3
  import { t as n } from "./config-DMjLBcZ2.mjs";
4
- import { t as r } from "./ClassicInputText-YsntJkHk.mjs";
4
+ import { t as r } from "./ClassicInputText-4bPGD_kV.mjs";
5
5
  import { Fragment as i, computed as a, createBlock as o, createElementBlock as s, createElementVNode as c, createTextVNode as l, createVNode as u, defineComponent as d, normalizeClass as f, openBlock as p, ref as m, resolveDynamicComponent as h, toDisplayString as g, unref as _, withCtx as v } from "vue";
6
6
  import { useI18n as y } from "vue-i18n";
7
7
  //#region src/components/display/comments/CommentName.vue?vue&type=script&setup=true&lang.ts
@@ -1,6 +1,6 @@
1
- import { t as e } from "./ClassicLoading-CXfMjpyl.mjs";
2
- import { C as t } from "./AuthStore-BBZTjLTf.mjs";
3
- import { n } from "./CommentItem-CY2-D9P3.mjs";
1
+ import { t as e } from "./ClassicLoading-ydEDL7-R.mjs";
2
+ import { C as t } from "./AuthStore-BdiVUQBK.mjs";
3
+ import { n } from "./CommentItem-CBtedADn.mjs";
4
4
  import { createBlock as r, createCommentVNode as i, createElementBlock as a, createVNode as o, defineComponent as s, onBeforeMount as c, openBlock as l, ref as u, unref as d } from "vue";
5
5
  import { useI18n as f } from "vue-i18n";
6
6
  //#region src/components/display/comments/CommentParentInfo.vue?vue&type=script&setup=true&lang.ts
@@ -0,0 +1,119 @@
1
+ import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.mjs";
2
+ import { t } from "./AuthStore-BdiVUQBK.mjs";
3
+ import { n, t as r } from "./CommentStore-D-2Q49xZ.mjs";
4
+ import { computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createTextVNode as l, createVNode as u, defineAsyncComponent as d, defineComponent as f, normalizeClass as p, onBeforeMount as m, openBlock as h, ref as g, resolveDynamicComponent as _, toDisplayString as v, unref as y, vShow as b, watch as x, withCtx as S, withDirectives as C } from "vue";
5
+ import { useI18n as w } from "vue-i18n";
6
+ import T from "vue-material-design-icons/Close.vue";
7
+ import E from "vue-material-design-icons/Refresh.vue";
8
+ import D from "vue-material-design-icons/Check.vue";
9
+ import O from "vue-material-design-icons/DotsHorizontal.vue";
10
+ //#region src/components/display/comments/CommentSection.vue?vue&type=script&setup=true&lang.ts
11
+ var k = { class: "module-box" }, A = { class: "d-flex align-items-center" }, j = ["title"], M = ["title"], N = /*#__PURE__*/ e(/* @__PURE__ */ f({
12
+ __name: "CommentSection",
13
+ props: {
14
+ podcast: {
15
+ default: void 0,
16
+ type: Object
17
+ },
18
+ inStudio: {
19
+ default: !1,
20
+ type: Boolean
21
+ },
22
+ stateFilter: {
23
+ default: "",
24
+ type: String
25
+ }
26
+ },
27
+ emits: ["commentReceived"],
28
+ setup(e, { emit: f }) {
29
+ let N = d(() => import("./CommentList-BqY6dXMt.mjs")), P = d(() => import("./CommentInput-BGAQHUZh.mjs")), F = e, I = f, L = g(!1), R = g(void 0), z = g(0), B = g(void 0), V = g(!1), { t: H } = w(), U = r(), W = t(), G = i(() => K.value || z.value > 0), K = i(() => U.getCanPostComment(R.value, F.podcast, W.authOrgaId !== void 0)), q = i(() => F.podcast?.conferenceId !== void 0), J = i(() => {
30
+ switch (U.commentConnectionStatus) {
31
+ case n.CONNECTED: return {
32
+ class: "status-indicator-connected",
33
+ title: H("CommentSection - Status Indicator - Connected"),
34
+ icon: D
35
+ };
36
+ case n.DISCONNECTED: return {
37
+ class: "status-indicator-disconnected",
38
+ title: H("CommentSection - Status Indicator - Disconnected"),
39
+ icon: T
40
+ };
41
+ case n.CONNECTING: return {
42
+ class: "status-indicator-connecting",
43
+ title: H("CommentSection - Status Indicator - Connecting"),
44
+ icon: O
45
+ };
46
+ default: return {
47
+ class: "status-indicator-inactive",
48
+ title: H("CommentSection - Status Indicator - Inactive"),
49
+ icon: null
50
+ };
51
+ }
52
+ });
53
+ x(() => U.commentEventToHandle, async () => {
54
+ U.commentEventToHandle.length && U.commentPodcastId === F.podcast?.podcastId && (B.value = U.commentEventToHandle[0], U.commentEventHandled(), I("commentReceived"));
55
+ }, { deep: !0 }), x(() => U.commentConnectionStatus, (e) => {
56
+ n.CONNECTED === e && (V.value && (L.value = !L.value), V.value = !0);
57
+ }), m(() => Y());
58
+ async function Y() {
59
+ F.podcast?.podcastId && (R.value = await U.getCommentsConfig(F.podcast), q.value && X());
60
+ }
61
+ async function X() {
62
+ F.podcast?.podcastId && F.podcast?.organisation.id && (await U.initialize(), await U.initComments(F.podcast.podcastId, F.podcast.organisation.id));
63
+ }
64
+ function Z(e) {
65
+ q.value || (B.value = {
66
+ type: "CREATE",
67
+ comment: e
68
+ });
69
+ }
70
+ return (t, n) => C((h(), s("section", k, [
71
+ c("div", A, [
72
+ q.value ? (h(), s("div", {
73
+ key: 0,
74
+ class: p(["status-indicator me-2 d-flex align-items-center justify-content-center", J.value.class]),
75
+ title: J.value.title
76
+ }, [(h(), a(_(J.value.icon), {
77
+ size: 20,
78
+ "aria-hidden": "true"
79
+ }))], 10, j)) : o("", !0),
80
+ (h(), a(_(e.inStudio ? "div" : "h3"), { class: p([e.inStudio ? "m-1 fw-bold" : "mb-0 me-2", "d-flex"]) }, {
81
+ default: S(() => [l(v(y(H)("Podcast's comments")), 1)]),
82
+ _: 1
83
+ }, 8, ["class"])),
84
+ c("button", {
85
+ title: y(H)("Refresh"),
86
+ class: "btn btn-transparent",
87
+ onClick: n[0] ||= (e) => L.value = !L.value
88
+ }, [u(E)], 8, M)
89
+ ]),
90
+ K.value ? (h(), a(y(P), {
91
+ key: 0,
92
+ podcast: e.podcast,
93
+ onNewComment: Z
94
+ }, null, 8, ["podcast"])) : o("", !0),
95
+ u(y(N), {
96
+ "nb-comments": z.value,
97
+ "onUpdate:nbComments": n[1] ||= (e) => z.value = e,
98
+ class: p(e.inStudio ? "mt-2" : "mt-3"),
99
+ podcast: e.podcast,
100
+ "is-flat-list": e.inStudio,
101
+ reload: L.value,
102
+ config: R.value,
103
+ "event-to-handle": B.value,
104
+ "state-filter": e.stateFilter
105
+ }, null, 8, [
106
+ "nb-comments",
107
+ "class",
108
+ "podcast",
109
+ "is-flat-list",
110
+ "reload",
111
+ "config",
112
+ "event-to-handle",
113
+ "state-filter"
114
+ ])
115
+ ], 512)), [[b, G.value]]);
116
+ }
117
+ }), [["__scopeId", "data-v-0d5b08ce"]]);
118
+ //#endregion
119
+ export { N as default };