@saooti/octopus-sdk 42.0.1 → 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 (149) hide show
  1. package/dist/{AdvancedSearch-cAV6nTl-.mjs → AdvancedSearch-CRM10skn.mjs} +5 -5
  2. package/dist/{CategoryFilter-BABbTJa5.mjs → CategoryFilter-Brp-KFg7.mjs} +3 -3
  3. package/dist/{CategoryList-DqmUmjNN.mjs → CategoryList-CMOJ2PnA.mjs} +1 -1
  4. package/dist/{CategoryPage-DHzBdqke.mjs → CategoryPage-Bc37UcZy.mjs} +2 -2
  5. package/dist/{ChapteringModal-DCNntgwF.mjs → ChapteringModal-CyH6QLeE.mjs} +1 -1
  6. package/dist/{CheckIdentityModal-DTiQJPgb.mjs → CheckIdentityModal-CHV9trKX.mjs} +2 -2
  7. package/dist/{ClipboardModal-BmoRjGDj.mjs → ClipboardModal-B0Jt9ME7.mjs} +1 -1
  8. package/dist/{CommentInput-B7faMDy8.mjs → CommentInput-ChEnqzNa.mjs} +4 -4
  9. package/dist/{CommentItem-Bn0Kf2qi.mjs → CommentItem-BE3-5CFl.mjs} +3 -3
  10. package/dist/{CommentList-DbMexENb.mjs → CommentList-B0fDtqIH.mjs} +2 -2
  11. package/dist/{CommentMoreActions-BELzbEc3.mjs → CommentMoreActions-DFTHxzHB.mjs} +3 -3
  12. package/dist/{CommentName-CvkHzojR.mjs → CommentName-ByE5TV4u.mjs} +2 -2
  13. package/dist/{CommentParentInfo-C3RNK7cS.mjs → CommentParentInfo-DyzP495k.mjs} +1 -1
  14. package/dist/{CommentPlayer-mdFDVETp.mjs → CommentPlayer-2eRUFpll.mjs} +2 -2
  15. package/dist/{CommentSection-BneFwNRE.mjs → CommentSection-DQx3qX6H.mjs} +3 -3
  16. package/dist/{CommentStore-BisGIAFG.mjs → CommentStore-C4lkShsH.mjs} +15 -15
  17. package/dist/{ContractPreviewModal-BKaPbnOD.mjs → ContractPreviewModal-BxOE6aiU.mjs} +2 -2
  18. package/dist/{DownloadPodcastButton-inrCN9Lv.mjs → DownloadPodcastButton-Dcgt8FfA.mjs} +2 -2
  19. package/dist/{EditCommentModal-CsLWG1mx.mjs → EditCommentModal-K6D1-4gU.mjs} +1 -1
  20. package/dist/{EmissionGroupChooser-D704PbSY.mjs → EmissionGroupChooser-B0UXS-d_.mjs} +1 -1
  21. package/dist/{EmissionInlineList-Ca7Ftxl-.mjs → EmissionInlineList-CRJ4pIxb.mjs} +5 -5
  22. package/dist/{EmissionItem-zGkYGDhL.mjs → EmissionItem-8WTkKsCa.mjs} +4 -4
  23. package/dist/{EmissionList-D6I9P5eZ.mjs → EmissionList-ucpW_ejS.mjs} +4 -4
  24. package/dist/{EmissionPage-Bf7EpgL9.mjs → EmissionPage-B8Nlb52Y.mjs} +8 -8
  25. package/dist/{EmissionPlayerItem-Cxxd0Ww4.mjs → EmissionPlayerItem-BzuNcAsq.mjs} +3 -3
  26. package/dist/{EmissionPresentationItem-BAKQrPhw.mjs → EmissionPresentationItem-ZU93UKW2.mjs} +1 -1
  27. package/dist/{EmissionPresentationList-B2it1lw8.mjs → EmissionPresentationList-LY-FEWC2.mjs} +3 -3
  28. package/dist/{EmissionsPage-5lwM8gVG.mjs → EmissionsPage-wzpDLmzO.mjs} +4 -4
  29. package/dist/{Error403Page-K49rHFYk.mjs → Error403Page-DLaOyud0.mjs} +2 -2
  30. package/dist/{FooterGarSection-DjWZv-sw.mjs → FooterGarSection-BwFRytaV.mjs} +4 -4
  31. package/dist/{FooterSection-1ewyc90a.mjs → FooterSection-VGdzyEZf.mjs} +2 -2
  32. package/dist/{HomeDropdown-DzdV-aD7.mjs → HomeDropdown-CNSPuJot.mjs} +2 -2
  33. package/dist/{HomePage-Chv0SiQt.mjs → HomePage-CGaCXQBm.mjs} +3 -3
  34. package/dist/{LikeSection-Bmux3FNM.mjs → LikeSection-D_q391TU.mjs} +3 -3
  35. package/dist/{ListPaginate-twqZX0dt.mjs → ListPaginate-B-PYbP3K.mjs} +2 -2
  36. package/dist/{LiveHorizontalList-BkwPmaTS.mjs → LiveHorizontalList-CDIDwBWJ.mjs} +3 -3
  37. package/dist/{LiveList-Bpxpm3PX.mjs → LiveList-Dvxk12Cc.mjs} +12 -12
  38. package/dist/{LivesPage-CyPXPeEx.mjs → LivesPage-BByFveAd.mjs} +2 -2
  39. package/dist/{MapPage-kBhfiJmb.mjs → MapPage-w7hUFr9g.mjs} +1 -1
  40. package/dist/{MobileMenu-CchbL3M7.mjs → MobileMenu-D19pTUkT.mjs} +3 -3
  41. package/dist/{NewsletterModal-CxLhxaHN.mjs → NewsletterModal-BekCWfJB.mjs} +1 -1
  42. package/dist/{OrganisationChooser-B6-iPiTl.mjs → OrganisationChooser-ywDaRPU9.mjs} +6 -6
  43. package/dist/{OrganisationChooserLight-DXeCmYZf.mjs → OrganisationChooserLight-CMNA-YR5.mjs} +2 -2
  44. package/dist/{PageNotFound-Db2m6Rjg.mjs → PageNotFound-kY0Vk237.mjs} +2 -2
  45. package/dist/{ParticipantInlineList-BLelbto_.mjs → ParticipantInlineList-n3IcMXXU.mjs} +4 -4
  46. package/dist/{ParticipantItem-CwfsiGto.mjs → ParticipantItem-CoS5qVct.mjs} +3 -3
  47. package/dist/{ParticipantPage-BpQ6gU75.mjs → ParticipantPage-CqwpZDjv.mjs} +6 -6
  48. package/dist/{ParticipantsPage-D677KL6D.mjs → ParticipantsPage-BzZFxuAX.mjs} +6 -6
  49. package/dist/{PlayerAnonymousModal-yYCWUi_e.mjs → PlayerAnonymousModal-Clf2m_PO.mjs} +2 -2
  50. package/dist/{PlayerCompact-BMNF7FnP.mjs → PlayerCompact-ff2-h0Ys.mjs} +3 -3
  51. package/dist/{PlayerComponent-DfqtsgzR.mjs → PlayerComponent-BIZ29VAP.mjs} +52 -52
  52. package/dist/{PlayerLarge-CrXjFbXf.mjs → PlayerLarge-C958Fkm_.mjs} +5 -5
  53. package/dist/{PlayerPlayButton-Dhk_llWc.mjs → PlayerPlayButton-DL0e7DAU.mjs} +4 -4
  54. package/dist/{PlayerProgressBar-CfYM4piM.mjs → PlayerProgressBar-DK9ClWaE.mjs} +2 -2
  55. package/dist/{PlayerStore-CfDcShSN.mjs → PlayerStore-DlQZRxsf.mjs} +1 -1
  56. package/dist/{PlayerVideo-C6C_DZM_.mjs → PlayerVideo-BRkaIXH7.mjs} +3 -3
  57. package/dist/{PlayerVideoDigiteka-wYFRP-35.mjs → PlayerVideoDigiteka-CNfWw0hs.mjs} +2 -2
  58. package/dist/{PlayerVideoHls-DgrhqZgn.mjs → PlayerVideoHls-Czu2Xvob.mjs} +3 -3
  59. package/dist/{PlaylistPage-lm5y7-n3.mjs → PlaylistPage-BV_3q5Pg.mjs} +8 -8
  60. package/dist/{PlaylistsPage-CaTACckE.mjs → PlaylistsPage-g82vXz51.mjs} +6 -6
  61. package/dist/{PodcastFilterList-CeOfuDes.mjs → PodcastFilterList-CpH9ALL0.mjs} +2 -2
  62. package/dist/{PodcastImage-B7jsIJNN.mjs → PodcastImage-Kr7qE9PW.mjs} +3 -3
  63. package/dist/{PodcastInlineList-BbLLOonP.mjs → PodcastInlineList-CSPSuPXn.mjs} +1 -1
  64. package/dist/{PodcastInlineListTemplate-DKRCwAlv.mjs → PodcastInlineListTemplate-CBGWengl.mjs} +3 -3
  65. package/dist/{PodcastIsPlaying-H_6pf8hJ.mjs → PodcastIsPlaying-CvZMCgrV.mjs} +1 -1
  66. package/dist/{PodcastItem-CurgIrWt.mjs → PodcastItem-B6xZ9spO.mjs} +26 -25
  67. package/dist/{PodcastList-YdyWgiEZ.mjs → PodcastList-DM2kODR9.mjs} +5 -5
  68. package/dist/{PodcastList-BcFhWkIb.mjs → PodcastList-DN7U6G3x.mjs} +10 -10
  69. package/dist/PodcastPage-ClPlzjJY.mjs +409 -0
  70. package/dist/{PodcastPlayBar-CHKkiC1d.mjs → PodcastPlayBar-C-7lR6Or.mjs} +3 -3
  71. package/dist/{PodcastPlayBasicButton-D6ozg27Z.mjs → PodcastPlayBasicButton-akh9XtTL.mjs} +1 -1
  72. package/dist/{PodcastPlayButton-ZMXex2mj.mjs → PodcastPlayButton-CqjJC_GT.mjs} +3 -3
  73. package/dist/{PodcastPlaylistInlineList-DQxGIN5X.mjs → PodcastPlaylistInlineList-DTJpiuMG.mjs} +4 -4
  74. package/dist/{PodcastPresentationList-B_733ar0.mjs → PodcastPresentationList-B0D9wjP2.mjs} +8 -8
  75. package/dist/{PodcastProgressBar-DuRkXwQx.mjs → PodcastProgressBar-CIf_zX6H.mjs} +3 -3
  76. package/dist/{PodcastRawTranscript-Cdx-LLmt.mjs → PodcastRawTranscript-EqIv2k5F.mjs} +2 -2
  77. package/dist/{PodcastRubriqueList-Bs9_pIvW.mjs → PodcastRubriqueList-DCchX3n9.mjs} +2 -2
  78. package/dist/{PodcastSwiperList-DOMUEugY.mjs → PodcastSwiperList-PSwifeRx.mjs} +4 -4
  79. package/dist/{PodcastmakerHeader-DKOEZYI1.mjs → PodcastmakerHeader-DpCkSoQE.mjs} +1 -1
  80. package/dist/{PodcastsPage-DbE47ayv.mjs → PodcastsPage-CSWymx6J.mjs} +4 -4
  81. package/dist/{ProductorSearch-XA1eOPBJ.mjs → ProductorSearch-l_LHvS3J.mjs} +2 -2
  82. package/dist/{ProgressBar--2HxPUEb.mjs → ProgressBar-CB9kEepm.mjs} +1 -1
  83. package/dist/{QrCode-Cfbl5O0T.mjs → QrCode-D-3wdYEC.mjs} +1 -1
  84. package/dist/{QrCodeModal-DOt1PfBE.mjs → QrCodeModal-BAk2VQzU.mjs} +1 -1
  85. package/dist/{RadioCurrently-Buo2SU7V.mjs → RadioCurrently-r21pyYBe.mjs} +3 -3
  86. package/dist/{RadioHistory-efYHQ3rk.mjs → RadioHistory-BNqw7gzG.mjs} +2 -2
  87. package/dist/{RadioImage-DQrUrer4.mjs → RadioImage-IbBgMDUL.mjs} +4 -4
  88. package/dist/{RadioList-RxhVm6Ml.mjs → RadioList-CLjDwo6u.mjs} +4 -4
  89. package/dist/{RadioPage-CuOVOQfx.mjs → RadioPage-Bx4i1Mpi.mjs} +4 -4
  90. package/dist/{RadioPlanning-D1fdFZ2S.mjs → RadioPlanning-Br27Ttix.mjs} +2 -2
  91. package/dist/{RadioProgressBar-VrEiqDVv.mjs → RadioProgressBar-Cb3AfYLQ.mjs} +1 -1
  92. package/dist/{RecaptchaModal-CLP1x_kD.mjs → RecaptchaModal-CxtAdOpC.mjs} +1 -1
  93. package/dist/{ReportAbuseModal-mE_b1EPk.mjs → ReportAbuseModal-iggcskxa.mjs} +3 -3
  94. package/dist/{RightsIndicator-BYIqAsGc.mjs → RightsIndicator-D_7amy65.mjs} +1 -1
  95. package/dist/{RightsWrapper-CNvC0_xL.mjs → RightsWrapper-Bo6Xza5_.mjs} +5 -3
  96. package/dist/{RubriqueFilter-C_UIqYNo.mjs → RubriqueFilter-CJDRNtiD.mjs} +2 -2
  97. package/dist/{RubriqueList-BzfpWOGA.mjs → RubriqueList-CISdSdFN.mjs} +2 -2
  98. package/dist/{RubriquePage-1xGeRwN9.mjs → RubriquePage-C8CF_iFS.mjs} +4 -4
  99. package/dist/{SearchPage-DFMSvZii.mjs → SearchPage-DvLjGwKI.mjs} +2 -2
  100. package/dist/{ShareAnonymous-D9_ioQwS.mjs → ShareAnonymous-GQ600Owz.mjs} +3 -3
  101. package/dist/{ShareModalPlayer-DI1Hatse.mjs → ShareModalPlayer-pB-HAwc-.mjs} +1 -1
  102. package/dist/{ShareNewsletter-Beu4PKG0.mjs → ShareNewsletter-Cdyw0GB9.mjs} +2 -2
  103. package/dist/{SharePlayer-DCsPNlfR.mjs → SharePlayer-XribbnSm.mjs} +2 -2
  104. package/dist/{SharePlayerRadio-D6oJwb2X.mjs → SharePlayerRadio-Co0G90iE.mjs} +2 -2
  105. package/dist/{SharePlayerTypes-BxkmFi4S.mjs → SharePlayerTypes-Crlc6fV2.mjs} +1 -1
  106. package/dist/{ShareSocialsButtons-ChJ3lBdD.mjs → ShareSocialsButtons-oPwpAJiG.mjs} +2 -2
  107. package/dist/{SimpleLayout-BOpmhyVO.mjs → SimpleLayout-DO6e66-u.mjs} +2 -2
  108. package/dist/SmartLinkPage-Bfe3J2rs.mjs +131 -0
  109. package/dist/{SubscribeButtons-AVPLb2re.mjs → SubscribeButtons-BsUSeVE2.mjs} +2 -2
  110. package/dist/{SwiperList-C89DLj3E.mjs → SwiperList-05VP6fwg.mjs} +1 -1
  111. package/dist/{TagList-C18q3AcZ.mjs → TagList-CpH_cvNv.mjs} +1 -1
  112. package/dist/{TagPage-CUjBO6Zz.mjs → TagPage-B7mbRbqr.mjs} +3 -3
  113. package/dist/{TopBar-BtyUGLS8.mjs → TopBar-DljepaOt.mjs} +6 -6
  114. package/dist/{UserButtonContent-QY3_J3q8.mjs → UserButtonContent-B20fPV-J.mjs} +2 -2
  115. package/dist/{VideoModuleBox-DfbQxPdW.mjs → VideoModuleBox-DJdYQGMX.mjs} +1 -1
  116. package/dist/VideoPage-Bllo2Q-Y.mjs +148 -0
  117. package/dist/{classicApi-DK3JuEEQ.mjs → classicApi-CT9k0xvp.mjs} +235 -258
  118. package/dist/{downloadHelper-BiECrRRO.mjs → downloadHelper-DkfB6XQg.mjs} +1 -1
  119. package/dist/index.mjs +83 -82
  120. package/dist/{messages-1GAE9xSE.mjs → messages-DxUrH00s.mjs} +24 -6
  121. package/dist/tests.mjs +2 -2
  122. package/dist/{useAdvancedParamInit-BEQxTZEa.mjs → useAdvancedParamInit-Y3eC3aep.mjs} +5 -5
  123. package/dist/useDayjs-ayZHsoc2.mjs +28 -0
  124. package/dist/{useErrorHandler-B718_6o6.mjs → useErrorHandler-Chh24Net.mjs} +1 -1
  125. package/dist/{useImageProxy-61t8T9lh.mjs → useImageProxy-C_wlfbSP.mjs} +1 -1
  126. package/dist/{useOrgaComputed-Oug1hhvN.mjs → useOrgaComputed-CmlIJ5XC.mjs} +1 -1
  127. package/dist/{usePlayerLogicProgress-89kQlonT.mjs → usePlayerLogicProgress-B0mjPIEj.mjs} +2 -2
  128. package/dist/{usePodcastView-DFs0X_HB.mjs → usePodcastView-wkow7peQ.mjs} +4 -3
  129. package/dist/{usePresentationItem-D0WYRXRH.mjs → usePresentationItem-C37nsJnQ.mjs} +20 -19
  130. package/dist/{useRights-BFkOi3--.mjs → useRights-CXa0yDii.mjs} +1 -1
  131. package/dist/{useRubriquesFilterComputed-Cl3Xmezu.mjs → useRubriquesFilterComputed-goozXeIB.mjs} +1 -1
  132. package/dist/{useRubriquesFilterParam-BGh80BOE.mjs → useRubriquesFilterParam-CrsdD0Oj.mjs} +1 -1
  133. package/dist/{useSharePlatforms-BA7BlsYt.mjs → useSharePlatforms-B7Xnf_If.mjs} +5 -5
  134. package/dist/{useSimplePageParam-AHafSK4i.mjs → useSimplePageParam-D6TmZIPG.mjs} +1 -1
  135. package/dist/{useTranslation-D9Sv_vU0.mjs → useTranslation-D3t40JaE.mjs} +14 -14
  136. package/dist/{usefetchRadioData-ti9_4cZQ.mjs → usefetchRadioData-knVpkZCB.mjs} +1 -1
  137. package/package.json +1 -1
  138. package/src/components/composable/useRightsIndicator.ts +3 -1
  139. package/src/locale/de.json +4 -1
  140. package/src/locale/en.json +4 -1
  141. package/src/locale/es.json +4 -1
  142. package/src/locale/fr.json +4 -1
  143. package/src/locale/it.json +4 -1
  144. package/src/locale/sl.json +4 -1
  145. package/src/stores/CacheStore.ts +1 -3
  146. package/tests/components/display/RightsIndicator.spec.ts +7 -2
  147. package/dist/PodcastPage-BRfgY1ej.mjs +0 -409
  148. package/dist/SmartLinkPage-Dwc8Cs0K.mjs +0 -131
  149. package/dist/VideoPage-EzRprsVN.mjs +0 -148
