@saooti/octopus-sdk 42.0.2 → 42.0.4
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-EkYCvb-A.mjs → AdvancedSearch-Bd9tK-4i.mjs} +5 -5
- package/dist/{CategoryFilter-BYF5Aj66.mjs → CategoryFilter-CNCjhnMP.mjs} +3 -3
- package/dist/{CategoryList-Bl4HF6IV.mjs → CategoryList-Buh73sPa.mjs} +1 -1
- package/dist/{CategoryPage-D31bXPFd.mjs → CategoryPage-guP6_hCq.mjs} +2 -2
- package/dist/{ChapteringModal-DeJlPZqt.mjs → ChapteringModal-B29-28dk.mjs} +1 -1
- package/dist/{CheckIdentityModal-C0mQhO1Y.mjs → CheckIdentityModal-Dh-7hC5M.mjs} +2 -2
- package/dist/{ClipboardModal-CZMe6yzC.mjs → ClipboardModal-DBIetCe6.mjs} +1 -1
- package/dist/{CommentInput-CJQJGuGh.mjs → CommentInput-BuXFDUZI.mjs} +4 -4
- package/dist/{CommentItem-BMdLtMSM.mjs → CommentItem-C1KdIG3j.mjs} +3 -3
- package/dist/{CommentList-CiyIfFVR.mjs → CommentList-DTKpZSb6.mjs} +2 -2
- package/dist/{CommentMoreActions-LkviE-Ys.mjs → CommentMoreActions-BiyzPozQ.mjs} +3 -3
- package/dist/{CommentName-Dd6_i8Aq.mjs → CommentName-BdoUJC9A.mjs} +2 -2
- package/dist/{CommentParentInfo-B1uIVuWE.mjs → CommentParentInfo-kXKfL3N4.mjs} +1 -1
- package/dist/{CommentPlayer-6khGC239.mjs → CommentPlayer-BIOwn4Ao.mjs} +2 -2
- package/dist/{CommentSection-DN2hTntd.mjs → CommentSection-CQGAn83J.mjs} +3 -3
- package/dist/{CommentStore-ClWYnxlP.mjs → CommentStore-CVBkPvHJ.mjs} +15 -15
- package/dist/{ContractPreviewModal-D09ZZRzk.mjs → ContractPreviewModal-BJEnYMoK.mjs} +2 -2
- package/dist/{DownloadPodcastButton-CllFnfRd.mjs → DownloadPodcastButton-CcUJ8Wuh.mjs} +2 -2
- package/dist/{EditCommentModal-DdQ0VbJD.mjs → EditCommentModal-DoVppFIY.mjs} +1 -1
- package/dist/{EmissionGroupChooser-Zcybs9xf.mjs → EmissionGroupChooser-B10wDKyp.mjs} +1 -1
- package/dist/{EmissionInlineList-BApYL38i.mjs → EmissionInlineList-Cn8j50o6.mjs} +5 -5
- package/dist/{EmissionItem-Drvrx9dD.mjs → EmissionItem-CQbtdUNM.mjs} +4 -4
- package/dist/{EmissionList-CTf4dsj_.mjs → EmissionList-E0Hsq0mr.mjs} +4 -4
- package/dist/{EmissionPage-H6mau7wr.mjs → EmissionPage-BY0IY-Ci.mjs} +8 -8
- package/dist/{EmissionPlayerItem-C0_Fu8k1.mjs → EmissionPlayerItem-KHWB18Ru.mjs} +3 -3
- package/dist/{EmissionPresentationItem-CoIUFFKW.mjs → EmissionPresentationItem-2hfEZ9Wc.mjs} +1 -1
- package/dist/{EmissionPresentationList-CkCczWdK.mjs → EmissionPresentationList-Da6YRCuJ.mjs} +3 -3
- package/dist/{EmissionsPage-DjdZ-b2g.mjs → EmissionsPage-BpPlQ1vL.mjs} +4 -4
- package/dist/{Error403Page-CZ9ePMyv.mjs → Error403Page-D7zKplcn.mjs} +2 -2
- package/dist/{FooterGarSection-BWvyWYzd.mjs → FooterGarSection-CwAVj0X8.mjs} +4 -4
- package/dist/{FooterSection-MLB3MbQn.mjs → FooterSection-CklRE0yr.mjs} +2 -2
- package/dist/{HomeDropdown-F5S8UGGq.mjs → HomeDropdown-D65QDBBQ.mjs} +2 -2
- package/dist/{HomePage-OvL6x1m2.mjs → HomePage-stJtq5XR.mjs} +3 -3
- package/dist/{LikeSection-C5hS-dkj.mjs → LikeSection-xB4hZ4kv.mjs} +3 -3
- package/dist/{ListPaginate--S_WMdzs.mjs → ListPaginate-gdpJpyC6.mjs} +2 -2
- package/dist/{LiveHorizontalList-DcjX6JyT.mjs → LiveHorizontalList-D1QZCKdq.mjs} +3 -3
- package/dist/{LiveList-rBKbHV1z.mjs → LiveList-CerWcFJv.mjs} +12 -12
- package/dist/{LivesPage-CBfjbjJS.mjs → LivesPage-C-jtDd4n.mjs} +2 -2
- package/dist/{MapPage-DPlAyhb2.mjs → MapPage-Bef5gLQu.mjs} +1 -1
- package/dist/{MobileMenu-Bstcgl68.mjs → MobileMenu-CV5t_RXg.mjs} +3 -3
- package/dist/{NewsletterModal-CjqEAdDc.mjs → NewsletterModal-CEI0I08q.mjs} +1 -1
- package/dist/{OrganisationChooser-CucAu_Zo.mjs → OrganisationChooser-CvHoHxHL.mjs} +6 -6
- package/dist/{OrganisationChooserLight-BF5X41Z_.mjs → OrganisationChooserLight-CJ7IbvRM.mjs} +2 -2
- package/dist/{PageNotFound-DZE0j-zQ.mjs → PageNotFound-Cgmgm9i1.mjs} +2 -2
- package/dist/{ParticipantInlineList-DQIv3BCY.mjs → ParticipantInlineList-CVsGpX6b.mjs} +4 -4
- package/dist/{ParticipantItem-DjCj0PAR.mjs → ParticipantItem-BIWNtU2J.mjs} +3 -3
- package/dist/{ParticipantPage-DKgl3Itz.mjs → ParticipantPage-BvSoNApw.mjs} +6 -6
- package/dist/{ParticipantsPage-OV4-0XDV.mjs → ParticipantsPage-ho_vMsWs.mjs} +6 -6
- package/dist/{PlayerAnonymousModal-CN9K91v7.mjs → PlayerAnonymousModal-DI-OzIJ0.mjs} +2 -2
- package/dist/{PlayerCompact-C4Z3zX1V.mjs → PlayerCompact-BjS5HFvK.mjs} +3 -3
- package/dist/{PlayerComponent-BvFCwOZH.mjs → PlayerComponent-CajQtPxX.mjs} +52 -52
- package/dist/{PlayerLarge-Dreq0MkF.mjs → PlayerLarge-H4sl7hoe.mjs} +5 -5
- package/dist/{PlayerPlayButton-DwK-Xwxw.mjs → PlayerPlayButton-DfzHBM_X.mjs} +4 -4
- package/dist/{PlayerProgressBar-CSPhQUMv.mjs → PlayerProgressBar-CSY72hgw.mjs} +2 -2
- package/dist/{PlayerStore-oWt4z_Pm.mjs → PlayerStore-C4T1vCHz.mjs} +1 -1
- package/dist/{PlayerVideo-B-yey4sP.mjs → PlayerVideo-BfR5fBo_.mjs} +3 -3
- package/dist/{PlayerVideoDigiteka-Be7q9IOr.mjs → PlayerVideoDigiteka-C6ZA6XkR.mjs} +2 -2
- package/dist/{PlayerVideoHls-Bpr0t84b.mjs → PlayerVideoHls-B8dm2-2-.mjs} +3 -3
- package/dist/{PlaylistPage-DsqLnr3q.mjs → PlaylistPage-DTy_55xp.mjs} +8 -8
- package/dist/{PlaylistsPage-D-AmEXaF.mjs → PlaylistsPage-m-ST2PUd.mjs} +6 -6
- package/dist/{PodcastFilterList-D0OHATs3.mjs → PodcastFilterList-Bz8c8rOJ.mjs} +2 -2
- package/dist/{PodcastImage-Fq6P5R4t.mjs → PodcastImage-BGQti5JM.mjs} +3 -3
- package/dist/{PodcastInlineList-S8FyZaKh.mjs → PodcastInlineList-WvkPSh1V.mjs} +1 -1
- package/dist/{PodcastInlineListTemplate-CSNYVfeg.mjs → PodcastInlineListTemplate-D1bIqp9s.mjs} +3 -3
- package/dist/{PodcastIsPlaying-D1Y0PrPe.mjs → PodcastIsPlaying-mWJppqAl.mjs} +1 -1
- package/dist/{PodcastItem-CRQzSYa8.mjs → PodcastItem-CYPwjD38.mjs} +26 -25
- package/dist/{PodcastList-Q7UB5Jvo.mjs → PodcastList-BfqxVGag.mjs} +10 -10
- package/dist/{PodcastList-jSaSktGX.mjs → PodcastList-D3jE4KxK.mjs} +5 -5
- package/dist/PodcastPage-GTzk5mUv.mjs +409 -0
- package/dist/{PodcastPlayBar-CRwY1aJj.mjs → PodcastPlayBar-YJnOuGTK.mjs} +3 -3
- package/dist/{PodcastPlayBasicButton-DxyYfLdG.mjs → PodcastPlayBasicButton-BYpnGOO1.mjs} +1 -1
- package/dist/{PodcastPlayButton-Cp8DrQtU.mjs → PodcastPlayButton-CJ8BRg-T.mjs} +3 -3
- package/dist/{PodcastPlaylistInlineList-BFwIvuIS.mjs → PodcastPlaylistInlineList-CmgnXWqI.mjs} +4 -4
- package/dist/{PodcastPresentationList-Ds_Xziyu.mjs → PodcastPresentationList-BBbhrj5M.mjs} +8 -8
- package/dist/{PodcastProgressBar-Dy18FXco.mjs → PodcastProgressBar-DDmGqHRZ.mjs} +3 -3
- package/dist/{PodcastRawTranscript-Lmhj4ZcK.mjs → PodcastRawTranscript-uMquvyIx.mjs} +2 -2
- package/dist/{PodcastRubriqueList-PdtD_3e_.mjs → PodcastRubriqueList-CMcls_jK.mjs} +2 -2
- package/dist/{PodcastSwiperList-CsD6U7nC.mjs → PodcastSwiperList-CR4Daki7.mjs} +4 -4
- package/dist/{PodcastmakerHeader-BM0dL0mN.mjs → PodcastmakerHeader-Blma5tOE.mjs} +1 -1
- package/dist/{PodcastsPage-DFlL6kGB.mjs → PodcastsPage-BZfbH613.mjs} +4 -4
- package/dist/{ProductorSearch-14Fsq-1F.mjs → ProductorSearch-Cyo0OOte.mjs} +2 -2
- package/dist/{ProgressBar-ict3WjO9.mjs → ProgressBar-h-6hD6C6.mjs} +1 -1
- package/dist/{QrCode-DFVyJ6jp.mjs → QrCode-CB7uCURG.mjs} +1 -1
- package/dist/{QrCodeModal-CmSioVji.mjs → QrCodeModal-uLXUjfFk.mjs} +1 -1
- package/dist/{RadioCurrently-B4l5Zpqx.mjs → RadioCurrently-CxTpzc3O.mjs} +3 -3
- package/dist/{RadioHistory-DGvnUjt5.mjs → RadioHistory-DaY_apJL.mjs} +2 -2
- package/dist/{RadioImage-Ch0YOZpr.mjs → RadioImage-CGdu0tqS.mjs} +4 -4
- package/dist/{RadioList-BekzGcfZ.mjs → RadioList-Dwjy8BJK.mjs} +4 -4
- package/dist/{RadioPage-YaFXvWH3.mjs → RadioPage-B0cZlWcd.mjs} +4 -4
- package/dist/{RadioPlanning-Dx14nK5H.mjs → RadioPlanning-yTAzd4fk.mjs} +2 -2
- package/dist/{RadioProgressBar-w1nQ8czX.mjs → RadioProgressBar-DLRlsyeG.mjs} +1 -1
- package/dist/{RecaptchaModal-BF9ULSTd.mjs → RecaptchaModal-eBNvLZYg.mjs} +1 -1
- package/dist/{ReportAbuseModal-CwGBRV_C.mjs → ReportAbuseModal-0i7fa_Kb.mjs} +3 -3
- package/dist/{RightsIndicator-CpIxnsUR.mjs → RightsIndicator-BFKSa05U.mjs} +1 -1
- package/dist/{RightsWrapper-D1qVfCcg.mjs → RightsWrapper-BRWuAx2F.mjs} +2 -2
- package/dist/{RubriqueFilter-DdXpISEj.mjs → RubriqueFilter-BLW_L9Wm.mjs} +2 -2
- package/dist/{RubriqueList-Bf3kNyk9.mjs → RubriqueList-DKBuYW37.mjs} +2 -2
- package/dist/{RubriquePage-4OHOajcE.mjs → RubriquePage-D4b-tHSI.mjs} +4 -4
- package/dist/{SearchPage-BJlU-BcT.mjs → SearchPage-DiEabf9d.mjs} +2 -2
- package/dist/{ShareAnonymous-B41ATCRg.mjs → ShareAnonymous-DnvGBSfx.mjs} +3 -3
- package/dist/{ShareModalPlayer-BalJpjQZ.mjs → ShareModalPlayer-CXYjEN8k.mjs} +1 -1
- package/dist/{ShareNewsletter-f03J6RoH.mjs → ShareNewsletter-C6U_Jjnm.mjs} +2 -2
- package/dist/{SharePlayer-elOCoCRi.mjs → SharePlayer-B7YLKRAB.mjs} +2 -2
- package/dist/{SharePlayerRadio-B9oLzSBG.mjs → SharePlayerRadio-Dy6UuwWM.mjs} +2 -2
- package/dist/{SharePlayerTypes-AWfa6Qz_.mjs → SharePlayerTypes-CeecVrvy.mjs} +1 -1
- package/dist/{ShareSocialsButtons-Bwxad4Y7.mjs → ShareSocialsButtons-ty0wa4Hj.mjs} +2 -2
- package/dist/{SimpleLayout-CAFYRTMf.mjs → SimpleLayout-BgflH0r5.mjs} +2 -2
- package/dist/SmartLinkPage-BmXB-5t-.mjs +131 -0
- package/dist/{SubscribeButtons-NKhPZ-sJ.mjs → SubscribeButtons-Bqc3UtOf.mjs} +2 -2
- package/dist/{SwiperList-CxSo0qdA.mjs → SwiperList-nkm8nHZC.mjs} +1 -1
- package/dist/{TagList-DsQde007.mjs → TagList-BcJZfwL5.mjs} +1 -1
- package/dist/{TagPage-DdSPU923.mjs → TagPage-DFUbxGht.mjs} +3 -3
- package/dist/{TopBar-CpjDKdG9.mjs → TopBar-1YG7Pruy.mjs} +6 -6
- package/dist/{UserButtonContent-COb8p914.mjs → UserButtonContent-CKxL8aX3.mjs} +2 -2
- package/dist/{VideoModuleBox-Dz6dkVFU.mjs → VideoModuleBox-B54AebXt.mjs} +1 -1
- package/dist/VideoPage-BxYH2SFo.mjs +148 -0
- package/dist/{classicApi-Cos2uZQj.mjs → classicApi-DR5O2l0-.mjs} +242 -258
- package/dist/{downloadHelper-0s6Woxx4.mjs → downloadHelper-DqI60vwY.mjs} +1 -1
- package/dist/index.css +1 -1
- package/dist/index.mjs +83 -82
- package/dist/tests.mjs +2 -2
- package/dist/{useAdvancedParamInit-CK1S2A-5.mjs → useAdvancedParamInit-DIw4V0uk.mjs} +5 -5
- package/dist/useDayjs-CCvXE-aF.mjs +28 -0
- package/dist/{useErrorHandler-DAWwxGjG.mjs → useErrorHandler-CNqmf6tv.mjs} +1 -1
- package/dist/{useImageProxy-Bp5COBoB.mjs → useImageProxy-C3duE5Uj.mjs} +1 -1
- package/dist/{useOrgaComputed-BfGR8BOq.mjs → useOrgaComputed-ZwTfEXF-.mjs} +1 -1
- package/dist/{usePlayerLogicProgress-Bp5H95rW.mjs → usePlayerLogicProgress--FrjZ3zY.mjs} +2 -2
- package/dist/{usePodcastView-Cpwi9Cpz.mjs → usePodcastView-EmNdC0A1.mjs} +4 -3
- package/dist/usePresentationItem-PCEJ9BHI.mjs +100 -0
- package/dist/{useRights-BuILddIF.mjs → useRights-D4GJoff9.mjs} +1 -1
- package/dist/{useRubriquesFilterComputed-CDhO1bNi.mjs → useRubriquesFilterComputed-BKI04l9G.mjs} +1 -1
- package/dist/{useRubriquesFilterParam-BAM07jph.mjs → useRubriquesFilterParam-C5AZlQOX.mjs} +1 -1
- package/dist/{useSharePlatforms-PyN99oER.mjs → useSharePlatforms-DWJtsHHs.mjs} +5 -5
- package/dist/{useSimplePageParam-B6eU_F2z.mjs → useSimplePageParam-DJBHk-Yr.mjs} +1 -1
- package/dist/{useTranslation-CQT91TGE.mjs → useTranslation-xTuUuIiz.mjs} +14 -14
- package/dist/{usefetchRadioData-KflsZpkI.mjs → usefetchRadioData-SnCkZcGt.mjs} +1 -1
- package/package.json +1 -1
- package/src/components/composable/usePresentationItem.ts +3 -1
- package/src/components/layouts/PresentationItem.vue +8 -1
- package/src/stores/AuthStore.ts +10 -1
- package/src/stores/CacheStore.ts +1 -3
- package/dist/PodcastPage-D4IWvzX2.mjs +0 -409
- package/dist/SmartLinkPage-C3pyttZO.mjs +0 -131
- package/dist/VideoPage-Dpbfsyi_.mjs +0 -148
- package/dist/usePresentationItem-DOW0xnDy.mjs +0 -99
|
@@ -1,409 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./ClassicLoading-CXfMjpyl.mjs";
|
|
2
|
-
import { D as t, d as n, i as ee, r as te, t as r } from "./classicApi-Cos2uZQj.mjs";
|
|
3
|
-
import { t as i } from "./displayHelper-DQtoqc_6.mjs";
|
|
4
|
-
import { t as ne } from "./GeneralStore-Darfv4af.mjs";
|
|
5
|
-
import { t as re } from "./useErrorHandler-DAWwxGjG.mjs";
|
|
6
|
-
import { t as ie } from "./useSeoTitleUrl-UfPXDCPa.mjs";
|
|
7
|
-
import { t as ae } from "./useOrgaComputed-BfGR8BOq.mjs";
|
|
8
|
-
import { t as oe } from "./emission-CQ1VuxRc.mjs";
|
|
9
|
-
import { t as se } from "./useSeasonsManagement-DwbmJywJ.mjs";
|
|
10
|
-
import { t as ce } from "./CommentStore-ClWYnxlP.mjs";
|
|
11
|
-
import { t as le } from "./RightsIndicator-CpIxnsUR.mjs";
|
|
12
|
-
import { t as a } from "./ClassicLazy-DhdsXyI4.mjs";
|
|
13
|
-
import { t as ue } from "./PodcastImage-Fq6P5R4t.mjs";
|
|
14
|
-
import { t as o } from "./ParticipantDescription-DVSfKvtg.mjs";
|
|
15
|
-
import { t as s } from "./PodcastInlineList-S8FyZaKh.mjs";
|
|
16
|
-
import { t as c } from "./PodcastRawTranscript-Lmhj4ZcK.mjs";
|
|
17
|
-
import { t as de } from "./youtubeVideoHelper-Cdlokujb.mjs";
|
|
18
|
-
import { t as l } from "./usePodcastView-Cpwi9Cpz.mjs";
|
|
19
|
-
import { Fragment as u, computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createTextVNode as g, createVNode as _, defineAsyncComponent as v, defineComponent as y, guardReactiveProps as b, normalizeClass as x, normalizeProps as S, onBeforeUnmount as C, openBlock as w, ref as T, renderList as fe, renderSlot as E, resolveComponent as D, toDisplayString as O, toRefs as pe, unref as k, useTemplateRef as A, watch as j, withCtx as M } from "vue";
|
|
20
|
-
import { useI18n as me } from "vue-i18n";
|
|
21
|
-
import { useRoute as N, useRouter as P } from "vue-router";
|
|
22
|
-
import he from "vue-material-design-icons/NewspaperVariantOutline.vue";
|
|
23
|
-
//#region src/components/display/podcasts/PodcastModuleBox.vue?vue&type=script&setup=true&lang.ts
|
|
24
|
-
var ge = {
|
|
25
|
-
key: 0,
|
|
26
|
-
class: "module-box"
|
|
27
|
-
}, F = { class: "mb-2 w-100" }, I = { class: "d-flex justify-content-between flex-wrap mb-2" }, L = ["datetime"], R = {
|
|
28
|
-
key: 1,
|
|
29
|
-
class: "text-danger"
|
|
30
|
-
}, z = { class: "d-flex flex-column align-items-end" }, B = ["datetime"], _e = {
|
|
31
|
-
key: 0,
|
|
32
|
-
class: "mb-3 text-secondary"
|
|
33
|
-
}, V = ["innerHTML"], ve = ["innerHTML"], H = { class: "my-3" }, ye = { class: "mb-1" }, be = {
|
|
34
|
-
key: 0,
|
|
35
|
-
class: "mb-1"
|
|
36
|
-
}, xe = {
|
|
37
|
-
key: 1,
|
|
38
|
-
class: "mb-1"
|
|
39
|
-
}, Se = {
|
|
40
|
-
key: 2,
|
|
41
|
-
class: "mb-1"
|
|
42
|
-
}, U = {
|
|
43
|
-
key: 3,
|
|
44
|
-
class: "mb-1"
|
|
45
|
-
}, W = {
|
|
46
|
-
key: 4,
|
|
47
|
-
class: "mb-1"
|
|
48
|
-
}, G = {
|
|
49
|
-
key: 5,
|
|
50
|
-
class: "mb-1"
|
|
51
|
-
}, K = ["href", "title"], Ce = { key: 8 }, q = {
|
|
52
|
-
key: 0,
|
|
53
|
-
class: "me-5 text-secondary"
|
|
54
|
-
}, we = { class: "d-flex align-items-center flex-wrap" }, Te = /* @__PURE__ */ y({
|
|
55
|
-
__name: "PodcastModuleBox",
|
|
56
|
-
props: {
|
|
57
|
-
podcast: {},
|
|
58
|
-
playingPodcast: {},
|
|
59
|
-
podcastConference: {}
|
|
60
|
-
},
|
|
61
|
-
emits: ["updatePodcast"],
|
|
62
|
-
setup(e, { emit: n }) {
|
|
63
|
-
let te = v(() => import("./ErrorMessage-B4gtlriP.mjs").then((e) => e.n)), r = v(() => import("./PodcastPlayBar-CRwY1aJj.mjs")), ne = v(() => import("./SubscribeButtons-NKhPZ-sJ.mjs").then((e) => e.n)), re = v(() => import("./LikeSection-C5hS-dkj.mjs")), ie = v(() => import("./DownloadPodcastButton-CllFnfRd.mjs")), ae = v(() => import("./PodcastPlannedSpinner-DcDDays8.mjs")), ce = v(() => import("./CountDown-o6ye6yv1.mjs")), a = v(() => import("./TagList-DsQde007.mjs")), s = v(() => import("./ShareAnonymous-B41ATCRg.mjs")), de = v(() => import("./PodcastRubriqueList-PdtD_3e_.mjs")), u = e, y = n, { t: b } = me(), S = pe(u), { isLiveReadyToRecord: C, isCounter: T, timeRemaining: fe, isPlannedInProcessor: j, date: N, duration: Te, durationIso: Ee, isPodcastmaker: J, editRight: Y } = l(S.podcast, S.podcastConference), De = ee(), X = P(), { areSeasonsEnabled: Oe } = se(), ke = A("podcastRawTranscript"), Ae = d(() => {
|
|
64
|
-
let e = u.podcast?.rubriqueIds ?? [];
|
|
65
|
-
return u.podcast?.emission?.rubriqueIds && (e = [...new Set(e.concat(u.podcast?.emission?.rubriqueIds))]), e;
|
|
66
|
-
}), je = d(() => u.podcast?.availability.visibility ? u.podcast?.processingStatus === "ERROR" ? b("Podcast in ERROR, please contact Saooti") : Fe.value ? b("Podcast not validated") : "" : b("Podcast is not visible for listeners")), Me = d(() => u.podcast?.conferenceId !== void 0 && u.podcast?.conferenceId !== 0 && u.podcast?.processingStatus === "READY"), Ne = d(() => u.podcastConference !== void 0 && u.podcastConference.status === "DEBRIEFING"), Pe = d(() => !J.value && Y.value && De.isRoleLive), Fe = d(() => u.podcast?.availability !== void 0 && !1 === u.podcast?.valid), Ie = d(() => $(u.podcast?.annotations?.photoCredit)), Z = d(() => $(u.podcast?.annotations?.audioCredit)), Le = d(() => $(u.podcast?.annotations?.authorCredit)), Re = d(() => !(t.generalParameters.podcastmaker ?? !1)), Q = d(() => {
|
|
67
|
-
let e = [];
|
|
68
|
-
return u.podcast.tags && e.push(...u.podcast.tags), u.podcast.emission.tags && e.push(...u.podcast.emission.tags), e;
|
|
69
|
-
}), ze = d(() => Oe(u.podcast.emission) && u.podcast.seasonNumber !== void 0), Be = d(() => u.podcast.emission.seasonMode === oe.SEASON_WITH_PODCAST_NUMBERING && u.podcast.seasonEpisodeNumber !== void 0), Ve = d(() => u.podcast.annotations?.subtitle && t.podcastPage?.hideSubtitle !== !0), He = d(() => t.podcastPage?.descriptionOrSummary !== "summary"), Ue = d(() => u.podcast.summary && t.podcastPage?.descriptionOrSummary !== "description" && t.podcastPage?.descriptionOrSummary !== void 0);
|
|
70
|
-
function $(e) {
|
|
71
|
-
return e === void 0 ? "" : e.split(",").map((e) => e.trim()).join(", ");
|
|
72
|
-
}
|
|
73
|
-
function We(e) {
|
|
74
|
-
return i.urlify(e);
|
|
75
|
-
}
|
|
76
|
-
function Ge() {
|
|
77
|
-
C.value ? X.push("/main/pub/lives") : window.history.length > 1 ? X.go(-1) : X.push("/");
|
|
78
|
-
}
|
|
79
|
-
function Ke() {
|
|
80
|
-
ke.value.reset();
|
|
81
|
-
}
|
|
82
|
-
let qe = d(() => t.podcastPage.hideTags === !0 ? !1 : Q.value !== void 0 && Q.value.length !== 0);
|
|
83
|
-
return (n, ee) => {
|
|
84
|
-
let i = D("router-link");
|
|
85
|
-
return e.podcast ? (w(), m("section", ge, [
|
|
86
|
-
e.podcastConference && k(C) && Pe.value ? E(n.$slots, "recording-item-button", {
|
|
87
|
-
key: 0,
|
|
88
|
-
podcast: e.podcast,
|
|
89
|
-
live: !0,
|
|
90
|
-
recording: e.podcastConference,
|
|
91
|
-
onDeleteItem: Ge,
|
|
92
|
-
onValidatePodcast: (e) => y("updatePodcast", e)
|
|
93
|
-
}) : k(Y) && Re.value ? E(n.$slots, "edit-box", {
|
|
94
|
-
key: 1,
|
|
95
|
-
podcast: e.podcast,
|
|
96
|
-
displayStudioAccess: Ne.value,
|
|
97
|
-
onUpdateTranscription: Ke,
|
|
98
|
-
onValidatePodcast: (e) => y("updatePodcast", e)
|
|
99
|
-
}) : p("", !0),
|
|
100
|
-
h("div", F, [
|
|
101
|
-
_(ue, {
|
|
102
|
-
class: x([[k(C) && e.podcastConference && e.podcastConference !== "null" && e.podcastConference.status ? e.podcastConference.status.toLowerCase() + "-shadow" : ""], "me-3"]),
|
|
103
|
-
"show-processing": "",
|
|
104
|
-
"hide-play": k(C),
|
|
105
|
-
podcast: e.podcast,
|
|
106
|
-
"playing-podcast": e.playingPodcast,
|
|
107
|
-
"fetch-conference": e.podcastConference,
|
|
108
|
-
"is-animator-live": Pe.value
|
|
109
|
-
}, null, 8, [
|
|
110
|
-
"class",
|
|
111
|
-
"hide-play",
|
|
112
|
-
"podcast",
|
|
113
|
-
"playing-podcast",
|
|
114
|
-
"fetch-conference",
|
|
115
|
-
"is-animator-live"
|
|
116
|
-
]),
|
|
117
|
-
h("div", I, [
|
|
118
|
-
k(N).length === 0 ? p("", !0) : (w(), m("time", {
|
|
119
|
-
key: 0,
|
|
120
|
-
class: x(Me.value ? "" : "me-5"),
|
|
121
|
-
datetime: e.podcast.pubDate
|
|
122
|
-
}, O(k(N)), 11, L)),
|
|
123
|
-
Me.value ? (w(), m("div", R, O(k(b)("Episode record in live")), 1)) : p("", !0),
|
|
124
|
-
h("div", z, [h("time", { datetime: k(Ee) }, O(k(Te)), 9, B), k(Y) ? p("", !0) : (w(), f(k(s), {
|
|
125
|
-
key: 0,
|
|
126
|
-
podcast: e.podcast,
|
|
127
|
-
"organisation-id": e.podcast.organisation.id
|
|
128
|
-
}, null, 8, ["podcast", "organisation-id"]))])
|
|
129
|
-
]),
|
|
130
|
-
h("h2", { class: x({ "mb-3": !Ve.value }) }, [_(le, {
|
|
131
|
-
podcast: e.podcast,
|
|
132
|
-
action: "edit",
|
|
133
|
-
inline: ""
|
|
134
|
-
}, null, 8, ["podcast"]), g(" " + O(e.podcast.title), 1)], 2),
|
|
135
|
-
Ve.value ? (w(), m("h3", _e, O(e.podcast.annotations.subtitle), 1)) : p("", !0),
|
|
136
|
-
k(j) ? (w(), f(k(ae), { key: 1 })) : p("", !0),
|
|
137
|
-
k(T) ? (w(), f(k(ce), {
|
|
138
|
-
key: 2,
|
|
139
|
-
"time-remaining": k(fe)
|
|
140
|
-
}, null, 8, ["time-remaining"])) : p("", !0),
|
|
141
|
-
Ue.value ? (w(), m("div", {
|
|
142
|
-
key: 3,
|
|
143
|
-
class: x(["description-text html-wysiwyg-content", { "mb-4": Ue.value && He.value }]),
|
|
144
|
-
innerHTML: We(e.podcast.summary)
|
|
145
|
-
}, null, 10, V)) : p("", !0),
|
|
146
|
-
He.value ? (w(), m("div", {
|
|
147
|
-
key: 4,
|
|
148
|
-
class: "description-text html-wysiwyg-content",
|
|
149
|
-
innerHTML: We(e.podcast.description)
|
|
150
|
-
}, null, 8, ve)) : p("", !0),
|
|
151
|
-
h("div", H, [
|
|
152
|
-
h("div", ye, [g(O(k(b)("Emission") + " : ") + " ", 1), _(i, {
|
|
153
|
-
to: {
|
|
154
|
-
name: "emission",
|
|
155
|
-
params: { emissionId: e.podcast.emission.emissionId }
|
|
156
|
-
},
|
|
157
|
-
title: k(b)("Series name page", { name: e.podcast.emission.name })
|
|
158
|
-
}, {
|
|
159
|
-
default: M(() => [g(O(e.podcast.emission.name), 1)]),
|
|
160
|
-
_: 1
|
|
161
|
-
}, 8, ["to", "title"])]),
|
|
162
|
-
_(o, { participants: e.podcast.animators }, null, 8, ["participants"]),
|
|
163
|
-
_(o, {
|
|
164
|
-
participants: e.podcast.guests,
|
|
165
|
-
"is-guest": !0
|
|
166
|
-
}, null, 8, ["participants"]),
|
|
167
|
-
k(J) ? p("", !0) : (w(), m("div", be, [g(O(k(b)("Producted by : ")) + " ", 1), _(i, { to: {
|
|
168
|
-
name: "productor",
|
|
169
|
-
params: { productorId: e.podcast.organisation.id }
|
|
170
|
-
} }, {
|
|
171
|
-
default: M(() => [g(O(e.podcast.organisation.name), 1)]),
|
|
172
|
-
_: 1
|
|
173
|
-
}, 8, ["to"])])),
|
|
174
|
-
ze.value ? (w(), m("div", xe, O(`${k(b)("Podcast - Season")} : ${e.podcast.seasonNumber}`), 1)) : p("", !0),
|
|
175
|
-
Be.value ? (w(), m("div", Se, O(`${k(b)("Podcast - Episode number")} : ${e.podcast.seasonEpisodeNumber}`), 1)) : p("", !0),
|
|
176
|
-
Ie.value === "" ? p("", !0) : (w(), m("div", U, O(k(b)("Photo credits") + " : " + Ie.value), 1)),
|
|
177
|
-
Z.value === "" ? p("", !0) : (w(), m("div", W, O(k(b)("Audio credits") + " : " + Z.value), 1)),
|
|
178
|
-
Le.value === "" ? p("", !0) : (w(), m("div", G, O(k(b)("Author credits") + " : " + Le.value), 1)),
|
|
179
|
-
e.podcast.article && !k(De).isGarRole ? (w(), m("a", {
|
|
180
|
-
key: 6,
|
|
181
|
-
class: "btn d-flex align-items-center my-2 w-fit-content mb-1",
|
|
182
|
-
href: e.podcast.article,
|
|
183
|
-
rel: "noreferrer noopener",
|
|
184
|
-
target: "_blank",
|
|
185
|
-
title: k(b)("New window", { text: k(b)("See associated article") })
|
|
186
|
-
}, [_(he, { class: "me-1" }), h("div", null, O(k(b)("See associated article")), 1)], 8, K)) : p("", !0),
|
|
187
|
-
k(t).emissionsPage.progressBar ? (w(), f(k(r), {
|
|
188
|
-
key: 7,
|
|
189
|
-
podcast: e.podcast
|
|
190
|
-
}, null, 8, ["podcast"])) : p("", !0),
|
|
191
|
-
k(Y) && !k(J) ? (w(), m("div", Ce, [e.podcast.annotations && e.podcast.annotations.SOURCE_KIND === "RSS" ? (w(), m("div", q, O(k(b)("From RSS")), 1)) : p("", !0), je.value === "" ? p("", !0) : (w(), f(k(te), {
|
|
192
|
-
key: 1,
|
|
193
|
-
message: je.value
|
|
194
|
-
}, null, 8, ["message"]))])) : p("", !0),
|
|
195
|
-
h("div", we, [_(k(re), {
|
|
196
|
-
"edit-right": k(Y),
|
|
197
|
-
podcast: e.podcast
|
|
198
|
-
}, null, 8, ["edit-right", "podcast"]), k(t).podcastPage.downloadButton ? (w(), f(k(ie), {
|
|
199
|
-
key: 0,
|
|
200
|
-
podcast: e.podcast
|
|
201
|
-
}, null, 8, ["podcast"])) : p("", !0)])
|
|
202
|
-
])
|
|
203
|
-
]),
|
|
204
|
-
qe.value ? (w(), f(k(a), {
|
|
205
|
-
key: 2,
|
|
206
|
-
"tag-list": Q.value,
|
|
207
|
-
"orga-id": e.podcast.organisation.id,
|
|
208
|
-
"podcast-annotations": e.podcast.annotations,
|
|
209
|
-
max: k(t).podcastPage.maxTags
|
|
210
|
-
}, null, 8, [
|
|
211
|
-
"tag-list",
|
|
212
|
-
"orga-id",
|
|
213
|
-
"podcast-annotations",
|
|
214
|
-
"max"
|
|
215
|
-
])) : p("", !0),
|
|
216
|
-
Ae.value?.length ? (w(), f(k(de), {
|
|
217
|
-
key: 3,
|
|
218
|
-
"orga-id": e.podcast.organisation.id,
|
|
219
|
-
"rubrique-ids": Ae.value
|
|
220
|
-
}, null, 8, ["orga-id", "rubrique-ids"])) : p("", !0),
|
|
221
|
-
_(c, {
|
|
222
|
-
ref_key: "podcastRawTranscript",
|
|
223
|
-
ref: ke,
|
|
224
|
-
"podcast-id": e.podcast.podcastId
|
|
225
|
-
}, null, 8, ["podcast-id"]),
|
|
226
|
-
k(J) ? (w(), f(k(ne), {
|
|
227
|
-
key: 4,
|
|
228
|
-
class: "mt-4",
|
|
229
|
-
content: e.podcast.emission,
|
|
230
|
-
"window-width": 1e3,
|
|
231
|
-
"justify-center": !1
|
|
232
|
-
}, null, 8, ["content"])) : p("", !0)
|
|
233
|
-
])) : p("", !0);
|
|
234
|
-
};
|
|
235
|
-
}
|
|
236
|
-
}), Ee = { class: "page-box" }, J = { key: 2 }, Y = /* @__PURE__ */ y({
|
|
237
|
-
__name: "PodcastPage",
|
|
238
|
-
props: {
|
|
239
|
-
updateStatus: {},
|
|
240
|
-
playingPodcast: {},
|
|
241
|
-
podcastId: {},
|
|
242
|
-
useEmissionTitle: { type: Boolean }
|
|
243
|
-
},
|
|
244
|
-
setup(i) {
|
|
245
|
-
let oe = v(() => import("./ShareSocialsButtons-Bwxad4Y7.mjs")), se = v(() => import("./SharePlayer-elOCoCRi.mjs").then((e) => e.n)), le = v(() => import("./CommentSection-DN2hTntd.mjs")), ue = v(() => import("./PodcastmakerHeader-BM0dL0mN.mjs")), o = i, c = T(!1), l = T(!1), g = T(void 0), y = T(void 0), D = T(void 0), O = T(void 0), pe = N(), { t: A } = me(), { isPodcastmaker: P, isEditRights: he, authOrgaId: ge } = ae(), { updatePathParams: F } = ie(), { handle403: I } = re(), L = ee(), R = ne(), z = te(), B = ce(), _e = d(() => g.value?.emission?.annotations?.HIDE_SUGGESTIONS === "true"), V = d(() => g.value ? g.value.emission.annotations?.mainIabId ? parseInt(g.value.emission.annotations.mainIabId, 10) : g.value.emission.iabIds?.length ? g.value.emission.iabIds[0] : 0 : 0), ve = d(() => g.value === void 0 ? [] : R.storedCategories.filter((e) => g.value?.emission.iabIds && g.value.emission.iabIds.indexOf(e.id) !== -1).sort((e, t) => e.id === V.value ? -1 : +(t.id === V.value))), H = d(() => he(g.value?.organisation.id)), ye = d(() => g.value?.conferenceId !== void 0 && g.value?.conferenceId !== 0 && g.value?.processingStatus === "READY_TO_RECORD"), be = d(() => !P.value && H.value && L.isRoleLive), xe = d(() => ye.value ? A("Live episode") : A("Episode"));
|
|
246
|
-
j(() => o.updateStatus, () => {
|
|
247
|
-
y.value && y.value !== null && (y.value.status = o.updateStatus);
|
|
248
|
-
}), j(() => o.podcastId, async () => {
|
|
249
|
-
await Ce(), !(!g.value || l.value) && B.initCommentUser();
|
|
250
|
-
}, { immediate: !0 }), C(() => {
|
|
251
|
-
R.contentToDisplayUpdate(null), clearTimeout(D.value);
|
|
252
|
-
});
|
|
253
|
-
async function Se() {
|
|
254
|
-
if (!(!g.value || g.value.conferenceId == null || g.value.processingStatus !== "READY_TO_RECORD")) {
|
|
255
|
-
if (y.value = {
|
|
256
|
-
conferenceId: g.value.conferenceId,
|
|
257
|
-
title: ""
|
|
258
|
-
}, be.value) try {
|
|
259
|
-
y.value = await r.fetchData({
|
|
260
|
-
api: 9,
|
|
261
|
-
path: "conference/" + g.value.conferenceId
|
|
262
|
-
});
|
|
263
|
-
} catch {
|
|
264
|
-
await W();
|
|
265
|
-
}
|
|
266
|
-
else await W();
|
|
267
|
-
y.value && y.value.conferenceId !== -1 && y.value.status !== "PUBLISHING" && y.value.status !== "DEBRIEFING" && U();
|
|
268
|
-
}
|
|
269
|
-
}
|
|
270
|
-
async function U() {
|
|
271
|
-
y.value?.status !== "PUBLISHING" && (D.value = setTimeout(async () => {
|
|
272
|
-
await W(), U();
|
|
273
|
-
}, 3e3));
|
|
274
|
-
}
|
|
275
|
-
async function W() {
|
|
276
|
-
try {
|
|
277
|
-
let e = await r.fetchData({
|
|
278
|
-
api: 9,
|
|
279
|
-
path: "conference/info/" + g.value?.conferenceId
|
|
280
|
-
});
|
|
281
|
-
y.value = {
|
|
282
|
-
...y.value,
|
|
283
|
-
...e
|
|
284
|
-
};
|
|
285
|
-
} catch {}
|
|
286
|
-
}
|
|
287
|
-
function G(e) {
|
|
288
|
-
g.value = e, z.updateOrgaIfNecessary(e.organisation.id);
|
|
289
|
-
}
|
|
290
|
-
function K() {
|
|
291
|
-
l.value = !0, c.value = !0;
|
|
292
|
-
}
|
|
293
|
-
async function Ce() {
|
|
294
|
-
c.value = !1, l.value = !1;
|
|
295
|
-
try {
|
|
296
|
-
let e = await r.fetchData({
|
|
297
|
-
api: 0,
|
|
298
|
-
path: "podcast/" + o.podcastId
|
|
299
|
-
});
|
|
300
|
-
if (e.organisation.privacy !== "PUBLIC" && z.filterOrgaId !== e.organisation.id && pe.query.productor !== e.organisation.id) {
|
|
301
|
-
K();
|
|
302
|
-
return;
|
|
303
|
-
}
|
|
304
|
-
if (G(e), R.contentToDisplayUpdate(e), (!g.value.availability.visibility || g.value.processingStatus !== "READY_TO_RECORD" && g.value.processingStatus !== "READY" && g.value.processingStatus !== "PROCESSING" || !1 === g.value.valid) && !H.value) {
|
|
305
|
-
l.value = !0, c.value = !0;
|
|
306
|
-
return;
|
|
307
|
-
}
|
|
308
|
-
q(), F(g.value.title), await B.getCommentsConfig(g.value), (y.value?.videoProfile?.includes("video_") && g.value.processingStatus === "READY_TO_RECORD" || g.value.video?.videoId !== void 0) && (O.value = de.getYoutubeId(g.value?.tags ?? [])), c.value = !0;
|
|
309
|
-
} catch (e) {
|
|
310
|
-
I(e), K();
|
|
311
|
-
}
|
|
312
|
-
}
|
|
313
|
-
function q() {
|
|
314
|
-
if (g.value?.processingStatus !== "PLANNED") {
|
|
315
|
-
Se();
|
|
316
|
-
return;
|
|
317
|
-
}
|
|
318
|
-
D.value = setTimeout(async () => {
|
|
319
|
-
G(await n.get(o.podcastId)), q();
|
|
320
|
-
}, 2e3);
|
|
321
|
-
}
|
|
322
|
-
return (n, ee) => (w(), m("section", Ee, [c.value && !l.value && g.value ? (w(), m(u, { key: 0 }, [k(P) ? (w(), f(k(ue), {
|
|
323
|
-
key: 0,
|
|
324
|
-
"page-title": i.useEmissionTitle ? g.value.emission.name : xe.value,
|
|
325
|
-
"img-url": g.value.imageUrl
|
|
326
|
-
}, null, 8, ["page-title", "img-url"])) : p("", !0), h("div", { class: x(["d-flex flex-column page-element", k(P) ? "page-element-podcastmaker" : ""]) }, [
|
|
327
|
-
_(Te, {
|
|
328
|
-
"playing-podcast": i.playingPodcast,
|
|
329
|
-
podcast: g.value,
|
|
330
|
-
"podcast-conference": y.value,
|
|
331
|
-
onUpdatePodcast: G
|
|
332
|
-
}, {
|
|
333
|
-
"recording-item-button": M((e) => [E(n.$slots, "recording-item-button", S(b(e)))]),
|
|
334
|
-
"edit-box": M((e) => [E(n.$slots, "edit-box", S(b(e)))]),
|
|
335
|
-
_: 3
|
|
336
|
-
}, 8, [
|
|
337
|
-
"playing-podcast",
|
|
338
|
-
"podcast",
|
|
339
|
-
"podcast-conference"
|
|
340
|
-
]),
|
|
341
|
-
k(t).podcastPage.ShareButtons ? (w(), f(k(oe), {
|
|
342
|
-
key: 0,
|
|
343
|
-
"organisation-id": g.value.organisation.id
|
|
344
|
-
}, null, 8, ["organisation-id"])) : p("", !0),
|
|
345
|
-
!k(P) && H.value && !O.value ? (w(), f(k(se), {
|
|
346
|
-
key: 1,
|
|
347
|
-
podcast: g.value,
|
|
348
|
-
emission: g.value?.emission,
|
|
349
|
-
"organisation-id": k(ge)
|
|
350
|
-
}, null, 8, [
|
|
351
|
-
"podcast",
|
|
352
|
-
"emission",
|
|
353
|
-
"organisation-id"
|
|
354
|
-
])) : p("", !0),
|
|
355
|
-
_(k(le), { podcast: g.value }, null, 8, ["podcast"]),
|
|
356
|
-
_(s, {
|
|
357
|
-
"emission-id": g.value.emission.emissionId,
|
|
358
|
-
href: "/main/pub/emission/" + g.value.emission.emissionId,
|
|
359
|
-
title: k(A)("More episodes of this emission"),
|
|
360
|
-
"button-text": k(A)("All podcast emission button"),
|
|
361
|
-
"title-tag": "h3"
|
|
362
|
-
}, null, 8, [
|
|
363
|
-
"emission-id",
|
|
364
|
-
"href",
|
|
365
|
-
"title",
|
|
366
|
-
"button-text"
|
|
367
|
-
]),
|
|
368
|
-
_e.value ? p("", !0) : (w(), m("section", J, [_(a, { "min-height": 550 }, {
|
|
369
|
-
default: M(() => [_(s, {
|
|
370
|
-
class: "mt-4",
|
|
371
|
-
"title-tag": "h3",
|
|
372
|
-
"organisation-id": [g.value.organisation.id],
|
|
373
|
-
"podcast-id": i.podcastId,
|
|
374
|
-
title: k(A)("Suggested listening")
|
|
375
|
-
}, null, 8, [
|
|
376
|
-
"organisation-id",
|
|
377
|
-
"podcast-id",
|
|
378
|
-
"title"
|
|
379
|
-
])]),
|
|
380
|
-
_: 1
|
|
381
|
-
}), (w(!0), m(u, null, fe(ve.value, (e) => (w(), f(a, {
|
|
382
|
-
key: e.id,
|
|
383
|
-
"min-height": 550
|
|
384
|
-
}, {
|
|
385
|
-
default: M(() => [_(s, {
|
|
386
|
-
class: "mt-4",
|
|
387
|
-
"title-tag": "h3",
|
|
388
|
-
"iab-id": e.id,
|
|
389
|
-
href: "/main/pub/category/" + e.id,
|
|
390
|
-
title: k(A)("More episodes of this category : ", { name: e.name }),
|
|
391
|
-
"button-text": k(A)("All podcast button", { name: e.name }),
|
|
392
|
-
"organisation-id": [g.value.organisation.id]
|
|
393
|
-
}, null, 8, [
|
|
394
|
-
"iab-id",
|
|
395
|
-
"href",
|
|
396
|
-
"title",
|
|
397
|
-
"button-text",
|
|
398
|
-
"organisation-id"
|
|
399
|
-
])]),
|
|
400
|
-
_: 2
|
|
401
|
-
}, 1024))), 128))]))
|
|
402
|
-
], 2)], 64)) : p("", !0), _(e, {
|
|
403
|
-
"loading-text": c.value ? void 0 : k(A)("Loading content ..."),
|
|
404
|
-
"error-text": l.value ? k(A)("This episode is not available for (re)listening") : void 0
|
|
405
|
-
}, null, 8, ["loading-text", "error-text"])]));
|
|
406
|
-
}
|
|
407
|
-
});
|
|
408
|
-
//#endregion
|
|
409
|
-
export { Y as default };
|
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
import { D as e, b as t, d as n, g as r, m as i, u as ee } from "./classicApi-Cos2uZQj.mjs";
|
|
2
|
-
import { n as a } from "./PlayerStore-oWt4z_Pm.mjs";
|
|
3
|
-
import { t as o } from "./_plugin-vue_export-helper-B3ysoDQm.mjs";
|
|
4
|
-
import { t as s } from "./displayHelper-DQtoqc_6.mjs";
|
|
5
|
-
import { t as c } from "./useImageProxy-Bp5COBoB.mjs";
|
|
6
|
-
import { r as te } from "./useSharePlatforms-PyN99oER.mjs";
|
|
7
|
-
import { t as l } from "./useSeoTitleUrl-UfPXDCPa.mjs";
|
|
8
|
-
import { t as u } from "./useSharePath-D9G8Jdlb.mjs";
|
|
9
|
-
import "./logo_saooti_play_black-Doe3es2H.mjs";
|
|
10
|
-
import { Fragment as d, computed as f, createBlock as ne, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createTextVNode as g, createVNode as _, defineComponent as v, normalizeStyle as y, onMounted as b, openBlock as x, ref as S, renderList as C, resolveDirective as re, resolveDynamicComponent as ie, toDisplayString as w, unref as T, withDirectives as E } from "vue";
|
|
11
|
-
import D from "vue-material-design-icons/Play.vue";
|
|
12
|
-
//#region src/components/pages/SmartLinkPage.vue?vue&type=script&setup=true&lang.ts
|
|
13
|
-
var O = {
|
|
14
|
-
key: 0,
|
|
15
|
-
class: "background"
|
|
16
|
-
}, k = ["src"], A = { key: 1 }, j = { class: "content" }, M = { class: "left" }, N = {
|
|
17
|
-
width: "250",
|
|
18
|
-
height: "250",
|
|
19
|
-
class: "img-box",
|
|
20
|
-
"aria-hidden": "true",
|
|
21
|
-
alt: ""
|
|
22
|
-
}, P = ["innerHTML"], F = { class: "platforms" }, I = ["onClick"], L = { class: "platform-label" }, R = { class: "footer" }, z = {
|
|
23
|
-
target: "_blank",
|
|
24
|
-
href: "/"
|
|
25
|
-
}, ae = ["href"], B = { key: 0 }, V = { key: 1 }, H = /*#__PURE__*/ o(/* @__PURE__ */ v({
|
|
26
|
-
__name: "SmartLinkPage",
|
|
27
|
-
props: {
|
|
28
|
-
playlistId: {},
|
|
29
|
-
emissionId: {}
|
|
30
|
-
},
|
|
31
|
-
setup(o) {
|
|
32
|
-
let { updatePathParams: v } = l(), { useProxyImageUrl: H } = c(), { getPlatformsWithLinks: U, initPlatforms: W } = te(), G = S(null);
|
|
33
|
-
b(async () => {
|
|
34
|
-
o.playlistId ? (G.value = await i.get(o.playlistId), W(G.value.organisation.id)) : o.emissionId ? (G.value = await t.get(o.emissionId), W(G.value.orga.id)) : console.error("No content defined"), v(K.value), oe(), de();
|
|
35
|
-
});
|
|
36
|
-
let K = f(() => o.playlistId ? G.value.title : o.emissionId ? G.value.name : ""), q = f(() => {
|
|
37
|
-
let t = G.value.description;
|
|
38
|
-
if (e.smartLink.showOnlyFirstParagraphInDescription === !0) {
|
|
39
|
-
let e = t.match(/^(.+?(?:\n+.*?)*<\/p>)/);
|
|
40
|
-
e && e.length >= 2 && (t = e[1]);
|
|
41
|
-
}
|
|
42
|
-
return s.urlify(t);
|
|
43
|
-
}), J = f(() => {
|
|
44
|
-
if (G.value) {
|
|
45
|
-
if (o.playlistId) return G.value.organisation;
|
|
46
|
-
if (o.emissionId) return G.value.orga;
|
|
47
|
-
}
|
|
48
|
-
}), Y = S(null), { getSharePath: X } = u();
|
|
49
|
-
async function oe() {
|
|
50
|
-
J.value && (Y.value = await r.getAttributes(J.value.id));
|
|
51
|
-
}
|
|
52
|
-
let Z = f(() => {
|
|
53
|
-
if (o.playlistId) return X({
|
|
54
|
-
name: "playlist",
|
|
55
|
-
params: { playlistId: o.playlistId }
|
|
56
|
-
}, Y.value);
|
|
57
|
-
if (o.emissionId) return X({
|
|
58
|
-
name: "emission",
|
|
59
|
-
params: { emissionId: o.emissionId }
|
|
60
|
-
}, Y.value);
|
|
61
|
-
}), se = f(() => G.value ? U(G.value.annotations) : []);
|
|
62
|
-
function ce(e) {
|
|
63
|
-
return { "--gradient-color": e.color };
|
|
64
|
-
}
|
|
65
|
-
function le(e) {
|
|
66
|
-
window.open(e, "_blank").focus();
|
|
67
|
-
}
|
|
68
|
-
let ue = a(), Q = S(null);
|
|
69
|
-
async function de() {
|
|
70
|
-
if (o.playlistId) {
|
|
71
|
-
let e = await i.getContent(o.playlistId);
|
|
72
|
-
if (e.length > 0) {
|
|
73
|
-
let t = e[e.length - 1].podcastId;
|
|
74
|
-
Q.value = await n.get(t);
|
|
75
|
-
}
|
|
76
|
-
} else if (o.emissionId) {
|
|
77
|
-
let e = await n.searchFull({
|
|
78
|
-
emissionId: o.emissionId,
|
|
79
|
-
sort: ee.DATE,
|
|
80
|
-
size: 1
|
|
81
|
-
});
|
|
82
|
-
e.count > 0 && (Q.value = e.result[0]);
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
function $() {
|
|
86
|
-
Q.value && ue.playerPlay(Q.value);
|
|
87
|
-
}
|
|
88
|
-
return (e, t) => {
|
|
89
|
-
let n = re("lazy");
|
|
90
|
-
return x(), m(d, null, [G.value ? (x(), m("div", O, [h("img", { src: T(H)(G.value.imageUrl, "1600") }, null, 8, k)])) : p("", !0), G.value ? (x(), m("article", A, [
|
|
91
|
-
h("div", j, [
|
|
92
|
-
h("div", M, [E(h("img", N, null, 512), [[n, T(H)(G.value.imageUrl, "250")]]), Q.value ? (x(), m("button", {
|
|
93
|
-
key: 0,
|
|
94
|
-
class: "btn btn-primary play-button pe-3 hide-phone",
|
|
95
|
-
onClick: $
|
|
96
|
-
}, [_(D, { class: "me-2" }), g(" " + w(e.$t("SmartLink - Listen to latest episode")), 1)])) : p("", !0)]),
|
|
97
|
-
h("h1", null, w(K.value), 1),
|
|
98
|
-
h("div", { innerHTML: q.value }, null, 8, P),
|
|
99
|
-
Q.value ? (x(), m("button", {
|
|
100
|
-
key: 0,
|
|
101
|
-
class: "btn btn-primary play-button pe-3 mt-4 show-phone-flex",
|
|
102
|
-
onClick: $
|
|
103
|
-
}, [_(D, { class: "me-2" }), g(" " + w(e.$t("SmartLink - Listen to latest episode")), 1)])) : p("", !0)
|
|
104
|
-
]),
|
|
105
|
-
h("div", F, [(x(!0), m(d, null, C(se.value, (e) => (x(), m("div", {
|
|
106
|
-
key: e.name,
|
|
107
|
-
class: "platform-btn"
|
|
108
|
-
}, [h("button", {
|
|
109
|
-
class: "btn w-100",
|
|
110
|
-
style: y(ce(e)),
|
|
111
|
-
onClick: (t) => le(e.url)
|
|
112
|
-
}, [(x(), ne(ie(e.icon), {
|
|
113
|
-
size: 36,
|
|
114
|
-
"fill-color": e.color,
|
|
115
|
-
class: "me-2"
|
|
116
|
-
}, null, 8, ["fill-color"])), h("span", L, w(e.title), 1)], 12, I)]))), 128))]),
|
|
117
|
-
h("div", R, [h("a", z, [h("span", null, w(e.$t("SmartLink - Made by")), 1), t[0] ||= h("img", {
|
|
118
|
-
src: "/img/logo_saooti_play_black.svg",
|
|
119
|
-
height: "24",
|
|
120
|
-
class: "ms-2"
|
|
121
|
-
}, null, -1)]), Z.value ? (x(), m("a", {
|
|
122
|
-
key: 0,
|
|
123
|
-
target: "_blank",
|
|
124
|
-
href: Z.value
|
|
125
|
-
}, [o.playlistId ? (x(), m("span", B, w(e.$t("SmartLink - To playlist on podcastmaker", { organisation: J.value.name })), 1)) : o.emissionId ? (x(), m("span", V, w(e.$t("SmartLink - To emission on podcastmaker", { organisation: J.value.name })), 1)) : p("", !0)], 8, ae)) : p("", !0)])
|
|
126
|
-
])) : p("", !0)], 64);
|
|
127
|
-
};
|
|
128
|
-
}
|
|
129
|
-
}), [["__scopeId", "data-v-0ccb517f"]]);
|
|
130
|
-
//#endregion
|
|
131
|
-
export { H as default };
|