@saooti/octopus-sdk 42.0.2 → 42.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (140) hide show
  1. package/dist/{AdvancedSearch-EkYCvb-A.mjs → AdvancedSearch-CRM10skn.mjs} +5 -5
  2. package/dist/{CategoryFilter-BYF5Aj66.mjs → CategoryFilter-Brp-KFg7.mjs} +3 -3
  3. package/dist/{CategoryList-Bl4HF6IV.mjs → CategoryList-CMOJ2PnA.mjs} +1 -1
  4. package/dist/{CategoryPage-D31bXPFd.mjs → CategoryPage-Bc37UcZy.mjs} +2 -2
  5. package/dist/{ChapteringModal-DeJlPZqt.mjs → ChapteringModal-CyH6QLeE.mjs} +1 -1
  6. package/dist/{CheckIdentityModal-C0mQhO1Y.mjs → CheckIdentityModal-CHV9trKX.mjs} +2 -2
  7. package/dist/{ClipboardModal-CZMe6yzC.mjs → ClipboardModal-B0Jt9ME7.mjs} +1 -1
  8. package/dist/{CommentInput-CJQJGuGh.mjs → CommentInput-ChEnqzNa.mjs} +4 -4
  9. package/dist/{CommentItem-BMdLtMSM.mjs → CommentItem-BE3-5CFl.mjs} +3 -3
  10. package/dist/{CommentList-CiyIfFVR.mjs → CommentList-B0fDtqIH.mjs} +2 -2
  11. package/dist/{CommentMoreActions-LkviE-Ys.mjs → CommentMoreActions-DFTHxzHB.mjs} +3 -3
  12. package/dist/{CommentName-Dd6_i8Aq.mjs → CommentName-ByE5TV4u.mjs} +2 -2
  13. package/dist/{CommentParentInfo-B1uIVuWE.mjs → CommentParentInfo-DyzP495k.mjs} +1 -1
  14. package/dist/{CommentPlayer-6khGC239.mjs → CommentPlayer-2eRUFpll.mjs} +2 -2
  15. package/dist/{CommentSection-DN2hTntd.mjs → CommentSection-DQx3qX6H.mjs} +3 -3
  16. package/dist/{CommentStore-ClWYnxlP.mjs → CommentStore-C4lkShsH.mjs} +15 -15
  17. package/dist/{ContractPreviewModal-D09ZZRzk.mjs → ContractPreviewModal-BxOE6aiU.mjs} +2 -2
  18. package/dist/{DownloadPodcastButton-CllFnfRd.mjs → DownloadPodcastButton-Dcgt8FfA.mjs} +2 -2
  19. package/dist/{EditCommentModal-DdQ0VbJD.mjs → EditCommentModal-K6D1-4gU.mjs} +1 -1
  20. package/dist/{EmissionGroupChooser-Zcybs9xf.mjs → EmissionGroupChooser-B0UXS-d_.mjs} +1 -1
  21. package/dist/{EmissionInlineList-BApYL38i.mjs → EmissionInlineList-CRJ4pIxb.mjs} +5 -5
  22. package/dist/{EmissionItem-Drvrx9dD.mjs → EmissionItem-8WTkKsCa.mjs} +4 -4
  23. package/dist/{EmissionList-CTf4dsj_.mjs → EmissionList-ucpW_ejS.mjs} +4 -4
  24. package/dist/{EmissionPage-H6mau7wr.mjs → EmissionPage-B8Nlb52Y.mjs} +8 -8
  25. package/dist/{EmissionPlayerItem-C0_Fu8k1.mjs → EmissionPlayerItem-BzuNcAsq.mjs} +3 -3
  26. package/dist/{EmissionPresentationItem-CoIUFFKW.mjs → EmissionPresentationItem-ZU93UKW2.mjs} +1 -1
  27. package/dist/{EmissionPresentationList-CkCczWdK.mjs → EmissionPresentationList-LY-FEWC2.mjs} +3 -3
  28. package/dist/{EmissionsPage-DjdZ-b2g.mjs → EmissionsPage-wzpDLmzO.mjs} +4 -4
  29. package/dist/{Error403Page-CZ9ePMyv.mjs → Error403Page-DLaOyud0.mjs} +2 -2
  30. package/dist/{FooterGarSection-BWvyWYzd.mjs → FooterGarSection-BwFRytaV.mjs} +4 -4
  31. package/dist/{FooterSection-MLB3MbQn.mjs → FooterSection-VGdzyEZf.mjs} +2 -2
  32. package/dist/{HomeDropdown-F5S8UGGq.mjs → HomeDropdown-CNSPuJot.mjs} +2 -2
  33. package/dist/{HomePage-OvL6x1m2.mjs → HomePage-CGaCXQBm.mjs} +3 -3
  34. package/dist/{LikeSection-C5hS-dkj.mjs → LikeSection-D_q391TU.mjs} +3 -3
  35. package/dist/{ListPaginate--S_WMdzs.mjs → ListPaginate-B-PYbP3K.mjs} +2 -2
  36. package/dist/{LiveHorizontalList-DcjX6JyT.mjs → LiveHorizontalList-CDIDwBWJ.mjs} +3 -3
  37. package/dist/{LiveList-rBKbHV1z.mjs → LiveList-Dvxk12Cc.mjs} +12 -12
  38. package/dist/{LivesPage-CBfjbjJS.mjs → LivesPage-BByFveAd.mjs} +2 -2
  39. package/dist/{MapPage-DPlAyhb2.mjs → MapPage-w7hUFr9g.mjs} +1 -1
  40. package/dist/{MobileMenu-Bstcgl68.mjs → MobileMenu-D19pTUkT.mjs} +3 -3
  41. package/dist/{NewsletterModal-CjqEAdDc.mjs → NewsletterModal-BekCWfJB.mjs} +1 -1
  42. package/dist/{OrganisationChooser-CucAu_Zo.mjs → OrganisationChooser-ywDaRPU9.mjs} +6 -6
  43. package/dist/{OrganisationChooserLight-BF5X41Z_.mjs → OrganisationChooserLight-CMNA-YR5.mjs} +2 -2
  44. package/dist/{PageNotFound-DZE0j-zQ.mjs → PageNotFound-kY0Vk237.mjs} +2 -2
  45. package/dist/{ParticipantInlineList-DQIv3BCY.mjs → ParticipantInlineList-n3IcMXXU.mjs} +4 -4
  46. package/dist/{ParticipantItem-DjCj0PAR.mjs → ParticipantItem-CoS5qVct.mjs} +3 -3
  47. package/dist/{ParticipantPage-DKgl3Itz.mjs → ParticipantPage-CqwpZDjv.mjs} +6 -6
  48. package/dist/{ParticipantsPage-OV4-0XDV.mjs → ParticipantsPage-BzZFxuAX.mjs} +6 -6
  49. package/dist/{PlayerAnonymousModal-CN9K91v7.mjs → PlayerAnonymousModal-Clf2m_PO.mjs} +2 -2
  50. package/dist/{PlayerCompact-C4Z3zX1V.mjs → PlayerCompact-ff2-h0Ys.mjs} +3 -3
  51. package/dist/{PlayerComponent-BvFCwOZH.mjs → PlayerComponent-BIZ29VAP.mjs} +52 -52
  52. package/dist/{PlayerLarge-Dreq0MkF.mjs → PlayerLarge-C958Fkm_.mjs} +5 -5
  53. package/dist/{PlayerPlayButton-DwK-Xwxw.mjs → PlayerPlayButton-DL0e7DAU.mjs} +4 -4
  54. package/dist/{PlayerProgressBar-CSPhQUMv.mjs → PlayerProgressBar-DK9ClWaE.mjs} +2 -2
  55. package/dist/{PlayerStore-oWt4z_Pm.mjs → PlayerStore-DlQZRxsf.mjs} +1 -1
  56. package/dist/{PlayerVideo-B-yey4sP.mjs → PlayerVideo-BRkaIXH7.mjs} +3 -3
  57. package/dist/{PlayerVideoDigiteka-Be7q9IOr.mjs → PlayerVideoDigiteka-CNfWw0hs.mjs} +2 -2
  58. package/dist/{PlayerVideoHls-Bpr0t84b.mjs → PlayerVideoHls-Czu2Xvob.mjs} +3 -3
  59. package/dist/{PlaylistPage-DsqLnr3q.mjs → PlaylistPage-BV_3q5Pg.mjs} +8 -8
  60. package/dist/{PlaylistsPage-D-AmEXaF.mjs → PlaylistsPage-g82vXz51.mjs} +6 -6
  61. package/dist/{PodcastFilterList-D0OHATs3.mjs → PodcastFilterList-CpH9ALL0.mjs} +2 -2
  62. package/dist/{PodcastImage-Fq6P5R4t.mjs → PodcastImage-Kr7qE9PW.mjs} +3 -3
  63. package/dist/{PodcastInlineList-S8FyZaKh.mjs → PodcastInlineList-CSPSuPXn.mjs} +1 -1
  64. package/dist/{PodcastInlineListTemplate-CSNYVfeg.mjs → PodcastInlineListTemplate-CBGWengl.mjs} +3 -3
  65. package/dist/{PodcastIsPlaying-D1Y0PrPe.mjs → PodcastIsPlaying-CvZMCgrV.mjs} +1 -1
  66. package/dist/{PodcastItem-CRQzSYa8.mjs → PodcastItem-B6xZ9spO.mjs} +26 -25
  67. package/dist/{PodcastList-jSaSktGX.mjs → PodcastList-DM2kODR9.mjs} +5 -5
  68. package/dist/{PodcastList-Q7UB5Jvo.mjs → PodcastList-DN7U6G3x.mjs} +10 -10
  69. package/dist/PodcastPage-ClPlzjJY.mjs +409 -0
  70. package/dist/{PodcastPlayBar-CRwY1aJj.mjs → PodcastPlayBar-C-7lR6Or.mjs} +3 -3
  71. package/dist/{PodcastPlayBasicButton-DxyYfLdG.mjs → PodcastPlayBasicButton-akh9XtTL.mjs} +1 -1
  72. package/dist/{PodcastPlayButton-Cp8DrQtU.mjs → PodcastPlayButton-CqjJC_GT.mjs} +3 -3
  73. package/dist/{PodcastPlaylistInlineList-BFwIvuIS.mjs → PodcastPlaylistInlineList-DTJpiuMG.mjs} +4 -4
  74. package/dist/{PodcastPresentationList-Ds_Xziyu.mjs → PodcastPresentationList-B0D9wjP2.mjs} +8 -8
  75. package/dist/{PodcastProgressBar-Dy18FXco.mjs → PodcastProgressBar-CIf_zX6H.mjs} +3 -3
  76. package/dist/{PodcastRawTranscript-Lmhj4ZcK.mjs → PodcastRawTranscript-EqIv2k5F.mjs} +2 -2
  77. package/dist/{PodcastRubriqueList-PdtD_3e_.mjs → PodcastRubriqueList-DCchX3n9.mjs} +2 -2
  78. package/dist/{PodcastSwiperList-CsD6U7nC.mjs → PodcastSwiperList-PSwifeRx.mjs} +4 -4
  79. package/dist/{PodcastmakerHeader-BM0dL0mN.mjs → PodcastmakerHeader-DpCkSoQE.mjs} +1 -1
  80. package/dist/{PodcastsPage-DFlL6kGB.mjs → PodcastsPage-CSWymx6J.mjs} +4 -4
  81. package/dist/{ProductorSearch-14Fsq-1F.mjs → ProductorSearch-l_LHvS3J.mjs} +2 -2
  82. package/dist/{ProgressBar-ict3WjO9.mjs → ProgressBar-CB9kEepm.mjs} +1 -1
  83. package/dist/{QrCode-DFVyJ6jp.mjs → QrCode-D-3wdYEC.mjs} +1 -1
  84. package/dist/{QrCodeModal-CmSioVji.mjs → QrCodeModal-BAk2VQzU.mjs} +1 -1
  85. package/dist/{RadioCurrently-B4l5Zpqx.mjs → RadioCurrently-r21pyYBe.mjs} +3 -3
  86. package/dist/{RadioHistory-DGvnUjt5.mjs → RadioHistory-BNqw7gzG.mjs} +2 -2
  87. package/dist/{RadioImage-Ch0YOZpr.mjs → RadioImage-IbBgMDUL.mjs} +4 -4
  88. package/dist/{RadioList-BekzGcfZ.mjs → RadioList-CLjDwo6u.mjs} +4 -4
  89. package/dist/{RadioPage-YaFXvWH3.mjs → RadioPage-Bx4i1Mpi.mjs} +4 -4
  90. package/dist/{RadioPlanning-Dx14nK5H.mjs → RadioPlanning-Br27Ttix.mjs} +2 -2
  91. package/dist/{RadioProgressBar-w1nQ8czX.mjs → RadioProgressBar-Cb3AfYLQ.mjs} +1 -1
  92. package/dist/{RecaptchaModal-BF9ULSTd.mjs → RecaptchaModal-CxtAdOpC.mjs} +1 -1
  93. package/dist/{ReportAbuseModal-CwGBRV_C.mjs → ReportAbuseModal-iggcskxa.mjs} +3 -3
  94. package/dist/{RightsIndicator-CpIxnsUR.mjs → RightsIndicator-D_7amy65.mjs} +1 -1
  95. package/dist/{RightsWrapper-D1qVfCcg.mjs → RightsWrapper-Bo6Xza5_.mjs} +2 -2
  96. package/dist/{RubriqueFilter-DdXpISEj.mjs → RubriqueFilter-CJDRNtiD.mjs} +2 -2
  97. package/dist/{RubriqueList-Bf3kNyk9.mjs → RubriqueList-CISdSdFN.mjs} +2 -2
  98. package/dist/{RubriquePage-4OHOajcE.mjs → RubriquePage-C8CF_iFS.mjs} +4 -4
  99. package/dist/{SearchPage-BJlU-BcT.mjs → SearchPage-DvLjGwKI.mjs} +2 -2
  100. package/dist/{ShareAnonymous-B41ATCRg.mjs → ShareAnonymous-GQ600Owz.mjs} +3 -3
  101. package/dist/{ShareModalPlayer-BalJpjQZ.mjs → ShareModalPlayer-pB-HAwc-.mjs} +1 -1
  102. package/dist/{ShareNewsletter-f03J6RoH.mjs → ShareNewsletter-Cdyw0GB9.mjs} +2 -2
  103. package/dist/{SharePlayer-elOCoCRi.mjs → SharePlayer-XribbnSm.mjs} +2 -2
  104. package/dist/{SharePlayerRadio-B9oLzSBG.mjs → SharePlayerRadio-Co0G90iE.mjs} +2 -2
  105. package/dist/{SharePlayerTypes-AWfa6Qz_.mjs → SharePlayerTypes-Crlc6fV2.mjs} +1 -1
  106. package/dist/{ShareSocialsButtons-Bwxad4Y7.mjs → ShareSocialsButtons-oPwpAJiG.mjs} +2 -2
  107. package/dist/{SimpleLayout-CAFYRTMf.mjs → SimpleLayout-DO6e66-u.mjs} +2 -2
  108. package/dist/SmartLinkPage-Bfe3J2rs.mjs +131 -0
  109. package/dist/{SubscribeButtons-NKhPZ-sJ.mjs → SubscribeButtons-BsUSeVE2.mjs} +2 -2
  110. package/dist/{SwiperList-CxSo0qdA.mjs → SwiperList-05VP6fwg.mjs} +1 -1
  111. package/dist/{TagList-DsQde007.mjs → TagList-CpH_cvNv.mjs} +1 -1
  112. package/dist/{TagPage-DdSPU923.mjs → TagPage-B7mbRbqr.mjs} +3 -3
  113. package/dist/{TopBar-CpjDKdG9.mjs → TopBar-DljepaOt.mjs} +6 -6
  114. package/dist/{UserButtonContent-COb8p914.mjs → UserButtonContent-B20fPV-J.mjs} +2 -2
  115. package/dist/{VideoModuleBox-Dz6dkVFU.mjs → VideoModuleBox-DJdYQGMX.mjs} +1 -1
  116. package/dist/VideoPage-Bllo2Q-Y.mjs +148 -0
  117. package/dist/{classicApi-Cos2uZQj.mjs → classicApi-CT9k0xvp.mjs} +234 -257
  118. package/dist/{downloadHelper-0s6Woxx4.mjs → downloadHelper-DkfB6XQg.mjs} +1 -1
  119. package/dist/index.mjs +83 -82
  120. package/dist/tests.mjs +2 -2
  121. package/dist/{useAdvancedParamInit-CK1S2A-5.mjs → useAdvancedParamInit-Y3eC3aep.mjs} +5 -5
  122. package/dist/useDayjs-ayZHsoc2.mjs +28 -0
  123. package/dist/{useErrorHandler-DAWwxGjG.mjs → useErrorHandler-Chh24Net.mjs} +1 -1
  124. package/dist/{useImageProxy-Bp5COBoB.mjs → useImageProxy-C_wlfbSP.mjs} +1 -1
  125. package/dist/{useOrgaComputed-BfGR8BOq.mjs → useOrgaComputed-CmlIJ5XC.mjs} +1 -1
  126. package/dist/{usePlayerLogicProgress-Bp5H95rW.mjs → usePlayerLogicProgress-B0mjPIEj.mjs} +2 -2
  127. package/dist/{usePodcastView-Cpwi9Cpz.mjs → usePodcastView-wkow7peQ.mjs} +4 -3
  128. package/dist/{usePresentationItem-DOW0xnDy.mjs → usePresentationItem-C37nsJnQ.mjs} +20 -19
  129. package/dist/{useRights-BuILddIF.mjs → useRights-CXa0yDii.mjs} +1 -1
  130. package/dist/{useRubriquesFilterComputed-CDhO1bNi.mjs → useRubriquesFilterComputed-goozXeIB.mjs} +1 -1
  131. package/dist/{useRubriquesFilterParam-BAM07jph.mjs → useRubriquesFilterParam-CrsdD0Oj.mjs} +1 -1
  132. package/dist/{useSharePlatforms-PyN99oER.mjs → useSharePlatforms-B7Xnf_If.mjs} +5 -5
  133. package/dist/{useSimplePageParam-B6eU_F2z.mjs → useSimplePageParam-D6TmZIPG.mjs} +1 -1
  134. package/dist/{useTranslation-CQT91TGE.mjs → useTranslation-D3t40JaE.mjs} +14 -14
  135. package/dist/{usefetchRadioData-KflsZpkI.mjs → usefetchRadioData-knVpkZCB.mjs} +1 -1
  136. package/package.json +1 -1
  137. package/src/stores/CacheStore.ts +1 -3
  138. package/dist/PodcastPage-D4IWvzX2.mjs +0 -409
  139. package/dist/SmartLinkPage-C3pyttZO.mjs +0 -131
  140. package/dist/VideoPage-Dpbfsyi_.mjs +0 -148