@@ -1,9 +1,10 @@
1
- import { D as e, a as t, o as n } from "./classicApi-DK3JuEEQ.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-61t8T9lh.mjs";
6
- import { t as s } from "./GeneralStore-Darfv4af.mjs";
1
+ import { E as e, a as t } from "./classicApi-CT9k0xvp.mjs";
2
+ import { t as n } from "./useResizePhone-4hSkK5pa.mjs";
3
+ import { t as r } from "./_plugin-vue_export-helper-B3ysoDQm.mjs";
4
+ import { t as i } from "./displayHelper-DQtoqc_6.mjs";
5
+ import { t as a } from "./useImageProxy-C_wlfbSP.mjs";
6
+ import { t as o } from "./GeneralStore-Darfv4af.mjs";
7
+ import { t as s } from "./useDayjs-ayZHsoc2.mjs";
7
8
  import { Fragment as c, computed as l, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createVNode as p, defineComponent as m, nextTick as h, normalizeClass as g, openBlock as _, renderList as v, renderSlot as y, resolveComponent as b, resolveDirective as x, toDisplayString as S, unref as C, useTemplateRef as w, watch as T, withCtx as E, withDirectives as D } from "vue";
8
9
  //#region src/components/layouts/PresentationItem.vue?vue&type=script&setup=true&lang.ts
