@saooti/octopus-sdk 42.2.1 → 42.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AdvancedSearch-fO5eaqLJ.mjs → AdvancedSearch-C4segSRv.mjs} +6 -6
- package/dist/AdvancedSearch-C4segSRv.mjs.map +1 -0
- package/dist/AdvancedSearch-DD9tnLCw.mjs.map +1 -0
- package/dist/{CategoryFilter-Cu2a0YE9.mjs → CategoryFilter-CpplEC8n.mjs} +5 -5
- package/dist/CategoryFilter-CpplEC8n.mjs.map +1 -0
- package/dist/CategoryFilter-cbQR_ySd.mjs.map +1 -0
- package/dist/{CategoryList-DkxZDrO5.mjs → CategoryList-BTabY3vQ.mjs} +2 -2
- package/dist/CategoryList-BTabY3vQ.mjs.map +1 -0
- package/dist/CategoryList-DHEJoaez.mjs.map +1 -0
- package/dist/CategoryPage-BbsCC3Wr.mjs.map +1 -0
- package/dist/CategoryPage-BxvUmThb.mjs.map +1 -0
- package/dist/{CategoryPage-3HFz1i7_.mjs → CategoryPage-D755GvQZ.mjs} +3 -3
- package/dist/CategoryPage-D755GvQZ.mjs.map +1 -0
- package/dist/CategoryPage-DDBJ2krs.mjs.map +1 -0
- package/dist/CategoryPage-DRCYjOqG.mjs.map +1 -0
- package/dist/ChapteringModal-CSQqCWIk.mjs.map +1 -0
- package/dist/ChapteringModal-Dt8Rsauh.mjs.map +1 -0
- package/dist/{ChapteringModal-C-rdkbSz.mjs → ChapteringModal-ei6ZqVJU.mjs} +2 -2
- package/dist/ChapteringModal-ei6ZqVJU.mjs.map +1 -0
- package/dist/CheckIdentityModal-CNFVJVB_.mjs.map +1 -0
- package/dist/{CheckIdentityModal-N9h8yvhC.mjs → CheckIdentityModal-cpMOuJGv.mjs} +3 -3
- package/dist/CheckIdentityModal-cpMOuJGv.mjs.map +1 -0
- package/dist/ClipboardModal-2ZGF38VB.mjs.map +1 -0
- package/dist/{ClipboardModal-CnieIOJr.mjs → ClipboardModal-DzCUqSph.mjs} +2 -2
- package/dist/ClipboardModal-DzCUqSph.mjs.map +1 -0
- package/dist/CommentInput-CV46HJN8.mjs.map +1 -0
- package/dist/{CommentInput-CEioyN7X.mjs → CommentInput-D_p03L68.mjs} +6 -6
- package/dist/CommentInput-D_p03L68.mjs.map +1 -0
- package/dist/CommentInput-DwRbD74k.mjs.map +1 -0
- package/dist/CommentItem-B6_XUaFR.mjs.map +1 -0
- package/dist/CommentItem-CbbmwVXB.mjs.map +1 -0
- package/dist/CommentItem-DfKKazY0.mjs.map +1 -0
- package/dist/CommentItem-JRjSLmui.mjs.map +1 -0
- package/dist/{CommentItem-BefuRoxQ.mjs → CommentItem-MFN0JNW1.mjs} +8 -8
- package/dist/CommentItem-MFN0JNW1.mjs.map +1 -0
- package/dist/{CommentList-BsPwzqkf.mjs → CommentList-BkKy5ftL.mjs} +3 -3
- package/dist/CommentList-BkKy5ftL.mjs.map +1 -0
- package/dist/CommentList-BrP71Ug4.mjs.map +1 -0
- package/dist/CommentList-Ng_YXr74.mjs.map +1 -0
- package/dist/CommentList-tKA7NFHM.mjs.map +1 -0
- package/dist/CommentList-yarlxaXg.mjs.map +1 -0
- package/dist/{CommentMoreActions-C86aqy8M.mjs → CommentMoreActions-CBSvuOGJ.mjs} +5 -5
- package/dist/CommentMoreActions-CBSvuOGJ.mjs.map +1 -0
- package/dist/CommentMoreActions-D7guBdA7.mjs.map +1 -0
- package/dist/CommentName-frCHmngc.mjs.map +1 -0
- package/dist/{CommentName-DT1QyPi3.mjs → CommentName-zTMSdG4d.mjs} +3 -3
- package/dist/CommentName-zTMSdG4d.mjs.map +1 -0
- package/dist/{CommentParentInfo-9Fe-3e6c.mjs → CommentParentInfo-CRTYPb8P.mjs} +2 -2
- package/dist/CommentParentInfo-CRTYPb8P.mjs.map +1 -0
- package/dist/CommentParentInfo-D8qquB6k.mjs.map +1 -0
- package/dist/CommentParentInfo-DC4Q6wNO.mjs.map +1 -0
- package/dist/CommentParentInfo-temUvqNv.mjs.map +1 -0
- package/dist/{CommentPlayer-CiWQM64Y.mjs → CommentPlayer-BMuLmZdI.mjs} +3 -3
- package/dist/CommentPlayer-BMuLmZdI.mjs.map +1 -0
- package/dist/CommentPlayer-BPA_lEoE.mjs.map +1 -0
- package/dist/CommentPlayer-CUNi1Lxv.mjs.map +1 -0
- package/dist/{CommentSection-Be38YIkC.mjs → CommentSection-B91sHMDT.mjs} +5 -5
- package/dist/CommentSection-B91sHMDT.mjs.map +1 -0
- package/dist/CommentSection-CpYd7i8U.mjs.map +1 -0
- package/dist/CommentSection-CrqweNX4.mjs.map +1 -0
- package/dist/CommentSection-G8rMWPrM.mjs.map +1 -0
- package/dist/CommentSection-xjY6h7nn.mjs.map +1 -0
- package/dist/CommentStore-9WWuGwIj.mjs.map +1 -0
- package/dist/{CommentStore-Dv7j94Uo.mjs → CommentStore-ClU882RI.mjs} +2 -2
- package/dist/CommentStore-ClU882RI.mjs.map +1 -0
- package/dist/ContractPreviewModal-C4_20E99.mjs.map +1 -0
- package/dist/{ContractPreviewModal-CPT6bDpJ.mjs → ContractPreviewModal-Dn5MeLFo.mjs} +2 -2
- package/dist/ContractPreviewModal-Dn5MeLFo.mjs.map +1 -0
- package/dist/{DownloadPodcastButton-6D8qNAkT.mjs → DownloadPodcastButton-BI_sZWcJ.mjs} +3 -3
- package/dist/DownloadPodcastButton-BI_sZWcJ.mjs.map +1 -0
- package/dist/DownloadPodcastButton-CSRcg8Nl.mjs.map +1 -0
- package/dist/EditCommentModal-KAP1l9RK.mjs.map +1 -0
- package/dist/{EditCommentModal-aAcjhc0v.mjs → EditCommentModal-RbVMVDOp.mjs} +2 -2
- package/dist/EditCommentModal-RbVMVDOp.mjs.map +1 -0
- package/dist/{EmissionGroupChooser-Djt1IZg7.mjs → EmissionGroupChooser-BXqM4iXP.mjs} +2 -2
- package/dist/EmissionGroupChooser-BXqM4iXP.mjs.map +1 -0
- package/dist/EmissionGroupChooser-CO1WBOUi.mjs.map +1 -0
- package/dist/EmissionInlineList-B-r4eI3D.mjs.map +1 -0
- package/dist/{EmissionInlineList-BcrKpW8S.mjs → EmissionInlineList-Cy1lbYKY.mjs} +6 -6
- package/dist/EmissionInlineList-Cy1lbYKY.mjs.map +1 -0
- package/dist/EmissionInlineList-IKPyjBTQ.mjs.map +1 -0
- package/dist/EmissionItem-982WkWkg.mjs.map +1 -0
- package/dist/EmissionItem-B8q9hnN5.mjs.map +1 -0
- package/dist/{EmissionItem-DfkPRcPz.mjs → EmissionItem-BwXm3nNx.mjs} +5 -5
- package/dist/EmissionItem-BwXm3nNx.mjs.map +1 -0
- package/dist/EmissionItem-ZDlQ7B9S.mjs.map +1 -0
- package/dist/{EmissionList-DSuGp0JO.mjs → EmissionList-C8OxrndH.mjs} +6 -6
- package/dist/EmissionList-C8OxrndH.mjs.map +1 -0
- package/dist/EmissionList-C9-UUWMV.mjs.map +1 -0
- package/dist/EmissionList-Dk9xS4s_.mjs.map +1 -0
- package/dist/EmissionList-nrY7ASws.mjs.map +1 -0
- package/dist/EmissionList-vH4NX1NW.mjs.map +1 -0
- package/dist/EmissionPage-BHAPlZw-.mjs.map +1 -0
- package/dist/EmissionPage-B_2JalGG.mjs.map +1 -0
- package/dist/EmissionPage-D4PjyZzN.mjs.map +1 -0
- package/dist/EmissionPage-HGPCRuZD.mjs.map +1 -0
- package/dist/{EmissionPage-Bo9fK8HE.mjs → EmissionPage-nCNIiWCo.mjs} +25 -18
- package/dist/EmissionPage-nCNIiWCo.mjs.map +1 -0
- package/dist/EmissionPlayerItem-B_wRzikv.mjs.map +1 -0
- package/dist/{EmissionPlayerItem-D21OrPmm.mjs → EmissionPlayerItem-Degbnz9F.mjs} +5 -5
- package/dist/EmissionPlayerItem-Degbnz9F.mjs.map +1 -0
- package/dist/EmissionPlayerItem-Dkd0o1ee.mjs.map +1 -0
- package/dist/EmissionPresentationItem-BQ7HhOlC.mjs.map +1 -0
- package/dist/{EmissionPresentationItem-CwDIBurH.mjs → EmissionPresentationItem-CwBGPIgz.mjs} +2 -2
- package/dist/EmissionPresentationItem-CwBGPIgz.mjs.map +1 -0
- package/dist/{EmissionPresentationList-CASI5laP.mjs → EmissionPresentationList-BKI5mQdw.mjs} +4 -4
- package/dist/EmissionPresentationList-BKI5mQdw.mjs.map +1 -0
- package/dist/EmissionPresentationList-CLli23rs.mjs.map +1 -0
- package/dist/EmissionsPage-CO2xgVOR.mjs.map +1 -0
- package/dist/{EmissionsPage-Bw8Qtzlk.mjs → EmissionsPage-Cj7su56Z.mjs} +5 -5
- package/dist/EmissionsPage-Cj7su56Z.mjs.map +1 -0
- package/dist/EmissionsPage-DJdy0re_.mjs.map +1 -0
- package/dist/EmissionsPage-DR9r7_gH.mjs.map +1 -0
- package/dist/EmissionsPage-OVNfLKFu.mjs.map +1 -0
- package/dist/Error403Page-Ch535DfU.mjs.map +1 -0
- package/dist/{Error403Page-nTYCHwTi.mjs → Error403Page-DW2kK8ZZ.mjs} +2 -2
- package/dist/Error403Page-DW2kK8ZZ.mjs.map +1 -0
- package/dist/FooterGarSection-B76j-WZS.mjs.map +1 -0
- package/dist/{FooterGarSection-Cod8Key5.mjs → FooterGarSection-DVdF5RFq.mjs} +4 -4
- package/dist/FooterGarSection-DVdF5RFq.mjs.map +1 -0
- package/dist/FooterSection-BQiO-D1p.mjs.map +1 -0
- package/dist/{FooterSection-4WXBZj7c.mjs → FooterSection-CpYI9OGH.mjs} +5 -5
- package/dist/FooterSection-CpYI9OGH.mjs.map +1 -0
- package/dist/{HomeDropdown-CVe7yF6Y.mjs → HomeDropdown-D7FezAO8.mjs} +3 -3
- package/dist/HomeDropdown-D7FezAO8.mjs.map +1 -0
- package/dist/HomeDropdown-DQoMvBgU.mjs.map +1 -0
- package/dist/HomePage-BWs_az04.mjs.map +1 -0
- package/dist/HomePage-CMPKjRFA.mjs.map +1 -0
- package/dist/HomePage-CsXaeTCW.mjs.map +1 -0
- package/dist/HomePage-NH7OxpA_.mjs.map +1 -0
- package/dist/{HomePage-DupmOw6F.mjs → HomePage-vo6At2bL.mjs} +4 -4
- package/dist/HomePage-vo6At2bL.mjs.map +1 -0
- package/dist/{PodcastRubriqueList-BeTq7IRu.mjs → InlineRubriqueList-3ZVN9GJk.mjs} +14 -12
- package/dist/InlineRubriqueList-3ZVN9GJk.mjs.map +1 -0
- package/dist/InlineRubriqueList-D03VCzg8.mjs.map +1 -0
- package/dist/LikeSection-DtthHZj6.mjs.map +1 -0
- package/dist/{LikeSection-DAid96g9.mjs → LikeSection-jKjhnj88.mjs} +4 -4
- package/dist/LikeSection-jKjhnj88.mjs.map +1 -0
- package/dist/{ListPaginate-C9saxru9.mjs → ListPaginate-BXNnw_I8.mjs} +3 -3
- package/dist/ListPaginate-BXNnw_I8.mjs.map +1 -0
- package/dist/ListPaginate-COsL4t78.mjs.map +1 -0
- package/dist/ListPaginate-JuC0L113.mjs.map +1 -0
- package/dist/LiveHorizontalList-CFs9mGYs.mjs.map +1 -0
- package/dist/LiveHorizontalList-CWBQkS78.mjs.map +1 -0
- package/dist/LiveHorizontalList-DwPVmnvH.mjs.map +1 -0
- package/dist/LiveHorizontalList-jducN58c.mjs.map +1 -0
- package/dist/{LiveHorizontalList-OArlzudf.mjs → LiveHorizontalList-wgXkgFLv.mjs} +4 -4
- package/dist/LiveHorizontalList-wgXkgFLv.mjs.map +1 -0
- package/dist/LiveList-Bp-feBp9.mjs.map +1 -0
- package/dist/LiveList-ByyCyWUl.mjs.map +1 -0
- package/dist/{LiveList-EqIo_cye.mjs → LiveList-CA5n6VeN.mjs} +6 -6
- package/dist/LiveList-CA5n6VeN.mjs.map +1 -0
- package/dist/LiveList-Cah5VFun.mjs.map +1 -0
- package/dist/LiveList-DTAnN32j.mjs.map +1 -0
- package/dist/LivesPage-CNPMz3xS.mjs.map +1 -0
- package/dist/{LivesPage-BmHiBN8A.mjs → LivesPage-CTjXgU-Y.mjs} +5 -5
- package/dist/LivesPage-CTjXgU-Y.mjs.map +1 -0
- package/dist/LivesPage-CdhWyikV.mjs.map +1 -0
- package/dist/LivesPage-CwvFSl6G.mjs.map +1 -0
- package/dist/LivesPage-DyIfBEPX.mjs.map +1 -0
- package/dist/{MapPage-DcXKTGGh.mjs → MapPage-C_nGG0_5.mjs} +3 -3
- package/dist/MapPage-C_nGG0_5.mjs.map +1 -0
- package/dist/MapPage-DXV40zWN.mjs.map +1 -0
- package/dist/{MobileMenu-C0IYBWwF.mjs → MobileMenu-C95GAIm0.mjs} +4 -4
- package/dist/MobileMenu-C95GAIm0.mjs.map +1 -0
- package/dist/MobileMenu-CfHqWqsL.mjs.map +1 -0
- package/dist/NewsletterModal-4Lei4Y59.mjs.map +1 -0
- package/dist/{NewsletterModal-BzlUlz3P.mjs → NewsletterModal-B6ky7DBC.mjs} +2 -2
- package/dist/NewsletterModal-B6ky7DBC.mjs.map +1 -0
- package/dist/OrganisationChooser-BufDZsSd.mjs.map +1 -0
- package/dist/{OrganisationChooser-Bm4zqqCH.mjs → OrganisationChooser-CA0_LiTH.mjs} +3 -3
- package/dist/OrganisationChooser-CA0_LiTH.mjs.map +1 -0
- package/dist/{OrganisationChooserLight-BQ9B91mO.mjs → OrganisationChooserLight-BwG5mNdW.mjs} +2 -2
- package/dist/OrganisationChooserLight-BwG5mNdW.mjs.map +1 -0
- package/dist/OrganisationChooserLight-C2oGlc9Z.mjs.map +1 -0
- package/dist/{PageNotFound-BVQ8M8sO.mjs → PageNotFound-BHpjyNDo.mjs} +3 -3
- package/dist/PageNotFound-BHpjyNDo.mjs.map +1 -0
- package/dist/PageNotFound-IMnfLZqX.mjs.map +1 -0
- package/dist/{ParticipantInlineList-BQtQZFW1.mjs → ParticipantInlineList-A8UwjE4m.mjs} +5 -5
- package/dist/ParticipantInlineList-A8UwjE4m.mjs.map +1 -0
- package/dist/ParticipantInlineList-BpVOpEBm.mjs.map +1 -0
- package/dist/ParticipantInlineList-C5jWxedt.mjs.map +1 -0
- package/dist/ParticipantInlineList-C78uhskc.mjs.map +1 -0
- package/dist/ParticipantItem--Wv16z3V.mjs.map +1 -0
- package/dist/ParticipantItem-B3k4mf2V.mjs.map +1 -0
- package/dist/ParticipantItem-DAPOMGZD.mjs.map +1 -0
- package/dist/{ParticipantItem-EDPkxTT-.mjs → ParticipantItem-Szz8WXI6.mjs} +4 -4
- package/dist/ParticipantItem-Szz8WXI6.mjs.map +1 -0
- package/dist/ParticipantPage-BbKUwNKL.mjs.map +1 -0
- package/dist/ParticipantPage-Byq-9aCQ.mjs.map +1 -0
- package/dist/ParticipantPage-D4RVBlE-.mjs.map +1 -0
- package/dist/ParticipantPage-DfLxuZf-.mjs.map +1 -0
- package/dist/{ParticipantPage-BF-s1oof.mjs → ParticipantPage-y3OoBod8.mjs} +9 -9
- package/dist/ParticipantPage-y3OoBod8.mjs.map +1 -0
- package/dist/{ParticipantsPage-Bzt8Hxah.mjs → ParticipantsPage--BxmzVwz.mjs} +7 -7
- package/dist/ParticipantsPage--BxmzVwz.mjs.map +1 -0
- package/dist/ParticipantsPage-BEPHaCy5.mjs.map +1 -0
- package/dist/ParticipantsPage-BlQavFT6.mjs.map +1 -0
- package/dist/ParticipantsPage-D8ja25F9.mjs.map +1 -0
- package/dist/ParticipantsPage-R8LVrDFY.mjs.map +1 -0
- package/dist/{PlayerAnonymousModal-CbrqO1hs.mjs → PlayerAnonymousModal-BGPpTBPW.mjs} +3 -3
- package/dist/PlayerAnonymousModal-BGPpTBPW.mjs.map +1 -0
- package/dist/PlayerAnonymousModal-BW239BiA.mjs.map +1 -0
- package/dist/PlayerCompact-BFC95d7Y.mjs.map +1 -0
- package/dist/PlayerCompact-C-WCTFZN.mjs.map +1 -0
- package/dist/{PlayerCompact-BtKfz384.mjs → PlayerCompact-DnJns8S2.mjs} +4 -4
- package/dist/PlayerCompact-DnJns8S2.mjs.map +1 -0
- package/dist/PlayerComponent-B8AGq9pg.mjs.map +1 -0
- package/dist/{PlayerComponent-CxNkDcFc.mjs → PlayerComponent-BRBrXVjI.mjs} +27 -39
- package/dist/PlayerComponent-BRBrXVjI.mjs.map +1 -0
- package/dist/PlayerComponent-BbvNS7sy.mjs.map +1 -0
- package/dist/PlayerComponent-By_JAwx_.mjs.map +1 -0
- package/dist/PlayerComponent-C425OWjX.mjs.map +1 -0
- package/dist/PlayerComponent-C5PNQ3TW.mjs.map +1 -0
- package/dist/PlayerComponent-Cnk_vePj.mjs.map +1 -0
- package/dist/PlayerComponent-CovfufPB.mjs.map +1 -0
- package/dist/PlayerComponent-DC4jQIwE.mjs.map +1 -0
- package/dist/PlayerComponent-DEUmVv0M.mjs.map +1 -0
- package/dist/PlayerComponent-DOXY0vL0.mjs.map +1 -0
- package/dist/PlayerComponent-DajZbHv7.mjs.map +1 -0
- package/dist/PlayerComponent-DejSC061.mjs.map +1 -0
- package/dist/PlayerComponent-p7W2UNk6.mjs.map +1 -0
- package/dist/PlayerLarge-3zzN7qom.mjs.map +1 -0
- package/dist/{PlayerLarge-BH6BLQxk.mjs → PlayerLarge-B97rRmrJ.mjs} +12 -10
- package/dist/PlayerLarge-B97rRmrJ.mjs.map +1 -0
- package/dist/PlayerLarge-BzwrEgVR.mjs.map +1 -0
- package/dist/PlayerLarge-CLOwDO6Q.mjs.map +1 -0
- package/dist/PlayerLarge-Chv7pMOU.mjs.map +1 -0
- package/dist/PlayerLarge-CkWGaDiY.mjs.map +1 -0
- package/dist/PlayerLarge-D0NMzCRi.mjs.map +1 -0
- package/dist/PlayerLarge-D3obSnYt.mjs.map +1 -0
- package/dist/PlayerLarge-DLGXpE3K.mjs.map +1 -0
- package/dist/PlayerLarge-QtUrqNm5.mjs.map +1 -0
- package/dist/PlayerLarge-juuY9yOX.mjs.map +1 -0
- package/dist/PlayerLarge-n7zyM6b_.mjs.map +1 -0
- package/dist/PlayerLarge-o4FVk0QB.mjs.map +1 -0
- package/dist/PlayerLarge-tMW3v2La.mjs.map +1 -0
- package/dist/PlayerPlayButton-CTu0337E.mjs.map +1 -0
- package/dist/PlayerPlayButton-CfJWIpoP.mjs.map +1 -0
- package/dist/{PlayerPlayButton-DT2OdqnI.mjs → PlayerPlayButton-zKdHGzFr.mjs} +5 -5
- package/dist/PlayerPlayButton-zKdHGzFr.mjs.map +1 -0
- package/dist/{PlayerProgressBar-CSYnPjZb.mjs → PlayerProgressBar-BG5NG596.mjs} +4 -4
- package/dist/PlayerProgressBar-BG5NG596.mjs.map +1 -0
- package/dist/PlayerProgressBar-Cjv8JVY2.mjs.map +1 -0
- package/dist/PlayerProgressBar-Co0_YEF3.mjs.map +1 -0
- package/dist/PlayerStore-B-L2PQ_b.mjs.map +1 -0
- package/dist/PlayerStore-C2XzSrF5.mjs.map +1 -0
- package/dist/{PlayerStore-DukkcHI_.mjs → PlayerStore-vYmnOEA_.mjs} +3 -3
- package/dist/PlayerStore-vYmnOEA_.mjs.map +1 -0
- package/dist/PlayerVideo-DD6NaGkU.mjs.map +1 -0
- package/dist/{PlayerVideo-_Uz00K_T.mjs → PlayerVideo-Ds0oYeTC.mjs} +5 -5
- package/dist/PlayerVideo-Ds0oYeTC.mjs.map +1 -0
- package/dist/PlayerVideo-cYHZOYMv.mjs.map +1 -0
- package/dist/PlayerVideoDigiteka-BPJdJNEB.mjs.map +1 -0
- package/dist/{PlayerVideoDigiteka-CjfuxXBF.mjs → PlayerVideoDigiteka-C7xb0ndg.mjs} +3 -3
- package/dist/PlayerVideoDigiteka-C7xb0ndg.mjs.map +1 -0
- package/dist/PlayerVideoDigiteka-oqtYXqYK.mjs.map +1 -0
- package/dist/PlayerVideoHls-CB4psqbz.mjs.map +1 -0
- package/dist/{PlayerVideoHls-Dms7iTSo.mjs → PlayerVideoHls-xSNqzBEw.mjs} +4 -4
- package/dist/PlayerVideoHls-xSNqzBEw.mjs.map +1 -0
- package/dist/PlayerVideoHls-zNbegJFp.mjs.map +1 -0
- package/dist/PlaylistPage-BUj1Lzfp.mjs.map +1 -0
- package/dist/PlaylistPage-BhcJkM15.mjs.map +1 -0
- package/dist/PlaylistPage-BsHMB2nn.mjs.map +1 -0
- package/dist/{PlaylistPage-CQX0LhXn.mjs → PlaylistPage-D4mcAo00.mjs} +12 -12
- package/dist/PlaylistPage-D4mcAo00.mjs.map +1 -0
- package/dist/PlaylistPage-DjAgejp8.mjs.map +1 -0
- package/dist/PlaylistsPage-B3V5-WT9.mjs.map +1 -0
- package/dist/PlaylistsPage-DSjvWTw5.mjs.map +1 -0
- package/dist/{PlaylistsPage-Bd-u4qlc.mjs → PlaylistsPage-Dr6HKHf8.mjs} +7 -7
- package/dist/PlaylistsPage-Dr6HKHf8.mjs.map +1 -0
- package/dist/PodcastFilterList-C-8AF1Dn.mjs.map +1 -0
- package/dist/{PodcastFilterList-DkH6bqv_.mjs → PodcastFilterList-CYwPiGko.mjs} +3 -3
- package/dist/PodcastFilterList-CYwPiGko.mjs.map +1 -0
- package/dist/PodcastFilterList-C_d1SyTB.mjs.map +1 -0
- package/dist/PodcastFilterList-ClMsIUaO.mjs.map +1 -0
- package/dist/PodcastFilterList-DBS0kvW6.mjs.map +1 -0
- package/dist/PodcastImage-B8o3T5zK.mjs.map +1 -0
- package/dist/{PodcastImage-BtxcPlrh.mjs → PodcastImage-Bs1lpubL.mjs} +4 -4
- package/dist/PodcastImage-Bs1lpubL.mjs.map +1 -0
- package/dist/PodcastImage-DBB5689n.mjs.map +1 -0
- package/dist/PodcastImage-DNLZH0dY.mjs.map +1 -0
- package/dist/PodcastImage-DrV8oxG8.mjs.map +1 -0
- package/dist/{PodcastInlineList-CVWfH5np.mjs → PodcastInlineList-B7-2QswT.mjs} +2 -2
- package/dist/PodcastInlineList-B7-2QswT.mjs.map +1 -0
- package/dist/PodcastInlineList-BVMV6Wvd.mjs.map +1 -0
- package/dist/PodcastInlineList-BXPpF0YD.mjs.map +1 -0
- package/dist/PodcastInlineList-CLjO1SpD.mjs.map +1 -0
- package/dist/PodcastInlineList-Cf5YF0j9.mjs.map +1 -0
- package/dist/PodcastInlineListTemplate-BX0tXOFx.mjs.map +1 -0
- package/dist/{PodcastInlineListTemplate-BWw1Ix-7.mjs → PodcastInlineListTemplate-DCWn3r7s.mjs} +4 -4
- package/dist/PodcastInlineListTemplate-DCWn3r7s.mjs.map +1 -0
- package/dist/PodcastIsPlaying-BG1_FgVX.mjs.map +1 -0
- package/dist/{PodcastIsPlaying-B7YVeSyB.mjs → PodcastIsPlaying-BsObdQGR.mjs} +2 -2
- package/dist/PodcastIsPlaying-BsObdQGR.mjs.map +1 -0
- package/dist/PodcastIsPlaying-Csd-C2jr.mjs.map +1 -0
- package/dist/PodcastItem-CGmEwYT4.mjs.map +1 -0
- package/dist/PodcastItem-CN6gwARQ.mjs.map +1 -0
- package/dist/PodcastItem-CdLjZKxf.mjs.map +1 -0
- package/dist/PodcastItem-D1MwHzhE.mjs.map +1 -0
- package/dist/{PodcastItem-CFk8MX9D.mjs → PodcastItem-_8ErwIDG.mjs} +7 -7
- package/dist/PodcastItem-_8ErwIDG.mjs.map +1 -0
- package/dist/PodcastList-BXla7F3u.mjs.map +1 -0
- package/dist/PodcastList-BqE8dwdc.mjs.map +1 -0
- package/dist/PodcastList-BvC6iOS6.mjs.map +1 -0
- package/dist/PodcastList-CRwA-s7F.mjs.map +1 -0
- package/dist/PodcastList-CVFr9WNS.mjs.map +1 -0
- package/dist/PodcastList-DZKxDulS.mjs.map +1 -0
- package/dist/{PodcastList-BLXPFjvL.mjs → PodcastList-DgLQjL0d.mjs} +6 -6
- package/dist/PodcastList-DgLQjL0d.mjs.map +1 -0
- package/dist/{PodcastList-c0Iwzakm.mjs → PodcastList-DhKeiBbv.mjs} +5 -5
- package/dist/PodcastList-DhKeiBbv.mjs.map +1 -0
- package/dist/PodcastList-Dtq6kEG4.mjs.map +1 -0
- package/dist/PodcastList-Dx-mo7Wo.mjs.map +1 -0
- package/dist/{PodcastPage-C_d9FaS7.mjs → PodcastPage-C5OCwW8q.mjs} +23 -23
- package/dist/PodcastPage-C5OCwW8q.mjs.map +1 -0
- package/dist/PodcastPage-CsVqOGWc.mjs.map +1 -0
- package/dist/PodcastPage-DQInD9ry.mjs.map +1 -0
- package/dist/PodcastPage-Dka9GEzi.mjs.map +1 -0
- package/dist/PodcastPage-acKIH0vO.mjs.map +1 -0
- package/dist/PodcastPlayBar-AgtR8Ia9.mjs.map +1 -0
- package/dist/PodcastPlayBar-D7CyLEM4.mjs.map +1 -0
- package/dist/{PodcastPlayBar-WjGn_KlZ.mjs → PodcastPlayBar-DC5HCx76.mjs} +4 -4
- package/dist/PodcastPlayBar-DC5HCx76.mjs.map +1 -0
- package/dist/PodcastPlayBasicButton-DHYxw3NX.mjs.map +1 -0
- package/dist/{PodcastPlayBasicButton-BNKlqhGR.mjs → PodcastPlayBasicButton-PJHza4d_.mjs} +2 -2
- package/dist/PodcastPlayBasicButton-PJHza4d_.mjs.map +1 -0
- package/dist/PodcastPlayBasicButton-gK82n3YL.mjs.map +1 -0
- package/dist/{PodcastPlayButton-B9hWbPEk.mjs → PodcastPlayButton-1eaXWTlG.mjs} +4 -4
- package/dist/PodcastPlayButton-1eaXWTlG.mjs.map +1 -0
- package/dist/PodcastPlayButton-Bosq5ozq.mjs.map +1 -0
- package/dist/PodcastPlayButton-DIQi57Oh.mjs.map +1 -0
- package/dist/PodcastPlayButton-DcjbCnlT.mjs.map +1 -0
- package/dist/PodcastPlayButton-DgSCyhrd.mjs.map +1 -0
- package/dist/PodcastPlaylistInlineList-C0HZum5z.mjs.map +1 -0
- package/dist/PodcastPlaylistInlineList-CSziI2j4.mjs.map +1 -0
- package/dist/PodcastPlaylistInlineList-CvX2rauY.mjs.map +1 -0
- package/dist/PodcastPlaylistInlineList-H_rnCHag.mjs.map +1 -0
- package/dist/{PodcastPlaylistInlineList-_csxbYAx.mjs → PodcastPlaylistInlineList-XTbhC8OJ.mjs} +5 -5
- package/dist/PodcastPlaylistInlineList-XTbhC8OJ.mjs.map +1 -0
- package/dist/{PodcastPresentationList-BD8XmnW0.mjs → PodcastPresentationList-BUl5Rq83.mjs} +5 -5
- package/dist/PodcastPresentationList-BUl5Rq83.mjs.map +1 -0
- package/dist/PodcastPresentationList-BvkEDbtG.mjs.map +1 -0
- package/dist/PodcastPresentationList-C0n-xr5w.mjs.map +1 -0
- package/dist/PodcastPresentationList-CnrMkINf.mjs.map +1 -0
- package/dist/PodcastPresentationList-DC-Oi_eK.mjs.map +1 -0
- package/dist/PodcastProgressBar-CP-0ptRF.mjs.map +1 -0
- package/dist/{PodcastProgressBar-B3XOeeJx.mjs → PodcastProgressBar-VG-mRcpi.mjs} +4 -4
- package/dist/PodcastProgressBar-VG-mRcpi.mjs.map +1 -0
- package/dist/PodcastProgressBar-jY43GoFx.mjs.map +1 -0
- package/dist/PodcastRawTranscript-BAu-dt2V.mjs.map +1 -0
- package/dist/{PodcastRawTranscript-D0Nm7jGM.mjs → PodcastRawTranscript-Bf6f5yNd.mjs} +3 -3
- package/dist/PodcastRawTranscript-Bf6f5yNd.mjs.map +1 -0
- package/dist/{PodcastSwiperList-DJ0O3dqM.mjs → PodcastSwiperList-BhulNkN-.mjs} +5 -5
- package/dist/PodcastSwiperList-BhulNkN-.mjs.map +1 -0
- package/dist/PodcastSwiperList-CGeumBPj.mjs.map +1 -0
- package/dist/PodcastSwiperList-CzUkS6M6.mjs.map +1 -0
- package/dist/PodcastSwiperList-DLKOAjUS.mjs.map +1 -0
- package/dist/PodcastSwiperList-DaTHwrHm.mjs.map +1 -0
- package/dist/PodcastmakerHeader-BZT-U0KX.mjs.map +1 -0
- package/dist/{PodcastmakerHeader-DAATtOG_.mjs → PodcastmakerHeader-Df0g2dCr.mjs} +2 -2
- package/dist/PodcastmakerHeader-Df0g2dCr.mjs.map +1 -0
- package/dist/PodcastsPage-B-Qzlif0.mjs.map +1 -0
- package/dist/PodcastsPage-BoK55Z9G.mjs.map +1 -0
- package/dist/PodcastsPage-CTzbr2VD.mjs.map +1 -0
- package/dist/{PodcastsPage-ZhEVoMp1.mjs → PodcastsPage-DSJUPRZE.mjs} +5 -5
- package/dist/PodcastsPage-DSJUPRZE.mjs.map +1 -0
- package/dist/PodcastsPage-Jg_jAix6.mjs.map +1 -0
- package/dist/{ProductorSearch-xs0kzX_E.mjs → ProductorSearch-BTj9gIOs.mjs} +3 -3
- package/dist/ProductorSearch-BTj9gIOs.mjs.map +1 -0
- package/dist/ProductorSearch-ziDbxrDd.mjs.map +1 -0
- package/dist/ProgressBar-BOq9RfZ2.mjs.map +1 -0
- package/dist/{ProgressBar-0DSoUTwB.mjs → ProgressBar-BVc0_6Lv.mjs} +2 -2
- package/dist/ProgressBar-BVc0_6Lv.mjs.map +1 -0
- package/dist/ProgressBar-Cgt2PqnO.mjs.map +1 -0
- package/dist/QrCode-DNiPIFIA.mjs.map +1 -0
- package/dist/{QrCode-CUP2O18d.mjs → QrCode-MCv4t_Bn.mjs} +2 -2
- package/dist/QrCode-MCv4t_Bn.mjs.map +1 -0
- package/dist/{QrCodeModal-DXBCuki7.mjs → QrCodeModal-Be8E0JlC.mjs} +2 -2
- package/dist/QrCodeModal-Be8E0JlC.mjs.map +1 -0
- package/dist/QrCodeModal-DYDKLLuw.mjs.map +1 -0
- package/dist/RadioCurrently-BJOmCSby.mjs.map +1 -0
- package/dist/RadioCurrently-CZePLInZ.mjs.map +1 -0
- package/dist/{RadioCurrently-D5M81oIX.mjs → RadioCurrently-DWySwV64.mjs} +4 -4
- package/dist/RadioCurrently-DWySwV64.mjs.map +1 -0
- package/dist/RadioHistory-7EGvEAMx.mjs.map +1 -0
- package/dist/RadioHistory-BdMa013x.mjs.map +1 -0
- package/dist/{RadioHistory-BgOve4jk.mjs → RadioHistory-DlQFZYp2.mjs} +3 -3
- package/dist/RadioHistory-DlQFZYp2.mjs.map +1 -0
- package/dist/{RadioImage-CUTRr3DL.mjs → RadioImage-BIe2KpG_.mjs} +5 -5
- package/dist/RadioImage-BIe2KpG_.mjs.map +1 -0
- package/dist/RadioImage-CXFZXN1N.mjs.map +1 -0
- package/dist/RadioImage-CpJmuc8a.mjs.map +1 -0
- package/dist/{RadioList-CwzOFHc1.mjs → RadioList-B23gsiEF.mjs} +5 -5
- package/dist/RadioList-B23gsiEF.mjs.map +1 -0
- package/dist/RadioList-BwzgNcMO.mjs.map +1 -0
- package/dist/RadioList-KvAacjmD.mjs.map +1 -0
- package/dist/RadioPage-CM_4A1AQ.mjs.map +1 -0
- package/dist/RadioPage-DkBL81mI.mjs.map +1 -0
- package/dist/{RadioPage-DVflzCV-.mjs → RadioPage-Jg2kmtna.mjs} +11 -11
- package/dist/RadioPage-Jg2kmtna.mjs.map +1 -0
- package/dist/{RadioPlanning-CJ7Qqyhs.mjs → RadioPlanning-2aWTnbZb.mjs} +3 -3
- package/dist/RadioPlanning-2aWTnbZb.mjs.map +1 -0
- package/dist/RadioPlanning-DHxcBVQo.mjs.map +1 -0
- package/dist/RadioProgressBar-BHAawrHe.mjs.map +1 -0
- package/dist/RadioProgressBar-CPjLAoPB.mjs.map +1 -0
- package/dist/{RadioProgressBar-BmJbzzQA.mjs → RadioProgressBar-yIz1oI5d.mjs} +2 -2
- package/dist/RadioProgressBar-yIz1oI5d.mjs.map +1 -0
- package/dist/RecaptchaModal-DKugsU7h.mjs.map +1 -0
- package/dist/{RecaptchaModal-DX9rAHUg.mjs → RecaptchaModal-dfMCfebx.mjs} +2 -2
- package/dist/RecaptchaModal-dfMCfebx.mjs.map +1 -0
- package/dist/ReportAbuseModal-Bxr7NTvH.mjs.map +1 -0
- package/dist/{ReportAbuseModal-CYCRaFAY.mjs → ReportAbuseModal-DZKRbYXJ.mjs} +4 -4
- package/dist/ReportAbuseModal-DZKRbYXJ.mjs.map +1 -0
- package/dist/RightsIndicator-BgW0q3af.mjs.map +1 -0
- package/dist/RightsIndicator-BtzqiPWc.mjs.map +1 -0
- package/dist/{RightsIndicator-qIU4_wiF.mjs → RightsIndicator-D5I3DOfO.mjs} +2 -2
- package/dist/RightsIndicator-D5I3DOfO.mjs.map +1 -0
- package/dist/RightsIndicator-NOZ05rEh.mjs.map +1 -0
- package/dist/RightsWrapper-Cv41FXNO.mjs.map +1 -0
- package/dist/{RightsWrapper-Cs6prZ3E.mjs → RightsWrapper-HasUbnny.mjs} +3 -3
- package/dist/RightsWrapper-HasUbnny.mjs.map +1 -0
- package/dist/{RubriqueFilter-OA_DJKL1.mjs → RubriqueFilter-3SPVH4nT.mjs} +3 -3
- package/dist/RubriqueFilter-3SPVH4nT.mjs.map +1 -0
- package/dist/RubriqueFilter-B_F2fyA0.mjs.map +1 -0
- package/dist/RubriqueList-CalsqgcR.mjs.map +1 -0
- package/dist/{RubriqueList-B94NM5yi.mjs → RubriqueList-TnVM2-Ry.mjs} +3 -3
- package/dist/RubriqueList-TnVM2-Ry.mjs.map +1 -0
- package/dist/RubriquePage-BhneK7GY.mjs.map +1 -0
- package/dist/RubriquePage-CPV9lztT.mjs.map +1 -0
- package/dist/{RubriquePage-DyusiBmp.mjs → RubriquePage-D223TaA2.mjs} +5 -5
- package/dist/RubriquePage-D223TaA2.mjs.map +1 -0
- package/dist/RubriquePage-DriBVVmv.mjs.map +1 -0
- package/dist/RubriquePage-x_tOmQCH.mjs.map +1 -0
- package/dist/SearchPage-B-KDO-5r.mjs.map +1 -0
- package/dist/{SearchPage-BGOBGS4j.mjs → SearchPage-BH1gYkHn.mjs} +3 -3
- package/dist/SearchPage-BH1gYkHn.mjs.map +1 -0
- package/dist/SearchPage-CXOoJF_2.mjs.map +1 -0
- package/dist/SearchPage-DyX_tEm5.mjs.map +1 -0
- package/dist/SearchPage-IvX74fSJ.mjs.map +1 -0
- package/dist/{ShareAnonymous-Chfdzzra.mjs → ShareAnonymous-4UxjKrIe.mjs} +6 -6
- package/dist/ShareAnonymous-4UxjKrIe.mjs.map +1 -0
- package/dist/ShareAnonymous-C4xPMrgf.mjs.map +1 -0
- package/dist/{ShareModalPlayer-CLY_JFFD.mjs → ShareModalPlayer-B0wPlpdU.mjs} +2 -2
- package/dist/ShareModalPlayer-B0wPlpdU.mjs.map +1 -0
- package/dist/ShareModalPlayer-CEvDV-I_.mjs.map +1 -0
- package/dist/ShareNewsletter-Bno5t4ay.mjs.map +1 -0
- package/dist/{ShareNewsletter-B4dn4-jA.mjs → ShareNewsletter-Cf9w-I6c.mjs} +2 -2
- package/dist/ShareNewsletter-Cf9w-I6c.mjs.map +1 -0
- package/dist/SharePlayer-BLqYnywl.mjs.map +1 -0
- package/dist/{SharePlayer-wHDYsWYd.mjs → SharePlayer-Oy1pWckd.mjs} +4 -4
- package/dist/SharePlayer-Oy1pWckd.mjs.map +1 -0
- package/dist/{SharePlayerRadio-D3LXD_gK.mjs → SharePlayerRadio-CI6glNuI.mjs} +3 -3
- package/dist/SharePlayerRadio-CI6glNuI.mjs.map +1 -0
- package/dist/SharePlayerRadio-c_HFTupz.mjs.map +1 -0
- package/dist/SharePlayerTypes-Dkmmw2We.mjs.map +1 -0
- package/dist/{SharePlayerTypes-eYSeVl-W.mjs → SharePlayerTypes-cUgCFZ65.mjs} +2 -2
- package/dist/SharePlayerTypes-cUgCFZ65.mjs.map +1 -0
- package/dist/{ShareSocialsButtons-iHtSoQ3K.mjs → ShareSocialsButtons-BYsXc2Jr.mjs} +2 -2
- package/dist/ShareSocialsButtons-BYsXc2Jr.mjs.map +1 -0
- package/dist/ShareSocialsButtons-DZLZc1c6.mjs.map +1 -0
- package/dist/SimpleLayout-BCsUQENG.mjs.map +1 -0
- package/dist/SimpleLayout-BGKNHHjx.mjs.map +1 -0
- package/dist/SimpleLayout-BHIdltFB.mjs.map +1 -0
- package/dist/SimpleLayout-BKkwQmN6.mjs.map +1 -0
- package/dist/SimpleLayout-BORx9hRX.mjs.map +1 -0
- package/dist/{SimpleLayout-Bk74CAAr.mjs → SimpleLayout-BTJyAJO6.mjs} +3 -3
- package/dist/SimpleLayout-BTJyAJO6.mjs.map +1 -0
- package/dist/SimpleLayout-BvOAauzs.mjs.map +1 -0
- package/dist/SimpleLayout-C3xekYgM.mjs.map +1 -0
- package/dist/SimpleLayout-C4xNk0R4.mjs.map +1 -0
- package/dist/SimpleLayout-CDcsE-Be.mjs.map +1 -0
- package/dist/SimpleLayout-D3M_c1Eu.mjs.map +1 -0
- package/dist/SimpleLayout-DJgC3LcZ.mjs.map +1 -0
- package/dist/SimpleLayout-DkvEZxow.mjs.map +1 -0
- package/dist/SimpleLayout-gtbBGlVV.mjs.map +1 -0
- package/dist/SmartLinkPage-BF8hfaWZ.mjs.map +1 -0
- package/dist/{SmartLinkPage-DbuQT8GM.mjs → SmartLinkPage-DQljzYa-.mjs} +5 -5
- package/dist/SmartLinkPage-DQljzYa-.mjs.map +1 -0
- package/dist/SmartLinkPage-DmlqwhYP.mjs.map +1 -0
- package/dist/SubscribeButtons-DO4MRuDr.mjs.map +1 -0
- package/dist/{SubscribeButtons-rnonTVzT.mjs → SubscribeButtons-lAAMYQCm.mjs} +3 -3
- package/dist/SubscribeButtons-lAAMYQCm.mjs.map +1 -0
- package/dist/{SwiperList-C1v0T1wx.mjs → SwiperList-C51H-enh.mjs} +2 -2
- package/dist/SwiperList-C51H-enh.mjs.map +1 -0
- package/dist/SwiperList-Dsq1MFX6.mjs.map +1 -0
- package/dist/TagList-B5C9zojs.mjs.map +1 -0
- package/dist/{TagList-VeuYS_zJ.mjs → TagList-D3Bn2fIn.mjs} +2 -2
- package/dist/TagList-D3Bn2fIn.mjs.map +1 -0
- package/dist/TagPage-B71pZpRY.mjs.map +1 -0
- package/dist/{TagPage-Bd81QJHn.mjs → TagPage-Brw9iL1F.mjs} +4 -4
- package/dist/TagPage-Brw9iL1F.mjs.map +1 -0
- package/dist/TagPage-CWRyUZkD.mjs.map +1 -0
- package/dist/TagPage-DFo25ZeP.mjs.map +1 -0
- package/dist/TagPage-sI917OpV.mjs.map +1 -0
- package/dist/TopBar-CaCA8kOs.mjs.map +1 -0
- package/dist/{TopBar-CZVp2T7C.mjs → TopBar-DIdhyJi_.mjs} +7 -7
- package/dist/TopBar-DIdhyJi_.mjs.map +1 -0
- package/dist/{UserButtonContent-DmNyGmWr.mjs → UserButtonContent-D13cVA34.mjs} +7 -7
- package/dist/UserButtonContent-D13cVA34.mjs.map +1 -0
- package/dist/UserButtonContent-DMKyXEmF.mjs.map +1 -0
- package/dist/{VideoModuleBox-yJZpgCw6.mjs → VideoModuleBox-CFQmvPrA.mjs} +2 -2
- package/dist/VideoModuleBox-CFQmvPrA.mjs.map +1 -0
- package/dist/VideoModuleBox-DsBLAMrh.mjs.map +1 -0
- package/dist/VideoPage-CfJeWV-R.mjs.map +1 -0
- package/dist/VideoPage-CnIZYz-k.mjs.map +1 -0
- package/dist/VideoPage-D6UNKt2D.mjs.map +1 -0
- package/dist/{VideoPage-y6G4Y2Zi.mjs → VideoPage-DU9dJviO.mjs} +10 -10
- package/dist/VideoPage-DU9dJviO.mjs.map +1 -0
- package/dist/VideoPage-OIb28KAS.mjs.map +1 -0
- package/dist/classicApi-C70YSK8J.mjs.map +1 -0
- package/dist/classicApi-DuzZv1Wk.mjs.map +1 -1
- package/dist/{classicApi-CkDHWZG1.mjs → classicApi-xjOqAovv.mjs} +11 -8
- package/dist/classicApi-xjOqAovv.mjs.map +1 -0
- package/dist/downloadHelper-C4q0i5xN.mjs.map +1 -0
- package/dist/{downloadHelper-DLdkblYN.mjs → downloadHelper-DY3fF3dA.mjs} +2 -2
- package/dist/downloadHelper-DY3fF3dA.mjs.map +1 -0
- package/dist/index.mjs +102 -97
- package/dist/index.mjs.map +1 -1
- package/dist/tests.mjs +2 -2
- package/dist/{useAdvancedParamInit-B7G2Mvjv.mjs → useAdvancedParamInit-CCprE3H2.mjs} +6 -6
- package/dist/useAdvancedParamInit-CCprE3H2.mjs.map +1 -0
- package/dist/useAdvancedParamInit-CT8CdPFW.mjs.map +1 -0
- package/dist/useDayjs-BPXVSBns.mjs.map +1 -0
- package/dist/{useDayjs-C3cnTiDW.mjs → useDayjs-DPVjvJPN.mjs} +2 -2
- package/dist/useDayjs-DPVjvJPN.mjs.map +1 -0
- package/dist/useErrorHandler-BxQT9ZGf.mjs.map +1 -0
- package/dist/{useErrorHandler-DtLjD9t_.mjs → useErrorHandler-D3XVxUh6.mjs} +2 -2
- package/dist/useErrorHandler-D3XVxUh6.mjs.map +1 -0
- package/dist/{useImageProxy-Bj0cOCct.mjs → useImageProxy-BdQJmj4a.mjs} +2 -2
- package/dist/useImageProxy-BdQJmj4a.mjs.map +1 -0
- package/dist/useImageProxy-DROuweGY.mjs.map +1 -0
- package/dist/{useOrgaComputed-BLSpEDfb.mjs → useOrgaComputed-B2Bq0VBT.mjs} +2 -2
- package/dist/useOrgaComputed-B2Bq0VBT.mjs.map +1 -0
- package/dist/useOrgaComputed-CGomgs0r.mjs.map +1 -0
- package/dist/{usePlayerLogicProgress-75G9QMg_.mjs → usePlayerLogicProgress-DcHbYGOR.mjs} +3 -3
- package/dist/usePlayerLogicProgress-DcHbYGOR.mjs.map +1 -0
- package/dist/usePlayerLogicProgress-Dchl5sUO.mjs.map +1 -0
- package/dist/usePlayerLogicProgress-lqnQ5qNd.mjs.map +1 -0
- package/dist/{usePodcastView-BftS642h.mjs → usePodcastView-BDZ6CGQj.mjs} +4 -4
- package/dist/usePodcastView-BDZ6CGQj.mjs.map +1 -0
- package/dist/usePodcastView-CI5le-WW.mjs.map +1 -0
- package/dist/usePresentationItem-Cw9fBYUi.mjs.map +1 -0
- package/dist/{usePresentationItem-CNXIk-Sf.mjs → usePresentationItem-UwAuhVqo.mjs} +4 -4
- package/dist/usePresentationItem-UwAuhVqo.mjs.map +1 -0
- package/dist/useRights-D8CLzCMH.mjs.map +1 -0
- package/dist/{useRights-Co0TgD8y.mjs → useRights-DSZ-5pFg.mjs} +2 -2
- package/dist/useRights-DSZ-5pFg.mjs.map +1 -0
- package/dist/{useRubriquesFilterComputed-VsdTUNL6.mjs → useRubriquesFilterComputed-BkDeXTf-.mjs} +2 -2
- package/dist/useRubriquesFilterComputed-BkDeXTf-.mjs.map +1 -0
- package/dist/useRubriquesFilterComputed-Bkre15fg.mjs.map +1 -0
- package/dist/useRubriquesFilterParam-BmE8v1fS.mjs.map +1 -0
- package/dist/{useRubriquesFilterParam--x07HEw1.mjs → useRubriquesFilterParam-Delgf48y.mjs} +2 -2
- package/dist/useRubriquesFilterParam-Delgf48y.mjs.map +1 -0
- package/dist/{useSharePlatforms-CSSRTkTG.mjs → useSharePlatforms-07n3JYu2.mjs} +3 -3
- package/dist/useSharePlatforms-07n3JYu2.mjs.map +1 -0
- package/dist/useSharePlatforms-B_3OwBFv.mjs.map +1 -0
- package/dist/{useSimplePageParam-ClaGQ9yj.mjs → useSimplePageParam-CsY_ie3c.mjs} +2 -2
- package/dist/useSimplePageParam-CsY_ie3c.mjs.map +1 -0
- package/dist/useSimplePageParam-ki2VyM-X.mjs.map +1 -0
- package/dist/{useTranslation-BNshNMQT.mjs → useTranslation-ChEasnl9.mjs} +25 -8
- package/dist/useTranslation-ChEasnl9.mjs.map +1 -0
- package/dist/useTranslation-D0R0BSx9.mjs.map +1 -0
- package/dist/usefetchRadioData-BPmkztGC.mjs.map +1 -0
- package/dist/{usefetchRadioData-C2cwiaCP.mjs → usefetchRadioData-CkrAfN1c.mjs} +2 -2
- package/dist/usefetchRadioData-CkrAfN1c.mjs.map +1 -0
- package/package.json +1 -1
- package/src/components/composable/player/usePlayerLive.ts +8 -7
- package/src/stores/AuthStore.ts +2 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CommentPlayer-BMuLmZdI.mjs","names":[],"sources":["../src/components/display/comments/CommentPlayer.vue","../src/components/display/comments/CommentPlayer.vue"],"sourcesContent":["<template>\n <div v-if=\"commentsToDisplay.length\" class=\"comment-player-container\">\n <div\n v-for=\"c in commentsToDisplay\"\n :key=\"c.commentId\"\n class=\"c-hand\"\n @mouseenter=\"displayContent = c\"\n @mouseleave=\"displayContent = undefined\"\n @click=\"displayContent = c\"\n >\n <div\n :style=\"'margin-left: ' + percentPosition(c.timeline ?? 0) + '%'\"\n class=\"comment-border\"\n />\n <div\n :style=\"\n 'margin-left: calc(' + percentPosition(c.timeline ?? 0) + '% - 7px)'\n \"\n class=\"status-comment\"\n :data-selenium=\"'comment-' + seleniumFormat(c.poster.userName)\"\n />\n </div>\n <div v-if=\"displayContent\" class=\"d-flex align-itemx-center mt-4\">\n <div class=\"text-primary flex-shrink-0\">\n {{ displayContent.poster.userName }}\n </div>\n <div class=\"ms-1 me-1\">-</div>\n <div class=\"text-truncate\">\n {{ displayContent.content }}\n </div>\n </div>\n </div>\n</template>\n\n<script setup lang=\"ts\">\nimport { CommentPodcast } from \"@/stores/class/general/comment\";\nimport {useSelenium} from \"../../composable/useSelenium\";\nimport { usePlayerStore } from \"../../../stores/PlayerStore\";\nimport { computed, Ref, ref, watch } from \"vue\";\nimport { useCommentStore } from \"../../../stores/CommentStore\";\n\n//Data \nconst displayContent: Ref<CommentPodcast | undefined> = ref(undefined);\nconst commentsToDisplay: Ref<Array<CommentPodcast>> = ref([]);\n\n//Composables\nconst { seleniumFormat } = useSelenium();\nconst playerStore = usePlayerStore();\nconst commentStore = useCommentStore();\n\n//Computed\nconst podcastId = computed(() => playerStore.playerPodcast?.podcastId);\n\n\n//Watch\nwatch(podcastId, () => {initComments()}, {immediate: true});\n\n\n//Methods\nasync function initComments() {\n if (playerStore.playerPodcast?.podcastId) {\n commentsToDisplay.value = await commentStore.fetchCommentsForPlayer(\n playerStore.playerPodcast.podcastId,\n );\n }\n}\nfunction percentPosition(time: number): number {\n let realDuration = playerStore.playerTotal;\n if (playerStore.playerPodcast?.duration) {\n realDuration = Math.round(playerStore.playerPodcast.duration / 1000);\n }\n if (realDuration < playerStore.playerTotal) {\n time = time + (playerStore.playerTotal - realDuration);\n }\n return Math.round((time * 100) / playerStore.playerTotal);\n}\n</script>\n\n<style lang=\"scss\">\n@use \"../../../style/comments\";\n\n.octopus-app {\n .comment-player-container {\n position: relative;\n width: 100%;\n height: 60px;\n display: flex;\n\n @media (width <= 960px) {\n display: none;\n }\n \n .comment-border {\n width: auto;\n position: absolute;\n border-left: solid 1px white;\n height: 10px;\n }\n\n .status-comment {\n margin-top: 10px;\n position: absolute;\n background: white;\n }\n }\n}\n</style>\n","<template>\n <div v-if=\"commentsToDisplay.length\" class=\"comment-player-container\">\n <div\n v-for=\"c in commentsToDisplay\"\n :key=\"c.commentId\"\n class=\"c-hand\"\n @mouseenter=\"displayContent = c\"\n @mouseleave=\"displayContent = undefined\"\n @click=\"displayContent = c\"\n >\n <div\n :style=\"'margin-left: ' + percentPosition(c.timeline ?? 0) + '%'\"\n class=\"comment-border\"\n />\n <div\n :style=\"\n 'margin-left: calc(' + percentPosition(c.timeline ?? 0) + '% - 7px)'\n \"\n class=\"status-comment\"\n :data-selenium=\"'comment-' + seleniumFormat(c.poster.userName)\"\n />\n </div>\n <div v-if=\"displayContent\" class=\"d-flex align-itemx-center mt-4\">\n <div class=\"text-primary flex-shrink-0\">\n {{ displayContent.poster.userName }}\n </div>\n <div class=\"ms-1 me-1\">-</div>\n <div class=\"text-truncate\">\n {{ displayContent.content }}\n </div>\n </div>\n </div>\n</template>\n\n<script setup lang=\"ts\">\nimport { CommentPodcast } from \"@/stores/class/general/comment\";\nimport {useSelenium} from \"../../composable/useSelenium\";\nimport { usePlayerStore } from \"../../../stores/PlayerStore\";\nimport { computed, Ref, ref, watch } from \"vue\";\nimport { useCommentStore } from \"../../../stores/CommentStore\";\n\n//Data \nconst displayContent: Ref<CommentPodcast | undefined> = ref(undefined);\nconst commentsToDisplay: Ref<Array<CommentPodcast>> = ref([]);\n\n//Composables\nconst { seleniumFormat } = useSelenium();\nconst playerStore = usePlayerStore();\nconst commentStore = useCommentStore();\n\n//Computed\nconst podcastId = computed(() => playerStore.playerPodcast?.podcastId);\n\n\n//Watch\nwatch(podcastId, () => {initComments()}, {immediate: true});\n\n\n//Methods\nasync function initComments() {\n if (playerStore.playerPodcast?.podcastId) {\n commentsToDisplay.value = await commentStore.fetchCommentsForPlayer(\n playerStore.playerPodcast.podcastId,\n );\n }\n}\nfunction percentPosition(time: number): number {\n let realDuration = playerStore.playerTotal;\n if (playerStore.playerPodcast?.duration) {\n realDuration = Math.round(playerStore.playerPodcast.duration / 1000);\n }\n if (realDuration < playerStore.playerTotal) {\n time = time + (playerStore.playerTotal - realDuration);\n }\n return Math.round((time * 100) / playerStore.playerTotal);\n}\n</script>\n\n<style lang=\"scss\">\n@use \"../../../style/comments\";\n\n.octopus-app {\n .comment-player-container {\n position: relative;\n width: 100%;\n height: 60px;\n display: flex;\n\n @media (width <= 960px) {\n display: none;\n }\n \n .comment-border {\n width: auto;\n position: absolute;\n border-left: solid 1px white;\n height: 10px;\n }\n\n .status-comment {\n margin-top: 10px;\n position: absolute;\n background: white;\n }\n }\n}\n</style>\n"],"mappings":";;;;;;;;;;EA0CA,MAAM,iBAAkD,IAAI,KAAA,CAAS;EACrE,MAAM,oBAAgD,IAAI,CAAC,CAAC;EAG5D,MAAM,EAAE,mBAAmB,YAAY;EACvC,MAAM,cAAc,eAAe;EACnC,MAAM,eAAe,gBAAgB;EAGrC,MAAM,YAAY,eAAe,YAAY,eAAe,SAAS;EAIrE,MAAM,iBAAiB;GAAC,aAAa;EAAC,GAAG,EAAC,WAAW,KAAI,CAAC;EAI1D,eAAe,eAAe;GAC5B,IAAI,YAAY,eAAe,WAC7B,kBAAkB,QAAQ,MAAM,aAAa,uBAC3C,YAAY,cAAc,SAC5B;EAEJ;EACA,SAAS,gBAAgB,MAAsB;GAC7C,IAAI,eAAe,YAAY;GAC/B,IAAI,YAAY,eAAe,UAC7B,eAAe,KAAK,MAAM,YAAY,cAAc,WAAW,GAAI;GAErE,IAAI,eAAe,YAAY,aAC7B,OAAO,QAAQ,YAAY,cAAc;GAE3C,OAAO,KAAK,MAAO,OAAO,MAAO,YAAY,WAAW;EAC1D;;;;;;;;;;;;;;;;;;;;;;CC1EuC,OAAM;;;;;;CAqBd,OAAM;;mBAC1B,OAAM,6BAA4B;mBAIlC,OAAM,gBAAe;;QA1BnB,OAAA,kBAAkB,UAAA,UAAA,GAA7B,mBA8BM,OA9BN,YA8BM,EAAA,UAAA,IAAA,GA7BJ,mBAmBM,UAAA,MAAA,WAlBQ,OAAA,oBAAL,MAAC;sBADV,mBAmBM,OAAA;GAjBH,KAAK,EAAE;GACR,OAAM;GACL,eAAU,WAAE,OAAA,iBAAiB;GAC7B,cAAU,OAAA,OAAA,OAAA,MAAA,WAAE,OAAA,iBAAiB,KAAA;GAC7B,UAAK,WAAE,OAAA,iBAAiB;MAEzB,mBAGE,OAAA;GAFC,OAAK,eAAA,kBAAoB,OAAA,gBAAgB,EAAE,YAAQ,CAAA,IAAA,GAAA;GACpD,OAAM;eAER,mBAME,OAAA;GALC,OAAK,eAAA,uBAAoC,OAAA,gBAAgB,EAAE,YAAQ,CAAA,IAAA,UAAA;GAGpE,OAAM;GACL,iBAAa,aAAe,OAAA,eAAe,EAAE,OAAO,QAAQ;;YAGtD,OAAA,kBAAA,UAAA,GAAX,mBAQM,OARN,YAQM;EAPJ,mBAEM,OAFN,YAEM,gBADD,OAAA,eAAe,OAAO,QAAQ,GAAA,CAAA;4BAEnC,mBAA8B,OAAA,EAAzB,OAAM,YAAW,GAAC,KAAC,EAAA;EACxB,mBAEM,OAFN,YAEM,gBADD,OAAA,eAAe,OAAO,GAAA,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CommentPlayer-BPA_lEoE.mjs","names":[],"sources":["../src/components/display/comments/CommentPlayer.vue","../src/components/display/comments/CommentPlayer.vue"],"sourcesContent":["<template>\n <div v-if=\"commentsToDisplay.length\" class=\"comment-player-container\">\n <div\n v-for=\"c in commentsToDisplay\"\n :key=\"c.commentId\"\n class=\"c-hand\"\n @mouseenter=\"displayContent = c\"\n @mouseleave=\"displayContent = undefined\"\n @click=\"displayContent = c\"\n >\n <div\n :style=\"'margin-left: ' + percentPosition(c.timeline ?? 0) + '%'\"\n class=\"comment-border\"\n />\n <div\n :style=\"\n 'margin-left: calc(' + percentPosition(c.timeline ?? 0) + '% - 7px)'\n \"\n class=\"status-comment\"\n :data-selenium=\"'comment-' + seleniumFormat(c.poster.userName)\"\n />\n </div>\n <div v-if=\"displayContent\" class=\"d-flex align-itemx-center mt-4\">\n <div class=\"text-primary flex-shrink-0\">\n {{ displayContent.poster.userName }}\n </div>\n <div class=\"ms-1 me-1\">-</div>\n <div class=\"text-truncate\">\n {{ displayContent.content }}\n </div>\n </div>\n </div>\n</template>\n\n<script setup lang=\"ts\">\nimport { CommentPodcast } from \"@/stores/class/general/comment\";\nimport {useSelenium} from \"../../composable/useSelenium\";\nimport { usePlayerStore } from \"../../../stores/PlayerStore\";\nimport { computed, Ref, ref, watch } from \"vue\";\nimport { useCommentStore } from \"../../../stores/CommentStore\";\n\n//Data \nconst displayContent: Ref<CommentPodcast | undefined> = ref(undefined);\nconst commentsToDisplay: Ref<Array<CommentPodcast>> = ref([]);\n\n//Composables\nconst { seleniumFormat } = useSelenium();\nconst playerStore = usePlayerStore();\nconst commentStore = useCommentStore();\n\n//Computed\nconst podcastId = computed(() => playerStore.playerPodcast?.podcastId);\n\n\n//Watch\nwatch(podcastId, () => {initComments()}, {immediate: true});\n\n\n//Methods\nasync function initComments() {\n if (playerStore.playerPodcast?.podcastId) {\n commentsToDisplay.value = await commentStore.fetchCommentsForPlayer(\n playerStore.playerPodcast.podcastId,\n );\n }\n}\nfunction percentPosition(time: number): number {\n let realDuration = playerStore.playerTotal;\n if (playerStore.playerPodcast?.duration) {\n realDuration = Math.round(playerStore.playerPodcast.duration / 1000);\n }\n if (realDuration < playerStore.playerTotal) {\n time = time + (playerStore.playerTotal - realDuration);\n }\n return Math.round((time * 100) / playerStore.playerTotal);\n}\n</script>\n\n<style lang=\"scss\">\n@use \"../../../style/comments\";\n\n.octopus-app {\n .comment-player-container {\n position: relative;\n width: 100%;\n height: 60px;\n display: flex;\n\n @media (width <= 960px) {\n display: none;\n }\n \n .comment-border {\n width: auto;\n position: absolute;\n border-left: solid 1px white;\n height: 10px;\n }\n\n .status-comment {\n margin-top: 10px;\n position: absolute;\n background: white;\n }\n }\n}\n</style>\n","<template>\n <div v-if=\"commentsToDisplay.length\" class=\"comment-player-container\">\n <div\n v-for=\"c in commentsToDisplay\"\n :key=\"c.commentId\"\n class=\"c-hand\"\n @mouseenter=\"displayContent = c\"\n @mouseleave=\"displayContent = undefined\"\n @click=\"displayContent = c\"\n >\n <div\n :style=\"'margin-left: ' + percentPosition(c.timeline ?? 0) + '%'\"\n class=\"comment-border\"\n />\n <div\n :style=\"\n 'margin-left: calc(' + percentPosition(c.timeline ?? 0) + '% - 7px)'\n \"\n class=\"status-comment\"\n :data-selenium=\"'comment-' + seleniumFormat(c.poster.userName)\"\n />\n </div>\n <div v-if=\"displayContent\" class=\"d-flex align-itemx-center mt-4\">\n <div class=\"text-primary flex-shrink-0\">\n {{ displayContent.poster.userName }}\n </div>\n <div class=\"ms-1 me-1\">-</div>\n <div class=\"text-truncate\">\n {{ displayContent.content }}\n </div>\n </div>\n </div>\n</template>\n\n<script setup lang=\"ts\">\nimport { CommentPodcast } from \"@/stores/class/general/comment\";\nimport {useSelenium} from \"../../composable/useSelenium\";\nimport { usePlayerStore } from \"../../../stores/PlayerStore\";\nimport { computed, Ref, ref, watch } from \"vue\";\nimport { useCommentStore } from \"../../../stores/CommentStore\";\n\n//Data \nconst displayContent: Ref<CommentPodcast | undefined> = ref(undefined);\nconst commentsToDisplay: Ref<Array<CommentPodcast>> = ref([]);\n\n//Composables\nconst { seleniumFormat } = useSelenium();\nconst playerStore = usePlayerStore();\nconst commentStore = useCommentStore();\n\n//Computed\nconst podcastId = computed(() => playerStore.playerPodcast?.podcastId);\n\n\n//Watch\nwatch(podcastId, () => {initComments()}, {immediate: true});\n\n\n//Methods\nasync function initComments() {\n if (playerStore.playerPodcast?.podcastId) {\n commentsToDisplay.value = await commentStore.fetchCommentsForPlayer(\n playerStore.playerPodcast.podcastId,\n );\n }\n}\nfunction percentPosition(time: number): number {\n let realDuration = playerStore.playerTotal;\n if (playerStore.playerPodcast?.duration) {\n realDuration = Math.round(playerStore.playerPodcast.duration / 1000);\n }\n if (realDuration < playerStore.playerTotal) {\n time = time + (playerStore.playerTotal - realDuration);\n }\n return Math.round((time * 100) / playerStore.playerTotal);\n}\n</script>\n\n<style lang=\"scss\">\n@use \"../../../style/comments\";\n\n.octopus-app {\n .comment-player-container {\n position: relative;\n width: 100%;\n height: 60px;\n display: flex;\n\n @media (width <= 960px) {\n display: none;\n }\n \n .comment-border {\n width: auto;\n position: absolute;\n border-left: solid 1px white;\n height: 10px;\n }\n\n .status-comment {\n margin-top: 10px;\n position: absolute;\n background: white;\n }\n }\n}\n</style>\n"],"mappings":";;;;;;;;;;EA0CA,MAAM,iBAAkD,IAAI,KAAA,CAAS;EACrE,MAAM,oBAAgD,IAAI,CAAC,CAAC;EAG5D,MAAM,EAAE,mBAAmB,YAAY;EACvC,MAAM,cAAc,eAAe;EACnC,MAAM,eAAe,gBAAgB;EAGrC,MAAM,YAAY,eAAe,YAAY,eAAe,SAAS;EAIrE,MAAM,iBAAiB;GAAC,aAAa;EAAC,GAAG,EAAC,WAAW,KAAI,CAAC;EAI1D,eAAe,eAAe;GAC5B,IAAI,YAAY,eAAe,WAC7B,kBAAkB,QAAQ,MAAM,aAAa,uBAC3C,YAAY,cAAc,SAC5B;EAEJ;EACA,SAAS,gBAAgB,MAAsB;GAC7C,IAAI,eAAe,YAAY;GAC/B,IAAI,YAAY,eAAe,UAC7B,eAAe,KAAK,MAAM,YAAY,cAAc,WAAW,GAAI;GAErE,IAAI,eAAe,YAAY,aAC7B,OAAO,QAAQ,YAAY,cAAc;GAE3C,OAAO,KAAK,MAAO,OAAO,MAAO,YAAY,WAAW;EAC1D;;;;;;;;;;;;;;;;;;;;;;CC1EuC,OAAM;;;;;;CAqBd,OAAM;;mBAC1B,OAAM,6BAA4B;mBAIlC,OAAM,gBAAe;;QA1BnB,OAAA,kBAAkB,UAAA,UAAA,GAA7B,mBA8BM,OA9BN,YA8BM,EAAA,UAAA,IAAA,GA7BJ,mBAmBM,UAAA,MAAA,WAlBQ,OAAA,oBAAL,MAAC;sBADV,mBAmBM,OAAA;GAjBH,KAAK,EAAE;GACR,OAAM;GACL,eAAU,WAAE,OAAA,iBAAiB;GAC7B,cAAU,OAAA,OAAA,OAAA,MAAA,WAAE,OAAA,iBAAiB,KAAA;GAC7B,UAAK,WAAE,OAAA,iBAAiB;MAEzB,mBAGE,OAAA;GAFC,OAAK,eAAA,kBAAoB,OAAA,gBAAgB,EAAE,YAAQ,CAAA,IAAA,GAAA;GACpD,OAAM;eAER,mBAME,OAAA;GALC,OAAK,eAAA,uBAAoC,OAAA,gBAAgB,EAAE,YAAQ,CAAA,IAAA,UAAA;GAGpE,OAAM;GACL,iBAAa,aAAe,OAAA,eAAe,EAAE,OAAO,QAAQ;;YAGtD,OAAA,kBAAA,UAAA,GAAX,mBAQM,OARN,YAQM;EAPJ,mBAEM,OAFN,YAEM,gBADD,OAAA,eAAe,OAAO,QAAQ,GAAA,CAAA;4BAEnC,mBAA8B,OAAA,EAAzB,OAAM,YAAW,GAAC,KAAC,EAAA;EACxB,mBAEM,OAFN,YAEM,gBADD,OAAA,eAAe,OAAO,GAAA,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CommentPlayer-CUNi1Lxv.mjs","names":[],"sources":["../src/components/display/comments/CommentPlayer.vue","../src/components/display/comments/CommentPlayer.vue"],"sourcesContent":["<template>\n <div v-if=\"commentsToDisplay.length\" class=\"comment-player-container\">\n <div\n v-for=\"c in commentsToDisplay\"\n :key=\"c.commentId\"\n class=\"c-hand\"\n @mouseenter=\"displayContent = c\"\n @mouseleave=\"displayContent = undefined\"\n @click=\"displayContent = c\"\n >\n <div\n :style=\"'margin-left: ' + percentPosition(c.timeline ?? 0) + '%'\"\n class=\"comment-border\"\n />\n <div\n :style=\"\n 'margin-left: calc(' + percentPosition(c.timeline ?? 0) + '% - 7px)'\n \"\n class=\"status-comment\"\n :data-selenium=\"'comment-' + seleniumFormat(c.poster.userName)\"\n />\n </div>\n <div v-if=\"displayContent\" class=\"d-flex align-itemx-center mt-4\">\n <div class=\"text-primary flex-shrink-0\">\n {{ displayContent.poster.userName }}\n </div>\n <div class=\"ms-1 me-1\">-</div>\n <div class=\"text-truncate\">\n {{ displayContent.content }}\n </div>\n </div>\n </div>\n</template>\n\n<script setup lang=\"ts\">\nimport { CommentPodcast } from \"@/stores/class/general/comment\";\nimport {useSelenium} from \"../../composable/useSelenium\";\nimport { usePlayerStore } from \"../../../stores/PlayerStore\";\nimport { computed, Ref, ref, watch } from \"vue\";\nimport { useCommentStore } from \"../../../stores/CommentStore\";\n\n//Data \nconst displayContent: Ref<CommentPodcast | undefined> = ref(undefined);\nconst commentsToDisplay: Ref<Array<CommentPodcast>> = ref([]);\n\n//Composables\nconst { seleniumFormat } = useSelenium();\nconst playerStore = usePlayerStore();\nconst commentStore = useCommentStore();\n\n//Computed\nconst podcastId = computed(() => playerStore.playerPodcast?.podcastId);\n\n\n//Watch\nwatch(podcastId, () => {initComments()}, {immediate: true});\n\n\n//Methods\nasync function initComments() {\n if (playerStore.playerPodcast?.podcastId) {\n commentsToDisplay.value = await commentStore.fetchCommentsForPlayer(\n playerStore.playerPodcast.podcastId,\n );\n }\n}\nfunction percentPosition(time: number): number {\n let realDuration = playerStore.playerTotal;\n if (playerStore.playerPodcast?.duration) {\n realDuration = Math.round(playerStore.playerPodcast.duration / 1000);\n }\n if (realDuration < playerStore.playerTotal) {\n time = time + (playerStore.playerTotal - realDuration);\n }\n return Math.round((time * 100) / playerStore.playerTotal);\n}\n</script>\n\n<style lang=\"scss\">\n@use \"../../../style/comments\";\n\n.octopus-app {\n .comment-player-container {\n position: relative;\n width: 100%;\n height: 60px;\n display: flex;\n\n @media (width <= 960px) {\n display: none;\n }\n \n .comment-border {\n width: auto;\n position: absolute;\n border-left: solid 1px white;\n height: 10px;\n }\n\n .status-comment {\n margin-top: 10px;\n position: absolute;\n background: white;\n }\n }\n}\n</style>\n","<template>\n <div v-if=\"commentsToDisplay.length\" class=\"comment-player-container\">\n <div\n v-for=\"c in commentsToDisplay\"\n :key=\"c.commentId\"\n class=\"c-hand\"\n @mouseenter=\"displayContent = c\"\n @mouseleave=\"displayContent = undefined\"\n @click=\"displayContent = c\"\n >\n <div\n :style=\"'margin-left: ' + percentPosition(c.timeline ?? 0) + '%'\"\n class=\"comment-border\"\n />\n <div\n :style=\"\n 'margin-left: calc(' + percentPosition(c.timeline ?? 0) + '% - 7px)'\n \"\n class=\"status-comment\"\n :data-selenium=\"'comment-' + seleniumFormat(c.poster.userName)\"\n />\n </div>\n <div v-if=\"displayContent\" class=\"d-flex align-itemx-center mt-4\">\n <div class=\"text-primary flex-shrink-0\">\n {{ displayContent.poster.userName }}\n </div>\n <div class=\"ms-1 me-1\">-</div>\n <div class=\"text-truncate\">\n {{ displayContent.content }}\n </div>\n </div>\n </div>\n</template>\n\n<script setup lang=\"ts\">\nimport { CommentPodcast } from \"@/stores/class/general/comment\";\nimport {useSelenium} from \"../../composable/useSelenium\";\nimport { usePlayerStore } from \"../../../stores/PlayerStore\";\nimport { computed, Ref, ref, watch } from \"vue\";\nimport { useCommentStore } from \"../../../stores/CommentStore\";\n\n//Data \nconst displayContent: Ref<CommentPodcast | undefined> = ref(undefined);\nconst commentsToDisplay: Ref<Array<CommentPodcast>> = ref([]);\n\n//Composables\nconst { seleniumFormat } = useSelenium();\nconst playerStore = usePlayerStore();\nconst commentStore = useCommentStore();\n\n//Computed\nconst podcastId = computed(() => playerStore.playerPodcast?.podcastId);\n\n\n//Watch\nwatch(podcastId, () => {initComments()}, {immediate: true});\n\n\n//Methods\nasync function initComments() {\n if (playerStore.playerPodcast?.podcastId) {\n commentsToDisplay.value = await commentStore.fetchCommentsForPlayer(\n playerStore.playerPodcast.podcastId,\n );\n }\n}\nfunction percentPosition(time: number): number {\n let realDuration = playerStore.playerTotal;\n if (playerStore.playerPodcast?.duration) {\n realDuration = Math.round(playerStore.playerPodcast.duration / 1000);\n }\n if (realDuration < playerStore.playerTotal) {\n time = time + (playerStore.playerTotal - realDuration);\n }\n return Math.round((time * 100) / playerStore.playerTotal);\n}\n</script>\n\n<style lang=\"scss\">\n@use \"../../../style/comments\";\n\n.octopus-app {\n .comment-player-container {\n position: relative;\n width: 100%;\n height: 60px;\n display: flex;\n\n @media (width <= 960px) {\n display: none;\n }\n \n .comment-border {\n width: auto;\n position: absolute;\n border-left: solid 1px white;\n height: 10px;\n }\n\n .status-comment {\n margin-top: 10px;\n position: absolute;\n background: white;\n }\n }\n}\n</style>\n"],"mappings":";;;;;;;;;;EA0CA,MAAM,iBAAkD,IAAI,KAAA,CAAS;EACrE,MAAM,oBAAgD,IAAI,CAAC,CAAC;EAG5D,MAAM,EAAE,mBAAmB,YAAY;EACvC,MAAM,cAAc,eAAe;EACnC,MAAM,eAAe,gBAAgB;EAGrC,MAAM,YAAY,eAAe,YAAY,eAAe,SAAS;EAIrE,MAAM,iBAAiB;GAAC,aAAa;EAAC,GAAG,EAAC,WAAW,KAAI,CAAC;EAI1D,eAAe,eAAe;GAC5B,IAAI,YAAY,eAAe,WAC7B,kBAAkB,QAAQ,MAAM,aAAa,uBAC3C,YAAY,cAAc,SAC5B;EAEJ;EACA,SAAS,gBAAgB,MAAsB;GAC7C,IAAI,eAAe,YAAY;GAC/B,IAAI,YAAY,eAAe,UAC7B,eAAe,KAAK,MAAM,YAAY,cAAc,WAAW,GAAI;GAErE,IAAI,eAAe,YAAY,aAC7B,OAAO,QAAQ,YAAY,cAAc;GAE3C,OAAO,KAAK,MAAO,OAAO,MAAO,YAAY,WAAW;EAC1D;;;;;;;;;;;;;;;;;;;;;;CC1EuC,OAAM;;;;;;CAqBd,OAAM;;mBAC1B,OAAM,6BAA4B;mBAIlC,OAAM,gBAAe;;QA1BnB,OAAA,kBAAkB,UAAA,UAAA,GAA7B,mBA8BM,OA9BN,YA8BM,EAAA,UAAA,IAAA,GA7BJ,mBAmBM,UAAA,MAAA,WAlBQ,OAAA,oBAAL,MAAC;sBADV,mBAmBM,OAAA;GAjBH,KAAK,EAAE;GACR,OAAM;GACL,eAAU,WAAE,OAAA,iBAAiB;GAC7B,cAAU,OAAA,OAAA,OAAA,MAAA,WAAE,OAAA,iBAAiB,KAAA;GAC7B,UAAK,WAAE,OAAA,iBAAiB;MAEzB,mBAGE,OAAA;GAFC,OAAK,eAAA,kBAAoB,OAAA,gBAAgB,EAAE,YAAQ,CAAA,IAAA,GAAA;GACpD,OAAM;eAER,mBAME,OAAA;GALC,OAAK,eAAA,uBAAoC,OAAA,gBAAgB,EAAE,YAAQ,CAAA,IAAA,UAAA;GAGpE,OAAM;GACL,iBAAa,aAAe,OAAA,eAAe,EAAE,OAAO,QAAQ;;YAGtD,OAAA,kBAAA,UAAA,GAAX,mBAQM,OARN,YAQM;EAPJ,mBAEM,OAFN,YAEM,gBADD,OAAA,eAAe,OAAO,QAAQ,GAAA,CAAA;4BAEnC,mBAA8B,OAAA,EAAzB,OAAM,YAAW,GAAC,KAAC,EAAA;EACxB,mBAEM,OAFN,YAEM,gBADD,OAAA,eAAe,OAAO,GAAA,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper-BOaGB7Aw.mjs";
|
|
2
|
-
import { i as useAuthStore } from "./classicApi-
|
|
3
|
-
import { t as useCommentStore } from "./CommentStore-
|
|
2
|
+
import { i as useAuthStore } from "./classicApi-xjOqAovv.mjs";
|
|
3
|
+
import { t as useCommentStore } from "./CommentStore-ClU882RI.mjs";
|
|
4
4
|
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineAsyncComponent, defineComponent, normalizeClass, onBeforeMount, openBlock, ref, resolveDynamicComponent, toDisplayString, vShow, watch, withCtx, withDirectives } from "vue";
|
|
5
5
|
import { useI18n } from "vue-i18n";
|
|
6
6
|
import RefreshIcon from "vue-material-design-icons/Refresh.vue";
|
|
@@ -24,8 +24,8 @@ var CommentSection_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ d
|
|
|
24
24
|
emits: ["commentReceived"],
|
|
25
25
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
26
26
|
__expose();
|
|
27
|
-
const CommentList = defineAsyncComponent(() => import("./CommentList-
|
|
28
|
-
const CommentInput = defineAsyncComponent(() => import("./CommentInput-
|
|
27
|
+
const CommentList = defineAsyncComponent(() => import("./CommentList-BkKy5ftL.mjs"));
|
|
28
|
+
const CommentInput = defineAsyncComponent(() => import("./CommentInput-D_p03L68.mjs"));
|
|
29
29
|
const props = __props;
|
|
30
30
|
const emit = __emit;
|
|
31
31
|
const reload = ref(false);
|
|
@@ -138,4 +138,4 @@ var CommentSection_default = /*#__PURE__*/ _plugin_vue_export_helper_default(Com
|
|
|
138
138
|
//#endregion
|
|
139
139
|
export { CommentSection_default as default };
|
|
140
140
|
|
|
141
|
-
//# sourceMappingURL=CommentSection-
|
|
141
|
+
//# sourceMappingURL=CommentSection-B91sHMDT.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CommentSection-B91sHMDT.mjs","names":[],"sources":["../src/components/display/comments/CommentSection.vue","../src/components/display/comments/CommentSection.vue"],"sourcesContent":["<template>\n <section v-show=\"displayCommentSection\" class=\"module-box\">\n <div class=\"d-flex align-items-center\">\n <component \n :is=\"inStudio? 'div':'h3'\" \n :class=\"inStudio? 'm-1 fw-bold':'mb-0 me-2'\">{{ t(\"Podcast's comments\") }}</component>\n <button\n :title=\"t('Refresh')\"\n class=\"btn btn-transparent\"\n @click=\"reload = !reload\"\n >\n <RefreshIcon />\n </button>\n </div>\n <CommentInput\n v-if=\"canPostComment\"\n :podcast=\"podcast\"\n @new-comment=\"newComment\"\n />\n <CommentList\n v-model:nb-comments=\"nbComments\"\n :class=\"inStudio? 'mt-2':'mt-5'\"\n :podcast=\"podcast\"\n :is-flat-list=\"inStudio\"\n :reload=\"reload\"\n :config=\"configPodcast\"\n :event-to-handle=\"eventToHandle\"\n :state-filter=\"stateFilter\"\n />\n </section>\n</template>\n\n<script setup lang=\"ts\">\nimport RefreshIcon from \"vue-material-design-icons/Refresh.vue\";\nimport { Podcast } from \"@/stores/class/general/podcast\";\nimport { computed, defineAsyncComponent, onBeforeMount, ref, Ref, watch } from \"vue\";\nimport { useCommentStore } from \"../../../stores/CommentStore\";\nimport { useAuthStore } from \"../../../stores/AuthStore\";\nimport {\n CommentMessage,\n CommentsConfig,\n} from \"@/stores/class/config/commentsConfig\";\nimport { CommentPodcast } from \"@/stores/class/general/comment\";\nimport { useI18n } from \"vue-i18n\";\nconst CommentList = defineAsyncComponent(() => import(\"./CommentList.vue\"));\nconst CommentInput = defineAsyncComponent(() => import(\"./CommentInput.vue\"));\n\n//Props \nconst props = defineProps({\n podcast: { default: undefined, type: Object as () => Podcast },\n inStudio: { default: false, type: Boolean },\n stateFilter: { default: \"\", type: String },\n})\n\n//Emits\nconst emit = defineEmits([\"commentReceived\"]);\n\n//Data \nconst reload = ref(false);\nconst configPodcast: Ref<CommentsConfig | undefined> = ref(undefined);\nconst nbComments = ref(0);\nconst eventToHandle: Ref<CommentMessage | undefined> = ref(undefined);\n\n//Composables\nconst { t } = useI18n();\nconst commentStore = useCommentStore();\nconst authStore = useAuthStore();\n\n\n//Computed\nconst displayCommentSection = computed(() => canPostComment.value || nbComments.value > 0);\nconst canPostComment = computed(() => {\n return commentStore.getCanPostComment(\n configPodcast.value,\n props.podcast,\n undefined !== authStore.authOrgaId,\n );\n});\nconst eventActive = computed(() => undefined !== props.podcast?.conferenceId);\n\n\n//Watch\nwatch(()=>commentStore.commentEventToHandle, async () => {\n if (\n !commentStore.commentEventToHandle.length ||\n commentStore.commentPodcastId !== props.podcast?.podcastId\n ){\n return;\n }\n eventToHandle.value = commentStore.commentEventToHandle[0];\n commentStore.commentEventHandled();\n emit('commentReceived');\n}, {deep: true});\n\n\nonBeforeMount(()=>fetchPodcastCommentsConfig())\n\n\n//Methods\nasync function fetchPodcastCommentsConfig() {\n if (!props.podcast?.podcastId) {\n return;\n }\n configPodcast.value = await commentStore.getCommentsConfig(props.podcast);\n if (!eventActive.value) {\n return;\n }\n initLiveComments();\n}\nasync function initLiveComments(): Promise<void> {\n if (!props.podcast?.podcastId || !props.podcast?.organisation.id) {\n return;\n }\n if (!commentStore.commentInitialized) {\n await commentStore.initialize();\n }\n await commentStore.initComments(\n props.podcast.podcastId,\n props.podcast.organisation.id,\n );\n}\nfunction newComment(comment: CommentPodcast) {\n if (eventActive.value) {\n return;\n }\n eventToHandle.value = { type: \"CREATE\", comment: comment };\n}\n</script>\n","<template>\n <section v-show=\"displayCommentSection\" class=\"module-box\">\n <div class=\"d-flex align-items-center\">\n <component \n :is=\"inStudio? 'div':'h3'\" \n :class=\"inStudio? 'm-1 fw-bold':'mb-0 me-2'\">{{ t(\"Podcast's comments\") }}</component>\n <button\n :title=\"t('Refresh')\"\n class=\"btn btn-transparent\"\n @click=\"reload = !reload\"\n >\n <RefreshIcon />\n </button>\n </div>\n <CommentInput\n v-if=\"canPostComment\"\n :podcast=\"podcast\"\n @new-comment=\"newComment\"\n />\n <CommentList\n v-model:nb-comments=\"nbComments\"\n :class=\"inStudio? 'mt-2':'mt-5'\"\n :podcast=\"podcast\"\n :is-flat-list=\"inStudio\"\n :reload=\"reload\"\n :config=\"configPodcast\"\n :event-to-handle=\"eventToHandle\"\n :state-filter=\"stateFilter\"\n />\n </section>\n</template>\n\n<script setup lang=\"ts\">\nimport RefreshIcon from \"vue-material-design-icons/Refresh.vue\";\nimport { Podcast } from \"@/stores/class/general/podcast\";\nimport { computed, defineAsyncComponent, onBeforeMount, ref, Ref, watch } from \"vue\";\nimport { useCommentStore } from \"../../../stores/CommentStore\";\nimport { useAuthStore } from \"../../../stores/AuthStore\";\nimport {\n CommentMessage,\n CommentsConfig,\n} from \"@/stores/class/config/commentsConfig\";\nimport { CommentPodcast } from \"@/stores/class/general/comment\";\nimport { useI18n } from \"vue-i18n\";\nconst CommentList = defineAsyncComponent(() => import(\"./CommentList.vue\"));\nconst CommentInput = defineAsyncComponent(() => import(\"./CommentInput.vue\"));\n\n//Props \nconst props = defineProps({\n podcast: { default: undefined, type: Object as () => Podcast },\n inStudio: { default: false, type: Boolean },\n stateFilter: { default: \"\", type: String },\n})\n\n//Emits\nconst emit = defineEmits([\"commentReceived\"]);\n\n//Data \nconst reload = ref(false);\nconst configPodcast: Ref<CommentsConfig | undefined> = ref(undefined);\nconst nbComments = ref(0);\nconst eventToHandle: Ref<CommentMessage | undefined> = ref(undefined);\n\n//Composables\nconst { t } = useI18n();\nconst commentStore = useCommentStore();\nconst authStore = useAuthStore();\n\n\n//Computed\nconst displayCommentSection = computed(() => canPostComment.value || nbComments.value > 0);\nconst canPostComment = computed(() => {\n return commentStore.getCanPostComment(\n configPodcast.value,\n props.podcast,\n undefined !== authStore.authOrgaId,\n );\n});\nconst eventActive = computed(() => undefined !== props.podcast?.conferenceId);\n\n\n//Watch\nwatch(()=>commentStore.commentEventToHandle, async () => {\n if (\n !commentStore.commentEventToHandle.length ||\n commentStore.commentPodcastId !== props.podcast?.podcastId\n ){\n return;\n }\n eventToHandle.value = commentStore.commentEventToHandle[0];\n commentStore.commentEventHandled();\n emit('commentReceived');\n}, {deep: true});\n\n\nonBeforeMount(()=>fetchPodcastCommentsConfig())\n\n\n//Methods\nasync function fetchPodcastCommentsConfig() {\n if (!props.podcast?.podcastId) {\n return;\n }\n configPodcast.value = await commentStore.getCommentsConfig(props.podcast);\n if (!eventActive.value) {\n return;\n }\n initLiveComments();\n}\nasync function initLiveComments(): Promise<void> {\n if (!props.podcast?.podcastId || !props.podcast?.organisation.id) {\n return;\n }\n if (!commentStore.commentInitialized) {\n await commentStore.initialize();\n }\n await commentStore.initComments(\n props.podcast.podcastId,\n props.podcast.organisation.id,\n );\n}\nfunction newComment(comment: CommentPodcast) {\n if (eventActive.value) {\n return;\n }\n eventToHandle.value = { type: \"CREATE\", comment: comment };\n}\n</script>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;EA4CA,MAAM,cAAc,2BAA2B,OAAO,6BAAoB;EAC1E,MAAM,eAAe,2BAA2B,OAAO,8BAAqB;EAG5E,MAAM,QAAQ;EAO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BACnD,OAAM,4BAA2B;;;qCADxC,mBA4BU,WA5BV,YA4BU;EA3BR,mBAWM,OAXN,YAWM,EAAA,UAAA,GAVJ,YAEwF,wBADjF,OAAA,WAAQ,QAAA,IAAA,GAAA,EACZ,OAAK,eAAE,OAAA,WAAQ,gBAAA,WAAA,EAAA,GAAA;0BAA0D,CAAA,gBAAA,gBAA1B,OAAA,EAAC,oBAAA,CAAA,GAAA,CAAA,CAAA,CAAA;;qBACnD,mBAMS,UAAA;GALN,OAAO,OAAA,EAAC,SAAA;GACT,OAAM;GACL,SAAK,OAAA,OAAA,OAAA,MAAA,WAAE,OAAA,SAAM,CAAI,OAAA;MAElB,YAAe,OAAA,cAAA,CAAA,GAAA,GAAA,UAAA,CAAA,CAAA;EAIX,OAAA,kBAAA,UAAA,GADR,YAIE,OAAA,iBAAA;;GAFC,SAAS,OAAA;GACT,cAAa,OAAA;;EAEhB,YASE,OAAA,gBAAA;GARQ,eAAa,OAAA;gEAAA,OAAA,aAAU;GAC9B,OAAK,eAAE,OAAA,WAAQ,SAAA,MAAA;GACf,SAAS,OAAA;GACT,gBAAc,OAAA;GACd,QAAQ,OAAA;GACR,QAAQ,OAAA;GACR,mBAAiB,OAAA;GACjB,gBAAc,OAAA;;;;;;;;;;;oBA1BF,OAAA,qBAAqB,CAAA,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CommentSection-CpYd7i8U.mjs","names":[],"sources":["../src/components/display/comments/CommentSection.vue","../src/components/display/comments/CommentSection.vue"],"sourcesContent":["<template>\n <section v-show=\"displayCommentSection\" class=\"module-box\">\n <div class=\"d-flex align-items-center\">\n <component \n :is=\"inStudio? 'div':'h3'\" \n :class=\"inStudio? 'm-1 fw-bold':'mb-0 me-2'\">{{ t(\"Podcast's comments\") }}</component>\n <button\n :title=\"t('Refresh')\"\n class=\"btn btn-transparent\"\n @click=\"reload = !reload\"\n >\n <RefreshIcon />\n </button>\n </div>\n <CommentInput\n v-if=\"canPostComment\"\n :podcast=\"podcast\"\n @new-comment=\"newComment\"\n />\n <CommentList\n v-model:nb-comments=\"nbComments\"\n :class=\"inStudio? 'mt-2':'mt-5'\"\n :podcast=\"podcast\"\n :is-flat-list=\"inStudio\"\n :reload=\"reload\"\n :config=\"configPodcast\"\n :event-to-handle=\"eventToHandle\"\n :state-filter=\"stateFilter\"\n />\n </section>\n</template>\n\n<script setup lang=\"ts\">\nimport RefreshIcon from \"vue-material-design-icons/Refresh.vue\";\nimport { Podcast } from \"@/stores/class/general/podcast\";\nimport { computed, defineAsyncComponent, onBeforeMount, ref, Ref, watch } from \"vue\";\nimport { useCommentStore } from \"../../../stores/CommentStore\";\nimport { useAuthStore } from \"../../../stores/AuthStore\";\nimport {\n CommentMessage,\n CommentsConfig,\n} from \"@/stores/class/config/commentsConfig\";\nimport { CommentPodcast } from \"@/stores/class/general/comment\";\nimport { useI18n } from \"vue-i18n\";\nconst CommentList = defineAsyncComponent(() => import(\"./CommentList.vue\"));\nconst CommentInput = defineAsyncComponent(() => import(\"./CommentInput.vue\"));\n\n//Props \nconst props = defineProps({\n podcast: { default: undefined, type: Object as () => Podcast },\n inStudio: { default: false, type: Boolean },\n stateFilter: { default: \"\", type: String },\n})\n\n//Emits\nconst emit = defineEmits([\"commentReceived\"]);\n\n//Data \nconst reload = ref(false);\nconst configPodcast: Ref<CommentsConfig | undefined> = ref(undefined);\nconst nbComments = ref(0);\nconst eventToHandle: Ref<CommentMessage | undefined> = ref(undefined);\n\n//Composables\nconst { t } = useI18n();\nconst commentStore = useCommentStore();\nconst authStore = useAuthStore();\n\n\n//Computed\nconst displayCommentSection = computed(() => canPostComment.value || nbComments.value > 0);\nconst canPostComment = computed(() => {\n return commentStore.getCanPostComment(\n configPodcast.value,\n props.podcast,\n undefined !== authStore.authOrgaId,\n );\n});\nconst eventActive = computed(() => undefined !== props.podcast?.conferenceId);\n\n\n//Watch\nwatch(()=>commentStore.commentEventToHandle, async () => {\n if (\n !commentStore.commentEventToHandle.length ||\n commentStore.commentPodcastId !== props.podcast?.podcastId\n ){\n return;\n }\n eventToHandle.value = commentStore.commentEventToHandle[0];\n commentStore.commentEventHandled();\n emit('commentReceived');\n}, {deep: true});\n\n\nonBeforeMount(()=>fetchPodcastCommentsConfig())\n\n\n//Methods\nasync function fetchPodcastCommentsConfig() {\n if (!props.podcast?.podcastId) {\n return;\n }\n configPodcast.value = await commentStore.getCommentsConfig(props.podcast);\n if (!eventActive.value) {\n return;\n }\n initLiveComments();\n}\nasync function initLiveComments(): Promise<void> {\n if (!props.podcast?.podcastId || !props.podcast?.organisation.id) {\n return;\n }\n if (!commentStore.commentInitialized) {\n await commentStore.initialize();\n }\n await commentStore.initComments(\n props.podcast.podcastId,\n props.podcast.organisation.id,\n );\n}\nfunction newComment(comment: CommentPodcast) {\n if (eventActive.value) {\n return;\n }\n eventToHandle.value = { type: \"CREATE\", comment: comment };\n}\n</script>\n","<template>\n <section v-show=\"displayCommentSection\" class=\"module-box\">\n <div class=\"d-flex align-items-center\">\n <component \n :is=\"inStudio? 'div':'h3'\" \n :class=\"inStudio? 'm-1 fw-bold':'mb-0 me-2'\">{{ t(\"Podcast's comments\") }}</component>\n <button\n :title=\"t('Refresh')\"\n class=\"btn btn-transparent\"\n @click=\"reload = !reload\"\n >\n <RefreshIcon />\n </button>\n </div>\n <CommentInput\n v-if=\"canPostComment\"\n :podcast=\"podcast\"\n @new-comment=\"newComment\"\n />\n <CommentList\n v-model:nb-comments=\"nbComments\"\n :class=\"inStudio? 'mt-2':'mt-5'\"\n :podcast=\"podcast\"\n :is-flat-list=\"inStudio\"\n :reload=\"reload\"\n :config=\"configPodcast\"\n :event-to-handle=\"eventToHandle\"\n :state-filter=\"stateFilter\"\n />\n </section>\n</template>\n\n<script setup lang=\"ts\">\nimport RefreshIcon from \"vue-material-design-icons/Refresh.vue\";\nimport { Podcast } from \"@/stores/class/general/podcast\";\nimport { computed, defineAsyncComponent, onBeforeMount, ref, Ref, watch } from \"vue\";\nimport { useCommentStore } from \"../../../stores/CommentStore\";\nimport { useAuthStore } from \"../../../stores/AuthStore\";\nimport {\n CommentMessage,\n CommentsConfig,\n} from \"@/stores/class/config/commentsConfig\";\nimport { CommentPodcast } from \"@/stores/class/general/comment\";\nimport { useI18n } from \"vue-i18n\";\nconst CommentList = defineAsyncComponent(() => import(\"./CommentList.vue\"));\nconst CommentInput = defineAsyncComponent(() => import(\"./CommentInput.vue\"));\n\n//Props \nconst props = defineProps({\n podcast: { default: undefined, type: Object as () => Podcast },\n inStudio: { default: false, type: Boolean },\n stateFilter: { default: \"\", type: String },\n})\n\n//Emits\nconst emit = defineEmits([\"commentReceived\"]);\n\n//Data \nconst reload = ref(false);\nconst configPodcast: Ref<CommentsConfig | undefined> = ref(undefined);\nconst nbComments = ref(0);\nconst eventToHandle: Ref<CommentMessage | undefined> = ref(undefined);\n\n//Composables\nconst { t } = useI18n();\nconst commentStore = useCommentStore();\nconst authStore = useAuthStore();\n\n\n//Computed\nconst displayCommentSection = computed(() => canPostComment.value || nbComments.value > 0);\nconst canPostComment = computed(() => {\n return commentStore.getCanPostComment(\n configPodcast.value,\n props.podcast,\n undefined !== authStore.authOrgaId,\n );\n});\nconst eventActive = computed(() => undefined !== props.podcast?.conferenceId);\n\n\n//Watch\nwatch(()=>commentStore.commentEventToHandle, async () => {\n if (\n !commentStore.commentEventToHandle.length ||\n commentStore.commentPodcastId !== props.podcast?.podcastId\n ){\n return;\n }\n eventToHandle.value = commentStore.commentEventToHandle[0];\n commentStore.commentEventHandled();\n emit('commentReceived');\n}, {deep: true});\n\n\nonBeforeMount(()=>fetchPodcastCommentsConfig())\n\n\n//Methods\nasync function fetchPodcastCommentsConfig() {\n if (!props.podcast?.podcastId) {\n return;\n }\n configPodcast.value = await commentStore.getCommentsConfig(props.podcast);\n if (!eventActive.value) {\n return;\n }\n initLiveComments();\n}\nasync function initLiveComments(): Promise<void> {\n if (!props.podcast?.podcastId || !props.podcast?.organisation.id) {\n return;\n }\n if (!commentStore.commentInitialized) {\n await commentStore.initialize();\n }\n await commentStore.initComments(\n props.podcast.podcastId,\n props.podcast.organisation.id,\n );\n}\nfunction newComment(comment: CommentPodcast) {\n if (eventActive.value) {\n return;\n }\n eventToHandle.value = { type: \"CREATE\", comment: comment };\n}\n</script>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;EA4CA,MAAM,cAAc,2BAA2B,OAAO,6BAAoB;EAC1E,MAAM,eAAe,2BAA2B,OAAO,8BAAqB;EAG5E,MAAM,QAAQ;EAOd,MAAM,OAAO;EAGb,MAAM,SAAS,IAAI,KAAK;EACxB,MAAM,gBAAiD,IAAI,KAAA,CAAS;EACpE,MAAM,aAAa,IAAI,CAAC;EACxB,MAAM,gBAAiD,IAAI,KAAA,CAAS;EAGpE,MAAM,EAAE,MAAM,QAAQ;EACtB,MAAM,eAAe,gBAAgB;EACrC,MAAM,YAAY,aAAa;EAI/B,MAAM,wBAAwB,eAAe,eAAe,SAAS,WAAW,QAAQ,CAAC;EACzF,MAAM,iBAAiB,eAAe;GACpC,OAAO,aAAa,kBAClB,cAAc,OACd,MAAM,SACN,KAAA,MAAc,UAAU,UAC1B;EACF,CAAC;EACD,MAAM,cAAc,eAAgB,KAAA,MAAc,MAAM,SAAS,YAAY;EAI7E,YAAU,aAAa,sBAAsB,YAAY;GACvD,IACE,CAAC,aAAa,qBAAqB,UACnC,aAAa,qBAAqB,MAAM,SAAS,WAEjD;GAEF,cAAc,QAAQ,aAAa,qBAAqB;GACxD,aAAa,oBAAoB;GACjC,KAAK,iBAAiB;EACxB,GAAG,EAAC,MAAM,KAAI,CAAC;EAGf,oBAAkB,2BAA2B,CAAC;EAI9C,eAAe,6BAA6B;GAC1C,IAAI,CAAC,MAAM,SAAS,WAClB;GAEF,cAAc,QAAQ,MAAM,aAAa,kBAAkB,MAAM,OAAO;GACxE,IAAI,CAAC,YAAY,OACf;GAEF,iBAAiB;EACnB;EACA,eAAe,mBAAkC;GAC/C,IAAI,CAAC,MAAM,SAAS,a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ommentSection.vue","../src/components/display/comments/CommentSection.vue"],"sourcesContent":["<template>\n <section v-show=\"displayCommentSection\" class=\"module-box\">\n <div class=\"d-flex align-items-center\">\n <component \n :is=\"inStudio? 'div':'h3'\" \n :class=\"inStudio? 'm-1 fw-bold':'mb-0 me-2'\">{{ t(\"Podcast's comments\") }}</component>\n <button\n :title=\"t('Refresh')\"\n class=\"btn btn-transparent\"\n @click=\"reload = !reload\"\n >\n <RefreshIcon />\n </button>\n </div>\n <CommentInput\n v-if=\"canPostComment\"\n :podcast=\"podcast\"\n @new-comment=\"newComment\"\n />\n <CommentList\n v-model:nb-comments=\"nbComments\"\n :class=\"inStudio? 'mt-2':'mt-5'\"\n :podcast=\"podcast\"\n :is-flat-list=\"inStudio\"\n :reload=\"reload\"\n :config=\"configPodcast\"\n :event-to-handle=\"eventToHandle\"\n :state-filter=\"stateFilter\"\n />\n </section>\n</template>\n\n<script setup lang=\"ts\">\nimport RefreshIcon from \"vue-material-design-icons/Refresh.vue\";\nimport { Podcast } from \"@/stores/class/general/podcast\";\nimport { computed, defineAsyncComponent, onBeforeMount, ref, Ref, watch } from \"vue\";\nimport { useCommentStore } from \"../../../stores/CommentStore\";\nimport { useAuthStore } from \"../../../stores/AuthStore\";\nimport {\n CommentMessage,\n CommentsConfig,\n} from \"@/stores/class/config/commentsConfig\";\nimport { CommentPodcast } from \"@/stores/class/general/comment\";\nimport { useI18n } from \"vue-i18n\";\nconst CommentList = defineAsyncComponent(() => import(\"./CommentList.vue\"));\nconst CommentInput = defineAsyncComponent(() => import(\"./CommentInput.vue\"));\n\n//Props \nconst props = defineProps({\n podcast: { default: undefined, type: Object as () => Podcast },\n inStudio: { default: false, type: Boolean },\n stateFilter: { default: \"\", type: String },\n})\n\n//Emits\nconst emit = defineEmits([\"commentReceived\"]);\n\n//Data \nconst reload = ref(false);\nconst configPodcast: Ref<CommentsConfig | undefined> = ref(undefined);\nconst nbComments = ref(0);\nconst eventToHandle: Ref<CommentMessage | undefined> = ref(undefined);\n\n//Composables\nconst { t } = useI18n();\nconst commentStore = useCommentStore();\nconst authStore = useAuthStore();\n\n\n//Computed\nconst displayCommentSection = computed(() => canPostComment.value || nbComments.value > 0);\nconst canPostComment = computed(() => {\n return commentStore.getCanPostComment(\n configPodcast.value,\n props.podcast,\n undefined !== authStore.authOrgaId,\n );\n});\nconst eventActive = computed(() => undefined !== props.podcast?.conferenceId);\n\n\n//Watch\nwatch(()=>commentStore.commentEventToHandle, async () => {\n if (\n !commentStore.commentEventToHandle.length ||\n commentStore.commentPodcastId !== props.podcast?.podcastId\n ){\n return;\n }\n eventToHandle.value = commentStore.commentEventToHandle[0];\n commentStore.commentEventHandled();\n emit('commentReceived');\n}, {deep: true});\n\n\nonBeforeMount(()=>fetchPodcastCommentsConfig())\n\n\n//Methods\nasync function fetchPodcastCommentsConfig() {\n if (!props.podcast?.podcastId) {\n return;\n }\n configPodcast.value = await commentStore.getCommentsConfig(props.podcast);\n if (!eventActive.value) {\n return;\n }\n initLiveComments();\n}\nasync function initLiveComments(): Promise<void> {\n if (!props.podcast?.podcastId || !props.podcast?.organisation.id) {\n return;\n }\n if (!commentStore.commentInitialized) {\n await commentStore.initialize();\n }\n await commentStore.initComments(\n props.podcast.podcastId,\n props.podcast.organisation.id,\n );\n}\nfunction newComment(comment: CommentPodcast) {\n if (eventActive.value) {\n return;\n }\n eventToHandle.value = { type: \"CREATE\", comment: comment };\n}\n</script>\n","<template>\n <section v-show=\"displayCommentSection\" class=\"module-box\">\n <div class=\"d-flex align-items-center\">\n <component \n :is=\"inStudio? 'div':'h3'\" \n :class=\"inStudio? 'm-1 fw-bold':'mb-0 me-2'\">{{ t(\"Podcast's comments\") }}</component>\n <button\n :title=\"t('Refresh')\"\n class=\"btn btn-transparent\"\n @click=\"reload = !reload\"\n >\n <RefreshIcon />\n </button>\n </div>\n <CommentInput\n v-if=\"canPostComment\"\n :podcast=\"podcast\"\n @new-comment=\"newComment\"\n />\n <CommentList\n v-model:nb-comments=\"nbComments\"\n :class=\"inStudio? 'mt-2':'mt-5'\"\n :podcast=\"podcast\"\n :is-flat-list=\"inStudio\"\n :reload=\"reload\"\n :config=\"configPodcast\"\n :event-to-handle=\"eventToHandle\"\n :state-filter=\"stateFilter\"\n />\n </section>\n</template>\n\n<script setup lang=\"ts\">\nimport RefreshIcon from \"vue-material-design-icons/Refresh.vue\";\nimport { Podcast } from \"@/stores/class/general/podcast\";\nimport { computed, defineAsyncComponent, onBeforeMount, ref, Ref, watch } from \"vue\";\nimport { useCommentStore } from \"../../../stores/CommentStore\";\nimport { useAuthStore } from \"../../../stores/AuthStore\";\nimport {\n CommentMessage,\n CommentsConfig,\n} from \"@/stores/class/config/commentsConfig\";\nimport { CommentPodcast } from \"@/stores/class/general/comment\";\nimport { useI18n } from \"vue-i18n\";\nconst CommentList = defineAsyncComponent(() => import(\"./CommentList.vue\"));\nconst CommentInput = defineAsyncComponent(() => import(\"./CommentInput.vue\"));\n\n//Props \nconst props = defineProps({\n podcast: { default: undefined, type: Object as () => Podcast },\n inStudio: { default: false, type: Boolean },\n stateFilter: { default: \"\", type: String },\n})\n\n//Emits\nconst emit = defineEmits([\"commentReceived\"]);\n\n//Data \nconst reload = ref(false);\nconst configPodcast: Ref<CommentsConfig | undefined> = ref(undefined);\nconst nbComments = ref(0);\nconst eventToHandle: Ref<CommentMessage | undefined> = ref(undefined);\n\n//Composables\nconst { t } = useI18n();\nconst commentStore = useCommentStore();\nconst authStore = useAuthStore();\n\n\n//Computed\nconst displayCommentSection = computed(() => canPostComment.value || nbComments.value > 0);\nconst canPostComment = computed(() => {\n return commentStore.getCanPostComment(\n configPodcast.value,\n props.podcast,\n undefined !== authStore.authOrgaId,\n );\n});\nconst eventActive = computed(() => undefined !== props.podcast?.conferenceId);\n\n\n//Watch\nwatch(()=>commentStore.commentEventToHandle, async () => {\n if (\n !commentStore.commentEventToHandle.length ||\n commentStore.commentPodcastId !== props.podcast?.podcastId\n ){\n return;\n }\n eventToHandle.value = commentStore.commentEventToHandle[0];\n commentStore.commentEventHandled();\n emit('commentReceived');\n}, {deep: true});\n\n\nonBeforeMount(()=>fetchPodcastCommentsConfig())\n\n\n//Methods\nasync function fetchPodcastCommentsConfig() {\n if (!props.podcast?.podcastId) {\n return;\n }\n configPodcast.value = await commentStore.getCommentsConfig(props.podcast);\n if (!eventActive.value) {\n return;\n }\n initLiveComments();\n}\nasync function initLiveComments(): Promise<void> {\n if (!props.podcast?.podcastId || !props.podcast?.organisation.id) {\n return;\n }\n if (!commentStore.commentInitialized) {\n await commentStore.initialize();\n }\n await commentStore.initComments(\n props.podcast.podcastId,\n props.podcast.organisation.id,\n );\n}\nfunction newComment(comment: CommentPodcast) {\n if (eventActive.value) {\n return;\n }\n eventToHandle.value = { type: \"CREATE\", comment: comment };\n}\n</script>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;EA4CA,MAAM,cAAc,2BAA2B,OAAO,6BAAoB;EAC1E,MAAM,eAAe,2BAA2B,OAAO,8BAAqB;EAG5E,MAAM,QAAQ;EAOd,MAAM,OAAO;EAGb,MAAM,SAAS,IAAI,KAAK;EACxB,MAAM,gBAAiD,IAAI,KAAA,CAAS;EACpE,MAAM,aAAa,IAAI,CAAC;EACxB,MAAM,gBAAiD,IAAI,KAAA,CAAS;EAGpE,MAAM,EAAE,MAAM,QAAQ;EACtB,MAAM,eAAe,gBAAgB;EACrC,MAAM,YAAY,aAAa;EAI/B,MAAM,wBAAwB,eAAe,eAAe,SAAS,WAAW,QAAQ,CAAC;EACzF,MAAM,iBAAiB,eAAe;GACpC,OAAO,aAAa,kBAClB,cAAc,OACd,MAAM,SACN,KAAA,MAAc,UAAU,UAC1B;EACF,CAAC;EACD,MAAM,cAAc,eAAgB,KAAA,MAAc,MAAM,SAAS,YAAY;EAI7E,YAAU,aAAa,sBAAsB,YAAY;GACvD,IACE,CAAC,aAAa,qBAAqB,UACnC,aAAa,qBAAqB,MAAM,SAAS,WAEjD;GAEF,cAAc,QAAQ,aAAa,qBAAqB;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;gEAAA,OAAA,aAAU;GAC9B,OAAK,eAAE,OAAA,WAAQ,SAAA,MAAA;GACf,SAAS,OAAA;GACT,gBAAc,OAAA;GACd,QAAQ,OAAA;GACR,QAAQ,OAAA;GACR,mBAAiB,OAAA;GACjB,gBAAc,OAAA;;;;;;;;;;;oBA1BF,OAAA,qBAAqB,CAAA,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CommentSection-G8rMWPrM.mjs","names":[],"sources":["../src/components/display/comments/CommentSection.vue","../src/components/display/comments/CommentSection.vue"],"sourcesContent":["<template>\n <section v-show=\"displayCommentSection\" class=\"module-box\">\n <div class=\"d-flex align-items-center\">\n <component \n :is=\"inStudio? 'div':'h3'\" \n :class=\"inStudio? 'm-1 fw-bold':'mb-0 me-2'\">{{ t(\"Podcast's comments\") }}</component>\n <button\n :title=\"t('Refresh')\"\n class=\"btn btn-transparent\"\n @click=\"reload = !reload\"\n >\n <RefreshIcon />\n </button>\n </div>\n <CommentInput\n v-if=\"canPostComment\"\n :podcast=\"podcast\"\n @new-comment=\"newComment\"\n />\n <CommentList\n v-model:nb-comments=\"nbComments\"\n :class=\"inStudio? 'mt-2':'mt-5'\"\n :podcast=\"podcast\"\n :is-flat-list=\"inStudio\"\n :reload=\"reload\"\n :config=\"configPodcast\"\n :event-to-handle=\"eventToHandle\"\n :state-filter=\"stateFilter\"\n />\n </section>\n</template>\n\n<script setup lang=\"ts\">\nimport RefreshIcon from \"vue-material-design-icons/Refresh.vue\";\nimport { Podcast } from \"@/stores/class/general/podcast\";\nimport { computed, defineAsyncComponent, onBeforeMount, ref, Ref, watch } from \"vue\";\nimport { useCommentStore } from \"../../../stores/CommentStore\";\nimport { useAuthStore } from \"../../../stores/AuthStore\";\nimport {\n CommentMessage,\n CommentsConfig,\n} from \"@/stores/class/config/commentsConfig\";\nimport { CommentPodcast } from \"@/stores/class/general/comment\";\nimport { useI18n } from \"vue-i18n\";\nconst CommentList = defineAsyncComponent(() => import(\"./CommentList.vue\"));\nconst CommentInput = defineAsyncComponent(() => import(\"./CommentInput.vue\"));\n\n//Props \nconst props = defineProps({\n podcast: { default: undefined, type: Object as () => Podcast },\n inStudio: { default: false, type: Boolean },\n stateFilter: { default: \"\", type: String },\n})\n\n//Emits\nconst emit = defineEmits([\"commentReceived\"]);\n\n//Data \nconst reload = ref(false);\nconst configPodcast: Ref<CommentsConfig | undefined> = ref(undefined);\nconst nbComments = ref(0);\nconst eventToHandle: Ref<CommentMessage | undefined> = ref(undefined);\n\n//Composables\nconst { t } = useI18n();\nconst commentStore = useCommentStore();\nconst authStore = useAuthStore();\n\n\n//Computed\nconst displayCommentSection = computed(() => canPostComment.value || nbComments.value > 0);\nconst canPostComment = computed(() => {\n return commentStore.getCanPostComment(\n configPodcast.value,\n props.podcast,\n undefined !== authStore.authOrgaId,\n );\n});\nconst eventActive = computed(() => undefined !== props.podcast?.conferenceId);\n\n\n//Watch\nwatch(()=>commentStore.commentEventToHandle, async () => {\n if (\n !commentStore.commentEventToHandle.length ||\n commentStore.commentPodcastId !== props.podcast?.podcastId\n ){\n return;\n }\n eventToHandle.value = commentStore.commentEventToHandle[0];\n commentStore.commentEventHandled();\n emit('commentReceived');\n}, {deep: true});\n\n\nonBeforeMount(()=>fetchPodcastCommentsConfig())\n\n\n//Methods\nasync function fetchPodcastCommentsConfig() {\n if (!props.podcast?.podcastId) {\n return;\n }\n configPodcast.value = await commentStore.getCommentsConfig(props.podcast);\n if (!eventActive.value) {\n return;\n }\n initLiveComments();\n}\nasync function initLiveComments(): Promise<void> {\n if (!props.podcast?.podcastId || !props.podcast?.organisation.id) {\n return;\n }\n if (!commentStore.commentInitialized) {\n await commentStore.initialize();\n }\n await commentStore.initComments(\n props.podcast.podcastId,\n props.podcast.organisation.id,\n );\n}\nfunction newComment(comment: CommentPodcast) {\n if (eventActive.value) {\n return;\n }\n eventToHandle.value = { type: \"CREATE\", comment: comment };\n}\n</script>\n","<template>\n <section v-show=\"displayCommentSection\" class=\"module-box\">\n <div class=\"d-flex align-items-center\">\n <component \n :is=\"inStudio? 'div':'h3'\" \n :class=\"inStudio? 'm-1 fw-bold':'mb-0 me-2'\">{{ t(\"Podcast's comments\") }}</component>\n <button\n :title=\"t('Refresh')\"\n class=\"btn btn-transparent\"\n @click=\"reload = !reload\"\n >\n <RefreshIcon />\n </button>\n </div>\n <CommentInput\n v-if=\"canPostComment\"\n :podcast=\"podcast\"\n @new-comment=\"newComment\"\n />\n <CommentList\n v-model:nb-comments=\"nbComments\"\n :class=\"inStudio? 'mt-2':'mt-5'\"\n :podcast=\"podcast\"\n :is-flat-list=\"inStudio\"\n :reload=\"reload\"\n :config=\"configPodcast\"\n :event-to-handle=\"eventToHandle\"\n :state-filter=\"stateFilter\"\n />\n </section>\n</template>\n\n<script setup lang=\"ts\">\nimport RefreshIcon from \"vue-material-design-icons/Refresh.vue\";\nimport { Podcast } from \"@/stores/class/general/podcast\";\nimport { computed, defineAsyncComponent, onBeforeMount, ref, Ref, watch } from \"vue\";\nimport { useCommentStore } from \"../../../stores/CommentStore\";\nimport { useAuthStore } from \"../../../stores/AuthStore\";\nimport {\n CommentMessage,\n CommentsConfig,\n} from \"@/stores/class/config/commentsConfig\";\nimport { CommentPodcast } from \"@/stores/class/general/comment\";\nimport { useI18n } from \"vue-i18n\";\nconst CommentList = defineAsyncComponent(() => import(\"./CommentList.vue\"));\nconst CommentInput = defineAsyncComponent(() => import(\"./CommentInput.vue\"));\n\n//Props \nconst props = defineProps({\n podcast: { default: undefined, type: Object as () => Podcast },\n inStudio: { default: false, type: Boolean },\n stateFilter: { default: \"\", type: String },\n})\n\n//Emits\nconst emit = defineEmits([\"commentReceived\"]);\n\n//Data \nconst reload = ref(false);\nconst configPodcast: Ref<CommentsConfig | undefined> = ref(undefined);\nconst nbComments = ref(0);\nconst eventToHandle: Ref<CommentMessage | undefined> = ref(undefined);\n\n//Composables\nconst { t } = useI18n();\nconst commentStore = useCommentStore();\nconst authStore = useAuthStore();\n\n\n//Computed\nconst displayCommentSection = computed(() => canPostComment.value || nbComments.value > 0);\nconst canPostComment = computed(() => {\n return commentStore.getCanPostComment(\n configPodcast.value,\n props.podcast,\n undefined !== authStore.authOrgaId,\n );\n});\nconst eventActive = computed(() => undefined !== props.podcast?.conferenceId);\n\n\n//Watch\nwatch(()=>commentStore.commentEventToHandle, async () => {\n if (\n !commentStore.commentEventToHandle.length ||\n commentStore.commentPodcastId !== props.podcast?.podcastId\n ){\n return;\n }\n eventToHandle.value = commentStore.commentEventToHandle[0];\n commentStore.commentEventHandled();\n emit('commentReceived');\n}, {deep: true});\n\n\nonBeforeMount(()=>fetchPodcastCommentsConfig())\n\n\n//Methods\nasync function fetchPodcastCommentsConfig() {\n if (!props.podcast?.podcastId) {\n return;\n }\n configPodcast.value = await commentStore.getCommentsConfig(props.podcast);\n if (!eventActive.value) {\n return;\n }\n initLiveComments();\n}\nasync function initLiveComments(): Promise<void> {\n if (!props.podcast?.podcastId || !props.podcast?.organisation.id) {\n return;\n }\n if (!commentStore.commentInitialized) {\n await commentStore.initialize();\n }\n await commentStore.initComments(\n props.podcast.podcastId,\n props.podcast.organisation.id,\n );\n}\nfunction newComment(comment: CommentPodcast) {\n if (eventActive.value) {\n return;\n }\n eventToHandle.value = { type: \"CREATE\", comment: comment };\n}\n</script>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;EA4CA,MAAM,cAAc,2BAA2B,OAAO,6BAAoB;EAC1E,MAAM,eAAe,2BAA2B,OAAO,8BAAqB;EAG5E,MAAM,QAAQ;EAOd,MAAM,OAAO;EAGb,MAAM,SAAS,IAAI,KAAK;EACxB,MAAM,gBAAiD,IAAI,KAAA,CAAS;EACpE,MAAM,aAAa,IAAI,CAAC;EACxB,MAAM,gBAAiD,IAAI,KAAA,CAAS;EAGpE,MAAM,EAAE,MAAM,QAAQ;EACtB,MAAM,eAAe,gBAAgB;EACrC,MAAM,YAAY,aAAa;EAI/B,MAAM,wBAAwB,eAAe,eAAe,SAAS,WA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AA;;qBACnD,mBAMS,UAAA;GALN,OAAO,OAAA,EAAC,SAAA;GACT,OAAM;GACL,SAAK,OAAA,OAAA,OAAA,MAAA,WAAE,OAAA,SAAM,CAAI,OAAA;MAElB,YAAe,OAAA,cAAA,CAAA,GAAA,GAAA,UAAA,CAAA,CAAA;EAIX,OAAA,kBAAA,UAAA,GADR,YAIE,OAAA,iBAAA;;GAFC,SAAS,OAAA;GACT,cAAa,OAAA;;EAEhB,YASE,OAAA,gBAAA;GARQ,eAAa,OAAA;gEAAA,OAAA,aAAU;GAC9B,OAAK,eAAE,OAAA,WAAQ,SAAA,MAAA;GACf,SAAS,OAAA;GACT,gBAAc,OAAA;GACd,QAAQ,OAAA;GACR,QAAQ,OAAA;GACR,mBAAiB,OAAA;GACjB,gBAAc,OAAA;;;;;;;;;;;oBA1BF,OAAA,qBAAqB,CAAA,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CommentSection-xjY6h7nn.mjs","names":[],"sources":["../src/components/display/comments/CommentSection.vue","../src/components/display/comments/CommentSection.vue"],"sourcesContent":["<template>\n <section v-show=\"displayCommentSection\" class=\"module-box\">\n <div class=\"d-flex align-items-center\">\n <component \n :is=\"inStudio? 'div':'h3'\" \n :class=\"inStudio? 'm-1 fw-bold':'mb-0 me-2'\">{{ t(\"Podcast's comments\") }}</component>\n <button\n :title=\"t('Refresh')\"\n class=\"btn btn-transparent\"\n @click=\"reload = !reload\"\n >\n <RefreshIcon />\n </button>\n </div>\n <CommentInput\n v-if=\"canPostComment\"\n :podcast=\"podcast\"\n @new-comment=\"newComment\"\n />\n <CommentList\n v-model:nb-comments=\"nbComments\"\n :class=\"inStudio? 'mt-2':'mt-5'\"\n :podcast=\"podcast\"\n :is-flat-list=\"inStudio\"\n :reload=\"reload\"\n :config=\"configPodcast\"\n :event-to-handle=\"eventToHandle\"\n :state-filter=\"stateFilter\"\n />\n </section>\n</template>\n\n<script setup lang=\"ts\">\nimport RefreshIcon from \"vue-material-design-icons/Refresh.vue\";\nimport { Podcast } from \"@/stores/class/general/podcast\";\nimport { computed, defineAsyncComponent, onBeforeMount, ref, Ref, watch } from \"vue\";\nimport { useCommentStore } from \"../../../stores/CommentStore\";\nimport { useAuthStore } from \"../../../stores/AuthStore\";\nimport {\n CommentMessage,\n CommentsConfig,\n} from \"@/stores/class/config/commentsConfig\";\nimport { CommentPodcast } from \"@/stores/class/general/comment\";\nimport { useI18n } from \"vue-i18n\";\nconst CommentList = defineAsyncComponent(() => import(\"./CommentList.vue\"));\nconst CommentInput = defineAsyncComponent(() => import(\"./CommentInput.vue\"));\n\n//Props \nconst props = defineProps({\n podcast: { default: undefined, type: Object as () => Podcast },\n inStudio: { default: false, type: Boolean },\n stateFilter: { default: \"\", type: String },\n})\n\n//Emits\nconst emit = defineEmits([\"commentReceived\"]);\n\n//Data \nconst reload = ref(false);\nconst configPodcast: Ref<CommentsConfig | undefined> = ref(undefined);\nconst nbComments = ref(0);\nconst eventToHandle: Ref<CommentMessage | undefined> = ref(undefined);\n\n//Composables\nconst { t } = useI18n();\nconst commentStore = useCommentStore();\nconst authStore = useAuthStore();\n\n\n//Computed\nconst displayCommentSection = computed(() => canPostComment.value || nbComments.value > 0);\nconst canPostComment = computed(() => {\n return commentStore.getCanPostComment(\n configPodcast.value,\n props.podcast,\n undefined !== authStore.authOrgaId,\n );\n});\nconst eventActive = computed(() => undefined !== props.podcast?.conferenceId);\n\n\n//Watch\nwatch(()=>commentStore.commentEventToHandle, async () => {\n if (\n !commentStore.commentEventToHandle.length ||\n commentStore.commentPodcastId !== props.podcast?.podcastId\n ){\n return;\n }\n eventToHandle.value = commentStore.commentEventToHandle[0];\n commentStore.commentEventHandled();\n emit('commentReceived');\n}, {deep: true});\n\n\nonBeforeMount(()=>fetchPodcastCommentsConfig())\n\n\n//Methods\nasync function fetchPodcastCommentsConfig() {\n if (!props.podcast?.podcastId) {\n return;\n }\n configPodcast.value = await commentStore.getCommentsConfig(props.podcast);\n if (!eventActive.value) {\n return;\n }\n initLiveComments();\n}\nasync function initLiveComments(): Promise<void> {\n if (!props.podcast?.podcastId || !props.podcast?.organisation.id) {\n return;\n }\n if (!commentStore.commentInitialized) {\n await commentStore.initialize();\n }\n await commentStore.initComments(\n props.podcast.podcastId,\n props.podcast.organisation.id,\n );\n}\nfunction newComment(comment: CommentPodcast) {\n if (eventActive.value) {\n return;\n }\n eventToHandle.value = { type: \"CREATE\", comment: comment };\n}\n</script>\n","<template>\n <section v-show=\"displayCommentSection\" class=\"module-box\">\n <div class=\"d-flex align-items-center\">\n <component \n :is=\"inStudio? 'div':'h3'\" \n :class=\"inStudio? 'm-1 fw-bold':'mb-0 me-2'\">{{ t(\"Podcast's comments\") }}</component>\n <button\n :title=\"t('Refresh')\"\n class=\"btn btn-transparent\"\n @click=\"reload = !reload\"\n >\n <RefreshIcon />\n </button>\n </div>\n <CommentInput\n v-if=\"canPostComment\"\n :podcast=\"podcast\"\n @new-comment=\"newComment\"\n />\n <CommentList\n v-model:nb-comments=\"nbComments\"\n :class=\"inStudio? 'mt-2':'mt-5'\"\n :podcast=\"podcast\"\n :is-flat-list=\"inStudio\"\n :reload=\"reload\"\n :config=\"configPodcast\"\n :event-to-handle=\"eventToHandle\"\n :state-filter=\"stateFilter\"\n />\n </section>\n</template>\n\n<script setup lang=\"ts\">\nimport RefreshIcon from \"vue-material-design-icons/Refresh.vue\";\nimport { Podcast } from \"@/stores/class/general/podcast\";\nimport { computed, defineAsyncComponent, onBeforeMount, ref, Ref, watch } from \"vue\";\nimport { useCommentStore } from \"../../../stores/CommentStore\";\nimport { useAuthStore } from \"../../../stores/AuthStore\";\nimport {\n CommentMessage,\n CommentsConfig,\n} from \"@/stores/class/config/commentsConfig\";\nimport { CommentPodcast } from \"@/stores/class/general/comment\";\nimport { useI18n } from \"vue-i18n\";\nconst CommentList = defineAsyncComponent(() => import(\"./CommentList.vue\"));\nconst CommentInput = defineAsyncComponent(() => import(\"./CommentInput.vue\"));\n\n//Props \nconst props = defineProps({\n podcast: { default: undefined, type: Object as () => Podcast },\n inStudio: { default: false, type: Boolean },\n stateFilter: { default: \"\", type: String },\n})\n\n//Emits\nconst emit = defineEmits([\"commentReceived\"]);\n\n//Data \nconst reload = ref(false);\nconst configPodcast: Ref<CommentsConfig | undefined> = ref(undefined);\nconst nbComments = ref(0);\nconst eventToHandle: Ref<CommentMessage | undefined> = ref(undefined);\n\n//Composables\nconst { t } = useI18n();\nconst commentStore = useCommentStore();\nconst authStore = useAuthStore();\n\n\n//Computed\nconst displayCommentSection = computed(() => canPostComment.value || nbComments.value > 0);\nconst canPostComment = computed(() => {\n return commentStore.getCanPostComment(\n configPodcast.value,\n props.podcast,\n undefined !== authStore.authOrgaId,\n );\n});\nconst eventActive = computed(() => undefined !== props.podcast?.conferenceId);\n\n\n//Watch\nwatch(()=>commentStore.commentEventToHandle, async () => {\n if (\n !commentStore.commentEventToHandle.length ||\n commentStore.commentPodcastId !== props.podcast?.podcastId\n ){\n return;\n }\n eventToHandle.value = commentStore.commentEventToHandle[0];\n commentStore.commentEventHandled();\n emit('commentReceived');\n}, {deep: true});\n\n\nonBeforeMount(()=>fetchPodcastCommentsConfig())\n\n\n//Methods\nasync function fetchPodcastCommentsConfig() {\n if (!props.podcast?.podcastId) {\n return;\n }\n configPodcast.value = await commentStore.getCommentsConfig(props.podcast);\n if (!eventActive.value) {\n return;\n }\n initLiveComments();\n}\nasync function initLiveComments(): Promise<void> {\n if (!props.podcast?.podcastId || !props.podcast?.organisation.id) {\n return;\n }\n if (!commentStore.commentInitialized) {\n await commentStore.initialize();\n }\n await commentStore.initComments(\n props.podcast.podcastId,\n props.podcast.organisation.id,\n );\n}\nfunction newComment(comment: CommentPodcast) {\n if (eventActive.value) {\n return;\n }\n eventToHandle.value = { type: \"CREATE\", comment: comment };\n}\n</script>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;EA4CA,MAAM,cAAc,2BAA2B,OAAO,6BAAoB;EAC1E,MAAM,eAAe,2BAA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;;;;;;;;;;;;;;;;mBC7H0C,OAAM,aAAY;mBACnD,OAAM,4BAA2B;;;qCADxC,mBA4BU,WA5BV,YA4BU;EA3BR,mBAWM,OAXN,YAWM,EAAA,UAAA,GAVJ,YAEwF,wBADjF,OAAA,WAAQ,QAAA,IAAA,GAAA,EACZ,OAAK,eAAE,OAAA,WAAQ,gBAAA,WAAA,EAAA,GAAA;0BAA0D,CAAA,gBAAA,gBAA1B,OAAA,EAAC,oBAAA,CAAA,GAAA,CAAA,CAAA,CAAA;;qBACnD,mBAMS,UAAA;GALN,OAAO,OAAA,EAAC,SAAA;GACT,OAAM;GACL,SAAK,OAAA,OAAA,OAAA,MAAA,WAAE,OAAA,SAAM,CAAI,OAAA;MAElB,YAAe,OAAA,cAAA,CAAA,GAAA,GAAA,UAAA,CAAA,CAAA;EAIX,OAAA,kBAAA,UAAA,GADR,YAIE,OAAA,iBAAA;;GAFC,SAAS,OAAA;GACT,cAAa,OAAA;;EAEhB,YASE,OAAA,gBAAA;GARQ,eAAa,OAAA;gEAAA,OAAA,aAAU;GAC9B,OAAK,eAAE,OAAA,WAAQ,SAAA,MAAA;GACf,SAAS,OAAA;GACT,gBAAc,OAAA;GACd,QAAQ,OAAA;GACR,QAAQ,OAAA;GACR,mBAAiB,OAAA;GACjB,gBAAc,OAAA;;;;;;;;;;;oBA1BF,OAAA,qBAAqB,CAAA,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CommentStore-9WWuGwIj.mjs","names":[],"sources":["../src/websocket/wss.ts","../src/websocket/commentWebsocket.ts","../src/stores/CommentStore.ts"],"sourcesContent":["/* eslint-disable */\nlet SockJS: any = null;\nlet Stomp: any = null;\n/* eslint-enable */\n\ninterface Subscription {\n id: string;\n topic: string;\n callback: (message: { body: string }) => void;\n subscription?: () => void;\n}\n\nexport default class WssConnection {\n url: string;\n endpoint: string;\n subscriptions: Array<Subscription>;\n /* eslint-disable */\n socket: {\n (url: string, _reserved?: any, options?: SockJS.Options | undefined): WebSocket;\n new (url: string, _reserved?: any, options?: SockJS.Options | undefined): WebSocket;\n prototype: WebSocket;\n CONNECTING: SockJS.CONNECTING;\n OPEN: SockJS.OPEN;\n CLOSING: SockJS.CLOSING;\n CLOSED: SockJS.CLOSED;\n }|undefined ;\n client: any;\n queuedMessages: Array<any>;\n processingMsg: boolean;\n wssBroken: boolean;\n /* eslint-enable */\n /**\n *\n * @param {String} url url of the wss\n * @param {String} endpoint of the wss\n * @param {Map<String, Function>} topics list of topics and associated callback\n */\n constructor(url: string, endpoint: string) {\n this.url = url;\n this.endpoint = endpoint;\n this.subscriptions = [];\n this.processingMsg = false;\n this.queuedMessages = [];\n this.wssBroken = false;\n }\n async processQueuedMessages() {\n if (this.processingMsg) {\n return;\n }\n if (this.queuedMessages.length === 0) {\n return;\n }\n this.processingMsg = true;\n try {\n const message = this.queuedMessages.shift();\n await message.callback(message.message);\n } catch (error) {\n console.log(error);\n }\n this.processingMsg = false;\n this.processQueuedMessages();\n }\n\n async connect(): Promise<void> {\n return new Promise<void>((resolve, reject) => {\n (async () => {\n if (null === SockJS) {\n await import(\"sockjs-client/dist/sockjs\").then((sockLibrary) => {\n SockJS = sockLibrary.default;\n });\n }\n if (null === Stomp) {\n await import(\"@stomp/stompjs\").then((stompLibrary) => {\n Stomp = stompLibrary.Stomp;\n });\n }\n this.socket = new SockJS(\"https://\" + this.url + \"/\" + this.endpoint);\n this.client = Stomp.over(this.socket);\n this.client.heartbeat.outgoing = 2000;\n this.client.heartbeat.incoming = 2000;\n this.client.debug = (sockMessage: string) => {\n if (\n sockMessage.includes(\"did not receive server activity for the last\")\n ) {\n this.wssBroken = true;\n }\n };\n this.client.onConnect = () => {\n this.connectionSuccess();\n resolve();\n };\n this.client.onStompError = () => {\n this.wssBroken = true;\n this.connectionErrorReconnect();\n reject(new Error());\n };\n this.client.onWebSocketError = () => {\n this.wssBroken = true;\n this.connectionErrorReconnect();\n reject(new Error());\n };\n this.client.onDisconnect = () => {\n this.connectionErrorReconnect();\n reject(new Error());\n };\n this.client.onWebSocketClose = () => {\n this.connectionErrorReconnect();\n reject(new Error());\n };\n\n this.client.activate();\n })();\n });\n }\n\n async connectionErrorReconnect() {\n if (!this.wssBroken) {\n return;\n }\n console.log(\"Error in ws try to reconnect\");\n setTimeout(() => {\n this.connect();\n }, 10);\n this.wssBroken = false;\n }\n\n connectionSuccess(): void {\n this.subscriptions.forEach((element: Subscription) => {\n // On récupère tous les évènements freeswitch\n try {\n this.subscribe(element.topic, element.callback);\n } catch {\n setTimeout(() => {\n this.connect();\n }, 10000);\n return;\n }\n });\n }\n\n subscribe(topic: string, callback: (message: { body: string }) => any): void {\n const subscription = this.client.subscribe(topic, (message: any) => {\n this.queuedMessages.push({ message: message, callback: callback });\n this.processQueuedMessages();\n });\n this.subscriptions.push({\n id: subscription.id,\n topic: topic,\n callback: callback,\n });\n }\n\n unsubscribe(topic: string): void {\n if (!topic) {\n throw new Error(\n \"Cannot remove subscription if no search pattern is founded\",\n );\n }\n const removedSubscriptions: Array<Subscription> = [];\n this.subscriptions.forEach((item: Subscription) => {\n let valid = true;\n if (item.topic !== topic) {\n valid = false;\n }\n if (valid) {\n removedSubscriptions.push(item);\n try {\n this.client.unsubscribe(item.id);\n } catch {\n console.log(\"Error while deconnecting client with item \" + item.id);\n }\n }\n });\n this.subscriptions = this.subscriptions.filter(\n (item: Subscription) => !removedSubscriptions.includes(item),\n );\n }\n\n disconnect(): void {\n this.client.deactivate();\n }\n}\n","import { CommentMessage } from \"@/stores/class/config/commentsConfig\";\nimport WssConnection from \"./wss\";\n\nexport default class CommentEngine {\n uri: string;\n connection: WssConnection | undefined;\n subscribedEventComment: number|undefined;\n\n constructor(wssDomain: string) {\n this.uri = wssDomain;\n this.connection = undefined;\n this.subscribedEventComment = undefined;\n }\n\n async initialize(): Promise<void> {\n this.connection = new WssConnection(this.uri, \"websocket\");\n await this.connection.connect();\n }\n async close(): Promise<void> {\n if (!this.connection) {\n return;\n }\n this.connection.disconnect();\n this.connection = undefined;\n }\n\n subscribeToPodcastCommentEventBus(\n podcastId: number,\n queueName: string,\n callback: (jsonMessage: CommentMessage) => void,\n ): void {\n if (!this.connection) {\n throw new Error(\n \"Websocket engine must be initialized, before it can subscribe to any events\",\n );\n }\n if (podcastId) {\n this.connection.subscribe(\n queueName,\n (message) => {\n const jsonMessage = JSON.parse(message.body);\n callback.call(this, jsonMessage);\n },\n );\n this.subscribedEventComment = podcastId;\n }\n }\n\n unsubscribeToPodcastCommentEventBus(podcastId: number, queueName: string): void {\n if (!this.connection) {\n throw new Error(\n \"Websocket engine must be initialized, before it can unsubscribe to any events\",\n );\n }\n if (!podcastId) {\n throw new Error(\n \"Cannot unsubscribe to comments event bus if no id provided\",\n );\n }\n this.connection.unsubscribe(queueName);\n this.subscribedEventComment = undefined;\n }\n\n isPodcastCommentEventConnected(podcastId: number): boolean {\n return podcastId===this.subscribedEventComment;\n }\n}\n","//Import dayjs extend\nimport dayjs from \"dayjs\";\nimport relativeTime from \"dayjs/plugin/relativeTime\";\ndayjs.extend(relativeTime);\n\nimport { defineStore } from \"pinia\";\nimport cookiesHelper from \"../helper/cookiesHelper\";\nimport WebSocketEngine from \"../websocket/commentWebsocket\";\nimport { CommentPodcast } from \"./class/general/comment\";\nimport { useAuthStore } from \"./AuthStore\";\nimport { useApiStore } from \"./ApiStore\";\nimport stringHelper from \"../helper/stringHelper\";\nimport { CommentMessage, CommentsConfig } from \"./class/config/commentsConfig\";\nimport classicApi from \"../api/classicApi\";\nimport { Podcast } from \"./class/general/podcast\";\nimport { ListClassicReturn } from \"./class/general/listReturn\";\nfunction errorCommentsConfig(): CommentsConfig {\n return {\n inherited: false,\n abuse: {\n authRequired: true,\n },\n commentLikes: {\n authRequired: true,\n dislikeEnabled: false,\n likeEnabled: false,\n },\n comments: {\n authRequired: true,\n commentAllowed: \"NONE\",\n defaultState: \"PENDING\",\n depth: 2,\n },\n podcastLikes: {\n authRequired: true,\n dislikeEnabled: false,\n likeEnabled: false,\n },\n };\n}\n\n\nexport interface CommentUser {\n name: string | null;\n uuid: string | null;\n uuidHash: string | null;\n}\ninterface CommentState {\n commentInitialized: boolean;\n commentWebsocketengine: WebSocketEngine | undefined;\n commentPodcastId?: number;\n commentQueueName?: string;\n commentEventToHandle: Array<CommentMessage>;\n commentUser?: CommentUser;\n commentsForPlayer: { [key: number]: Array<CommentPodcast> };\n podcastsCommentsConfig: { [key: number]: CommentsConfig };\n}\nexport const useCommentStore = defineStore(\"CommentStore\", {\n state: (): CommentState => ({\n commentInitialized: false,\n commentWebsocketengine: undefined,\n commentPodcastId: undefined,\n commentQueueName: undefined,\n commentEventToHandle: [],\n commentsForPlayer: {},\n podcastsCommentsConfig: {},\n }),\n actions: {\n async fetchCommentsForPlayer(podcastId: number) {\n if (!this.commentsForPlayer[podcastId]) {\n this.commentsForPlayer[podcastId] = [];\n const size = 50;\n let first = 0;\n let keepFetching = true;\n while (keepFetching) {\n const data = await classicApi.fetchData<ListClassicReturn<CommentPodcast>>({\n api:2,\n path:\"comment/list\",\n parameters:{\n first: first,\n size: size,\n podcastId: podcastId,\n sort: \"DATE_DESC\",\n hideAnswers: true,\n state: \"VALIDATED\",\n },\n isNotAuth:true\n });\n first += size;\n this.commentsForPlayer[podcastId] = this.commentsForPlayer[\n podcastId\n ].concat(data.result);\n keepFetching =\n data.count !== this.commentsForPlayer[podcastId].length;\n }\n }\n return this.commentsForPlayer[podcastId];\n },\n async digest(message: string) {\n return Array.from(\n new Uint8Array(\n await crypto.subtle.digest(\n \"SHA-1\",\n new TextEncoder().encode(message),\n ),\n ),\n (byte) => byte.toString(16).padStart(2, \"0\"),\n ).join(\"\");\n },\n async initCommentUser() {\n if (this.commentUser) {\n return;\n }\n const authStore = useAuthStore();\n if (authStore.authProfile) {\n this.commentUser = {\n name: authStore.authName,\n uuid: authStore.authProfile.userId,\n };\n return;\n }\n let uuid = cookiesHelper.getCookie(\"comment-octopus-uuid\");\n if (null === uuid) {\n uuid = stringHelper.uuidv4();\n cookiesHelper.setCookie(\"comment-octopus-uuid\", uuid);\n }\n const hash = await this.digest(uuid);\n this.commentUser = {\n name: cookiesHelper.getCookie(\"comment-octopus-name\"),\n uuid: uuid,\n uuidHash: hash,\n };\n if (\"#miniplayer\" === this.commentUser?.name) {\n this.commentUser.name = null;\n }\n },\n setCommentUser(name: string) {\n const authStore = useAuthStore();\n if (authStore.authProfile || !this.commentUser) {\n return;\n }\n cookiesHelper.setCookie(\"comment-octopus-name\", name);\n this.commentUser.name = name;\n },\n async getCommentsConfig(podcast: Podcast): Promise<CommentsConfig> {\n if (this.podcastsCommentsConfig[podcast.podcastId]) {\n return this.podcastsCommentsConfig[podcast.podcastId];\n }\n try {\n this.podcastsCommentsConfig[podcast.podcastId] = await classicApi.fetchData<CommentsConfig>({\n api: 2,\n path:\"config/podcast/\" + podcast.podcastId,\n });\n } catch {\n try {\n this.podcastsCommentsConfig[podcast.podcastId] = await classicApi.fetchData<CommentsConfig>({\n api: 2,\n path: \"config/emission/\" + podcast.emission.emissionId,\n });\n } catch {\n this.podcastsCommentsConfig[podcast.podcastId] = errorCommentsConfig(); \n }\n }\n return this.podcastsCommentsConfig[podcast.podcastId];\n },\n resetPodcastsConfig() {\n this.podcastsCommentsConfig = {};\n },\n updatePodcastsConfig(podcastId: number, config: CommentsConfig) {\n this.podcastsCommentsConfig[podcastId] = config;\n },\n getCanPostCommentAllowed(\n config: CommentsConfig,\n podcast: Podcast,\n ): boolean {\n if (\"NONE\" === config.comments.commentAllowed) {\n return false;\n }\n const rightsLiveOnly =\n \"LIVE_ONLY\" === config.comments.commentAllowed &&\n undefined !== podcast.conferenceId &&\n \"READY_TO_RECORD\" === podcast.processingStatus;\n const rightsLiveRecord =\n \"LIVE_AND_REPLAY\" === config.comments.commentAllowed &&\n undefined !== podcast.conferenceId;\n return (\n \"ALL\" === config.comments.commentAllowed ||\n rightsLiveOnly ||\n rightsLiveRecord\n );\n },\n getCanPostComment(\n config: CommentsConfig | undefined,\n podcast: Podcast | undefined,\n isAuth: boolean,\n ): boolean {\n if (!config || !podcast) {\n return false;\n }\n return (\n this.getCanPostCommentAllowed(config, podcast) &&\n (!config.comments.authRequired ||\n (config.comments.authRequired && isAuth))\n );\n },\n getCanReportAbuse(\n config: CommentsConfig | undefined,\n isAuth: boolean,\n ): boolean {\n if (!config) {\n return false;\n }\n return (\n !config.abuse.authRequired || (config.abuse.authRequired && isAuth)\n );\n },\n\n /*--------------------------------------------------------------------------------------------------------------\n | |\n | Initializing state |\n | |\n --------------------------------------------------------------------------------------------------------------*/\n async initialize() {\n const apiStore = useApiStore();\n const commentUrl = apiStore.commentUrl?? \"https://comments.dev2.saooti.org/\";\n const url = stringHelper.trimChar(commentUrl.replace(\"https://\", \"\"),\"/\");\n const engine = new WebSocketEngine(url);\n await engine.initialize();\n this.commentWebsocketengine = engine;\n this.commentInitialized = true;\n },\n\n /*--------------------------------------------------------------------------------------------------------------\n | |\n | Comments management methods |\n | |\n --------------------------------------------------------------------------------------------------------------*/\n unsubscribeToEvent() {\n if (!this.commentWebsocketengine) {\n return;\n }\n if (\n this.commentPodcastId &&\n this.commentQueueName &&\n this.commentWebsocketengine.isPodcastCommentEventConnected(\n this.commentPodcastId,\n )\n ) {\n this.commentWebsocketengine.unsubscribeToPodcastCommentEventBus(\n this.commentPodcastId,\n this.commentQueueName,\n );\n }\n },\n\n subscribeToEvents() {\n if (!this.commentWebsocketengine) {\n return;\n }\n if (this.commentPodcastId && this.commentQueueName) {\n this.commentWebsocketengine.subscribeToPodcastCommentEventBus(\n this.commentPodcastId,\n this.commentQueueName,\n (message) => {\n this.commentEventToHandleUpdate(message);\n },\n );\n }\n },\n\n async initComments(podcastId: number, organisationId: string) {\n this.unsubscribeToEvent();\n this.commentQueueName =\n \"/topic/comment.\" + organisationId + \".\" + podcastId;\n this.commentPodcastId = podcastId;\n this.subscribeToEvents();\n },\n async unsubscribeComments() {\n this.unsubscribeComments();\n this.commentPodcastId = undefined;\n },\n\n /*--------------------------------------------------------------------------------------------------------------\n | |\n | Managing conference WebSocket Event Received |\n | |\n --------------------------------------------------------------------------------------------------------------*/\n commentEventHandled() {\n this.commentEventToHandle.shift();\n },\n commentEventToHandleUpdate(eventToHandle: {\n comment: CommentPodcast;\n type: string;\n }) {\n if (eventToHandle) {\n this.commentEventToHandle.push(eventToHandle);\n } else {\n this.commentEventToHandle.splice(0, this.commentEventToHandle.length);\n }\n },\n },\n});\n"],"mappings":";;;;;;;AACA,IAAI,SAAc;AAClB,IAAI,QAAa;AAUjB,IAAqB,gBAArB,MAAmC;CACjC;CACA;CACA;CAEA;CASA;CACA;CACA;CACA;;;;;;;CAQA,YAAY,KAAa,UAAkB;EACzC,KAAK,MAAM;EACX,KAAK,WAAW;EAChB,KAAK,gBAAgB,CAAC;EACtB,KAAK,gBAAgB;EACrB,KAAK,iBAAiB,CAAC;EACvB,KAAK,YAAY;CACnB;CACA,MAAM,wBAAwB;EAC5B,IAAI,KAAK,eACP;EAEF,IAAI,KAAK,eAAe,WAAW,GACjC;EAEF,KAAK,gBAAgB;EACrB,IAAI;GACF,MAAM,UAAU,KAAK,eAAe,MAAM;GAC1C,MAAM,QAAQ,SAAS,QAAQ,OAAO;EACxC,SAAS,OAAO;GACd,QAAQ,IAAI,KAAK;EACnB;EACA,KAAK,gBAAgB;EACrB,KAAK,sBAAsB;CAC7B;CAEA,MAAM,UAAyB;EAC7B,OAAO,IAAI,SAAe,SAAS,WAAW;GAC5C,CAAC,YAAY;IACX,IAAI,SAAS,QACX,MAAM,OAAO,6BAA6B,MAAM,gBAAgB;KAC9D,SAAS,YAAY;IACvB,CAAC;IAEH,IAAI,SAAS,OACX,MAAM,OAAO,kBAAkB,MAAM,iBAAiB;KACpD,QAAQ,aAAa;IACvB,CAAC;IAEH,KAAK,SAAS,IAAI,OAAO,aAAa,KAAK,MAAM,MAAM,KAAK,QAAQ;IACpE,KAAK,SAAS,MAAM,KAAK,KAAK,MAAM;IACpC,KAAK,OAAO,UAAU,WAAW;IACjC,KAA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AAsB;GACpB,KAAK,qBAAqB,MAAM;EAClC;EACA,2BAA2B,eAGxB;GACD,IAAI,eACF,KAAK,qBAAqB,KAAK,aAAa;QAE5C,KAAK,qBAAqB,OAAO,GAAG,KAAK,qBAAqB,MAAM;EAExE;CACF;AACF,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { O as useApiStore, i as useAuthStore, t as classicApi_default } from "./classicApi-
|
|
1
|
+
import { O as useApiStore, i as useAuthStore, t as classicApi_default } from "./classicApi-xjOqAovv.mjs";
|
|
2
2
|
import { t as stringHelper_default } from "./stringHelper-DFr4Khve.mjs";
|
|
3
3
|
import { t as cookiesHelper_default } from "./cookiesHelper-BQksSais.mjs";
|
|
4
4
|
import { defineStore } from "pinia";
|
|
@@ -352,4 +352,4 @@ var useCommentStore = defineStore("CommentStore", {
|
|
|
352
352
|
//#endregion
|
|
353
353
|
export { useCommentStore as t };
|
|
354
354
|
|
|
355
|
-
//# sourceMappingURL=CommentStore-
|
|
355
|
+
//# sourceMappingURL=CommentStore-ClU882RI.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CommentStore-ClU882RI.mjs","names":[],"sources":["../src/websocket/wss.ts","../src/websocket/commentWebsocket.ts","../src/stores/CommentStore.ts"],"sourcesContent":["/* eslint-disable */\nlet SockJS: any = null;\nlet Stomp: any = null;\n/* eslint-enable */\n\ninterface Subscription {\n id: string;\n topic: string;\n callback: (message: { body: string }) => void;\n subscription?: () => void;\n}\n\nexport default class WssConnection {\n url: string;\n endpoint: string;\n subscriptions: Array<Subscription>;\n /* eslint-disable */\n socket: {\n (url: string, _reserved?: any, options?: SockJS.Options | undefined): WebSocket;\n new (url: string, _reserved?: any, options?: SockJS.Options | undefined): WebSocket;\n prototype: WebSocket;\n CONNECTING: SockJS.CONNECTING;\n OPEN: SockJS.OPEN;\n CLOSING: SockJS.CLOSING;\n CLOSED: SockJS.CLOSED;\n }|undefined ;\n client: any;\n queuedMessages: Array<any>;\n processingMsg: boolean;\n wssBroken: boolean;\n /* eslint-enable */\n /**\n *\n * @param {String} url url of the wss\n * @param {String} endpoint of the wss\n * @param {Map<String, Function>} topics list of topics and associated callback\n */\n constructor(url: string, endpoint: string) {\n this.url = url;\n this.endpoint = endpoint;\n this.subscriptions = [];\n this.processingMsg = false;\n this.queuedMessages = [];\n this.wssBroken = false;\n }\n async processQueuedMessages() {\n if (this.processingMsg) {\n return;\n }\n if (this.queuedMessages.length === 0) {\n return;\n }\n this.processingMsg = true;\n try {\n const message = this.queuedMessages.shift();\n await message.callback(message.message);\n } catch (error) {\n console.log(error);\n }\n this.processingMsg = false;\n this.processQueuedMessages();\n }\n\n async connect(): Promise<void> {\n return new Promise<void>((resolve, reject) => {\n (async () => {\n if (null === SockJS) {\n await import(\"sockjs-client/dist/sockjs\").then((sockLibrary) => {\n SockJS = sockLibrary.default;\n });\n }\n if (null === Stomp) {\n await import(\"@stomp/stompjs\").then((stompLibrary) => {\n Stomp = stompLibrary.Stomp;\n });\n }\n this.socket = new SockJS(\"https://\" + this.url + \"/\" + this.endpoint);\n this.client = Stomp.over(this.socket);\n this.client.heartbeat.outgoing = 2000;\n this.client.heartbeat.incoming = 2000;\n this.client.debug = (sockMessage: string) => {\n if (\n sockMessage.includes(\"did not receive server activity for the last\")\n ) {\n this.wssBroken = true;\n }\n };\n this.client.onConnect = () => {\n this.connectionSuccess();\n resolve();\n };\n this.client.onStompError = () => {\n this.wssBroken = true;\n this.connectionErrorReconnect();\n reject(new Error());\n };\n this.client.onWebSocketError = () => {\n this.wssBroken = true;\n this.connectionErrorReconnect();\n reject(new Error());\n };\n this.client.onDisconnect = () => {\n this.connectionErrorReconnect();\n reject(new Error());\n };\n this.client.onWebSocketClose = () => {\n this.connectionErrorReconnect();\n reject(new Error());\n };\n\n this.client.activate();\n })();\n });\n }\n\n async connectionErrorReconnect() {\n if (!this.wssBroken) {\n return;\n }\n console.log(\"Error in ws try to reconnect\");\n setTimeout(() => {\n this.connect();\n }, 10);\n this.wssBroken = false;\n }\n\n connectionSuccess(): void {\n this.subscriptions.forEach((element: Subscription) => {\n // On récupère tous les évènements freeswitch\n try {\n this.subscribe(element.topic, element.callback);\n } catch {\n setTimeout(() => {\n this.connect();\n }, 10000);\n return;\n }\n });\n }\n\n subscribe(topic: string, callback: (message: { body: string }) => any): void {\n const subscription = this.client.subscribe(topic, (message: any) => {\n this.queuedMessages.push({ message: message, callback: callback });\n this.processQueuedMessages();\n });\n this.subscriptions.push({\n id: subscription.id,\n topic: topic,\n callback: callback,\n });\n }\n\n unsubscribe(topic: string): void {\n if (!topic) {\n throw new Error(\n \"Cannot remove subscription if no search pattern is founded\",\n );\n }\n const removedSubscriptions: Array<Subscription> = [];\n this.subscriptions.forEach((item: Subscription) => {\n let valid = true;\n if (item.topic !== topic) {\n valid = false;\n }\n if (valid) {\n removedSubscriptions.push(item);\n try {\n this.client.unsubscribe(item.id);\n } catch {\n console.log(\"Error while deconnecting client with item \" + item.id);\n }\n }\n });\n this.subscriptions = this.subscriptions.filter(\n (item: Subscription) => !removedSubscriptions.includes(item),\n );\n }\n\n disconnect(): void {\n this.client.deactivate();\n }\n}\n","import { CommentMessage } from \"@/stores/class/config/commentsConfig\";\nimport WssConnection from \"./wss\";\n\nexport default class CommentEngine {\n uri: string;\n connection: WssConnection | undefined;\n subscribedEventComment: number|undefined;\n\n constructor(wssDomain: string) {\n this.uri = wssDomain;\n this.connection = undefined;\n this.subscribedEventComment = undefined;\n }\n\n async initialize(): Promise<void> {\n this.connection = new WssConnection(this.uri, \"websocket\");\n await this.connection.connect();\n }\n async close(): Promise<void> {\n if (!this.connection) {\n return;\n }\n this.connection.disconnect();\n this.connection = undefined;\n }\n\n subscribeToPodcastCommentEventBus(\n podcastId: number,\n queueName: string,\n callback: (jsonMessage: CommentMessage) => void,\n ): void {\n if (!this.connection) {\n throw new Error(\n \"Websocket engine must be initialized, before it can subscribe to any events\",\n );\n }\n if (podcastId) {\n this.connection.subscribe(\n queueName,\n (message) => {\n const jsonMessage = JSON.parse(message.body);\n callback.call(this, jsonMessage);\n },\n );\n this.subscribedEventComment = podcastId;\n }\n }\n\n unsubscribeToPodcastCommentEventBus(podcastId: number, queueName: string): void {\n if (!this.connection) {\n throw new Error(\n \"Websocket engine must be initialized, before it can unsubscribe to any events\",\n );\n }\n if (!podcastId) {\n throw new Error(\n \"Cannot unsubscribe to comments event bus if no id provided\",\n );\n }\n this.connection.unsubscribe(queueName);\n this.subscribedEventComment = undefined;\n }\n\n isPodcastCommentEventConnected(podcastId: number): boolean {\n return podcastId===this.subscribedEventComment;\n }\n}\n","//Import dayjs extend\nimport dayjs from \"dayjs\";\nimport relativeTime from \"dayjs/plugin/relativeTime\";\ndayjs.extend(relativeTime);\n\nimport { defineStore } from \"pinia\";\nimport cookiesHelper from \"../helper/cookiesHelper\";\nimport WebSocketEngine from \"../websocket/commentWebsocket\";\nimport { CommentPodcast } from \"./class/general/comment\";\nimport { useAuthStore } from \"./AuthStore\";\nimport { useApiStore } from \"./ApiStore\";\nimport stringHelper from \"../helper/stringHelper\";\nimport { CommentMessage, CommentsConfig } from \"./class/config/commentsConfig\";\nimport classicApi from \"../api/classicApi\";\nimport { Podcast } from \"./class/general/podcast\";\nimport { ListClassicReturn } from \"./class/general/listReturn\";\nfunction errorCommentsConfig(): CommentsConfig {\n return {\n inherited: false,\n abuse: {\n authRequired: true,\n },\n commentLikes: {\n authRequired: true,\n dislikeEnabled: false,\n likeEnabled: false,\n },\n comments: {\n authRequired: true,\n commentAllowed: \"NONE\",\n defaultState: \"PENDING\",\n depth: 2,\n },\n podcastLikes: {\n authRequired: true,\n dislikeEnabled: false,\n likeEnabled: false,\n },\n };\n}\n\n\nexport interface CommentUser {\n name: string | null;\n uuid: string | null;\n uuidHash: string | null;\n}\ninterface CommentState {\n commentInitialized: boolean;\n commentWebsocketengine: WebSocketEngine | undefined;\n commentPodcastId?: number;\n commentQueueName?: string;\n commentEventToHandle: Array<CommentMessage>;\n commentUser?: CommentUser;\n commentsForPlayer: { [key: number]: Array<CommentPodcast> };\n podcastsCommentsConfig: { [key: number]: CommentsConfig };\n}\nexport const useCommentStore = defineStore(\"CommentStore\", {\n state: (): CommentState => ({\n commentInitialized: false,\n commentWebsocketengine: undefined,\n commentPodcastId: undefined,\n commentQueueName: undefined,\n commentEventToHandle: [],\n commentsForPlayer: {},\n podcastsCommentsConfig: {},\n }),\n actions: {\n async fetchCommentsForPlayer(podcastId: number) {\n if (!this.commentsForPlayer[podcastId]) {\n this.commentsForPlayer[podcastId] = [];\n const size = 50;\n let first = 0;\n let keepFetching = true;\n while (keepFetching) {\n const data = await classicApi.fetchData<ListClassicReturn<CommentPodcast>>({\n api:2,\n path:\"comment/list\",\n parameters:{\n first: first,\n size: size,\n podcastId: podcastId,\n sort: \"DATE_DESC\",\n hideAnswers: true,\n state: \"VALIDATED\",\n },\n isNotAuth:true\n });\n first += size;\n this.commentsForPlayer[podcastId] = this.commentsForPlayer[\n podcastId\n ].concat(data.result);\n keepFetching =\n data.count !== this.commentsForPlayer[podcastId].length;\n }\n }\n return this.commentsForPlayer[podcastId];\n },\n async digest(message: string) {\n return Array.from(\n new Uint8Array(\n await crypto.subtle.digest(\n \"SHA-1\",\n new TextEncoder().encode(message),\n ),\n ),\n (byte) => byte.toString(16).padStart(2, \"0\"),\n ).join(\"\");\n },\n async initCommentUser() {\n if (this.commentUser) {\n return;\n }\n const authStore = useAuthStore();\n if (authStore.authProfile) {\n this.commentUser = {\n name: authStore.authName,\n uuid: authStore.authProfile.userId,\n };\n return;\n }\n let uuid = cookiesHelper.getCookie(\"comment-octopus-uuid\");\n if (null === uuid) {\n uuid = stringHelper.uuidv4();\n cookiesHelper.setCookie(\"comment-octopus-uuid\", uuid);\n }\n const hash = await this.digest(uuid);\n this.commentUser = {\n name: cookiesHelper.getCookie(\"comment-octopus-name\"),\n uuid: uuid,\n uuidHash: hash,\n };\n if (\"#miniplayer\" === this.commentUser?.name) {\n this.commentUser.name = null;\n }\n },\n setCommentUser(name: string) {\n const authStore = useAuthStore();\n if (authStore.authProfile || !this.commentUser) {\n return;\n }\n cookiesHelper.setCookie(\"comment-octopus-name\", name);\n this.commentUser.name = name;\n },\n async getCommentsConfig(podcast: Podcast): Promise<CommentsConfig> {\n if (this.podcastsCommentsConfig[podcast.podcastId]) {\n return this.podcastsCommentsConfig[podcast.podcastId];\n }\n try {\n this.podcastsCommentsConfig[podcast.podcastId] = await classicApi.fetchData<CommentsConfig>({\n api: 2,\n path:\"config/podcast/\" + podcast.podcastId,\n });\n } catch {\n try {\n this.podcastsCommentsConfig[podcast.podcastId] = await classicApi.fetchData<CommentsConfig>({\n api: 2,\n path: \"config/emission/\" + podcast.emission.emissionId,\n });\n } catch {\n this.podcastsCommentsConfig[podcast.podcastId] = errorCommentsConfig(); \n }\n }\n return this.podcastsCommentsConfig[podcast.podcastId];\n },\n resetPodcastsConfig() {\n this.podcastsCommentsConfig = {};\n },\n updatePodcastsConfig(podcastId: number, config: CommentsConfig) {\n this.podcastsCommentsConfig[podcastId] = config;\n },\n getCanPostCommentAllowed(\n config: CommentsConfig,\n podcast: Podcast,\n ): boolean {\n if (\"NONE\" === config.comments.commentAllowed) {\n return false;\n }\n const rightsLiveOnly =\n \"LIVE_ONLY\" === config.comments.commentAllowed &&\n undefined !== podcast.conferenceId &&\n \"READY_TO_RECORD\" === podcast.processingStatus;\n const rightsLiveRecord =\n \"LIVE_AND_REPLAY\" === config.comments.commentAllowed &&\n undefined !== podcast.conferenceId;\n return (\n \"ALL\" === config.comments.commentAllowed ||\n rightsLiveOnly ||\n rightsLiveRecord\n );\n },\n getCanPostComment(\n config: CommentsConfig | undefined,\n podcast: Podcast | undefined,\n isAuth: boolean,\n ): boolean {\n if (!config || !podcast) {\n return false;\n }\n return (\n this.getCanPostCommentAllowed(config, podcast) &&\n (!config.comments.authRequired ||\n (config.comments.authRequired && isAuth))\n );\n },\n getCanReportAbuse(\n config: CommentsConfig | undefined,\n isAuth: boolean,\n ): boolean {\n if (!config) {\n return false;\n }\n return (\n !config.abuse.authRequired || (config.abuse.authRequired && isAuth)\n );\n },\n\n /*--------------------------------------------------------------------------------------------------------------\n | |\n | Initializing state |\n | |\n --------------------------------------------------------------------------------------------------------------*/\n async initialize() {\n const apiStore = useApiStore();\n const commentUrl = apiStore.commentUrl?? \"https://comments.dev2.saooti.org/\";\n const url = stringHelper.trimChar(commentUrl.replace(\"https://\", \"\"),\"/\");\n const engine = new WebSocketEngine(url);\n await engine.initialize();\n this.commentWebsocketengine = engine;\n this.commentInitialized = true;\n },\n\n /*--------------------------------------------------------------------------------------------------------------\n | |\n | Comments management methods |\n | |\n --------------------------------------------------------------------------------------------------------------*/\n unsubscribeToEvent() {\n if (!this.commentWebsocketengine) {\n return;\n }\n if (\n this.commentPodcastId &&\n this.commentQueueName &&\n this.commentWebsocketengine.isPodcastCommentEventConnected(\n this.commentPodcastId,\n )\n ) {\n this.commentWebsocketengine.unsubscribeToPodcastCommentEventBus(\n this.commentPodcastId,\n this.commentQueueName,\n );\n }\n },\n\n subscribeToEvents() {\n if (!this.commentWebsocketengine) {\n return;\n }\n if (this.commentPodcastId && this.commentQueueName) {\n this.commentWebsocketengine.subscribeToPodcastCommentEventBus(\n this.commentPodcastId,\n this.commentQueueName,\n (message) => {\n this.commentEventToHandleUpdate(message);\n },\n );\n }\n },\n\n async initComments(podcastId: number, organisationId: string) {\n this.unsubscribeToEvent();\n this.commentQueueName =\n \"/topic/comment.\" + organisationId + \".\" + podcastId;\n this.commentPodcastId = podcastId;\n this.subscribeToEvents();\n },\n async unsubscribeComments() {\n this.unsubscribeComments();\n this.commentPodcastId = undefined;\n },\n\n /*--------------------------------------------------------------------------------------------------------------\n | |\n | Managing conference WebSocket Event Received |\n | |\n --------------------------------------------------------------------------------------------------------------*/\n commentEventHandled() {\n this.commentEventToHandle.shift();\n },\n commentEventToHandleUpdate(eventToHandle: {\n comment: CommentPodcast;\n type: string;\n }) {\n if (eventToHandle) {\n this.commentEventToHandle.push(eventToHandle);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
|
|
1
|
+
{"version":3,"file":"ContractPreviewModal-C4_20E99.mjs","names":[],"sources":["../src/components/misc/modal/ContractPreviewModal.vue","../src/components/misc/modal/ContractPreviewModal.vue"],"sourcesContent":["<template>\n <ClassicModal\n id-modal=\"checking-modal\"\n :title-modal=\"t('Contract preview')\"\n @close=\"closePopup\"\n >\n <template #body>\n <h2 class=\"mb-3\">{{ selectedContract?.name }}</h2>\n <div v-for=\"page in thisPages\" :key=\"page\">\n <VuePDF :pdf=\"thisPdf\" :page=\"page\" />\n </div>\n </template>\n <template #footer>\n <div class=\"d-flex justify-content-end\">\n <button class=\"btn btn-primary m-1\" @click=\"onDownloadContract()\">\n {{ t(\"Download\") }}\n </button>\n <button class=\"btn m-1 btn-primary\" @click=\"closePopup\">\n {{ t(\"Close\") }}\n </button>\n </div>\n </template>\n </ClassicModal>\n</template>\n\n<script setup lang=\"ts\">\nimport { useApiStore } from \"../../../stores/ApiStore\";\nimport { useAuthStore } from \"../../../stores/AuthStore\";\nimport { Contract } from \"../../../stores/class/contract/contract\";\n// @ts-expect-error Problème de bibliothèque\nimport { usePDF, VuePDF, PDFDocumentLoadingTask } from \"@tato30/vue-pdf\";\nimport { defineAsyncComponent, ShallowRef, ref, Ref, computed, watch, onMounted } from \"vue\";\nimport { useI18n } from \"vue-i18n\";\nconst ClassicModal = defineAsyncComponent(() => import(\"./ClassicModal.vue\"));\n\n\n//Props \nconst props = defineProps({\n selectedContract: { default: undefined, type: Object as () => Contract },\n})\n\n//Emits\nconst emit = defineEmits([\"download\", \"close\"]);\n\n\n//Data \nconst pdfSource = ref(\"\");\nconst thisPdf: Ref<PDFDocumentLoadingTask> = ref(undefined);\nconst thisPages: Ref< number | ShallowRef<number>> = ref(0);\n\n//Composables\nconst { t } = useI18n();\nconst authStore = useAuthStore();\nconst apiStore = useApiStore();\n\n//Computed\nconst pdfToDisplay = computed(() => {\n if (\"\" !== pdfSource.value) {\n return pdfSource.value;\n }\n return undefined;\n});\n\n//Watch\nwatch(pdfToDisplay, async () => {\n if (undefined === pdfToDisplay.value) {\n return;\n }\n const { pdf, pages } = usePDF(pdfToDisplay.value);\n thisPdf.value = pdf;\n thisPages.value = pages;\n});\n\nonMounted(()=>initSrcContract())\n\n\n//Methods\nfunction closePopup(): void {\n emit(\"close\");\n}\nfunction initSrcContract(): void {\n let source = \"\";\n if (props.selectedContract) {\n source = apiStore.keycloakUrl + \"contract/\" + props.selectedContract.id;\n }\n pdfSource.value = source + \"?access_token=\" + authStore.authParam.accessToken;\n}\nfunction onDownloadContract(): void {\n emit(\"download\", props.selectedContract);\n}\n</script>\n","<template>\n <ClassicModal\n id-modal=\"checking-modal\"\n :title-modal=\"t('Contract preview')\"\n @close=\"closePopup\"\n >\n <template #body>\n <h2 class=\"mb-3\">{{ selectedContract?.name }}</h2>\n <div v-for=\"page in thisPages\" :key=\"page\">\n <VuePDF :pdf=\"thisPdf\" :page=\"page\" />\n </div>\n </template>\n <template #footer>\n <div class=\"d-flex justify-content-end\">\n <button class=\"btn btn-primary m-1\" @click=\"onDownloadContract()\">\n {{ t(\"Download\") }}\n </button>\n <button class=\"btn m-1 btn-primary\" @click=\"closePopup\">\n {{ t(\"Close\") }}\n </button>\n </div>\n </template>\n </ClassicModal>\n</template>\n\n<script setup lang=\"ts\">\nimport { useApiStore } from \"../../../stores/ApiStore\";\nimport { useAuthStore } from \"../../../stores/AuthStore\";\nimport { Contract } from \"../../../stores/class/contract/contract\";\n// @ts-expect-error Problème de bibliothèque\nimport { usePDF, VuePDF, PDFDocumentLoadingTask } from \"@tato30/vue-pdf\";\nimport { defineAsyncComponent, ShallowRef, ref, Ref, computed, watch, onMounted } from \"vue\";\nimport { useI18n } from \"vue-i18n\";\nconst ClassicModal = defineAsyncComponent(() => import(\"./ClassicModal.vue\"));\n\n\n//Props \nconst props = defineProps({\n selectedContract: { default: undefined, type: Object as () => Contract },\n})\n\n//Emits\nconst emit = defineEmits([\"download\", \"close\"]);\n\n\n//Data \nconst pdfSource = ref(\"\");\nconst thisPdf: Ref<PDFDocumentLoadingTask> = ref(undefined);\nconst thisPages: Ref< number | ShallowRef<number>> = ref(0);\n\n//Composables\nconst { t } = useI18n();\nconst authStore = useAuthStore();\nconst apiStore = useApiStore();\n\n//Computed\nconst pdfToDisplay = computed(() => {\n if (\"\" !== pdfSource.value) {\n return pdfSource.value;\n }\n return undefined;\n});\n\n//Watch\nwatch(pdfToDisplay, async () => {\n if (undefined === pdfToDisplay.value) {\n return;\n }\n const { pdf, pages } = usePDF(pdfToDisplay.value);\n thisPdf.value = pdf;\n thisPages.value = pages;\n});\n\nonMounted(()=>initSrcContract())\n\n\n//Methods\nfunction closePopup(): void {\n emit(\"close\");\n}\nfunction initSrcContract(): void {\n let source = \"\";\n if (props.selectedContract) {\n source = apiStore.keycloakUrl + \"contract/\" + props.selectedContract.id;\n }\n pdfSource.value = source + \"?access_token=\" + authStore.authParam.accessToken;\n}\nfunction onDownloadContract(): void {\n emit(\"download\", props.selectedContract);\n}\n</script>\n"],"mappings":";;;;;;;;;;;;;;;EAiCA,MAAM,eAAe,2BAA2B,OAAO,+BAAA,MAAA,MAAA,EAAA,CAAA,CAAqB;EAI5E,MAAM,QAAQ;EAKd,MAAM,OAAO;EAIb,MAAM,YAAY,IAAI,EAAE;EACxB,MAAM,UAAuC,IAAI,KAAA,CAAS;EAC1D,MAAM,YAA+C,IAAI,CAAC;EAG1D,MAAM,EAAE,MAAM,QAAQ;EACtB,MAAM,YAAY,aAAa;EAC/B,MAAM,WAAW,YAAY;EAG7B,MAAM,eAAe,eAAe;GAClC,IAAI,OAAO,UAAU,OACnB,OAAO,UAAU;EAGrB,CAAC;EAGD,MAAM,cAAc,YAAY;GAC9B,IAAI,KAAA,MAAc,aAAa,OAC7B;GAEF,MAAM,EAAE,KAAK,UAAU,OAAO,aAAa,KAAK;GAChD,QAAQ,QAAQ;GAChB,UAAU,QAAQ;EACpB,CAAC;EAED,gBAAc,gBAAgB,CAAC;EAI/B,SAAS,aAAmB;GAC1B,KAAK,OAAO;EACd;EACA,SAAS,kBAAwB;GAC/B,IAAI,SAAS;GACb,IAAI,MAAM,kBACR,SAAS,SAAS,cAAc,cAAc,MAAM,iBAAiB;GAEvE,UAAU,QAAQ,SAAS,mBAAmB,UAAU,UAAU;EACpE;EACA,SAAS,qBAA2B;GAClC,KAAK,YAAY,MAAM,gBAAgB;EACzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBClFU,OAAM,OAAM;mBAMX,OAAM,6BAA4B;;qBAZ3C,YAqBe,OAAA,iBAAA;EApBb,YAAS;EACR,eAAa,OAAA,EAAC,kBAAA;EACd,SAAO,OAAA;;EAEG,MAAI,cACqC,CAAlD,mBAAkD,MAAlD,YAAkD,gBAA9B,OAAA,kBAAkB,IAAI,GAAA,CAAA,IAAA,UAAA,IAAA,GAC1C,mBAEM,UAAA,MAAA,WAFc,OAAA,YAAR,SAAI;uBAAhB,mBAEM,OAAA,EAF0B,KAAK,KAAI,GAAA,CACvC,YAAsC,OAAA,WAAA;IAA7B,KAAK,OAAA;IAAgB;;;EAGvB,QAAM,cAQT,CAPN,mBAOM,OAPN,YAOM,CANJ,mBAES,UAAA;GAFD,OAAM;GAAuB,SAAK,OAAA,OAAA,OAAA,MAAA,WAAE,OAAA,mBAAkB;qBACzD,OAAA,EAAC,UAAA,CAAA,GAAA,CAAA,GAEN,mBAES,UAAA;GAFD,OAAM;GAAuB,SAAO,OAAA;qBACvC,OAAA,EAAC,OAAA,CAAA,GAAA,CAAA,CAAA,CAAA,CAAA,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper-BOaGB7Aw.mjs";
|
|
2
|
-
import { O as useApiStore, i as useAuthStore } from "./classicApi-
|
|
2
|
+
import { O as useApiStore, i as useAuthStore } from "./classicApi-xjOqAovv.mjs";
|
|
3
3
|
import { Fragment, computed, createBlock, createElementBlock, createElementVNode, createVNode, defineAsyncComponent, defineComponent, onMounted, openBlock, ref, renderList, toDisplayString, watch, withCtx } from "vue";
|
|
4
4
|
import { useI18n } from "vue-i18n";
|
|
5
5
|
import { VuePDF, usePDF } from "@tato30/vue-pdf";
|
|
@@ -98,4 +98,4 @@ var ContractPreviewModal_default = /*#__PURE__*/ _plugin_vue_export_helper_defau
|
|
|
98
98
|
//#endregion
|
|
99
99
|
export { ContractPreviewModal_default as default };
|
|
100
100
|
|
|
101
|
-
//# sourceMappingURL=ContractPreviewModal-
|
|
101
|
+
//# sourceMappingURL=ContractPreviewModal-Dn5MeLFo.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContractPreviewModal-Dn5MeLFo.mjs","names":[],"sources":["../src/components/misc/modal/ContractPreviewModal.vue","../src/components/misc/modal/ContractPreviewModal.vue"],"sourcesContent":["<template>\n <ClassicModal\n id-modal=\"checking-modal\"\n :title-modal=\"t('Contract preview')\"\n @close=\"closePopup\"\n >\n <template #body>\n <h2 class=\"mb-3\">{{ selectedContract?.name }}</h2>\n <div v-for=\"page in thisPages\" :key=\"page\">\n <VuePDF :pdf=\"thisPdf\" :page=\"page\" />\n </div>\n </template>\n <template #footer>\n <div class=\"d-flex justify-content-end\">\n <button class=\"btn btn-primary m-1\" @click=\"onDownloadContract()\">\n {{ t(\"Download\") }}\n </button>\n <button class=\"btn m-1 btn-primary\" @click=\"closePopup\">\n {{ t(\"Close\") }}\n </button>\n </div>\n </template>\n </ClassicModal>\n</template>\n\n<script setup lang=\"ts\">\nimport { useApiStore } from \"../../../stores/ApiStore\";\nimport { useAuthStore } from \"../../../stores/AuthStore\";\nimport { Contract } from \"../../../stores/class/contract/contract\";\n// @ts-expect-error Problème de bibliothèque\nimport { usePDF, VuePDF, PDFDocumentLoadingTask } from \"@tato30/vue-pdf\";\nimport { defineAsyncComponent, ShallowRef, ref, Ref, computed, watch, onMounted } from \"vue\";\nimport { useI18n } from \"vue-i18n\";\nconst ClassicModal = defineAsyncComponent(() => import(\"./ClassicModal.vue\"));\n\n\n//Props \nconst props = defineProps({\n selectedContract: { default: undefined, type: Object as () => Contract },\n})\n\n//Emits\nconst emit = defineEmits([\"download\", \"close\"]);\n\n\n//Data \nconst pdfSource = ref(\"\");\nconst thisPdf: Ref<PDFDocumentLoadingTask> = ref(undefined);\nconst thisPages: Ref< number | ShallowRef<number>> = ref(0);\n\n//Composables\nconst { t } = useI18n();\nconst authStore = useAuthStore();\nconst apiStore = useApiStore();\n\n//Computed\nconst pdfToDisplay = computed(() => {\n if (\"\" !== pdfSource.value) {\n return pdfSource.value;\n }\n return undefined;\n});\n\n//Watch\nwatch(pdfToDisplay, async () => {\n if (undefined === pdfToDisplay.value) {\n return;\n }\n const { pdf, pages } = usePDF(pdfToDisplay.value);\n thisPdf.value = pdf;\n thisPages.value = pages;\n});\n\nonMounted(()=>initSrcContract())\n\n\n//Methods\nfunction closePopup(): void {\n emit(\"close\");\n}\nfunction initSrcContract(): void {\n let source = \"\";\n if (props.selectedContract) {\n source = apiStore.keycloakUrl + \"contract/\" + props.selectedContract.id;\n }\n pdfSource.value = source + \"?access_token=\" + authStore.authParam.accessToken;\n}\nfunction onDownloadContract(): void {\n emit(\"download\", props.selectedContract);\n}\n</script>\n","<template>\n <ClassicModal\n id-modal=\"checking-modal\"\n :title-modal=\"t('Contract preview')\"\n @close=\"closePopup\"\n >\n <template #body>\n <h2 class=\"mb-3\">{{ selectedContract?.name }}</h2>\n <div v-for=\"page in thisPages\" :key=\"page\">\n <VuePDF :pdf=\"thisPdf\" :page=\"page\" />\n </div>\n </template>\n <template #footer>\n <div class=\"d-flex justify-content-end\">\n <button class=\"btn btn-primary m-1\" @click=\"onDownloadContract()\">\n {{ t(\"Download\") }}\n </button>\n <button class=\"btn m-1 btn-primary\" @click=\"closePopup\">\n {{ t(\"Close\") }}\n </button>\n </div>\n </template>\n </ClassicModal>\n</template>\n\n<script setup lang=\"ts\">\nimport { useApiStore } from \"../../../stores/ApiStore\";\nimport { useAuthStore } from \"../../../stores/AuthStore\";\nimport { Contract } from \"../../../stores/class/contract/contract\";\n// @ts-expect-error Problème de bibliothèque\nimport { usePDF, VuePDF, PDFDocumentLoadingTask } from \"@tato30/vue-pdf\";\nimport { defineAsyncComponent, ShallowRef, ref, Ref, computed, watch, onMounted } from \"vue\";\nimport { useI18n } from \"vue-i18n\";\nconst ClassicModal = defineAsyncComponent(() => import(\"./ClassicModal.vue\"));\n\n\n//Props \nconst props = defineProps({\n selectedContract: { default: undefined, type: Object as () => Contract },\n})\n\n//Emits\nconst emit = defineEmits([\"download\", \"close\"]);\n\n\n//Data \nconst pdfSource = ref(\"\");\nconst thisPdf: Ref<PDFDocumentLoadingTask> = ref(undefined);\nconst thisPages: Ref< number | ShallowRef<number>> = ref(0);\n\n//Composables\nconst { t } = useI18n();\nconst authStore = useAuthStore();\nconst apiStore = useApiStore();\n\n//Computed\nconst pdfToDisplay = computed(() => {\n if (\"\" !== pdfSource.value) {\n return pdfSource.value;\n }\n return undefined;\n});\n\n//Watch\nwatch(pdfToDisplay, async () => {\n if (undefined === pdfToDisplay.value) {\n return;\n }\n const { pdf, pages } = usePDF(pdfToDisplay.value);\n thisPdf.value = pdf;\n thisPages.value = pages;\n});\n\nonMounted(()=>initSrcContract())\n\n\n//Methods\nfunction closePopup(): void {\n emit(\"close\");\n}\nfunction initSrcContract(): void {\n let source = \"\";\n if (props.selectedContract) {\n source = apiStore.keycloakUrl + \"contract/\" + props.selectedContract.id;\n }\n pdfSource.value = source + \"?access_token=\" + authStore.authParam.accessToken;\n}\nfunction onDownloadContract(): void {\n emit(\"download\", props.selectedContract);\n}\n</script>\n"],"mappings":";;;;;;;;;;;;;;;EAiCA,MAAM,eAAe,2BAA2B,OAAO,+BAAA,MAAA,MAAA,EAAA,CAAA,CAAqB;EAI5E,MAAM,QAAQ;EAKd,MAAM,OAAO;EAIb,MAAM,YAAY,IAAI,EAAE;EACxB,MAAM,UAAuC,IAAI,KAAA,CAAS;EAC1D,MAAM,YAA+C,IAAI,CAAC;EAG1D,MA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,SAAO,OAAA;qBACvC,OAAA,EAAC,OAAA,CAAA,GAAA,CAAA,CAAA,CAAA,CAAA,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper-BOaGB7Aw.mjs";
|
|
2
|
-
import { m as podcastApi } from "./classicApi-
|
|
3
|
-
import { t as downloadHelper_default } from "./downloadHelper-
|
|
2
|
+
import { m as podcastApi } from "./classicApi-xjOqAovv.mjs";
|
|
3
|
+
import { t as downloadHelper_default } from "./downloadHelper-DY3fF3dA.mjs";
|
|
4
4
|
import { createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, openBlock } from "vue";
|
|
5
5
|
import { useI18n } from "vue-i18n";
|
|
6
6
|
import DownloadIcon from "vue-material-design-icons/Download.vue";
|
|
@@ -50,4 +50,4 @@ var DownloadPodcastButton_default = /*#__PURE__*/ _plugin_vue_export_helper_defa
|
|
|
50
50
|
//#endregion
|
|
51
51
|
export { DownloadPodcastButton_default as default };
|
|
52
52
|
|
|
53
|
-
//# sourceMappingURL=DownloadPodcastButton-
|
|
53
|
+
//# sourceMappingURL=DownloadPodcastButton-BI_sZWcJ.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DownloadPodcastButton-BI_sZWcJ.mjs","names":[],"sources":["../src/components/display/podcasts/DownloadPodcastButton.vue","../src/components/display/podcasts/DownloadPodcastButton.vue"],"sourcesContent":["<template>\n <div v-if=\"podcast\" class=\"d-flex align-items-center mt-1\">\n <button\n class=\"btn btn-round-light ms-2\"\n :title=\"t('Download')\"\n @click=\"downloadPodcast\"\n >\n <DownloadIcon />\n </button>\n </div>\n</template>\n\n<script setup lang=\"ts\">\nimport DownloadIcon from \"vue-material-design-icons/Download.vue\";\nimport { Podcast } from \"@/stores/class/general/podcast\";\nimport downloadHelper from \"../../../helper/downloadHelper\";\nimport { useI18n } from \"vue-i18n\";\nimport { podcastApi } from \"@/api\";\n\n//Props \nconst props = defineProps({\n podcast: { default: undefined, type: Object as () => Podcast },\n})\n\n//Composables\nconst { t } = useI18n();\n\n//Methods\nasync function downloadPodcast() {\n const data = await podcastApi.downloadRegister(props.podcast?.podcastId, {\n origin: 'saooti_play_download'\n });\n downloadHelper.onDownload(\"/download/url?param=\"+encodeURIComponent(data.location), props.podcast?.title + \".mp3\");\n}\n</script>\n","<template>\n <div v-if=\"podcast\" class=\"d-flex align-items-center mt-1\">\n <button\n class=\"btn btn-round-light ms-2\"\n :title=\"t('Download')\"\n @click=\"downloadPodcast\"\n >\n <DownloadIcon />\n </button>\n </div>\n</template>\n\n<script setup lang=\"ts\">\nimport DownloadIcon from \"vue-material-design-icons/Download.vue\";\nimport { Podcast } from \"@/stores/class/general/podcast\";\nimport downloadHelper from \"../../../helper/downloadHelper\";\nimport { useI18n } from \"vue-i18n\";\nimport { podcastApi } from \"@/api\";\n\n//Props \nconst props = defineProps({\n podcast: { default: undefined, type: Object as () => Podcast },\n})\n\n//Composables\nconst { t } = useI18n();\n\n//Methods\nasync function downloadPodcast() {\n const data = await podcastApi.downloadRegister(props.podcast?.podcastId, {\n origin: 'saooti_play_download'\n });\n downloadHelper.onDownload(\"/download/url?param=\"+encodeURIComponent(data.location), props.podcast?.title + \".mp3\");\n}\n</script>\n"],"mappings":";;;;;;;;;;;;;;;EAoBA,MAAM,QAAQ;EAKd,MAAM,EAAE,MAAM,QAAQ;EAGtB,eAAe,kBAAkB;GAC/B,MAAM,OAAO,MAAM,WAAW,iBAAiB,MAAM,SAAS,WAAW,EACvE,QAAQ,uBACV,CAAC;GACD,uBAAe,WAAW,yBAAuB,mBAAmB,KAAK,QAAQ,GAAG,MAAM,SAAS,QAAQ,MAAM;EACnH;;;;;;;;;;;;;;;;;;CChCsB,OAAM;;;;QAAf,OAAA,WAAA,UAAA,GAAX,mBAQM,OARN,YAQM,CAPJ,mBAMS,UAAA;EALP,OAAM;EACL,OAAO,OAAA,EAAC,UAAA;EACR,SAAO,OAAA;KAER,YAAgB,OAAA,eAAA,CAAA,GAAA,GAAA,UAAA,CAAA,CAAA,KAAA,mBAAA,QAAA,IAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DownloadPodcastButton-CSRcg8Nl.mjs","names":[],"sources":["../src/components/display/podcasts/DownloadPodcastButton.vue","../src/components/display/podcasts/DownloadPodcastButton.vue"],"sourcesContent":["<template>\n <div v-if=\"podcast\" class=\"d-flex align-items-center mt-1\">\n <button\n class=\"btn btn-round-light ms-2\"\n :title=\"t('Download')\"\n @click=\"downloadPodcast\"\n >\n <DownloadIcon />\n </button>\n </div>\n</template>\n\n<script setup lang=\"ts\">\nimport DownloadIcon from \"vue-material-design-icons/Download.vue\";\nimport { Podcast } from \"@/stores/class/general/podcast\";\nimport downloadHelper from \"../../../helper/downloadHelper\";\nimport { useI18n } from \"vue-i18n\";\nimport { podcastApi } from \"@/api\";\n\n//Props \nconst props = defineProps({\n podcast: { default: undefined, type: Object as () => Podcast },\n})\n\n//Composables\nconst { t } = useI18n();\n\n//Methods\nasync function downloadPodcast() {\n const data = await podcastApi.downloadRegister(props.podcast?.podcastId, {\n origin: 'saooti_play_download'\n });\n downloadHelper.onDownload(\"/download/url?param=\"+encodeURIComponent(data.location), props.podcast?.title + \".mp3\");\n}\n</script>\n","<template>\n <div v-if=\"podcast\" class=\"d-flex align-items-center mt-1\">\n <button\n class=\"btn btn-round-light ms-2\"\n :title=\"t('Download')\"\n @click=\"downloadPodcast\"\n >\n <DownloadIcon />\n </button>\n </div>\n</template>\n\n<script setup lang=\"ts\">\nimport DownloadIcon from \"vue-material-design-icons/Download.vue\";\nimport { Podcast } from \"@/stores/class/general/podcast\";\nimport downloadHelper from \"../../../helper/downloadHelper\";\nimport { useI18n } from \"vue-i18n\";\nimport { podcastApi } from \"@/api\";\n\n//Props \nconst props = defineProps({\n podcast: { default: undefined, type: Object as () => Podcast },\n})\n\n//Composables\nconst { t } = useI18n();\n\n//Methods\nasync function downloadPodcast() {\n const data = await podcastApi.downloadRegister(props.podcast?.podcastId, {\n origin: 'saooti_play_download'\n });\n downloadHelper.onDownload(\"/download/url?param=\"+encodeURIComponent(data.location), props.podcast?.title + \".mp3\");\n}\n</script>\n"],"mappings":";;;;;;;;;;;;;;;EAoBA,MAAM,QAAQ;EAKd,MAAM,EAAE,MAAM,QAAQ;EAGtB,eAAe,kBAAkB;GAC/B,MAAM,OAAO,MAAM,WAAW,iBAAiB,MAAM,SAAS,WAAW,EACvE,QAAQ,uBACV,CAAC;GACD,uBAAe,WAAW,yBAAuB,mBAAmB,KAAK,QAAQ,GAAG,MAAM,SAAS,QAAQ,MAAM;EACnH;;;;;;;;;;;;;;;;;;CChCsB,OAAM;;;;QAAf,OAAA,WAAA,UAAA,GAAX,mBAQM,OARN,YAQM,CAPJ,mBAMS,UAAA;EALP,OAAM;EACL,OAAO,OAAA,EAAC,UAAA;EACR,SAAO,OAAA;KAER,YAAgB,OAAA,eAAA,CAAA,GAAA,GAAA,UAAA,CAAA,CAAA,KAAA,mBAAA,QAAA,IAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EditCommentModal-KAP1l9RK.mjs","names":[],"sources":["../src/components/display/comments/modal/EditCommentModal.vue","../src/components/display/comments/modal/EditCommentModal.vue"],"sourcesContent":["<template>\n <ClassicModal\n id-modal=\"edit-comment-modal\"\n :title-modal=\"t('Edit comment')\"\n @close=\"closePopup\"\n >\n <template #body>\n <ClassicLoading\n :loading-text=\"inProcessing ? t('Send in progress') : undefined\"\n :error-text=\"errorUpdate ? t(`An error occurred`) : undefined\"\n />\n <template v-if=\"!inProcessing && !errorUpdate\">\n <ClassicInputText\n v-model:text-init=\"commentText\"\n v-model:error-variable=\"errorCommentText\"\n input-id=\"comment-textarea\"\n :label=\"t('Comment')\"\n :max-length=\"Constants.MAX_COMMENT\"\n :error-text=\"t('Please provide a comment')\"\n :is-textarea=\"true\"\n :is-emoji-picker=\"true\"\n popover-relative-class=\"octopus-modal\"\n :focus=\"true\"\n />\n <ClassicSelect\n v-if=\"editRight\"\n v-model:text-init=\"commentState\"\n id-select=\"comment-state-select\"\n :label=\"t('Status')\"\n :display-label=\"true\"\n :options=\"[\n { title: t('pending'), value: 'PENDING' },\n { title: t('Validated'), value: 'VALIDATED' },\n { title: t('Invalid'), value: 'NOT_VALID' },\n ]\"\n />\n </template>\n </template>\n <template #footer>\n <button class=\"btn m-1\" @click=\"closePopup\">\n {{ t(\"No\") }}\n </button>\n <button\n class=\"btn btn-primary m-1\"\n :disabled=\"errorCommentText\"\n @click=\"onEditComment\"\n >\n {{ t(\"Yes\") }}\n </button>\n </template>\n </ClassicModal>\n</template>\n\n<script setup lang=\"ts\">\nimport classicApi from \"../../../../api/classicApi\";\nimport Constants from \"../../../../../public/config\";\nimport { defineAsyncComponent, onBeforeMount, Ref, ref } from \"vue\";\nimport { CommentPodcast } from \"@/stores/class/general/comment\";\nimport { useI18n } from \"vue-i18n\";\nconst ClassicModal = defineAsyncComponent(\n () => import(\"../../../misc/modal/ClassicModal.vue\"),\n);\nconst ClassicLoading = defineAsyncComponent(\n () => import(\"../../../form/ClassicLoading.vue\"),\n);\nconst ClassicInputText = defineAsyncComponent(\n () => import(\"../../../form/ClassicInputText.vue\"),\n);\nconst ClassicSelect = defineAsyncComponent(\n () => import(\"../../../form/ClassicSelect.vue\"),\n);\n\n//Props \nconst props = defineProps({\n comment: {\n default: undefined,\n type: Object as () => CommentPodcast,\n },\n editRight: { default: false, type: Boolean },\n})\n \n//Emits\nconst emit = defineEmits([\"close\", \"update:comment\"]);\n\n\n//Data \nconst commentText: Ref<string | undefined> = ref(undefined);\nconst errorCommentText = ref(true);\nconst commentState = ref(\"PENDING\");\nconst errorUpdate = ref(false);\nconst inProcessing = ref(false);\n\n//Composables\nconst { t } = useI18n();\n \nonBeforeMount(()=>initComment())\n\n\n//Methods\nfunction initComment() {\n if (!props.comment) {\n return;\n }\n commentText.value = props.comment.content;\n commentState.value = props.comment.state;\n}\nasync function onEditComment() {\n if (!props.comment) {\n return;\n }\n inProcessing.value = true;\n try {\n const commentUpdated = await classicApi.putData({\n api: 2,\n path: \"comment/\",\n dataToSend: {\n commentId: props.comment.commentId,\n content: commentText.value,\n state: commentState.value,\n },\n isNotAuth: !props.editRight,\n });\n emit(\"update:comment\", commentUpdated);\n closePopup();\n } catch {\n errorUpdate.value = true;\n }\n inProcessing.value = false;\n}\nfunction closePopup() {\n emit(\"close\");\n}\n</script>\n","<template>\n <ClassicModal\n id-modal=\"edit-comment-modal\"\n :title-modal=\"t('Edit comment')\"\n @close=\"closePopup\"\n >\n <template #body>\n <ClassicLoading\n :loading-text=\"inProcessing ? t('Send in progress') : undefined\"\n :error-text=\"errorUpdate ? t(`An error occurred`) : undefined\"\n />\n <template v-if=\"!inProcessing && !errorUpdate\">\n <ClassicInputText\n v-model:text-init=\"commentText\"\n v-model:error-variable=\"errorCommentText\"\n input-id=\"comment-textarea\"\n :label=\"t('Comment')\"\n :max-length=\"Constants.MAX_COMMENT\"\n :error-text=\"t('Please provide a comment')\"\n :is-textarea=\"true\"\n :is-emoji-picker=\"true\"\n popover-relative-class=\"octopus-modal\"\n :focus=\"true\"\n />\n <ClassicSelect\n v-if=\"editRight\"\n v-model:text-init=\"commentState\"\n id-select=\"comment-state-select\"\n :label=\"t('Status')\"\n :display-label=\"true\"\n :options=\"[\n { title: t('pending'), value: 'PENDING' },\n { title: t('Validated'), value: 'VALIDATED' },\n { title: t('Invalid'), value: 'NOT_VALID' },\n ]\"\n />\n </template>\n </template>\n <template #footer>\n <button class=\"btn m-1\" @click=\"closePopup\">\n {{ t(\"No\") }}\n </button>\n <button\n class=\"btn btn-primary m-1\"\n :disabled=\"errorCommentText\"\n @click=\"onEditComment\"\n >\n {{ t(\"Yes\") }}\n </button>\n </template>\n </ClassicModal>\n</template>\n\n<script setup lang=\"ts\">\nimport classicApi from \"../../../../api/classicApi\";\nimport Constants from \"../../../../../public/config\";\nimport { defineAsyncComponent, onBeforeMount, Ref, ref } from \"vue\";\nimport { CommentPodcast } from \"@/stores/class/general/comment\";\nimport { useI18n } from \"vue-i18n\";\nconst ClassicModal = defineAsyncComponent(\n () => import(\"../../../misc/modal/ClassicModal.vue\"),\n);\nconst ClassicLoading = defineAsyncComponent(\n () => import(\"../../../form/ClassicLoading.vue\"),\n);\nconst ClassicInputText = defineAsyncComponent(\n () => import(\"../../../form/ClassicInputText.vue\"),\n);\nconst ClassicSelect = defineAsyncComponent(\n () => import(\"../../../form/ClassicSelect.vue\"),\n);\n\n//Props \nconst props = defineProps({\n comment: {\n default: undefined,\n type: Object as () => CommentPodcast,\n },\n editRight: { default: false, type: Boolean },\n})\n \n//Emits\nconst emit = defineEmits([\"close\", \"update:comment\"]);\n\n\n//Data \nconst commentText: Ref<string | undefined> = ref(undefined);\nconst errorCommentText = ref(true);\nconst commentState = ref(\"PENDING\");\nconst errorUpdate = ref(false);\nconst inProcessing = ref(false);\n\n//Composables\nconst { t } = useI18n();\n \nonBeforeMount(()=>initComment())\n\n\n//Methods\nfunction initComment() {\n if (!props.comment) {\n return;\n }\n commentText.value = props.comment.content;\n commentState.value = props.comment.state;\n}\nasync function onEditComment() {\n if (!props.comment) {\n return;\n }\n inProcessing.value = true;\n try {\n const commentUpdated = await classicApi.putData({\n api: 2,\n path: \"comment/\",\n dataToSend: {\n commentId: props.comment.commentId,\n content: commentText.value,\n state: commentState.value,\n },\n isNotAuth: !props.editRight,\n });\n emit(\"update:comment\", commentUpdated);\n closePopup();\n } catch {\n errorUpdate.value = true;\n }\n inProcessing.value = false;\n}\nfunction closePopup() {\n emit(\"close\");\n}\n</script>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;EA2DA,MAAM,eAAe,2BACb,OAAO,+BAAA,MAAA,MAAA,EAAA,CAAA,CACf;EACA,MAAM,iBAAiB,2BACf,OAAO,iCAAA,MAAA,MAAA,EAAA,CAAA,CACf;EACA,MAAM,mBAAmB,2BACjB,OAAO,mCAAA,MAAA,MAAA,EAAA,CAA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,aAAW,OAAA;8DAAA,OAAA,cAAW;GACtB,kBAAgB,OAAA;mEAAA,OAAA,mBAAgB;GACxC,YAAS;GACR,OAAO,OAAA,EAAC,SAAA;GACR,cAAY,OAAA,UAAU;GACtB,cAAY,OAAA,EAAC,0BAAA;GACb,eAAa;GACb,mBAAiB;GAClB,0BAAuB;GACtB,OAAO;;;;;;;MAGF,OAAA,aAAA,UAAA,GADR,YAWE,OAAA,kBAAA;;GATQ,aAAW,OAAA;8DAAA,OAAA,eAAY;GAC/B,aAAU;GACT,OAAO,OAAA,EAAC,QAAA;GACR,iBAAe;GACf,SAAO;;YAAyB,OAAA,EAAC,SAAA;KAAA,OAAA;IAAA;;YAAsD,OAAA,EAAC,WAAA;KAAA,OAAA;IAAA;;YAA0D,OAAA,EAAC,SAAA;KAAA,OAAA;IAAA;;;;;;;EAQ/I,QAAM,cAGN,CAFT,mBAES,UAAA;GAFD,OAAM;GAAW,SAAO,OAAA;qBAC3B,OAAA,EAAC,IAAA,CAAA,GAAA,CAAA,GAEN,mBAMS,UAAA;GALP,OAAM;GACL,UAAU,OAAA;GACV,SAAO,OAAA;qBAEL,OAAA,EAAC,KAAA,CAAA,GAAA,GAAA,UAAA,CAAA,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper-BOaGB7Aw.mjs";
|
|
2
|
-
import { t as classicApi_default } from "./classicApi-
|
|
2
|
+
import { t as classicApi_default } from "./classicApi-xjOqAovv.mjs";
|
|
3
3
|
import { t as config_default } from "./config-C73GMJpz.mjs";
|
|
4
4
|
import { Fragment, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineAsyncComponent, defineComponent, onBeforeMount, openBlock, ref, toDisplayString, withCtx } from "vue";
|
|
5
5
|
import { useI18n } from "vue-i18n";
|
|
@@ -159,4 +159,4 @@ var EditCommentModal_default = /*#__PURE__*/ _plugin_vue_export_helper_default(E
|
|
|
159
159
|
//#endregion
|
|
160
160
|
export { EditCommentModal_default as default };
|
|
161
161
|
|
|
162
|
-
//# sourceMappingURL=EditCommentModal-
|
|
162
|
+
//# sourceMappingURL=EditCommentModal-RbVMVDOp.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EditCommentModal-RbVMVDOp.mjs","names":[],"sources":["../src/components/display/comments/modal/EditCommentModal.vue","../src/components/display/comments/modal/EditCommentModal.vue"],"sourcesContent":["<template>\n <ClassicModal\n id-modal=\"edit-comment-modal\"\n :title-modal=\"t('Edit comment')\"\n @close=\"closePopup\"\n >\n <template #body>\n <ClassicLoading\n :loading-text=\"inProcessing ? t('Send in progress') : undefined\"\n :error-text=\"errorUpdate ? t(`An error occurred`) : undefined\"\n />\n <template v-if=\"!inProcessing && !errorUpdate\">\n <ClassicInputText\n v-model:text-init=\"commentText\"\n v-model:error-variable=\"errorCommentText\"\n input-id=\"comment-textarea\"\n :label=\"t('Comment')\"\n :max-length=\"Constants.MAX_COMMENT\"\n :error-text=\"t('Please provide a comment')\"\n :is-textarea=\"true\"\n :is-emoji-picker=\"true\"\n popover-relative-class=\"octopus-modal\"\n :focus=\"true\"\n />\n <ClassicSelect\n v-if=\"editRight\"\n v-model:text-init=\"commentState\"\n id-select=\"comment-state-select\"\n :label=\"t('Status')\"\n :display-label=\"true\"\n :options=\"[\n { title: t('pending'), value: 'PENDING' },\n { title: t('Validated'), value: 'VALIDATED' },\n { title: t('Invalid'), value: 'NOT_VALID' },\n ]\"\n />\n </template>\n </template>\n <template #footer>\n <button class=\"btn m-1\" @click=\"closePopup\">\n {{ t(\"No\") }}\n </button>\n <button\n class=\"btn btn-primary m-1\"\n :disabled=\"errorCommentText\"\n @click=\"onEditComment\"\n >\n {{ t(\"Yes\") }}\n </button>\n </template>\n </ClassicModal>\n</template>\n\n<script setup lang=\"ts\">\nimport classicApi from \"../../../../api/classicApi\";\nimport Constants from \"../../../../../public/config\";\nimport { defineAsyncComponent, onBeforeMount, Ref, ref } from \"vue\";\nimport { CommentPodcast } from \"@/stores/class/general/comment\";\nimport { useI18n } from \"vue-i18n\";\nconst ClassicModal = defineAsyncComponent(\n () => import(\"../../../misc/modal/ClassicModal.vue\"),\n);\nconst ClassicLoading = defineAsyncComponent(\n () => import(\"../../../form/ClassicLoading.vue\"),\n);\nconst ClassicInputText = defineAsyncComponent(\n () => import(\"../../../form/ClassicInputText.vue\"),\n);\nconst ClassicSelect = defineAsyncComponent(\n () => import(\"../../../form/ClassicSelect.vue\"),\n);\n\n//Props \nconst props = defineProps({\n comment: {\n default: undefined,\n type: Object as () => CommentPodcast,\n },\n editRight: { default: false, type: Boolean },\n})\n \n//Emits\nconst emit = defineEmits([\"close\", \"update:comment\"]);\n\n\n//Data \nconst commentText: Ref<string | undefined> = ref(undefined);\nconst errorCommentText = ref(true);\nconst commentState = ref(\"PENDING\");\nconst errorUpdate = ref(false);\nconst inProcessing = ref(false);\n\n//Composables\nconst { t } = useI18n();\n \nonBeforeMount(()=>initComment())\n\n\n//Methods\nfunction initComment() {\n if (!props.comment) {\n return;\n }\n commentText.value = props.comment.content;\n commentState.value = props.comment.state;\n}\nasync function onEditComment() {\n if (!props.comment) {\n return;\n }\n inProcessing.value = true;\n try {\n const commentUpdated = await classicApi.putData({\n api: 2,\n path: \"comment/\",\n dataToSend: {\n commentId: props.comment.commentId,\n content: commentText.value,\n state: commentState.value,\n },\n isNotAuth: !props.editRight,\n });\n emit(\"update:comment\", commentUpdated);\n closePopup();\n } catch {\n errorUpdate.value = true;\n }\n inProcessing.value = false;\n}\nfunction closePopup() {\n emit(\"close\");\n}\n</script>\n","<template>\n <ClassicModal\n id-modal=\"edit-comment-modal\"\n :title-modal=\"t('Edit comment')\"\n @close=\"closePopup\"\n >\n <template #body>\n <ClassicLoading\n :loading-text=\"inProcessing ? t('Send in progress') : undefined\"\n :error-text=\"errorUpdate ? t(`An error occurred`) : undefined\"\n />\n <template v-if=\"!inProcessing && !errorUpdate\">\n <ClassicInputText\n v-model:text-init=\"commentText\"\n v-model:error-variable=\"errorCommentText\"\n input-id=\"comment-textarea\"\n :label=\"t('Comment')\"\n :max-length=\"Constants.MAX_COMMENT\"\n :error-text=\"t('Please provide a comment')\"\n :is-textarea=\"true\"\n :is-emoji-picker=\"true\"\n popover-relative-class=\"octopus-modal\"\n :focus=\"true\"\n />\n <ClassicSelect\n v-if=\"editRight\"\n v-model:text-init=\"commentState\"\n id-select=\"comment-state-select\"\n :label=\"t('Status')\"\n :display-label=\"true\"\n :options=\"[\n { title: t('pending'), value: 'PENDING' },\n { title: t('Validated'), value: 'VALIDATED' },\n { title: t('Invalid'), value: 'NOT_VALID' },\n ]\"\n />\n </template>\n </template>\n <template #footer>\n <button class=\"btn m-1\" @click=\"closePopup\">\n {{ t(\"No\") }}\n </button>\n <button\n class=\"btn btn-primary m-1\"\n :disabled=\"errorCommentText\"\n @click=\"onEditComment\"\n >\n {{ t(\"Yes\") }}\n </button>\n </template>\n </ClassicModal>\n</template>\n\n<script setup lang=\"ts\">\nimport classicApi from \"../../../../api/classicApi\";\nimport Constants from \"../../../../../public/config\";\nimport { defineAsyncComponent, onBeforeMount, Ref, ref } from \"vue\";\nimport { CommentPodcast } from \"@/stores/class/general/comment\";\nimport { useI18n } from \"vue-i18n\";\nconst ClassicModal = defineAsyncComponent(\n () => import(\"../../../misc/modal/ClassicModal.vue\"),\n);\nconst ClassicLoading = defineAsyncComponent(\n () => import(\"../../../form/ClassicLoading.vue\"),\n);\nconst ClassicInputText = defineAsyncComponent(\n () => import(\"../../../form/ClassicInputText.vue\"),\n);\nconst ClassicSelect = defineAsyncComponent(\n () => import(\"../../../form/ClassicSelect.vue\"),\n);\n\n//Props \nconst props = defineProps({\n comment: {\n default: undefined,\n type: Object as () => CommentPodcast,\n },\n editRight: { default: false, type: Boolean },\n})\n \n//Emits\nconst emit = defineEmits([\"close\", \"update:comment\"]);\n\n\n//Data \nconst commentText: Ref<string | undefined> = ref(undefined);\nconst errorCommentText = ref(true);\nconst commentState = ref(\"PENDING\");\nconst errorUpdate = ref(false);\nconst inProcessing = ref(false);\n\n//Composables\nconst { t } = useI18n();\n \nonBeforeMount(()=>initComment())\n\n\n//Methods\nfunction initComment() {\n if (!props.comment) {\n return;\n }\n commentText.value = props.comment.content;\n commentState.value = props.comment.state;\n}\nasync function onEditComment() {\n if (!props.comment) {\n return;\n }\n inProcessing.value = true;\n try {\n const commentUpdated = await classicApi.putData({\n api: 2,\n path: \"comment/\",\n dataToSend: {\n commentId: props.comment.commentId,\n content: commentText.value,\n state: commentState.value,\n },\n isNotAuth: !props.editRight,\n });\n emit(\"update:comment\", commentUpdated);\n closePopup();\n } catch {\n errorUpdate.value = true;\n }\n inProcessing.value = false;\n}\nfunction closePopup() {\n emit(\"close\");\n}\n</script>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;EA2DA,MAAM,eAAe,2BACb,OAAO,+BAAA,MAAA,MAAA,EAAA,CAAA,CACf;EACA,MAAM,iBAAiB,2BACf,OAAO,iCAAA,MAAA,MAAA,EAAA,CAAA,CACf;EACA,MAAM,mBAAmB,2BACjB,OAAO,mCAAA,MAAA,MAAA,EAAA,CAAA,CACf;EACA,MAAM,gBAAgB,2BACd,OAAO,gCAAA,MAAA,MAAA,EAAA,CAAA,CACf;EAGA,MAAM,QAAQ;EASd,MAAM,OAAO;EAIb,MAAM,cAAuC,IAAI,KAAA,CAAS;EAC1D,MAAM,mBAAmB,IAAI,IAAI;EACjC,MAAM,eAAe,IAAI,SAAS;EAClC,MAAM,cAAc,IAAI,KAAK;EAC7B,MAAM,eAAe,IAAI,KAAK;EAG9B,MAAM,EAAE,MAAM,QAAQ;EAEtB,oBAAkB,YAAY,CAAC;EAI/B,SAAS,cAAc;GACrB,IAAI,CAAC,MAAM,SACT;GAEF,YAAY,QAAQ,MAAM,QAAQ;GAClC,aAAa,QAAQ,MAAM,QAAQ;EACrC;EACA,eAAe,gBAAgB;GAC7B,IAAI,CAAC,MAAM,SACT;GAEF,aAAa,QAAQ;GACrB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/I,QAAM,cAGN,CAFT,mBAES,UAAA;GAFD,OAAM;GAAW,SAAO,OAAA;qBAC3B,OAAA,EAAC,IAAA,CAAA,GAAA,CAAA,GAEN,mBAMS,UAAA;GALP,OAAM;GACL,UAAU,OAAA;GACV,SAAO,OAAA;qBAEL,OAAA,EAAC,KAAA,CAAA,GAAA,GAAA,UAAA,CAAA,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.mjs";
|
|
2
2
|
import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper-BOaGB7Aw.mjs";
|
|
3
|
-
import { b as groupsApi } from "./classicApi-
|
|
3
|
+
import { b as groupsApi } from "./classicApi-xjOqAovv.mjs";
|
|
4
4
|
import { t as OctopusMultiselect_default } from "./OctopusMultiselect-tXNIWVpp.mjs";
|
|
5
5
|
import { createBlock, defineComponent, onMounted, openBlock, ref } from "vue";
|
|
6
6
|
//#region src/components/display/emission/EmissionGroupChooser.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -79,4 +79,4 @@ var EmissionGroupChooser_default = /*#__PURE__*/ _plugin_vue_export_helper_defau
|
|
|
79
79
|
//#endregion
|
|
80
80
|
export { EmissionGroupChooser_exports as n, EmissionGroupChooser_default as t };
|
|
81
81
|
|
|
82
|
-
//# sourceMappingURL=EmissionGroupChooser-
|
|
82
|
+
//# sourceMappingURL=EmissionGroupChooser-BXqM4iXP.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EmissionGroupChooser-BXqM4iXP.mjs","names":[],"sources":["../src/components/display/emission/EmissionGroupChooser.vue","../src/components/display/emission/EmissionGroupChooser.vue"],"sourcesContent":["<template>\n <OctopusMultiselect\n :placeholder=\"placeholder ?? $t('Search - Emission groups placeholder')\"\n :selected=\"groups\"\n :options=\"allGroups\"\n :no-border=\"noBorder\"\n option-label=\"name\"\n option-key=\"groupId\"\n @update:selected=\"emitSelected\"\n />\n</template>\n\n<script setup lang=\"ts\">\nimport { onMounted, ref } from \"vue\";\n\nimport OctopusMultiselect from \"../../form/OctopusMultiselect.vue\"; \nimport { groupsApi, EmissionGroup } from \"../../../api/groupsApi\";\n\n//Props \nconst props = defineProps<{\n /** Filter by organisation */\n organisationId?: string|Array<string>;\n /** Currently selected groups */\n groups: Array<EmissionGroup>;\n /** Change default placeholder */\n placeholder?: string;\n /** Disable borders */\n noBorder?: boolean;\n}>();\n\n//Emits\nconst emit = defineEmits<{\n (e: \"update:groups\", groups: Array<EmissionGroup>): void;\n}>();\n\n//Data\nconst maxElement = 200;\nconst allGroups = ref<Array<EmissionGroup>>([]);\n\nonMounted(async() => {\n const response = await groupsApi.search({\n first: 0,\n size: maxElement,\n organisationIds: [props.organisationId].flat(),\n });\n\n // Only groups with emissions are available\n allGroups.value = response.result.filter(g => g.emissionIds?.length ?? 0 > 0);\n});\n\nfunction emitSelected(option: Array<EmissionGroup>) {\n emit(\"update:groups\", option);\n}\n</script>\n","<template>\n <OctopusMultiselect\n :placeholder=\"placeholder ?? $t('Search - Emission groups placeholder')\"\n :selected=\"groups\"\n :options=\"allGroups\"\n :no-border=\"noBorder\"\n option-label=\"name\"\n option-key=\"groupId\"\n @update:selected=\"emitSelected\"\n />\n</template>\n\n<script setup lang=\"ts\">\nimport { onMounted, ref } from \"vue\";\n\nimport OctopusMultiselect from \"../../form/OctopusMultiselect.vue\"; \nimport { groupsApi, EmissionGroup } from \"../../../api/groupsApi\";\n\n//Props \nconst props = defineProps<{\n /** Filter by organisation */\n organisationId?: string|Array<string>;\n /** Currently selected groups */\n groups: Array<EmissionGroup>;\n /** Change default placeholder */\n placeholder?: string;\n /** Disable borders */\n noBorder?: boolean;\n}>();\n\n//Emits\nconst emit = defineEmits<{\n (e: \"update:groups\", groups: Array<EmissionGroup>): void;\n}>();\n\n//Data\nconst maxElement = 200;\nconst allGroups = ref<Array<EmissionGroup>>([]);\n\nonMounted(async() => {\n const response = await groupsApi.search({\n first: 0,\n size: maxElement,\n organisationIds: [props.organisationId].flat(),\n });\n\n // Only groups with emissions are available\n allGroups.value = response.result.filter(g => g.emissionIds?.length ?? 0 > 0);\n});\n\nfunction emitSelected(option: Array<EmissionGroup>) {\n emit(\"update:groups\", option);\n}\n</script>\n"],"mappings":";;;;;;AAoCA,IAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;EAjBnB,MAAM,QAAQ;EAYd,MAAM,OAAO;EAMb,MAAM,YAAY,IAA0B,CAAC,CAAC;EAE9C,UAAU,YAAW;GAQjB,UAAU,SAAS,MAPI,UAAU,OAAO;IACpC,OAAO;IACP,MAAM;IACN,iBAAiB,CAAC,MAAM,cAAc,EAAE,KAAK;GACjD,CAAC,GAG2B,OAAO,QAAO,MAAK,EAAE,aAAa,UAAU,KAAK;EACjF,CAAC;EAED,SAAS,aAAa,QAA8B;GAChD,KAAK,iBAAiB,MAAM;EAChC;;;;;;;;;;;;;;;;;;;;qBCnDI,YAQE,OAAA,uBAAA;EAPG,aAAa,OAAA,eAAe,KAAA,GAAE,sCAAA;EAC9B,UAAU,OAAA;EACV,SAAS,OAAA;EACT,aAAW,OAAA;EACZ,gBAAa;EACb,cAAW;EACV,qBAAiB,OAAA"}
|