@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
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { E as e, a as t, m as n } from "./classicApi-DR5O2l0-.mjs";
|
|
2
|
+
import { t as r } from "./useResizePhone-4hSkK5pa.mjs";
|
|
3
|
+
import { t as i } from "./_plugin-vue_export-helper-B3ysoDQm.mjs";
|
|
4
|
+
import { t as a } from "./displayHelper-DQtoqc_6.mjs";
|
|
5
|
+
import { t as o } from "./useImageProxy-C3duE5Uj.mjs";
|
|
6
|
+
import { t as s } from "./GeneralStore-Darfv4af.mjs";
|
|
7
|
+
import { t as c } from "./useDayjs-CCvXE-aF.mjs";
|
|
8
|
+
import { Fragment as l, computed as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createVNode as m, defineComponent as h, nextTick as g, normalizeClass as _, openBlock as v, renderList as y, renderSlot as b, resolveComponent as x, resolveDirective as S, toDisplayString as C, unref as w, useTemplateRef as T, watch as E, withCtx as D, withDirectives as O } from "vue";
|
|
9
|
+
//#region src/components/layouts/PresentationItem.vue?vue&type=script&setup=true&lang.ts
|
|
10
|
+
var k = [
|
|
11
|
+
"width",
|
|
12
|
+
"height",
|
|
13
|
+
"alt",
|
|
14
|
+
"title"
|
|
15
|
+
], A = { class: "tags" }, j = { class: "element-name mb-2 basic-line-clamp" }, M = {
|
|
16
|
+
key: 0,
|
|
17
|
+
ref: "descriptionItemContainer",
|
|
18
|
+
class: "element-description htms-wysiwyg-content mt-0"
|
|
19
|
+
}, N = {
|
|
20
|
+
key: 0,
|
|
21
|
+
class: "mb-2"
|
|
22
|
+
}, P = ["innerHTML"], F = /*#__PURE__*/ i(/* @__PURE__ */ h({
|
|
23
|
+
__name: "PresentationItem",
|
|
24
|
+
props: {
|
|
25
|
+
route: {},
|
|
26
|
+
imageUrl: {},
|
|
27
|
+
name: {},
|
|
28
|
+
tags: {},
|
|
29
|
+
additionalInfo: {},
|
|
30
|
+
description: {},
|
|
31
|
+
vertical: { type: Boolean }
|
|
32
|
+
},
|
|
33
|
+
setup(e) {
|
|
34
|
+
let t = e, n = T("descriptionItem"), i = T("descriptionItemContainer"), { isPhone: s } = r(), { useProxyImageUrl: c } = o(), h = u(() => t.vertical ? "396" : s.value ? "246" : "250");
|
|
35
|
+
E(s, async () => {
|
|
36
|
+
g(() => {
|
|
37
|
+
if (!t.description || s.value) return;
|
|
38
|
+
let e = n?.value, r = i?.value;
|
|
39
|
+
e && r && e.clientHeight > r.clientHeight && r.classList.add("after-element-description");
|
|
40
|
+
});
|
|
41
|
+
}, { immediate: !0 });
|
|
42
|
+
function F(e) {
|
|
43
|
+
return a.urlify(e);
|
|
44
|
+
}
|
|
45
|
+
return (t, n) => {
|
|
46
|
+
let r = x("router-link"), i = S("lazy");
|
|
47
|
+
return v(), f("article", { class: _(["classic-element-container item-presentation-container mt-3", e.vertical ? "vertical-item" : ""]) }, [m(r, {
|
|
48
|
+
to: e.route,
|
|
49
|
+
class: _(["d-flex-column flex-grow-1 text-dark", e.vertical ? "flex-column" : ""])
|
|
50
|
+
}, {
|
|
51
|
+
default: D(() => [p("div", { class: _(["img-box", e.vertical ? "img-box-bigger" : ""]) }, [
|
|
52
|
+
O(p("img", {
|
|
53
|
+
width: h.value,
|
|
54
|
+
height: h.value,
|
|
55
|
+
"aria-hidden": "true",
|
|
56
|
+
alt: e.name,
|
|
57
|
+
title: e.name
|
|
58
|
+
}, null, 8, k), [[i, w(c)(e.imageUrl, h.value)]]),
|
|
59
|
+
p("div", A, [(v(!0), f(l, null, y(e.tags, (e) => (v(), f("span", { key: e }, C(e), 1))), 128))]),
|
|
60
|
+
b(t.$slots, "after-image", {}, void 0, !0)
|
|
61
|
+
], 2), p("div", { class: _(["classic-element-text pb-0", { "pt-1": e.vertical }]) }, [p("div", j, C(e.name), 1), !w(s) && (e.description || e.additionalInfo) ? (v(), f("div", M, [e.additionalInfo ? (v(), f("div", N, [(v(!0), f(l, null, y(e.additionalInfo, (e, t) => (v(), f("div", {
|
|
62
|
+
key: t,
|
|
63
|
+
class: "text-secondary"
|
|
64
|
+
}, C(e), 1))), 128))])) : d("", !0), e.description ? (v(), f("div", {
|
|
65
|
+
key: 1,
|
|
66
|
+
ref: "descriptionItem",
|
|
67
|
+
innerHTML: F(e.description || "")
|
|
68
|
+
}, null, 8, P)) : d("", !0)], 512)) : d("", !0)], 2)]),
|
|
69
|
+
_: 3
|
|
70
|
+
}, 8, ["to", "class"])], 2);
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
}), [["__scopeId", "data-v-9e52d398"]]), I = () => {
|
|
74
|
+
let r = s(), { formatDate: i } = c();
|
|
75
|
+
function a(e) {
|
|
76
|
+
return r.storedCategories.filter((t) => e.iabIds.includes(t.id)).map((e) => e.name);
|
|
77
|
+
}
|
|
78
|
+
async function o(e, r) {
|
|
79
|
+
let i = [];
|
|
80
|
+
e.rubriqueIds && i.push(...e.rubriqueIds), "emission" in e && e.emission.rubriqueIds && i.push(...e.emission.rubriqueIds);
|
|
81
|
+
let a = i.filter(n).map(t.getCachedRubrique), o = await Promise.all(a);
|
|
82
|
+
return r ? o.filter((e) => e.rubriquageId === r).map((e) => e.name) : o.map((e) => e.name);
|
|
83
|
+
}
|
|
84
|
+
async function l(t) {
|
|
85
|
+
let n = e.presentationItems.tags, r;
|
|
86
|
+
return n === "iab" ? r = a("emission" in t ? t.emission : t) : n === "rubrique" && (r = await o(t, e.presentationItems.tagsRubriquageId)), r && e.presentationItems.tagsLimit ? r.slice(0, e.presentationItems.tagsLimit) : r;
|
|
87
|
+
}
|
|
88
|
+
async function u(t) {
|
|
89
|
+
let n = e.presentationItems.additionalInfo, r = e.presentationItems.restrictiveRubriquageId;
|
|
90
|
+
if (!n?.length) return;
|
|
91
|
+
let a = "emission" in t ? t : null, s = a?.emission ?? t;
|
|
92
|
+
return (await Promise.all(n.map(async (e) => e === "date" ? a?.pubDate ? i(a.pubDate) : null : e === "productor" ? s.orga.name : e === "restrictive-rubrique" && r !== void 0 ? (await o(t, r)).join(", ") : null))).filter((e) => e !== null);
|
|
93
|
+
}
|
|
94
|
+
return {
|
|
95
|
+
tagsFor: l,
|
|
96
|
+
additionalInfoFor: u
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
//#endregion
|
|
100
|
+
export { F as n, I as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as e } from "./classicApi-
|
|
1
|
+
import { i as e } from "./classicApi-DR5O2l0-.mjs";
|
|
2
2
|
//#region src/components/composable/useRights.ts
|
|
3
3
|
var t = /* @__PURE__ */ function(e) {
|
|
4
4
|
return e.Allowed = "allowed", e.DeniedNoRight = "no_right", e.DeniedNotOwner = "not_owner", e.DeniedInsufficientScope = "no_scope", e;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { b as e, s as t } from "./classicApi-DR5O2l0-.mjs";
|
|
2
2
|
import { t as n } from "./_plugin-vue_export-helper-B3ysoDQm.mjs";
|
|
3
|
-
import { t as r } from "./useImageProxy-
|
|
3
|
+
import { t as r } from "./useImageProxy-C3duE5Uj.mjs";
|
|
4
4
|
import { t as i } from "./RadiolineIcon-CxHZGhfr.mjs";
|
|
5
5
|
import { t as a } from "./TuninIcon-DENNxlP8.mjs";
|
|
6
6
|
import { t as o } from "./PodcastAddictIcon-CW3Uxj4I.mjs";
|
|
@@ -267,11 +267,11 @@ var H = ["aria-hidden"], U = [
|
|
|
267
267
|
color: "#5c85dd"
|
|
268
268
|
}
|
|
269
269
|
], q = () => {
|
|
270
|
-
let n = C([]), { addNotification: r } =
|
|
271
|
-
async function i(
|
|
270
|
+
let n = C([]), { addNotification: r } = e();
|
|
271
|
+
async function i(e) {
|
|
272
272
|
n.value = [...K];
|
|
273
273
|
try {
|
|
274
|
-
(await
|
|
274
|
+
(await t.getAllNoAuth(e)).forEach((e) => {
|
|
275
275
|
n.value.push({
|
|
276
276
|
name: e.name,
|
|
277
277
|
title: e.name,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as e } from "./classicApi-
|
|
1
|
+
import { r as e } from "./classicApi-DR5O2l0-.mjs";
|
|
2
2
|
import { t } from "./useRouteUpdateParams-DJLm3IAI.mjs";
|
|
3
3
|
import { t as n } from "./types-BMNwRfo9.mjs";
|
|
4
4
|
import { computed as r, onMounted as i, ref as a, watch as o } from "vue";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { _ as e, h as t, u as n, v as r } from "./classicApi-DR5O2l0-.mjs";
|
|
2
2
|
//#region src/helper/language.ts
|
|
3
3
|
function i(e = !0) {
|
|
4
4
|
let t = document.cookie.split(";"), n = "";
|
|
@@ -87,35 +87,35 @@ var u = "en", d = () => {
|
|
|
87
87
|
function f(e, t, n) {
|
|
88
88
|
return c(e, d(t.annotations?.["translation-config"], !0), d(n?.["translation-config"]));
|
|
89
89
|
}
|
|
90
|
-
function p(
|
|
91
|
-
if (
|
|
90
|
+
function p(t, n, r, i) {
|
|
91
|
+
if (t === i.nativeLanguage) return 0;
|
|
92
92
|
{
|
|
93
|
-
let a = f(
|
|
93
|
+
let a = f(t, n, r);
|
|
94
94
|
if (a === o.ALWAYS) return 0;
|
|
95
|
-
if (a === o.ON_DEMAND) return +!i.translations.find((
|
|
95
|
+
if (a === o.ON_DEMAND) return +!i.translations.find((n) => n.language === t && n.state === e.FINISHED);
|
|
96
96
|
}
|
|
97
97
|
return 2;
|
|
98
98
|
}
|
|
99
|
-
async function m(
|
|
99
|
+
async function m(e) {
|
|
100
100
|
let r = i(!1);
|
|
101
|
-
if (r ===
|
|
101
|
+
if (r === e.nativeLanguage) return { ready: r };
|
|
102
102
|
let a = [];
|
|
103
103
|
[
|
|
104
104
|
r,
|
|
105
105
|
...navigator.languages,
|
|
106
106
|
u,
|
|
107
|
-
|
|
107
|
+
e.nativeLanguage
|
|
108
108
|
].forEach((e) => {
|
|
109
109
|
e.includes("-") && (e = e.split("-")[0]), a.includes(e) || a.push(e);
|
|
110
110
|
});
|
|
111
|
-
let o = await
|
|
112
|
-
for (let
|
|
113
|
-
let
|
|
114
|
-
if (
|
|
115
|
-
l =
|
|
111
|
+
let o = await n.get(e.podcastId), s = o.emission, c = await t.getAttributes(o.organisation.id), l = null, d = null;
|
|
112
|
+
for (let t of a) {
|
|
113
|
+
let n = p(t, s, c, e);
|
|
114
|
+
if (n === 0 && l === null) {
|
|
115
|
+
l = t;
|
|
116
116
|
break;
|
|
117
117
|
}
|
|
118
|
-
|
|
118
|
+
n === 1 && d === null && (d = t);
|
|
119
119
|
}
|
|
120
120
|
return {
|
|
121
121
|
ready: l,
|
package/package.json
CHANGED
|
@@ -4,6 +4,7 @@ import { useGeneralStore } from "../../stores/GeneralStore";
|
|
|
4
4
|
import { Podcast } from "../../stores/class/general/podcast";
|
|
5
5
|
import { rubriquesApi } from "../../api";
|
|
6
6
|
import { useDayjs } from "./useDayjs";
|
|
7
|
+
import { unique } from "@/helper/arrayHelper";
|
|
7
8
|
|
|
8
9
|
export const usePresentationItem = () => {
|
|
9
10
|
const generalStore = useGeneralStore();
|
|
@@ -23,7 +24,8 @@ export const usePresentationItem = () => {
|
|
|
23
24
|
if ('emission' in element && element.emission.rubriqueIds) {
|
|
24
25
|
rubriqueIds.push(...element.emission.rubriqueIds);
|
|
25
26
|
}
|
|
26
|
-
const
|
|
27
|
+
const uniqueRubriqueIds = rubriqueIds.filter(unique);
|
|
28
|
+
const promises = uniqueRubriqueIds.map(rubriquesApi.getCachedRubrique);
|
|
27
29
|
const rubriques = await Promise.all(promises);
|
|
28
30
|
|
|
29
31
|
if (filterRubriquageId) {
|
|
@@ -194,10 +194,17 @@ function urlify(text:string|undefined){
|
|
|
194
194
|
> span {
|
|
195
195
|
background-color: white;
|
|
196
196
|
padding: .25em .75em;
|
|
197
|
-
border-radius: var(--octopus-border-radius);
|
|
198
197
|
font-size: 14px;
|
|
199
198
|
font-weight: bold;
|
|
200
199
|
color: var(--octopus-primary);
|
|
200
|
+
border-radius: var(--octopus-border-radius);
|
|
201
|
+
border: 1px solid color-mix(in lch, var(--octopus-primary), transparent 60%);
|
|
202
|
+
|
|
203
|
+
// Limit width
|
|
204
|
+
max-width: 200px;
|
|
205
|
+
overflow: hidden;
|
|
206
|
+
white-space: nowrap;
|
|
207
|
+
text-overflow: ellipsis;
|
|
201
208
|
}
|
|
202
209
|
}
|
|
203
210
|
}
|
package/src/stores/AuthStore.ts
CHANGED
|
@@ -219,7 +219,16 @@ export const useAuthStore = defineStore("AuthStore", {
|
|
|
219
219
|
]);
|
|
220
220
|
|
|
221
221
|
// Retrieve user's rights scope
|
|
222
|
-
const scope =
|
|
222
|
+
const scope: Array<number> = [];
|
|
223
|
+
// TODO remove when scope feature is available on prod
|
|
224
|
+
try {
|
|
225
|
+
const s = await rubriquesApi.listUserScope(profileData.sub);
|
|
226
|
+
scope.push(...s);
|
|
227
|
+
} catch (e) {
|
|
228
|
+
console.error(e);
|
|
229
|
+
// Disable scope
|
|
230
|
+
scope.push(-1);
|
|
231
|
+
}
|
|
223
232
|
|
|
224
233
|
const array = (availablesOrganisations ?? []).toSorted(function (a: Organisation, b: Organisation) {
|
|
225
234
|
if (a.name.toLowerCase() < b.name.toLowerCase()) {
|
package/src/stores/CacheStore.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Dayjs } from "dayjs";
|
|
1
|
+
import dayjs, { Dayjs } from "dayjs";
|
|
3
2
|
import { defineStore } from "pinia";
|
|
4
3
|
|
|
5
4
|
/**
|
|
@@ -14,7 +13,6 @@ interface CachedData<T> {
|
|
|
14
13
|
|
|
15
14
|
export const useCacheStore = defineStore('cache', () => {
|
|
16
15
|
|
|
17
|
-
const { dayjs } = useDayjs();
|
|
18
16
|
const cachedData: Record<string, CachedData<unknown>> = {};
|
|
19
17
|
|
|
20
18
|
async function getData<T>(key: string, callback: () => Promise<T>): Promise<T> {
|