9
10
  var O = [
@@ -18,7 +19,7 @@ var O = [
18
19
  }, M = {
19
20
  key: 0,
20
21
  class: "mb-2"
21
- }, N = ["innerHTML"], P = /*#__PURE__*/ i(/* @__PURE__ */ m({
22
+ }, N = ["innerHTML"], P = /*#__PURE__*/ r(/* @__PURE__ */ m({
22
23
  __name: "PresentationItem",
23
24
  props: {
24
25
  route: {},
@@ -30,16 +31,16 @@ var O = [
30
31
  vertical: { type: Boolean }
31
32
  },
32
33
  setup(e) {
33
- let t = e, n = w("descriptionItem"), i = w("descriptionItemContainer"), { isPhone: s } = r(), { useProxyImageUrl: m } = o(), P = l(() => t.vertical ? "396" : s.value ? "246" : "250");
34
+ let t = e, r = w("descriptionItem"), o = w("descriptionItemContainer"), { isPhone: s } = n(), { useProxyImageUrl: m } = a(), P = l(() => t.vertical ? "396" : s.value ? "246" : "250");
34
35
  T(s, async () => {
35
36
  h(() => {
36
37
  if (!t.description || s.value) return;
37
- let e = n?.value, r = i?.value;
38
- e && r && e.clientHeight > r.clientHeight && r.classList.add("after-element-description");
38
+ let e = r?.value, n = o?.value;
39
+ e && n && e.clientHeight > n.clientHeight && n.classList.add("after-element-description");
39
40
  });
40
41
  }, { immediate: !0 });
41
42
  function F(e) {
42
- return a.urlify(e);
43
+ return i.urlify(e);
43
44
  }
44
45
  return (t, n) => {
45
46
  let r = b("router-link"), i = x("lazy");
@@ -70,11 +71,11 @@ var O = [
70
71
  };
71
72
  }
72
73
  }), [["__scopeId", "data-v-10cb9b43"]]), F = () => {
73
- let r = s(), { formatDate: i } = n();
74
- function a(e) {
75
- return r.storedCategories.filter((t) => e.iabIds.includes(t.id)).map((e) => e.name);
74
+ let n = o(), { formatDate: r } = s();
75
+ function i(e) {
76
+ return n.storedCategories.filter((t) => e.iabIds.includes(t.id)).map((e) => e.name);
76
77
  }
77
- async function o(e, n) {
78
+ async function a(e, n) {
78
79
  let r = [];
79
80
  e.rubriqueIds && r.push(...e.rubriqueIds), "emission" in e && e.emission.rubriqueIds && r.push(...e.emission.rubriqueIds);
80
81
  let i = r.map(t.getCachedRubrique), a = await Promise.all(i);
@@ -82,13 +83,13 @@ var O = [
82
83
  }
83
84
  async function c(t) {
84
85
  let n = e.presentationItems.tags, r;
85
- 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;
86
+ return n === "iab" ? r = i("emission" in t ? t.emission : t) : n === "rubrique" && (r = await a(t, e.presentationItems.tagsRubriquageId)), r && e.presentationItems.tagsLimit ? r.slice(0, e.presentationItems.tagsLimit) : r;
86
87
  }
87
88
  async function l(t) {
88
- let n = e.presentationItems.additionalInfo, r = e.presentationItems.restrictiveRubriquageId;
89
+ let n = e.presentationItems.additionalInfo, i = e.presentationItems.restrictiveRubriquageId;
89
90
  if (!n?.length) return;
90
- let a = "emission" in t ? t : null, s = a?.emission ?? t;
91
- 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);
91
+ let o = "emission" in t ? t : null, s = o?.emission ?? t;
92
+ return (await Promise.all(n.map(async (e) => e === "date" ? o?.pubDate ? r(o.pubDate) : null : e === "productor" ? s.orga.name : e === "restrictive-rubrique" && i !== void 0 ? (await a(t, i)).join(", ") : null))).filter((e) => e !== null);
92
93
  }
93
94
  return {
94
95
  tagsFor: c,
@@ -1,4 +1,4 @@
1
- import { i as e } from "./classicApi-DK3JuEEQ.mjs";
1
+ import { i as e } from "./classicApi-CT9k0xvp.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,4 +1,4 @@
1
- import { r as e } from "./classicApi-DK3JuEEQ.mjs";
1
+ import { r as e } from "./classicApi-CT9k0xvp.mjs";
2
2
  import { computed as t } from "vue";
3
3
  //#region src/components/composable/route/useRubriquesFilterComputed.ts
4
4
  var n = () => {
@@ -1,4 +1,4 @@
1
- import { r as e } from "./classicApi-DK3JuEEQ.mjs";
1
+ import { r as e } from "./classicApi-CT9k0xvp.mjs";
2
2
  import { t } from "./useRouteUpdateParams-DJLm3IAI.mjs";
3
3
  //#region src/components/composable/route/useRubriquesFilterParam.ts
4
4
  var n = () => {
@@ -1,6 +1,6 @@
1
- import { c as e, x as t } from "./classicApi-DK3JuEEQ.mjs";
1
+ import { b as e, s as t } from "./classicApi-CT9k0xvp.mjs";
2
2
  import { t as n } from "./_plugin-vue_export-helper-B3ysoDQm.mjs";
3
- import { t as r } from "./useImageProxy-61t8T9lh.mjs";
3
+ import { t as r } from "./useImageProxy-C_wlfbSP.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 } = t();
271
- async function i(t) {
270
+ let n = C([]), { addNotification: r } = e();
271
+ async function i(e) {
272
272
  n.value = [...K];
273
273
  try {
274
- (await e.getAllNoAuth(t)).forEach((e) => {
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-DK3JuEEQ.mjs";
1
+ import { r as e } from "./classicApi-CT9k0xvp.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 { d as e, g as t, v as n, y as r } from "./classicApi-DK3JuEEQ.mjs";
1
+ import { _ as e, h as t, u as n, v as r } from "./classicApi-CT9k0xvp.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(e, t, r, i) {
91
- if (e === i.nativeLanguage) return 0;
90
+ function p(t, n, r, i) {
91
+ if (t === i.nativeLanguage) return 0;
92
92
  {
93
- let a = f(e, t, r);
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((t) => t.language === e && t.state === n.FINISHED);
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(n) {
99
+ async function m(e) {
100
100
  let r = i(!1);
101
- if (r === n.nativeLanguage) return { ready: 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
- n.nativeLanguage
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 e.get(n.podcastId), s = o.emission, c = await t.getAttributes(o.organisation.id), l = null, d = null;
112
- for (let e of a) {
113
- let t = p(e, s, c, n);
114
- if (t === 0 && l === null) {
115
- l = e;
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
- t === 1 && d === null && (d = e);
118
+ n === 1 && d === null && (d = t);
119
119
  }
120
120
  return {
121
121
  ready: l,
@@ -1,4 +1,4 @@
1
- import { t as e } from "./classicApi-DK3JuEEQ.mjs";
1
+ import { t as e } from "./classicApi-CT9k0xvp.mjs";
2
2
  import { onBeforeUnmount as t, ref as n } from "vue";
3
3
  import { useI18n as r } from "vue-i18n";
4
4
  import i from "dayjs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saooti/octopus-sdk",
3
- "version": "42.0.1",
3
+ "version": "42.0.3",
4
4
  "private": false,
5
5
  "description": "Javascript SDK for using octopus",
6
6
  "author": "Saooti",
@@ -179,7 +179,9 @@ export const useRightsIndicator = (props: PropsPodcast|PropsEmission|PropsCartou
179
179
  break;
180
180
 
181
181
  case ActionRight.DeniedNoRight:
182
- return 'insufficient rights';
182
+ key = `RightsIndicator - ${entitySegment} - Insufficient rights`;
183
+ genericKey = 'RightsIndicator - Generic - Insufficient rights';
184
+ break;
183
185
 
184
186
  default:
185
187
  return 'Cannot process rights';
@@ -438,5 +438,8 @@
438
438
  "RightsIndicator - Emission - Insufficient scope": "Der Umfang Ihrer Rechte erlaubt es Ihnen nicht, diese Sendung zu ändern oder zu löschen",
439
439
  "RightsIndicator - Generic - Insufficient scope": "Der Umfang Ihrer Rechte erlaubt es Ihnen nicht, dieses Element zu erstellen, zu ändern oder zu löschen",
440
440
  "Generic - Content unavailable - Country blocked - Title": "Inhalt nicht verfügbar",
441
- "Generic - Content unavailable - Country blocked - Message": "Dieser Inhalt ist in Ihrem Land nicht verfügbar."
441
+ "Generic - Content unavailable - Country blocked - Message": "Dieser Inhalt ist in Ihrem Land nicht verfügbar.",
442
+ "RightsIndicator - Podcast - Insufficient rights": "Ihre Rechte erlauben es Ihnen nicht, diese Episode zu ändern oder zu löschen",
443
+ "RightsIndicator - Emission - Insufficient rights": "Aufgrund Ihrer Rechte ist es Ihnen nicht gestattet, diese Sendung zu ändern oder zu löschen",
444
+ "RightsIndicator - Generic - Insufficient rights": "Ihre Rechte erlauben es Ihnen nicht, dieses Element zu erstellen, zu ändern oder zu löschen"
442
445
  }
@@ -438,5 +438,8 @@
438
438
  "RightsIndicator - Emission - Insufficient scope": "The scope of your rights does not allow you to modify or delete this broadcast",
439
439
  "RightsIndicator - Generic - Insufficient scope": "The scope of your rights does not allow you to create, modify or delete this element",
440
440
  "Generic - Content unavailable - Country blocked - Title": "Content unavailable",
441
- "Generic - Content unavailable - Country blocked - Message": "This content is not available in your country."
441
+ "Generic - Content unavailable - Country blocked - Message": "This content is not available in your country.",
442
+ "RightsIndicator - Podcast - Insufficient rights": "Your rights do not allow you to modify or delete this episode",
443
+ "RightsIndicator - Emission - Insufficient rights": "Your rights do not allow you to modify or delete this broadcast",
444
+ "RightsIndicator - Generic - Insufficient rights": "Your rights do not allow you to create, modify or delete this element"
442
445
  }
@@ -438,5 +438,8 @@
438
438
  "RightsIndicator - Emission - Insufficient scope": "El alcance de tus derechos no te permite modificar o eliminar esta transmisión.",
439
439
  "RightsIndicator - Generic - Insufficient scope": "El alcance de sus derechos no le permite crear, modificar o eliminar este elemento",
440
440
  "Generic - Content unavailable - Country blocked - Title": "Contenido no disponible",
441
- "Generic - Content unavailable - Country blocked - Message": "Este contenido no está disponible en su país."
441
+ "Generic - Content unavailable - Country blocked - Message": "Este contenido no está disponible en su país.",
442
+ "RightsIndicator - Podcast - Insufficient rights": "Tus derechos no te permiten modificar ni eliminar este episodio.",
443
+ "RightsIndicator - Emission - Insufficient rights": "Tus derechos no te permiten modificar ni eliminar esta transmisión",
444
+ "RightsIndicator - Generic - Insufficient rights": "Tus derechos no te permiten crear, modificar o eliminar este elemento"
442
445
  }
@@ -465,5 +465,8 @@
465
465
  "RightsIndicator - Mix - Not owner": "Ce mix a été créé par un autre utilisateur, vous pouvez le consulter, mais vous ne pouvez pas le modifier.",
466
466
  "RightsIndicator - Podcast - Insufficient scope": "La portée de vos droits ne vous permet pas de modifier ou supprimer cet épisode",
467
467
  "RightsIndicator - Emission - Insufficient scope": "La portée de vos droits ne vous permet pas de modifier ou supprimer cette émission",
468
- "RightsIndicator - Generic - Insufficient scope": "La portée de vos droits ne vous permet pas de créer, modifier ou supprimer cet élément"
468
+ "RightsIndicator - Generic - Insufficient scope": "La portée de vos droits ne vous permet pas de créer, modifier ou supprimer cet élément",
469
+ "RightsIndicator - Podcast - Insufficient rights": "Vos droits ne vous permettent pas de modifier ou supprimer cet épisode",
470
+ "RightsIndicator - Emission - Insufficient rights": "Vos droits ne vous permettent pas de modifier ou supprimer cette émission",
471
+ "RightsIndicator - Generic - Insufficient rights": "Vos droits ne vous permettent pas de créer, modifier ou supprimer cet élément"
469
472
  }
@@ -439,5 +439,8 @@
439
439
  "RightsIndicator - Emission - Insufficient scope": "L'ambito dei tuoi diritti non ti consente di modificare o eliminare questa trasmissione",
440
440
  "RightsIndicator - Generic - Insufficient scope": "L'ambito dei tuoi diritti non ti consente di creare, modificare o eliminare questo elemento",
441
441
  "Generic - Content unavailable - Country blocked - Title": "Contenuto non disponibile",
442
- "Generic - Content unavailable - Country blocked - Message": "Questo contenuto non è disponibile nel tuo Paese."
442
+ "Generic - Content unavailable - Country blocked - Message": "Questo contenuto non è disponibile nel tuo Paese.",
443
+ "RightsIndicator - Podcast - Insufficient rights": "I tuoi diritti non ti consentono di modificare o eliminare questo episodio",
444
+ "RightsIndicator - Emission - Insufficient rights": "I tuoi diritti non ti consentono di modificare o eliminare questa trasmissione",
445
+ "RightsIndicator - Generic - Insufficient rights": "I tuoi diritti non ti consentono di creare, modificare o eliminare questo elemento"
443
446
  }
@@ -437,5 +437,8 @@
437
437
  "RightsIndicator - Emission - Insufficient scope": "Obseg vaših pravic vam ne dovoljuje spreminjanja ali brisanja te oddaje",
438
438
  "RightsIndicator - Generic - Insufficient scope": "Obseg vaših pravic vam ne dovoljuje ustvarjanja, spreminjanja ali brisanja tega elementa",
439
439
  "Generic - Content unavailable - Country blocked - Title": "Vsebina ni na voljo",
440
- "Generic - Content unavailable - Country blocked - Message": "Ta vsebina ni na voljo v vaši državi."
440
+ "Generic - Content unavailable - Country blocked - Message": "Ta vsebina ni na voljo v vaši državi.",
441
+ "RightsIndicator - Podcast - Insufficient rights": "Vaše pravice vam ne dovoljujejo spreminjanja ali brisanja te epizode",
442
+ "RightsIndicator - Emission - Insufficient rights": "Vaše pravice vam ne dovoljujejo spreminjanja ali brisanja te oddaje",
443
+ "RightsIndicator - Generic - Insufficient rights": "Vaše pravice vam ne dovoljujejo ustvarjanja, spreminjanja ali brisanja tega elementa"
441
444
  }
@@ -1,5 +1,4 @@
1
- import { useDayjs } from "../components/composable/useDayjs";
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> {
@@ -295,9 +295,14 @@ describe('RightsIndicator', () => {
295
295
  expect(wrapper.find('.alert').exists()).toBe(false);
296
296
  });
297
297
 
298
- it('renders "insufficient rights" for ActionRight.DeniedNoRight', async () => {
298
+ it('renders entity-specific i18n key for ActionRight.DeniedNoRight on podcast', async () => {
299
299
  const wrapper = await mountWith({ action: 'create', podcast: ownPodcast }, ['PLAYLISTS']);
300
- expect(wrapper.text()).toContain('insufficient rights');
300
+ expect(wrapper.text()).toContain('RightsIndicator - Podcast - Insufficient rights');
301
+ });
302
+
303
+ it('renders entity-specific i18n key for ActionRight.DeniedNoRight on emission', async () => {
304
+ const wrapper = await mountWith({ action: 'create', emission: otherEmission }, ['PLAYLISTS']);
305
+ expect(wrapper.text()).toContain('RightsIndicator - Emission - Insufficient rights');
301
306
  });
302
307
 
303
308
  it('renders entity-specific i18n key for ActionRight.DeniedNotOwner on podcast', async () => {