@@ -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 };
@@ -1,148 +0,0 @@
1
- import { t as e } from "./ClassicLoading-CXfMjpyl.mjs";
2
- import { T as t, i as n, r, t as i } from "./classicApi-Cos2uZQj.mjs";
3
- import { n as ee } from "./PlayerStore-oWt4z_Pm.mjs";
4
- import { t as a } from "./GeneralStore-Darfv4af.mjs";
5
- import { t as o } from "./useErrorHandler-DAWwxGjG.mjs";
6
- import { t as s } from "./useSeoTitleUrl-UfPXDCPa.mjs";
7
- import { t as c } from "./CommentStore-ClWYnxlP.mjs";
8
- import { t as l } from "./ClassicNav-DYez6p1J.mjs";
9
- import { t as te } from "./usePodcastView-Cpwi9Cpz.mjs";
10
- import { Fragment as u, computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createSlots as g, createTextVNode as _, createVNode as v, defineAsyncComponent as y, defineComponent as b, onBeforeUnmount as x, openBlock as S, ref as C, renderList as ne, resolveComponent as re, toDisplayString as w, unref as T, watch as E, withCtx as D } from "vue";
11
- import { useI18n as O } from "vue-i18n";
12
- import { useRoute as k } from "vue-router";
13
- import A from "vue-material-design-icons/ChevronLeft.vue";
14
- //#region src/components/pages/VideoPage.vue?vue&type=script&setup=true&lang.ts
15
- var ie = { class: "page-box" }, ae = {
16
- key: 0,
17
- class: "d-flex video-page-container"
18
- }, oe = { class: "w-70-responsive" }, se = {
19
- key: 1,
20
- class: "d-flex flex-column align-items-center flex-grow-1 blue-bg p-3"
21
- }, ce = { class: "w-30-responsive info-video-container" }, le = { class: "d-flex flex-column flex-grow-1 w-100" }, ue = {
22
- key: 1,
23
- class: "text-center text-danger h3"
24
- }, j = /* @__PURE__ */ b({
25
- __name: "VideoPage",
26
- props: { podcastId: {
27
- default: 0,
28
- type: Number
29
- } },
30
- setup(b) {
31
- let j = y(() => import("./PlayerVideoDigiteka-Be7q9IOr.mjs")), M = y(() => import("./PlayerVideoHls-Bpr0t84b.mjs")), N = y(() => import("./CommentSection-DN2hTntd.mjs")), P = y(() => import("./VideoModuleBox-Dz6dkVFU.mjs")), F = y(() => import("./CountdownOctopus-D0X5hVBu.mjs")), I = b, L = C(!1), R = C(void 0), z = C(!1), B = C(0), V = C(void 0), H = C(void 0), U = C(void 0), { isLiveReadyToRecord: W, isCounter: de, timeRemaining: fe, date: G, duration: K, durationIso: pe, editRight: me } = te(R, H), { handle403: he } = o(), { updatePathParams: ge } = s(), _e = n(), ve = t(), ye = a(), be = ee(), xe = r(), q = c(), { t: J } = O(), Se = k(), Y = d(() => R.value?.video?.videoId), Ce = d(() => q.getCanPostComment(V.value, R.value, _e.authOrgaId !== void 0)), X = d(() => Ce.value ? [J("Information"), J("Comments")] : []), Z = d(() => H.value !== void 0 && H.value.conferenceId !== -1 && (H.value.status === "RECORDING" || H.value.status === "PENDING")), we = d(() => !Z.value || !H.value ? "" : `${ve.hlsUrl}live/video_${H.value.hlsIdentifier}/index.m3u8`), Te = d(() => R.value?.organisation?.privacy === "SECURED"), Q = d(() => {
32
- if (H.value?.status === "PUBLISHING") return J("In the process of being published");
33
- });
34
- E(() => I.podcastId, async () => {
35
- await Ee(), R.value && (q.initCommentUser(), V.value = await q.getCommentsConfig(R.value));
36
- }, { immediate: !0 }), x(() => {
37
- clearInterval(U.value);
38
- });
39
- async function Ee() {
40
- L.value = !1, z.value = !1;
41
- try {
42
- R.value = await i.fetchData({
43
- api: 0,
44
- path: "podcast/" + I.podcastId
45
- }), document.title = R.value.title + " - " + ye.metaTitle;
46
- let e = R.value.organisation, t = e.privacy !== "PUBLIC" && xe.filterOrgaId !== e.id && Se.query.productor !== e.id, n = (!R.value.availability.visibility || ![
47
- "READY_TO_RECORD",
48
- "READY",
49
- "PROCESSING"
50
- ].includes(R.value.processingStatus ?? "") || !R.value.valid) && !me.value;
51
- t || n ? z.value = !0 : (ge(R.value.title), R.value.conferenceId && R.value.processingStatus !== "READY" && (await $(), U.value = setInterval(() => {
52
- $();
53
- }, 3e3), be.playerPlay({
54
- ...R.value,
55
- conferenceId: R.value.conferenceId,
56
- hlsIdentifier: H.value?.hlsIdentifier
57
- }, !0)));
58
- } catch (e) {
59
- he(e), z.value = !0;
60
- }
61
- L.value = !0;
62
- }
63
- async function $() {
64
- if (!R.value?.conferenceId) return;
65
- let e = await i.fetchData({
66
- api: 9,
67
- path: "conference/info/" + R.value.conferenceId
68
- });
69
- H.value = {
70
- ...e,
71
- conferenceId: R.value.conferenceId,
72
- title: ""
73
- }, e.status === "DEBRIEFING" && clearInterval(U.value);
74
- }
75
- return (t, n) => {
76
- let r = re("router-link");
77
- return S(), m("section", ie, [
78
- L.value && !z.value ? (S(), m(u, { key: 0 }, [v(r, {
79
- to: {
80
- name: "podcast",
81
- params: { podcastId: b.podcastId }
82
- },
83
- class: "mt-3 mb-3 w-fit-content d-flex align-items-center",
84
- title: T(J)("Episode name page", { name: R.value?.title })
85
- }, {
86
- default: D(() => [v(A), _(w(T(J)("Episode page")), 1)]),
87
- _: 1
88
- }, 8, ["to", "title"]), Y.value || T(W) ? (S(), m("div", ae, [h("div", oe, [T(W) ? (S(), m(u, { key: 0 }, [Z.value ? (S(), f(T(M), {
89
- key: 0,
90
- "hls-url": we.value,
91
- "is-secured": Te.value,
92
- responsive: !0
93
- }, null, 8, ["hls-url", "is-secured"])) : p("", !0), T(de) || Q.value ? (S(), m("div", se, [v(T(F), {
94
- "time-remaining": T(fe),
95
- "override-text": Q.value
96
- }, null, 8, ["time-remaining", "override-text"])])) : p("", !0)], 64)) : (S(), f(T(j), {
97
- key: 1,
98
- "video-id": Y.value,
99
- "podcast-id": b.podcastId,
100
- responsive: ""
101
- }, null, 8, ["video-id", "podcast-id"]))]), h("div", ce, [h("div", le, [X.value.length ? (S(), f(l, {
102
- key: 0,
103
- "active-tab": B.value,
104
- "onUpdate:activeTab": n[0] ||= (e) => B.value = e,
105
- "tab-number": X.value.length,
106
- transparent: !0
107
- }, g({
108
- tab0: D(() => [v(T(P), {
109
- podcast: R.value,
110
- date: T(G),
111
- duration: T(K)
112
- }, null, 8, [
113
- "podcast",
114
- "date",
115
- "duration"
116
- ])]),
117
- tab1: D(() => [h("section", null, [v(T(N), {
118
- podcast: R.value,
119
- class: "module-box-transparent"
120
- }, null, 8, ["podcast"])])]),
121
- _: 2
122
- }, [ne(X.value, (e, t) => ({
123
- name: t,
124
- fn: D(() => [_(w(e), 1)])
125
- }))]), 1032, ["active-tab", "tab-number"])) : (S(), f(T(P), {
126
- key: 1,
127
- class: "p-2 video-module-box",
128
- podcast: R.value,
129
- date: T(G),
130
- duration: T(K),
131
- "duration-iso": T(pe)
132
- }, null, 8, [
133
- "podcast",
134
- "date",
135
- "duration",
136
- "duration-iso"
137
- ]))])])])) : p("", !0)], 64)) : p("", !0),
138
- !z.value && !Y.value && !T(W) ? (S(), m("div", ue, w(T(J)("The episode does not have an associated video")), 1)) : p("", !0),
139
- v(e, {
140
- "loading-text": L.value ? void 0 : T(J)("Loading content ..."),
141
- "error-text": z.value ? T(J)("This episode is not available for (re)listening") : void 0
142
- }, null, 8, ["loading-text", "error-text"])
143
- ]);
144
- };
145
- }
146
- });
147
- //#endregion
148
- export { j as default };