@saooti/octopus-sdk 42.4.0-beta3 → 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.
- package/dist/{AccessibilityModal-CBIb3UQS.mjs → AccessibilityModal-CHUSDO1F.mjs} +39 -36
- package/dist/{AdvancedSearch-B91oao4i.mjs → AdvancedSearch-S-OMg1XH.mjs} +5 -5
- package/dist/{AuthStore-DicEfgQW.mjs → AuthStore-BdiVUQBK.mjs} +14 -14
- package/dist/{CategoryChooser-fAUMJNHu.mjs → CategoryChooser-Cg_gq6L_.mjs} +1 -1
- package/dist/{CategoryFilter-BEUYdg8x.mjs → CategoryFilter-CI5PfekR.mjs} +3 -3
- package/dist/{CategoryList-CXlZwPx_.mjs → CategoryList-B0hCDa0Q.mjs} +2 -2
- package/dist/{CategoryPage-8ASmoXs-.mjs → CategoryPage-j1c3a9Ti.mjs} +2 -2
- package/dist/{CategorySearchFilter-Cce5zxZB.mjs → CategorySearchFilter-eRcZcX0o.mjs} +1 -1
- package/dist/{CheckIdentityModal-axczuxN_.mjs → CheckIdentityModal-DTA9VPdd.mjs} +3 -3
- package/dist/{ClassicAlert-DATLZ8J1.mjs → ClassicAlert-fZ4qLB-c.mjs} +1 -1
- package/dist/{ClassicBigChip-BK8v_P0z.mjs → ClassicBigChip-D0pRqFwb.mjs} +1 -1
- package/dist/ClassicColorPicker-DcjFDaZ8.mjs +79 -0
- package/dist/{ClassicDatePicker-RsK4smk2.mjs → ClassicDatePicker-DlNlvjA0.mjs} +1 -1
- package/dist/{ClassicEmojiPicker-C0gm-DA2.mjs → ClassicEmojiPicker-Cc4UZRvZ.mjs} +1 -1
- package/dist/{ClassicHelpButton-BnRLmYuh.mjs → ClassicHelpButton-CDz_GcaZ.mjs} +1 -1
- package/dist/{ClassicInputText-YsntJkHk.mjs → ClassicInputText-4bPGD_kV.mjs} +1 -1
- package/dist/{ClassicLoading-CXfMjpyl.mjs → ClassicLoading-ydEDL7-R.mjs} +1 -1
- package/dist/{ClassicMultiselect-C0yzVQ8Y.mjs → ClassicMultiselect-CEJF_Uo5.mjs} +1 -1
- package/dist/{ClassicNotifications-vaUjCTEc.mjs → ClassicNotifications-olXwz4qY.mjs} +2 -2
- package/dist/ClassicPopover-BpFChUHf.mjs +203 -0
- package/dist/ClassicSelect-Bj9BkTkd.mjs +121 -0
- package/dist/{ClassicSpinner-DFRDD51g.mjs → ClassicSpinner-P6q1es8G.mjs} +4 -1
- package/dist/{ClipboardModal-B49yYTXK.mjs → ClipboardModal-D40ImhpB.mjs} +1 -1
- package/dist/{CommentInput-C8KtLKTd.mjs → CommentInput-BGAQHUZh.mjs} +5 -5
- package/dist/CommentItem-CBtedADn.mjs +233 -0
- package/dist/CommentList-BqY6dXMt.mjs +203 -0
- package/dist/{CommentMoreActions-vmx-I-Iq.mjs → CommentMoreActions-BPDPuoeI.mjs} +6 -5
- package/dist/{CommentName-DfGeg6K5.mjs → CommentName-DiN2v6zm.mjs} +3 -3
- package/dist/{CommentParentInfo-4UblopkM.mjs → CommentParentInfo-DIyzK-2k.mjs} +3 -3
- package/dist/CommentSection-BUQsGQcN.mjs +119 -0
- package/dist/{CommentStore-CV6hsdbD.mjs → CommentStore-D-2Q49xZ.mjs} +76 -88
- package/dist/{ContractPreviewModal-CpLWz649.mjs → ContractPreviewModal-Duf8yY-7.mjs} +1 -1
- package/dist/{DateFilter-C7fBCqX8.mjs → DateFilter-Drn-Thgy.mjs} +1 -1
- package/dist/{DownloadPodcastButton-D9qdK3Vs.mjs → DownloadPodcastButton-BFZI5jmS.mjs} +2 -2
- package/dist/{EditCommentModal-CQBWEzRy.mjs → EditCommentModal-CVihXEGS.mjs} +2 -2
- package/dist/{EmissionGroupChooser-CsY37yhE.mjs → EmissionGroupChooser-BaorNk90.mjs} +2 -2
- package/dist/{EmissionInlineList-BTm-vKT_.mjs → EmissionInlineList-DuzgE8hS.mjs} +36 -26
- package/dist/EmissionItem-R8ugPYq7.mjs +123 -0
- package/dist/EmissionList-Dk8Xtmm1.mjs +230 -0
- package/dist/EmissionPage-DE_T-aNF.mjs +191 -0
- package/dist/{EmissionPlayerItem-i9qBw7qg.mjs → EmissionPlayerItem-w3F7l_dL.mjs} +9 -9
- package/dist/{EmissionPresentationItem-kwkl6gGi.mjs → EmissionPresentationItem-VwylQjvv.mjs} +7 -4
- package/dist/{EmissionPresentationList-DoiPDE0Q.mjs → EmissionPresentationList-Xu3G_Ozt.mjs} +8 -6
- package/dist/EmissionsPage--rvX0YYh.mjs +117 -0
- package/dist/{Error403Page-CIXtXR8O.mjs → Error403Page-Cb0LAznd.mjs} +1 -1
- package/dist/ExternalLink-Xd1yTR71.mjs +35 -0
- package/dist/{FooterGarSection-D4cHh_7u.mjs → FooterGarSection-CnjLLyXU.mjs} +3 -3
- package/dist/{FooterSection-DPiDNA4L.mjs → FooterSection-0e6Z_wff.mjs} +13 -13
- package/dist/{HomeDropdown-COrDmwgz.mjs → HomeDropdown-5JO7NDSl.mjs} +3 -3
- package/dist/{HomePage-C1M09x-n.mjs → HomePage-Bze7mTbZ.mjs} +3 -3
- package/dist/InlineRubriqueList-MYnSX_eZ.mjs +48 -0
- package/dist/LikeButton-CnMZOm9N.mjs +46 -0
- package/dist/{LikeSection-BPKNsu_2.mjs → LikeSection-BFh6c0_F.mjs} +11 -17
- package/dist/ListPaginate-DMir5lKe.mjs +191 -0
- package/dist/{LiveHorizontalList-BxDJY4Ga.mjs → LiveHorizontalList-DpfoJMa8.mjs} +6 -6
- package/dist/{LiveList-Dd9Ek190.mjs → LiveList-BXcxoWAn.mjs} +12 -11
- package/dist/{LivesPage-BvScVnlj.mjs → LivesPage-X_Cuj5RC.mjs} +2 -2
- package/dist/{MapPage-Daq-G22-.mjs → MapPage-DR7057o0.mjs} +1 -1
- package/dist/{MessageModal-BcqS77v6.mjs → MessageModal-DyD3HZy0.mjs} +1 -1
- package/dist/{MobileMenu-N_uqqPXy.mjs → MobileMenu-CaFQBVFA.mjs} +3 -3
- package/dist/{MonetizableFilter-B7NHzXEY.mjs → MonetizableFilter-BeBVeGSW.mjs} +1 -1
- package/dist/{NewsletterModal-B3l0QC-e.mjs → NewsletterModal-CaaLFdAc.mjs} +1 -1
- package/dist/{OctopusMultiselect-noQPQMZQ.mjs → OctopusMultiselect-B_VBxbac.mjs} +19 -19
- package/dist/OrganisationChooser-BSJWSByJ.mjs +134 -0
- package/dist/{OrganisationChooserLight-p-BVMwyG.mjs → OrganisationChooserLight-BpqeFaQP.mjs} +2 -2
- package/dist/{PageNotFound-DHY46Syf.mjs → PageNotFound-BB2Der8l.mjs} +2 -2
- package/dist/PaginateParams-BKSnsVZH.mjs +54 -0
- package/dist/{ParticipantInlineList-D8i3AIzH.mjs → ParticipantInlineList-DBlnlk8x.mjs} +24 -19
- package/dist/ParticipantItem-1fs3gVfe.mjs +93 -0
- package/dist/ParticipantPage-BaWObZn8.mjs +127 -0
- package/dist/{ParticipantsPage-B1H5qiE5.mjs → ParticipantsPage-QsAeLeb5.mjs} +16 -16
- package/dist/{PlayerAnonymousModal-B6ySHibo.mjs → PlayerAnonymousModal-B9fZFffi.mjs} +2 -2
- package/dist/PlaylistPage-Blu1HnPY.mjs +130 -0
- package/dist/{PlaylistsPage-yz5J_dXY.mjs → PlaylistsPage-DLNnZSJT.mjs} +88 -77
- package/dist/{PodcastFilterList-BcENzPoH.mjs → PodcastFilterList-DrZA5iQa.mjs} +4 -3
- package/dist/PodcastInlineList-C-ICxCWh.mjs +186 -0
- package/dist/{PodcastInlineListTemplate-jy0vmJx-.mjs → PodcastInlineListTemplate-CDigJ7BJ.mjs} +58 -56
- package/dist/PodcastItem-m3k-Kix9.mjs +305 -0
- package/dist/{PodcastList-Dm3usBYI.mjs → PodcastList-Cww-0Swl.mjs} +12 -12
- package/dist/{PodcastList-Dyl543Bp.mjs → PodcastList-s4gxQjq5.mjs} +26 -24
- package/dist/PodcastPage-DE5gGN-2.mjs +595 -0
- package/dist/PodcastPlayButton-Df0Z63M0.mjs +127 -0
- package/dist/PodcastPlaylistInlineList-D6FMozVy.mjs +69 -0
- package/dist/{PodcastPresentationList-BQq63Hw8.mjs → PodcastPresentationList-SouqGyw9.mjs} +9 -7
- package/dist/{PodcastmakerHeader-CL_tjvMk.mjs → PodcastmakerHeader-DJXLJTF6.mjs} +1 -1
- package/dist/PodcastsPage-BXBARaTK.mjs +133 -0
- package/dist/{ProductorSearch-CPzNgX7W.mjs → ProductorSearch-hTTU45pI.mjs} +3 -3
- package/dist/QrCode-OEI1du8P.mjs +116 -0
- package/dist/{QrCodeModal-3A2UoPSF.mjs → QrCodeModal-DmzFi0FH.mjs} +1 -1
- package/dist/{RadioCurrently-BjYJdFaU.mjs → RadioCurrently-CrRnrOIT.mjs} +20 -20
- package/dist/{RadioImage-C3P-UQoy.mjs → RadioImage-DmMQTUjw.mjs} +1 -1
- package/dist/RadioList-Bj_bfSqy.mjs +79 -0
- package/dist/{RadioPage-CpdnsZ9i.mjs → RadioPage-BHAxW4eG.mjs} +5 -5
- package/dist/{RadioPlanning-mOBlcxk9.mjs → RadioPlanning-Cg47XjD9.mjs} +3 -3
- package/dist/{RecaptchaModal-MQuwH4X4.mjs → RecaptchaModal-DLMoPxPf.mjs} +2 -2
- package/dist/{ReportAbuseModal-D0XeDyYW.mjs → ReportAbuseModal-CIiBTSpw.mjs} +4 -4
- package/dist/{RightsIndicator-DzAceGoE.mjs → RightsIndicator-Dr75KTRE.mjs} +4 -4
- package/dist/{RightsWrapper-hjzM-Sqr.mjs → RightsWrapper-C6zNaunR.mjs} +41 -42
- package/dist/{RubriqueChoice-C-S-veJJ.mjs → RubriqueChoice-Ci23lZBD.mjs} +2 -2
- package/dist/{RubriqueChooser-CNGn8LcP.mjs → RubriqueChooser-C5QLRe-b.mjs} +1 -1
- package/dist/{RubriqueFilter-UdXMkAQI.mjs → RubriqueFilter-B_lwmZ8m.mjs} +3 -3
- package/dist/{RubriqueList-DRZ0ETu2.mjs → RubriqueList-DNwhze-d.mjs} +4 -4
- package/dist/{RubriquePage-C4PvUVhz.mjs → RubriquePage-Bh59Y29D.mjs} +6 -5
- package/dist/{SearchPage-mxM-OqW1.mjs → SearchPage-DfsoWBQU.mjs} +2 -2
- package/dist/ShareAnonymous-QT4t2_n7.mjs +210 -0
- package/dist/{ShareModalPlayer-B1g9YiSI.mjs → ShareModalPlayer-D0NzOzX0.mjs} +1 -1
- package/dist/{ShareNewsletter-CCahfetv.mjs → ShareNewsletter-DT893L87.mjs} +41 -44
- package/dist/{SharePlayer-BtArvP3g.mjs → SharePlayer-Ctivrvmn.mjs} +2 -2
- package/dist/SharePlayerColors-CfrkwpdM.mjs +50 -0
- package/dist/{SharePlayerRadio-BdXEBctc.mjs → SharePlayerRadio-Gvc5Gc0f.mjs} +2 -2
- package/dist/{SharePlayerTypes-BCxXdkz-.mjs → SharePlayerTypes-B3OKl3HO.mjs} +1 -1
- package/dist/ShareSocialsButtons-MbK7ivGa.mjs +103 -0
- package/dist/SmartLinkPage-BKihppLi.mjs +143 -0
- package/dist/SubscribeButtons-DKylNvPo.mjs +126 -0
- package/dist/SwiperList-CqElRAFt.mjs +179 -0
- package/dist/{TagList-CvZonJ_a.mjs → TagList-CFgCrA_i.mjs} +5 -5
- package/dist/{TagPage-w4FxxLXT.mjs → TagPage-CWGLni8k.mjs} +3 -3
- package/dist/TopBar-CmZSpIiz.mjs +427 -0
- package/dist/UserButtonContent-CvVebdKv.mjs +129 -0
- package/dist/{buttons-BkfxHdGj.mjs → buttons-s19oovgO.mjs} +1 -1
- package/dist/{downloadHelper-9GxSNVWh.mjs → downloadHelper-B7bFMASS.mjs} +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +4 -2
- package/dist/index.mjs +235 -232
- package/dist/{messages-DlxMAMOa.mjs → messages-DJAarMHp.mjs} +108 -6
- package/dist/src/components/display/comments/like/LikeButton.vue.d.ts +9 -33
- package/dist/src/components/display/comments/like/LikeSection.vue.d.ts +11 -33
- package/dist/src/components/display/emission/EmissionInlineList.vue.d.ts +4 -4
- package/dist/src/components/display/emission/EmissionItem.vue.d.ts +5 -1
- package/dist/src/components/display/emission/EmissionPresentationItem.vue.d.ts +2 -0
- package/dist/src/components/display/emission/EmissionPresentationList.vue.d.ts +1 -1
- package/dist/src/components/display/list/SwiperList.vue.d.ts +7 -4
- package/dist/src/components/display/live/RadioItem.vue.d.ts +11 -0
- package/dist/src/components/display/participant/ParticipantInlineList.vue.d.ts +1 -1
- package/dist/src/components/display/playlist/PlaylistItem.vue.d.ts +11 -0
- package/dist/src/components/display/podcasts/PodcastFilterList.vue.d.ts +3 -3
- package/dist/src/components/display/podcasts/PodcastImage.vue.d.ts +29 -9
- package/dist/src/components/display/podcasts/PodcastInlineList.vue.d.ts +45 -4
- package/dist/src/components/display/podcasts/PodcastInlineListTemplate.vue.d.ts +1 -1
- package/dist/src/components/display/podcasts/PodcastItem.vue.d.ts +7 -1
- package/dist/src/components/display/podcasts/PodcastItemInfo.vue.d.ts +10 -12
- package/dist/src/components/display/podcasts/PodcastList.vue.d.ts +2 -0
- package/dist/src/components/display/sharing/FormatSwitch.vue.d.ts +12 -17
- package/dist/src/components/form/ClassicColorPicker.vue.d.ts +26 -0
- package/dist/src/components/form/ClassicContentEditable.vue.d.ts +1 -1
- package/dist/src/components/form/ClassicInputText.vue.d.ts +1 -1
- package/dist/src/components/form/ClassicMultiselect.vue.d.ts +4 -4
- package/dist/src/components/form/index.d.ts +2 -1
- package/dist/src/components/layouts/PresentationItem.vue.d.ts +7 -3
- package/dist/src/components/misc/ClassicPopover.vue.d.ts +2 -0
- package/dist/src/components/misc/ExternalLink.vue.d.ts +27 -0
- package/dist/src/components/misc/LoadingOverlay.vue.d.ts +19 -0
- package/dist/src/components/misc/SkipToContent.vue.d.ts +7 -0
- package/dist/src/locale/messages.d.ts +102 -0
- package/dist/src/stores/CommentStore.d.ts +3 -1
- package/dist/src/stores/ParamSdkStore.d.ts +30 -32
- package/dist/src/websocket/commentWebsocket.d.ts +3 -2
- package/dist/src/websocket/wss.d.ts +35 -32
- package/dist/tests-mocks.mjs +3 -2
- package/dist/tests.mjs +3 -2
- package/dist/{useAdvancedParamInit-BfHuaeW7.mjs → useAdvancedParamInit-CdXta4Fd.mjs} +5 -5
- package/dist/{useAppleVideo-BwcLJ1Vj.mjs → useAppleVideo-C0gGIXRR.mjs} +1 -1
- package/dist/{useDayjs-BnrPJRlV.mjs → useDayjs-B6txyR3X.mjs} +1 -1
- package/dist/{useErrorHandler-DnNlEM3z.mjs → useErrorHandler-BPwwQKrG.mjs} +1 -1
- package/dist/{useImageProxy-B5iVux4E.mjs → useImageProxy-XMMC_IC2.mjs} +1 -1
- package/dist/{useOrgaComputed-Cmrkk-ZP.mjs → useOrgaComputed-B0wJ-ALx.mjs} +1 -1
- package/dist/usePresentationItem-D6mrQ7Zp.mjs +104 -0
- package/dist/{useRights-cTVIlBye.mjs → useRights-B-RH3q3n.mjs} +1 -1
- package/dist/{useRubriquesFilterComputed-BrJfTJ4L.mjs → useRubriquesFilterComputed-Bp6L2o9-.mjs} +1 -1
- package/dist/{useRubriquesFilterParam-DMnwILFD.mjs → useRubriquesFilterParam-B05QATg9.mjs} +1 -1
- package/dist/{useSharePlatforms-C0JjDxsf.mjs → useSharePlatforms-CbcKb6yZ.mjs} +26 -26
- package/dist/{useSimplePageParam-X73IKtOi.mjs → useSimplePageParam-DaoVpYoG.mjs} +1 -1
- package/eslint-config.mjs +10 -0
- package/package.json +4 -2
- package/src/api/rubriquesApi.ts +4 -4
- package/src/components/display/RightsIndicator.vue +0 -13
- package/src/components/display/RightsWrapper.vue +1 -16
- package/src/components/display/accessibility/AccessibilityModal.vue +7 -12
- package/src/components/display/comments/CommentInput.vue +2 -1
- package/src/components/display/comments/CommentList.vue +189 -176
- package/src/components/display/comments/CommentSection.vue +160 -73
- package/src/components/display/comments/item/CommentItem.vue +186 -135
- package/src/components/display/comments/item/CommentMoreActions.vue +195 -194
- package/src/components/display/comments/like/LikeButton.vue +47 -45
- package/src/components/display/comments/like/LikeSection.vue +122 -115
- package/src/components/display/emission/EmissionInlineList.vue +118 -116
- package/src/components/display/emission/EmissionItem.vue +35 -28
- package/src/components/display/emission/EmissionList.vue +41 -24
- package/src/components/display/emission/EmissionPresentationItem.vue +3 -0
- package/src/components/display/emission/EmissionPresentationList.vue +1 -0
- package/src/components/display/filter/ProductorSearch.vue +83 -80
- package/src/components/display/list/ListPaginate.vue +51 -37
- package/src/components/display/list/PaginateParams.vue +28 -32
- package/src/components/display/list/PaginateSection.vue +145 -138
- package/src/components/display/list/SwiperList.vue +113 -10
- package/src/components/display/live/LiveList.vue +111 -106
- package/src/components/display/live/RadioItem.vue +17 -12
- package/src/components/display/organisation/OrganisationChooser.vue +2 -1
- package/src/components/display/participant/ParticipantInlineList.vue +52 -49
- package/src/components/display/participant/ParticipantItem.vue +2 -1
- package/src/components/display/playlist/PlaylistItem.vue +19 -15
- package/src/components/display/playlist/PlaylistList.vue +16 -10
- package/src/components/display/playlist/PodcastPlaylistInlineList.vue +68 -61
- package/src/components/display/podcasts/AnimatorsItem.vue +2 -0
- package/src/components/display/podcasts/PodcastFilterList.vue +107 -106
- package/src/components/display/podcasts/PodcastImage.vue +110 -126
- package/src/components/display/podcasts/PodcastInlineList.vue +133 -25
- package/src/components/display/podcasts/PodcastInlineListTemplate.vue +2 -0
- package/src/components/display/podcasts/PodcastItem.vue +111 -64
- package/src/components/display/podcasts/PodcastItemInfo.vue +48 -18
- package/src/components/display/podcasts/PodcastList.vue +198 -194
- package/src/components/display/podcasts/PodcastModuleBox.vue +1 -0
- package/src/components/display/podcasts/PodcastPlayButton.vue +23 -6
- package/src/components/display/podcasts/PodcastPresentationList.vue +1 -0
- package/src/components/display/rubriques/InlineRubriqueList.vue +35 -16
- package/src/components/display/sharing/FormatSwitch.vue +90 -101
- package/src/components/display/sharing/QrCode.vue +4 -8
- package/src/components/display/sharing/ShareAnonymous.vue +207 -205
- package/src/components/display/sharing/ShareNewsletter.vue +3 -7
- package/src/components/display/sharing/SharePlayerColors.vue +5 -12
- package/src/components/display/sharing/ShareSocialsButtons.vue +67 -60
- package/src/components/display/sharing/SubscribeButtons.vue +47 -35
- package/src/components/form/ClassicColorPicker.vue +110 -0
- package/src/components/form/ClassicMultiselect.vue +205 -197
- package/src/components/form/ClassicSelect.vue +100 -80
- package/src/components/form/index.ts +2 -0
- package/src/components/layouts/PresentationItem.vue +18 -12
- package/src/components/misc/ClassicDataTable.vue +3 -3
- package/src/components/misc/ClassicPopover.vue +95 -1
- package/src/components/misc/ClassicSpinner.vue +16 -2
- package/src/components/misc/ExternalLink.vue +51 -0
- package/src/components/misc/LoadingOverlay.vue +86 -0
- package/src/components/misc/RightsScopeMenu.vue +1 -1
- package/src/components/misc/SkipToContent.vue +16 -0
- package/src/components/misc/TopBarMainContent.vue +6 -9
- package/src/components/misc/UserButtonContent.vue +4 -7
- package/src/components/pages/EmissionPage.vue +3 -2
- package/src/components/pages/EmissionsPage.vue +4 -0
- package/src/components/pages/ParticipantPage.vue +2 -1
- package/src/components/pages/PlaylistPage.vue +115 -110
- package/src/components/pages/PodcastPage.vue +3 -0
- package/src/components/pages/PodcastsPage.vue +4 -0
- package/src/components/pages/RubriquePage.vue +1 -0
- package/src/components/pages/SmartLinkPage.vue +10 -7
- package/src/layouts/FullLayout.vue +29 -23
- package/src/locale/de.json +18 -1
- package/src/locale/en.json +18 -1
- package/src/locale/es.json +18 -1
- package/src/locale/fr.json +22 -1
- package/src/locale/it.json +18 -1
- package/src/locale/sl.json +18 -1
- package/src/stores/CommentStore.ts +280 -263
- package/src/stores/ParamSdkStore.ts +39 -37
- package/src/style/_variables.scss +18 -0
- package/src/style/bootstrap.scss +40 -1
- package/src/style/general.scss +3 -3
- package/src/style/share.scss +26 -1
- package/src/websocket/commentWebsocket.ts +56 -54
- package/src/websocket/wss.ts +136 -163
- package/tests/components/display/comments/CommentList.spec.ts +45 -0
- package/tests/components/display/emission/EmissionItem.spec.ts +35 -0
- package/tests/components/display/emission/EmissionPresentationItem.spec.ts +6 -0
- package/tests/components/display/filter/ProductorSearch.spec.ts +20 -0
- package/tests/components/display/list/ListPaginate.spec.ts +67 -0
- package/tests/components/display/list/SwiperList.spec.ts +101 -2
- package/tests/components/display/live/RadioItem.spec.ts +41 -0
- package/tests/components/display/playlist/PlaylistItem.spec.ts +53 -0
- package/tests/components/display/podcasts/AnimatorsItem.spec.ts +18 -0
- package/tests/components/display/podcasts/PodcastInlineList.spec.ts +139 -0
- package/tests/components/display/podcasts/PodcastInlineListTemplate.spec.ts +16 -0
- package/tests/components/display/podcasts/PodcastItem.spec.ts +77 -0
- package/tests/components/display/podcasts/PodcastItemInfo.spec.ts +15 -2
- package/tests/components/display/podcasts/PodcastPlayButton.spec.ts +67 -0
- package/tests/components/display/sharing/FormatSwitch.spec.ts +26 -0
- package/tests/components/display/sharing/ShareAnonymous.spec.ts +61 -0
- package/tests/components/display/sharing/SubscribeButtons.spec.ts +73 -0
- package/tests/components/form/ClassicColorPicker.spec.ts +71 -0
- package/tests/components/form/ClassicSelect.spec.ts +38 -0
- package/tests/components/layouts/PresentationItem.spec.ts +34 -0
- package/tests/components/misc/ClassicPopover.spec.ts +112 -0
- package/tests/components/misc/ExternalLink.spec.ts +49 -0
- package/tests/components/misc/LoadingOverlay.spec.ts +27 -0
- package/tests/components/misc/SkipToContent.spec.ts +19 -0
- package/tests/components/pages/EmissionPage.spec.ts +9 -0
- package/tests/components/pages/EmissionsPage.spec.ts +13 -2
- package/tests/components/pages/PlaylistPage.spec.ts +11 -0
- package/tests/components/pages/PodcastsPage.spec.ts +13 -2
- package/tests/components/pages/SmartLinkPage.spec.ts +13 -0
- package/tests/helper/language.spec.ts +7 -3
- package/tests/mocks/useAdvancedParamInit.ts +2 -1
- package/tests/setup.ts +7 -0
- package/tests/stores/CommentStore.spec.ts +19 -0
- package/tests/utils.ts +5 -2
- package/tests/websocket/wss.spec.ts +153 -0
- package/dist/ClassicPopover-BUb-1WMB.mjs +0 -172
- package/dist/ClassicSelect-BpA0jKN6.mjs +0 -111
- package/dist/CommentItem-DvOTEIy-.mjs +0 -226
- package/dist/CommentList-BbLPCvLW.mjs +0 -201
- package/dist/CommentSection-C9XzY3qd.mjs +0 -79
- package/dist/EmissionItem-BF01x9Av.mjs +0 -116
- package/dist/EmissionList-sDV1AQ-W.mjs +0 -229
- package/dist/EmissionPage-DigMi9wA.mjs +0 -192
- package/dist/EmissionsPage-BUKEieK-.mjs +0 -116
- package/dist/InlineRubriqueList-Cpkf_s1d.mjs +0 -48
- package/dist/LikeButton-Cu8jAJHx.mjs +0 -40
- package/dist/ListPaginate-BnLG7-CH.mjs +0 -153
- package/dist/OrganisationChooser-DNRrjTTk.mjs +0 -135
- package/dist/PaginateParams-Bjz3ZI-5.mjs +0 -75
- package/dist/ParticipantItem-DiHsXYRA.mjs +0 -91
- package/dist/ParticipantPage-B_-BdfWS.mjs +0 -128
- package/dist/PlaylistPage-Dte2m3kv.mjs +0 -132
- package/dist/PodcastImage-C3SZgUEd.mjs +0 -115
- package/dist/PodcastInlineList-DonkcsVN.mjs +0 -123
- package/dist/PodcastItem-fuqcoepp.mjs +0 -151
- package/dist/PodcastPage-BlFm87X1.mjs +0 -591
- package/dist/PodcastPlayButton-Dmxh2zu8.mjs +0 -111
- package/dist/PodcastPlaylistInlineList-1hteCxOy.mjs +0 -63
- package/dist/PodcastSwiperList-MVm_zu3R.mjs +0 -170
- package/dist/PodcastsPage-_dkn-SRQ.mjs +0 -132
- package/dist/QrCode-os6HcLad.mjs +0 -109
- package/dist/RadioList-Dqrw26Hd.mjs +0 -70
- package/dist/ShareAnonymous-CciJmB9R.mjs +0 -199
- package/dist/SharePlayerColors-BpdifsHh.mjs +0 -49
- package/dist/ShareSocialsButtons-D1RLmhei.mjs +0 -102
- package/dist/SmartLinkPage-7DAeNotv.mjs +0 -136
- package/dist/SubscribeButtons-CBJMC8gO.mjs +0 -121
- package/dist/SwiperList-Cv3jJ7Uk.mjs +0 -117
- package/dist/TopBar-CFAgxhT_.mjs +0 -427
- package/dist/UserButtonContent--3-UrgO7.mjs +0 -131
- package/dist/usePresentationItem-bTGZOsYf.mjs +0 -100
- package/src/components/display/podcasts/PodcastSwiperList.vue +0 -160
- package/src/helper/featureHelper.ts +0 -24
|
@@ -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-
|
|
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-
|
|
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-
|
|
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
|
|
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-
|
|
2
|
-
import { t } from "./CommentStore-
|
|
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-
|
|
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-
|
|
2
|
-
import { C as t } from "./AuthStore-
|
|
3
|
-
import { n } from "./CommentItem-
|
|
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 };
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { C as e, O as t, t as n } from "./AuthStore-
|
|
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 {
|
|
4
|
-
import a from "
|
|
5
|
-
import o from "dayjs
|
|
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
|
|
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
|
-
},
|
|
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
|
-
|
|
25
|
-
constructor(e, t) {
|
|
26
|
-
this.url = e, this.endpoint = t, this.
|
|
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 (
|
|
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.
|
|
39
|
+
console.error(e);
|
|
36
40
|
}
|
|
37
41
|
this.processingMsg = !1, this.processQueuedMessages();
|
|
38
42
|
}
|
|
39
43
|
}
|
|
40
44
|
async connect() {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
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
|
-
|
|
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
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
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
|
|
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
|
-
|
|
116
|
-
|
|
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
|
-
|
|
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 =
|
|
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 =
|
|
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
|
-
|
|
262
|
-
|
|
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.
|
|
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 {
|
|
275
|
+
export { l as n, c as r, p as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { O as e, t } from "./AuthStore-
|
|
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-
|
|
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-
|
|
2
|
-
import { t } from "./downloadHelper-
|
|
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";
|