@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
@@ -1,10 +1,11 @@
1
- import { C as e, O as t, t as n } from "./AuthStore-BBZTjLTf.mjs";
1
+ import { C as e, O as t, t as n } from "./AuthStore-BdiVUQBK.mjs";
2
2
  import { t as r } from "./cookiesHelper-5uZhLulK.mjs";
3
- import { defineStore as i } from "pinia";
4
- import a from "dayjs";
5
- import o from "dayjs/plugin/relativeTime";
3
+ import { markRaw as i } from "vue";
4
+ import { defineStore as a } from "pinia";
5
+ import o from "dayjs";
6
+ import s from "dayjs/plugin/relativeTime";
6
7
  //#region src/helper/stringHelper.ts
7
- var s = {
8
+ var c = {
8
9
  trimChar(e, t) {
9
10
  for (; e.startsWith(t);) e = e.substring(1);
10
11
  for (; e.endsWith(t);) e = e.substring(0, e.length - 1);
@@ -13,113 +14,91 @@ var s = {
13
14
  uuidv4() {
14
15
  return "10000000-1000-4000-8000-100000000000".replace(/[018]/g, (e) => (e ^ crypto.getRandomValues(/* @__PURE__ */ new Uint8Array(1))[0] & 15 >> e / 4).toString(16));
15
16
  }
16
- }, c = null, l = null, u = class {
17
+ }, l = /* @__PURE__ */ function(e) {
18
+ return e.INACTIVE = "INACTIVE", e.CONNECTING = "CONNECTING", e.CONNECTED = "CONNECTED", e.DISCONNECTED = "DISCONNECTED", e;
19
+ }({}), u = class {
17
20
  url;
18
21
  endpoint;
19
- subscriptions;
20
- socket;
21
22
  client;
23
+ topics;
24
+ stompSubscriptions;
22
25
  queuedMessages;
23
26
  processingMsg;
24
- wssBroken;
25
- constructor(e, t) {
26
- this.url = e, this.endpoint = t, this.subscriptions = [], this.processingMsg = !1, this.queuedMessages = [], this.wssBroken = !1;
27
+ onStatusChange;
28
+ constructor(e, t, n = () => {}) {
29
+ this.url = e, this.endpoint = t, this.client = void 0, this.topics = /* @__PURE__ */ new Map(), this.stompSubscriptions = /* @__PURE__ */ new Map(), this.queuedMessages = [], this.processingMsg = !1, this.onStatusChange = n;
27
30
  }
28
31
  async processQueuedMessages() {
29
- if (!this.processingMsg && this.queuedMessages.length !== 0) {
32
+ if (this.processingMsg) return;
33
+ let e = this.queuedMessages.shift();
34
+ if (e) {
30
35
  this.processingMsg = !0;
31
36
  try {
32
- let e = this.queuedMessages.shift();
33
37
  await e.callback(e.message);
34
38
  } catch (e) {
35
- console.log(e);
39
+ console.error(e);
36
40
  }
37
41
  this.processingMsg = !1, this.processQueuedMessages();
38
42
  }
39
43
  }
40
44
  async connect() {
41
- return new Promise((e, t) => {
42
- (async () => {
43
- c === null && await import("sockjs-client/dist/sockjs").then((e) => {
44
- c = e.default;
45
- }), l === null && await import("@stomp/stompjs").then((e) => {
46
- l = e.Stomp;
47
- }), this.socket = new c("https://" + this.url + "/" + this.endpoint), this.client = l.over(this.socket), this.client.heartbeat.outgoing = 2e3, this.client.heartbeat.incoming = 2e3, this.client.debug = (e) => {
48
- e.includes("did not receive server activity for the last") && (this.wssBroken = !0);
49
- }, this.client.onConnect = () => {
50
- this.connectionSuccess(), e();
51
- }, this.client.onStompError = () => {
52
- this.wssBroken = !0, this.connectionErrorReconnect(), t(/* @__PURE__ */ Error());
53
- }, this.client.onWebSocketError = () => {
54
- this.wssBroken = !0, this.connectionErrorReconnect(), t(/* @__PURE__ */ Error());
55
- }, this.client.onDisconnect = () => {
56
- this.connectionErrorReconnect(), t(/* @__PURE__ */ Error());
57
- }, this.client.onWebSocketClose = () => {
58
- this.connectionErrorReconnect(), t(/* @__PURE__ */ Error());
59
- }, this.client.activate();
60
- })();
61
- });
62
- }
63
- async connectionErrorReconnect() {
64
- this.wssBroken &&= (console.log("Error in ws try to reconnect"), setTimeout(() => {
65
- this.connect();
66
- }, 10), !1);
67
- }
68
- connectionSuccess() {
69
- this.subscriptions.forEach((e) => {
70
- try {
71
- this.subscribe(e.topic, e.callback);
72
- } catch {
73
- setTimeout(() => {
74
- this.connect();
75
- }, 1e4);
76
- return;
45
+ if (this.client?.active) return;
46
+ let [{ default: e }, t] = await Promise.all([import("sockjs-client/dist/sockjs"), import("@stomp/stompjs")]), { Client: n, ReconnectionTimeMode: r } = t.default ?? t;
47
+ this.client = new n({
48
+ webSocketFactory: () => new e("https://" + this.url + "/" + this.endpoint),
49
+ heartbeatIncoming: 2e3,
50
+ heartbeatOutgoing: 2e3,
51
+ reconnectDelay: 1e3,
52
+ maxReconnectDelay: 3e4,
53
+ reconnectTimeMode: r.EXPONENTIAL,
54
+ discardWebsocketOnCommFailure: !0,
55
+ beforeConnect: () => this.onStatusChange("CONNECTING"),
56
+ onConnect: () => {
57
+ this.stompSubscriptions.clear(), this.topics.forEach((e, t) => this.doSubscribe(t, e)), this.onStatusChange("CONNECTED");
58
+ },
59
+ onWebSocketClose: () => this.onStatusChange(this.client?.active ? "DISCONNECTED" : "INACTIVE"),
60
+ onStompError: (e) => {
61
+ console.error(e.headers.message), this.client?.forceDisconnect();
77
62
  }
78
- });
63
+ }), this.client.activate();
79
64
  }
80
65
  subscribe(e, t) {
81
- let n = this.client.subscribe(e, (e) => {
82
- this.queuedMessages.push({
83
- message: e,
84
- callback: t
85
- }), this.processQueuedMessages();
86
- });
87
- this.subscriptions.push({
88
- id: n.id,
89
- topic: e,
90
- callback: t
91
- });
66
+ this.topics.set(e, t), this.client?.connected && this.doSubscribe(e, t);
92
67
  }
93
68
  unsubscribe(e) {
94
69
  if (!e) throw Error("Cannot remove subscription if no search pattern is founded");
95
- let t = [];
96
- this.subscriptions.forEach((n) => {
97
- let r = !0;
98
- if (n.topic !== e && (r = !1), r) {
99
- t.push(n);
100
- try {
101
- this.client.unsubscribe(n.id);
102
- } catch {
103
- console.log("Error while deconnecting client with item " + n.id);
104
- }
105
- }
106
- }), this.subscriptions = this.subscriptions.filter((e) => !t.includes(e));
70
+ this.topics.delete(e);
71
+ try {
72
+ this.stompSubscriptions.get(e)?.unsubscribe();
73
+ } catch {
74
+ console.warn("Error while unsubscribing from " + e);
75
+ }
76
+ this.stompSubscriptions.delete(e);
107
77
  }
108
- disconnect() {
109
- this.client.deactivate();
78
+ async disconnect() {
79
+ await this.client?.deactivate(), this.onStatusChange("INACTIVE");
80
+ }
81
+ doSubscribe(e, t) {
82
+ this.client && this.stompSubscriptions.set(e, this.client.subscribe(e, (e) => {
83
+ this.queuedMessages.push({
84
+ message: e,
85
+ callback: t
86
+ }), this.processQueuedMessages();
87
+ }));
110
88
  }
111
89
  }, d = class {
112
90
  uri;
113
91
  connection;
114
92
  subscribedEventComment;
115
- constructor(e) {
116
- this.uri = e, this.connection = void 0, this.subscribedEventComment = void 0;
93
+ onStatusChange;
94
+ constructor(e, t = () => {}) {
95
+ this.uri = e, this.connection = void 0, this.subscribedEventComment = void 0, this.onStatusChange = t;
117
96
  }
118
97
  async initialize() {
119
- this.connection = new u(this.uri, "websocket"), await this.connection.connect();
98
+ this.connection = new u(this.uri, "websocket", this.onStatusChange), await this.connection.connect();
120
99
  }
121
100
  async close() {
122
- this.connection &&= (this.connection.disconnect(), void 0);
101
+ this.connection &&= (await this.connection.disconnect(), void 0);
123
102
  }
124
103
  subscribeToPodcastCommentEventBus(e, t, n) {
125
104
  if (!this.connection) throw Error("Websocket engine must be initialized, before it can subscribe to any events");
@@ -130,7 +109,7 @@ var s = {
130
109
  }
131
110
  unsubscribeToPodcastCommentEventBus(e, t) {
132
111
  if (!this.connection) throw Error("Websocket engine must be initialized, before it can unsubscribe to any events");
133
- if (!e) throw Error("Cannot unsubscribe to comments event bus if no id provided");
112
+ if (!e) throw Error("Cannot unsubscribe to comments event bus if no podcast id provided");
134
113
  this.connection.unsubscribe(t), this.subscribedEventComment = void 0;
135
114
  }
136
115
  isPodcastCommentEventConnected(e) {
@@ -139,7 +118,7 @@ var s = {
139
118
  };
140
119
  //#endregion
141
120
  //#region src/stores/CommentStore.ts
142
- a.extend(o);
121
+ o.extend(s);
143
122
  function f() {
144
123
  return {
145
124
  inherited: !1,
@@ -162,10 +141,11 @@ function f() {
162
141
  }
163
142
  };
164
143
  }
165
- var p = i("CommentStore", {
144
+ var p = a("CommentStore", {
166
145
  state: () => ({
167
146
  commentInitialized: !1,
168
147
  commentWebsocketengine: void 0,
148
+ commentConnectionStatus: l.INACTIVE,
169
149
  commentPodcastId: void 0,
170
150
  commentQueueName: void 0,
171
151
  commentEventToHandle: [],
@@ -210,7 +190,7 @@ var p = i("CommentStore", {
210
190
  return;
211
191
  }
212
192
  let t = r.getCookie("comment-octopus-uuid");
213
- t === null && (t = s.uuidv4(), r.setCookie("comment-octopus-uuid", t));
193
+ t === null && (t = c.uuidv4(), r.setCookie("comment-octopus-uuid", t));
214
194
  let i = await this.digest(t);
215
195
  this.commentUser = {
216
196
  name: r.getCookie("comment-octopus-name"),
@@ -258,8 +238,16 @@ var p = i("CommentStore", {
258
238
  return e ? !e.abuse.authRequired || e.abuse.authRequired && t : !1;
259
239
  },
260
240
  async initialize() {
261
- let e = t().commentUrl ?? "https://comments.dev2.saooti.org/", n = new d(s.trimChar(e.replace("https://", ""), "/"));
262
- await n.initialize(), this.commentWebsocketengine = n, this.commentInitialized = !0;
241
+ if (this.commentInitialized) return;
242
+ let e = t().commentUrl ?? "https://comments.dev2.saooti.org/", n = c.trimChar(e.replace("https://", ""), "/"), r = i(new d(n, (e) => {
243
+ this.commentConnectionStatus = e;
244
+ }));
245
+ this.commentInitialized = !0, this.commentWebsocketengine = r;
246
+ try {
247
+ await r.initialize();
248
+ } catch (e) {
249
+ throw this.commentInitialized = !1, this.commentWebsocketengine = void 0, e;
250
+ }
263
251
  },
264
252
  unsubscribeToEvent() {
265
253
  this.commentWebsocketengine && this.commentPodcastId && this.commentQueueName && this.commentWebsocketengine.isPodcastCommentEventConnected(this.commentPodcastId) && this.commentWebsocketengine.unsubscribeToPodcastCommentEventBus(this.commentPodcastId, this.commentQueueName);
@@ -273,7 +261,7 @@ var p = i("CommentStore", {
273
261
  this.unsubscribeToEvent(), this.commentQueueName = "/topic/comment." + t + "." + e, this.commentPodcastId = e, this.subscribeToEvents();
274
262
  },
275
263
  async unsubscribeComments() {
276
- this.unsubscribeComments(), this.commentPodcastId = void 0;
264
+ this.unsubscribeToEvent(), this.commentPodcastId = void 0, this.commentQueueName = void 0;
277
265
  },
278
266
  commentEventHandled() {
279
267
  this.commentEventToHandle.shift();
@@ -284,4 +272,4 @@ var p = i("CommentStore", {
284
272
  }
285
273
  });
286
274
  //#endregion
287
- export { s as n, p as t };
275
+ export { l as n, c as r, p as t };
@@ -1,4 +1,4 @@
1
- import { O as e, t } from "./AuthStore-BBZTjLTf.mjs";
1
+ import { O as e, t } from "./AuthStore-BdiVUQBK.mjs";
2
2
  import { Fragment as n, computed as r, createBlock as i, createElementBlock as a, createElementVNode as o, createVNode as s, defineAsyncComponent as c, defineComponent as l, onMounted as u, openBlock as d, ref as f, renderList as p, toDisplayString as m, unref as h, watch as g, withCtx as _ } from "vue";
3
3
  import { useI18n as v } from "vue-i18n";
4
4
  import { VuePDF as y, usePDF as b } from "@tato30/vue-pdf";
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "./ClassicCheckbox-xPu56Drn.mjs";
2
- import { t } from "./ClassicDatePicker-CKIkZWmW.mjs";
2
+ import { t } from "./ClassicDatePicker-DlNlvjA0.mjs";
3
3
  import { Fragment as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createVNode as o, defineComponent as s, openBlock as c, ref as l, renderList as u, toDisplayString as d, unref as f, watch as p } from "vue";
4
4
  import { useI18n as m } from "vue-i18n";
5
5
  import h from "dayjs";
@@ -1,5 +1,5 @@
1
- import { d as e } from "./AuthStore-BBZTjLTf.mjs";
2
- import { t } from "./downloadHelper-CvnGPosg.mjs";
1
+ import { d as e } from "./AuthStore-BdiVUQBK.mjs";
2
+ import { t } from "./downloadHelper-B7bFMASS.mjs";
3
3
  import { createCommentVNode as n, createElementBlock as r, createElementVNode as i, createVNode as a, defineComponent as o, openBlock as s, unref as c } from "vue";
4
4
  import { useI18n as l } from "vue-i18n";
5
5
  import u from "vue-material-design-icons/Download.vue";
@@ -1,4 +1,4 @@
1
- import { C as e } from "./AuthStore-BBZTjLTf.mjs";
1
+ import { C as e } from "./AuthStore-BdiVUQBK.mjs";
2
2
  import { t } from "./config-DMjLBcZ2.mjs";
3
3
  import { Fragment as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createVNode as s, defineAsyncComponent as c, defineComponent as l, onBeforeMount as u, openBlock as d, ref as f, toDisplayString as p, unref as m, withCtx as h } from "vue";
4
4
  import { useI18n as g } from "vue-i18n";
@@ -17,7 +17,7 @@ var _ = ["disabled"], v = /* @__PURE__ */ l({
17
17
  },
18
18
  emits: ["close", "update:comment"],
19
19
  setup(l, { emit: v }) {
20
- let y = c(() => import("./ClassicModal-Dl2IdzXZ.mjs").then((e) => e.n)), b = c(() => import("./ClassicLoading-CXfMjpyl.mjs").then((e) => e.n)), x = c(() => import("./ClassicInputText-YsntJkHk.mjs").then((e) => e.n)), S = c(() => import("./ClassicSelect-BpA0jKN6.mjs").then((e) => e.n)), C = l, w = v, T = f(void 0), E = f(!0), D = f("PENDING"), O = f(!1), k = f(!1), { t: A } = g();
20
+ let y = c(() => import("./ClassicModal-Dl2IdzXZ.mjs").then((e) => e.n)), b = c(() => import("./ClassicLoading-ydEDL7-R.mjs").then((e) => e.n)), x = c(() => import("./ClassicInputText-4bPGD_kV.mjs").then((e) => e.n)), S = c(() => import("./ClassicSelect-Bj9BkTkd.mjs").then((e) => e.n)), C = l, w = v, T = f(void 0), E = f(!0), D = f("PENDING"), O = f(!1), k = f(!1), { t: A } = g();
21
21
  u(() => j());
22
22
  function j() {
23
23
  C.comment && (T.value = C.comment.content, D.value = C.comment.state);
@@ -1,6 +1,6 @@
1
1
  import { t as e } from "./rolldown-runtime-Dy4uBu1J.mjs";
2
- import { v as t } from "./AuthStore-BBZTjLTf.mjs";
3
- import { t as n } from "./OctopusMultiselect-noQPQMZQ.mjs";
2
+ import { v as t } from "./AuthStore-BdiVUQBK.mjs";
3
+ import { t as n } from "./OctopusMultiselect-B_VBxbac.mjs";
4
4
  import { createBlock as r, defineComponent as i, onMounted as a, openBlock as o, ref as s } from "vue";
5
5
  //#region src/components/display/emission/EmissionGroupChooser.vue?vue&type=script&setup=true&lang.ts
6
6
  var c = 200, l = /*@__PURE__*/ i({
@@ -1,17 +1,17 @@
1
- import { t as e } from "./ClassicLoading-CXfMjpyl.mjs";
2
- import { C as t, j as n } from "./AuthStore-BBZTjLTf.mjs";
3
- import { t as r } from "./_plugin-vue_export-helper-B3ysoDQm.mjs";
4
- import { t as i } from "./useErrorHandler-BVeBrWmP.mjs";
5
- import { t as a } from "./SwiperList-1mHT07oe.mjs";
6
- import { t as o } from "./EmissionPresentationItem-Ic_4QTAV.mjs";
7
- import { t as s } from "./EmissionPlayerItem-B-poSf0h.mjs";
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, j as r } from "./AuthStore-BdiVUQBK.mjs";
4
+ import { t as i } from "./useErrorHandler-BPwwQKrG.mjs";
5
+ import { t as a } from "./SwiperList-CqElRAFt.mjs";
6
+ import { t as o } from "./EmissionPresentationItem-VwylQjvv.mjs";
7
+ import { t as s } from "./EmissionPlayerItem-w3F7l_dL.mjs";
8
8
  import { computed as c, createBlock as l, createCommentVNode as u, createElementBlock as d, createTextVNode as f, createVNode as p, defineComponent as m, normalizeClass as h, onMounted as g, openBlock as _, ref as v, resolveComponent as y, toDisplayString as b, unref as x, withCtx as S } from "vue";
9
9
  import { useI18n as C } from "vue-i18n";
10
10
  //#region src/components/display/emission/EmissionInlineList.vue?vue&type=script&setup=true&lang.ts
11
11
  var w = { class: "d-flex flex-column list-episode" }, T = {
12
12
  key: 0,
13
13
  class: "mb-0"
14
- }, E = /*#__PURE__*/ r(/* @__PURE__ */ m({
14
+ }, E = /*#__PURE__*/ t(/* @__PURE__ */ m({
15
15
  __name: "EmissionInlineList",
16
16
  props: {
17
17
  emissionDisplay: {},
@@ -25,8 +25,8 @@ var w = { class: "d-flex flex-column list-episode" }, T = {
25
25
  rubriquageId: {},
26
26
  title: {}
27
27
  },
28
- setup(r) {
29
- let m = r, E = v(!0), D = v([]), O = v(void 0), { t: k } = C(), { handle403: A } = i(), j = c(() => n.emissionsPage.rubriquage), M = c(() => {
28
+ setup(t) {
29
+ let m = t, E = v(!0), D = v([]), O = v(void 0), { t: k } = C(), { handle403: A } = i(), j = c(() => r.emissionsPage.rubriquage), M = c(() => {
30
30
  if (m.itemSize) return m.itemSize;
31
31
  if (m.emissionDisplay === "simple") return 25;
32
32
  });
@@ -35,7 +35,7 @@ var w = { class: "d-flex flex-column list-episode" }, T = {
35
35
  });
36
36
  async function N() {
37
37
  try {
38
- let e = await t.fetchData({
38
+ let e = await n.fetchData({
39
39
  api: 0,
40
40
  path: "emission/search",
41
41
  parameters: {
@@ -54,7 +54,7 @@ var w = { class: "d-flex flex-column list-episode" }, T = {
54
54
  }
55
55
  }
56
56
  async function P() {
57
- let e = await t.fetchData({
57
+ let e = await n.fetchData({
58
58
  api: 0,
59
59
  path: "rubriquage/" + j.value
60
60
  });
@@ -66,29 +66,35 @@ var w = { class: "d-flex flex-column list-episode" }, T = {
66
66
  if (t) return t.name;
67
67
  }
68
68
  function I(e) {
69
- return n.emissionsPage.mainRubrique && e.rubriqueIds?.includes(n.emissionsPage.mainRubrique) ? "partenaireRubrique" : "";
69
+ return r.emissionsPage.mainRubrique && e.rubriqueIds?.includes(r.emissionsPage.mainRubrique) ? "partenaireRubrique" : "";
70
70
  }
71
- return (t, n) => {
71
+ return (n, r) => {
72
72
  let i = y("router-link");
73
73
  return _(), d("div", w, [
74
- r.title ? (_(), d("h2", T, b(r.title), 1)) : u("", !0),
74
+ t.title ? (_(), d("h2", T, b(t.title), 1)) : u("", !0),
75
75
  p(e, { "loading-text": E.value ? x(k)("Loading emissions ...") : void 0 }, null, 8, ["loading-text"]),
76
- j.value && O.value || !(j.value && t.loaded) ? (_(), l(a, {
76
+ j.value && O.value || !(j.value && n.loaded) ? (_(), l(a, {
77
77
  key: 1,
78
78
  "size-item-overload": M.value,
79
- "list-object": D.value
79
+ "list-object": D.value,
80
+ label: t.title
80
81
  }, {
81
- octopusSlide: S(({ option: e }) => [r.emissionDisplay === "simple" ? (_(), l(o, {
82
+ octopusSlide: S(({ option: e }) => [t.emissionDisplay === "simple" ? (_(), l(o, {
82
83
  key: 0,
83
84
  emission: e,
84
85
  class: "inline-list-element",
85
86
  "is-description": "",
86
- "is-vertical": r.emissionVertical
87
- }, null, 8, ["emission", "is-vertical"])) : (_(), l(s, {
87
+ "is-vertical": t.emissionVertical,
88
+ "title-tag": t.title ? "h3" : "h2"
89
+ }, null, 8, [
90
+ "emission",
91
+ "is-vertical",
92
+ "title-tag"
93
+ ])) : (_(), l(s, {
88
94
  key: 1,
89
95
  class: h(["flex-shrink-0 item-phone-margin", [I(e)]]),
90
96
  emission: e,
91
- "nb-podcasts": r.nbPodcasts,
97
+ "nb-podcasts": t.nbPodcasts,
92
98
  "rubrique-name": F(e)
93
99
  }, null, 8, [
94
100
  "emission",
@@ -97,18 +103,22 @@ var w = { class: "d-flex flex-column list-episode" }, T = {
97
103
  "rubrique-name"
98
104
  ]))]),
99
105
  _: 1
100
- }, 8, ["size-item-overload", "list-object"])) : u("", !0),
101
- r.href ? (_(), l(i, {
106
+ }, 8, [
107
+ "size-item-overload",
108
+ "list-object",
109
+ "label"
110
+ ])) : u("", !0),
111
+ t.href ? (_(), l(i, {
102
112
  key: 2,
103
- to: r.href,
113
+ to: t.href,
104
114
  class: "btn btn-primary align-self-center w-fit-content m-4"
105
115
  }, {
106
- default: S(() => [f(b(r.buttonText), 1)]),
116
+ default: S(() => [f(b(t.buttonText), 1)]),
107
117
  _: 1
108
118
  }, 8, ["to"])) : u("", !0)
109
119
  ]);
110
120
  };
111
121
  }
112
- }), [["__scopeId", "data-v-e26812e2"]]);
122
+ }), [["__scopeId", "data-v-ce5325fd"]]);
113
123
  //#endregion
114
124
  export { E as default };
@@ -0,0 +1,123 @@
1
+ import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.mjs";
2
+ import { C as t } from "./AuthStore-BdiVUQBK.mjs";
3
+ import { t as n } from "./useResizePhone-4hSkK5pa.mjs";
4
+ import { t as r } from "./displayHelper-DQtoqc_6.mjs";
5
+ import { t as i } from "./useImageProxy-XMMC_IC2.mjs";
6
+ import { t as a } from "./useOrgaComputed-B0wJ-ALx.mjs";
7
+ import { t as o } from "./RightsIndicator-Dr75KTRE.mjs";
8
+ import { computed as s, createBlock as c, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createTextVNode as f, createVNode as p, defineComponent as m, onBeforeMount as h, onMounted as g, openBlock as _, ref as v, renderSlot as y, resolveComponent as b, resolveDynamicComponent as x, toDisplayString as S, unref as C, useTemplateRef as w, withCtx as T } from "vue";
9
+ import { useI18n as E } from "vue-i18n";
10
+ import D from "vue-material-design-icons/Alert.vue";
11
+ //#region src/components/misc/ClassicImageBanner.vue
12
+ var O = {}, k = { class: "blur-with-banner" }, A = { class: "banner" };
13
+ function j(e, t) {
14
+ return _(), u("div", k, [d("div", A, [y(e.$slots, "default", {}, void 0, !0)])]);
15
+ }
16
+ var M = /*#__PURE__*/ e(O, [["render", j], ["__scopeId", "data-v-39d933a8"]]), N = { class: "classic-element-container" }, P = { class: "classic-element-content d-flex flex-grow-1 text-dark" }, F = ["src"], I = { class: "classic-element-text" }, L = {
17
+ ref: "descriptionEmissionContainer",
18
+ class: "element-description htms-wysiwyg-content"
19
+ }, R = ["innerHTML"], z = /*#__PURE__*/ e(/* @__PURE__ */ m({
20
+ __name: "EmissionItem",
21
+ props: {
22
+ emission: {},
23
+ titleTag: { default: "h3" }
24
+ },
25
+ setup(e) {
26
+ let m = e, y = v(!0), { t: O } = E(), { useProxyImageUrl: k } = i(), { isPodcastmaker: A, isEditRights: j } = a(), z = s(() => j(m.emission.orga.id)), B = s(() => m.emission.visible !== !1);
27
+ h(() => {
28
+ z.value && W();
29
+ }), g(() => {
30
+ let e = w("descriptionEmission")?.value, t = w("descriptionEmissionContainer")?.value;
31
+ e !== null && t !== null && e.clientHeight > t.clientHeight && t.classList.add("after-element-description");
32
+ });
33
+ let { isPhone: V } = n(), H = s(() => {
34
+ let e = m.emission.description;
35
+ if (!e) return "";
36
+ if (V.value === !0) {
37
+ let t = e.match(/^(.+?<\/p>)/);
38
+ t && t.length === 2 && (e = t[1]);
39
+ }
40
+ return U(e);
41
+ });
42
+ function U(e) {
43
+ return r.urlify(e);
44
+ }
45
+ async function W() {
46
+ (await t.fetchData({
47
+ api: 0,
48
+ path: "podcast/search",
49
+ parameters: {
50
+ emissionId: m.emission.emissionId,
51
+ first: 0,
52
+ size: 0,
53
+ includeStatus: ["READY", "PROCESSING"]
54
+ },
55
+ specialTreatement: !0
56
+ })).count === 0 && (y.value = !1);
57
+ }
58
+ return (t, n) => {
59
+ let r = b("router-link");
60
+ return _(), u("article", N, [d("div", P, [
61
+ d("img", {
62
+ loading: "lazy",
63
+ src: C(k)(e.emission.imageUrl, "250"),
64
+ width: "250",
65
+ height: "250",
66
+ class: "img-box",
67
+ "aria-hidden": "true",
68
+ alt: ""
69
+ }, null, 8, F),
70
+ B.value ? l("", !0) : (_(), c(M, { key: 0 }, {
71
+ default: T(() => [f(S(C(O)("Emission - Not available for listeners")), 1)]),
72
+ _: 1
73
+ })),
74
+ d("div", I, [
75
+ (_(), c(x(e.titleTag), { class: "element-name" }, {
76
+ default: T(() => [p(r, {
77
+ to: {
78
+ name: "emission",
79
+ params: { emissionId: e.emission.emissionId }
80
+ },
81
+ title: C(O)("Series name page", { name: e.emission.name }),
82
+ class: "d-flex align-items-center text-dark element-link"
83
+ }, {
84
+ default: T(() => [
85
+ !y.value && !C(A) && z.value ? (_(), c(D, {
86
+ key: 0,
87
+ size: 16,
88
+ class: "text-danger me-1",
89
+ title: C(O)("Emission have not podcasts")
90
+ }, null, 8, ["title"])) : l("", !0),
91
+ p(o, {
92
+ inline: "",
93
+ emission: e.emission,
94
+ action: "edit"
95
+ }, null, 8, ["emission"]),
96
+ f(" " + S(e.emission.name), 1)
97
+ ]),
98
+ _: 1
99
+ }, 8, ["to", "title"])]),
100
+ _: 1
101
+ })),
102
+ d("div", L, [d("div", {
103
+ ref: "descriptionEmission",
104
+ innerHTML: H.value
105
+ }, null, 8, R)], 512),
106
+ C(A) ? l("", !0) : (_(), c(r, {
107
+ key: 0,
108
+ class: "text-dark mt-auto py-1",
109
+ to: {
110
+ name: "productor",
111
+ params: { productorId: e.emission.orga.id }
112
+ }
113
+ }, {
114
+ default: T(() => [f(" © " + S(e.emission.orga.name), 1)]),
115
+ _: 1
116
+ }, 8, ["to"]))
117
+ ])
118
+ ])]);
119
+ };
120
+ }
121
+ }), [["__scopeId", "data-v-5da9b3bb"]]);
122
+ //#endregion
123
+ export { z as default };