@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
@@ -4,15 +4,8 @@ import { useRoute as i } from "vue-router";
4
4
  import { defineStore as a } from "pinia";
5
5
  import o from "dayjs";
6
6
  import s, { AxiosError as c } from "axios";
7
- import "dayjs/locale/de";
8
- import "dayjs/locale/es";
9
- import "dayjs/locale/fr";
10
- import "dayjs/locale/it";
11
- import "dayjs/locale/sl";
12
- import l from "dayjs/plugin/duration";
13
- import u from "dayjs/plugin/localizedFormat";
14
7
  //#region src/stores/ParamSdkStore.ts
15
- var d = {
8
+ var l = {
16
9
  generalParameters: {
17
10
  forceOrganisationId: void 0,
18
11
  forceRubriqueId: void 0,
@@ -41,15 +34,15 @@ var d = {
41
34
  smartLink: { showOnlyFirstParagraphInDescription: !1 },
42
35
  presentationItems: { tags: "none" }
43
36
  };
44
- function f(e) {
37
+ function u(e) {
45
38
  return e === void 0 ? {} : Object.fromEntries(Object.entries(e).filter(([, e]) => e !== void 0));
46
39
  }
47
- var p = {
40
+ var d = {
48
41
  initialize: function(e) {
49
- d.generalParameters = Object.assign(d.generalParameters, f(e.generalParameters)), d.podcastPage = Object.assign(d.podcastPage, f(e.podcastPage)), d.emissionsPage = Object.assign(d.emissionsPage, f(e.emissionsPage)), d.emissionPage = Object.assign(d.emissionPage, f(e.emissionPage)), d.player = Object.assign(d.player, f(e.player)), d.searchPage = Object.assign(d.searchPage, f(e.searchPage)), d.smartLink = Object.assign(d.smartLink, f(e.smartLink)), d.presentationItems = Object.assign(d.presentationItems, f(e.presentationItems));
42
+ l.generalParameters = Object.assign(l.generalParameters, u(e.generalParameters)), l.podcastPage = Object.assign(l.podcastPage, u(e.podcastPage)), l.emissionsPage = Object.assign(l.emissionsPage, u(e.emissionsPage)), l.emissionPage = Object.assign(l.emissionPage, u(e.emissionPage)), l.player = Object.assign(l.player, u(e.player)), l.searchPage = Object.assign(l.searchPage, u(e.searchPage)), l.smartLink = Object.assign(l.smartLink, u(e.smartLink)), l.presentationItems = Object.assign(l.presentationItems, u(e.presentationItems));
50
43
  },
51
- state: d
52
- }, m = a("ApiStore", {
44
+ state: l
45
+ }, f = a("ApiStore", {
53
46
  state: () => ({
54
47
  apiUrl: "",
55
48
  billingUrl: "",
@@ -78,11 +71,11 @@ var p = {
78
71
  actions: { initApis(e) {
79
72
  this.apiUrl = e.apiUrl, this.billingUrl = e.billingUrl, this.chapteringUrl = e.chapteringUrl, this.commentUrl = e.commentUrl, this.frontendUrl = e.frontendUrl, this.hlsUrl = e.hlsUrl, this.imageUrl = e.imageUrl, this.importerUrl = e.importerUrl, this.keycloakUrl = e.keycloakUrl, this.keycloakOpenAiUrl = e.keycloakOpenAiUrl, this.mediaUrl = e.mediaUrl, this.miniplayerUrl = e.miniplayerUrl, this.openAiUrl = e.openAiUrl, this.processorUrl = e.processorUrl, this.radioUrl = e.radioUrl, this.recoUrl = e.recoUrl, this.rtmpUrl = e.rtmpUrl, this.speechToTextUrl = e.speechToTextUrl, this.textToSpeechUrl = e.textToSpeechUrl, this.studioUrl = e.studioUrl, this.videoMakerUrl = e.videoMakerUrl, this.storageUrl = e.storageUrl, this.statRadioUrl = e.statRadioUrl;
80
73
  } }
81
- }), h = /* @__PURE__ */ function(e) {
74
+ }), p = /* @__PURE__ */ function(e) {
82
75
  return e[e.DEFAULT = 0] = "DEFAULT", e[e.MEDIA = 1] = "MEDIA", e[e.COMMENT = 2] = "COMMENT", e[e.KEYCLOAK = 3] = "KEYCLOAK", e[e.FRONTOFFICE = 4] = "FRONTOFFICE", e[e.PLAYER = 6] = "PLAYER", e[e.STORAGE = 8] = "STORAGE", e[e.STUDIO = 9] = "STUDIO", e[e.PROCESSOR = 10] = "PROCESSOR", e[e.SPEECHTOTEXT = 11] = "SPEECHTOTEXT", e[e.VIDEOMAKER = 12] = "VIDEOMAKER", e[e.RECOMMENDATION = 13] = "RECOMMENDATION", e[e.RADIO = 14] = "RADIO", e[e.IMPORTER = 15] = "IMPORTER", e[e.TEXTTOSPEECH = 16] = "TEXTTOSPEECH", e[e.BILLING = 17] = "BILLING", e[e.OPENAI = 18] = "OPENAI", e[e.CHAPTERING = 19] = "CHAPTERING", e[e.KEYCLOAKOPENAI = 20] = "KEYCLOAKOPENAI", e;
83
- }(h || {});
84
- function g(e) {
85
- let t = m();
76
+ }(p || {});
77
+ function m(e) {
78
+ let t = f();
86
79
  switch (e) {
87
80
  case 1: return t.mediaUrl;
88
81
  case 2: return t.commentUrl;
@@ -107,7 +100,7 @@ function g(e) {
107
100
  }
108
101
  //#endregion
109
102
  //#region src/stores/SaveFetchStore.ts
110
- var _ = a("SaveFetchStore", {
103
+ var h = a("SaveFetchStore", {
111
104
  state: () => ({
112
105
  orgaPublicAttributes: {},
113
106
  orgaLiveEnabled: {},
@@ -153,7 +146,7 @@ var _ = a("SaveFetchStore", {
153
146
  delete this.orgaRubriques[e];
154
147
  }
155
148
  }
156
- }), v = a("notifications", () => {
149
+ }), g = a("notifications", () => {
157
150
  let t = n([]);
158
151
  function r(e) {
159
152
  t.value.push(e);
@@ -176,7 +169,7 @@ var _ = a("SaveFetchStore", {
176
169
  });
177
170
  //#endregion
178
171
  //#region src/api/apiUtils.ts
179
- async function y(e, t, n) {
172
+ async function _(e, t, n) {
180
173
  let r = {}, i = [];
181
174
  return e.forEach((e) => {
182
175
  let a = t(e).then((e) => r["" + e[n]] = e);
@@ -185,18 +178,18 @@ async function y(e, t, n) {
185
178
  }
186
179
  //#endregion
187
180
  //#region src/api/emissionApi.ts
188
- async function b(e) {
181
+ async function v(e) {
189
182
  return $.fetchData({
190
- api: h.DEFAULT,
183
+ api: p.DEFAULT,
191
184
  path: "emission/" + e
192
185
  });
193
186
  }
194
- async function x(e) {
195
- return y(e, b, "emissionId");
187
+ async function y(e) {
188
+ return _(e, v, "emissionId");
196
189
  }
197
- async function ee(e, t) {
190
+ async function b(e, t) {
198
191
  return $.fetchData({
199
- api: h.DEFAULT,
192
+ api: p.DEFAULT,
200
193
  path: "emission/search",
201
194
  parameters: {
202
195
  query: e,
@@ -208,33 +201,33 @@ async function ee(e, t) {
208
201
  specialTreatement: t?.specialTreatment ?? !0
209
202
  });
210
203
  }
211
- async function te(e) {
204
+ async function x(e) {
212
205
  return $.putData({
213
- api: h.DEFAULT,
206
+ api: p.DEFAULT,
214
207
  path: "emission/seasons/reset/" + e
215
208
  });
216
209
  }
217
210
  var S = {
218
- get: b,
219
- getAllById: x,
220
- search: ee,
221
- resetSeasons: te
211
+ get: v,
212
+ getAllById: y,
213
+ search: b,
214
+ resetSeasons: x
222
215
  }, C = /* @__PURE__ */ function(e) {
223
216
  return e.TRANSLATING = "TRANSLATING", e.FINISHED = "FINISHED", e.FAILED = "FAILED", e.AI_LIMIT_EXCEEDED = "AI_LIMIT_EXCEEDED", e;
224
217
  }({});
225
- async function w(e) {
218
+ async function ee(e) {
226
219
  return $.fetchData({
227
- api: h.SPEECHTOTEXT,
220
+ api: p.SPEECHTOTEXT,
228
221
  path: `transcription/${e}/languages`
229
222
  });
230
223
  }
231
- async function T(e, t, n) {
224
+ async function te(e, t, n) {
232
225
  let r = `transcription/${e}/languages/${t}/srt`;
233
226
  n !== void 0 && (r = `${r}?mayCreateIfNotExists=${n}`);
234
227
  let i = !1, a = 1e3;
235
228
  for (; !i;) {
236
229
  let e = await $.fetchData({
237
- api: h.SPEECHTOTEXT,
230
+ api: p.SPEECHTOTEXT,
238
231
  path: r
239
232
  });
240
233
  if (typeof e == "string") return i = !0, e;
@@ -244,20 +237,20 @@ async function T(e, t, n) {
244
237
  }
245
238
  async function ne(e) {
246
239
  return $.fetchData({
247
- api: h.SPEECHTOTEXT,
240
+ api: p.SPEECHTOTEXT,
248
241
  path: `transcription/text/${e}`
249
242
  });
250
243
  }
251
244
  async function re(e, t, n) {
252
245
  await $.postData({
253
- api: h.SPEECHTOTEXT,
246
+ api: p.SPEECHTOTEXT,
254
247
  path: `convert/${t}/${e}`,
255
248
  dataToSend: n
256
249
  });
257
250
  }
258
251
  async function ie(e, t, n) {
259
252
  await $.putData({
260
- api: h.SPEECHTOTEXT,
253
+ api: p.SPEECHTOTEXT,
261
254
  path: `regenerate/${t}/${e}`,
262
255
  dataToSend: n
263
256
  });
@@ -271,7 +264,7 @@ async function ae(e, t) {
271
264
  }
272
265
  async function oe(e, t) {
273
266
  await $.postData({
274
- api: h.SPEECHTOTEXT,
267
+ api: p.SPEECHTOTEXT,
275
268
  path: "update/" + e,
276
269
  dataToSend: { file: new File([t], "file") },
277
270
  contentType: "formData"
@@ -279,7 +272,7 @@ async function oe(e, t) {
279
272
  }
280
273
  async function se(e, t, n) {
281
274
  await $.putData({
282
- api: h.SPEECHTOTEXT,
275
+ api: p.SPEECHTOTEXT,
283
276
  path: `transcription/${e}/languages/${t}/srt`,
284
277
  dataToSend: n,
285
278
  raw: !0
@@ -287,82 +280,82 @@ async function se(e, t, n) {
287
280
  }
288
281
  var ce = {
289
282
  changeTranscriptionVisibility: ae,
290
- getTranslations: w,
291
- getTranslation: T,
283
+ getTranslations: ee,
284
+ getTranslation: te,
292
285
  getRawTranscription: ne,
293
286
  generateTranscription: re,
294
287
  regenerateTranscription: ie,
295
288
  updateTranscription: oe,
296
289
  updateTranslation: se
297
- }, E = "emission/groups/";
298
- async function le(e, t) {
290
+ }, w = "emission/groups/";
291
+ async function T(e, t) {
299
292
  if (t.length === 0) return;
300
293
  let n;
301
294
  n = typeof e == "object" ? e.emissionId : e;
302
295
  let r;
303
296
  return r = typeof t[0] == "object" ? t.map((e) => e.groupId) : t, $.putData({
304
- api: h.DEFAULT,
297
+ api: p.DEFAULT,
305
298
  path: "emission/groups/add/" + n,
306
299
  dataToSend: r
307
300
  });
308
301
  }
309
- async function ue(e) {
302
+ async function E(e) {
310
303
  return $.postData({
311
- api: h.DEFAULT,
312
- path: E,
304
+ api: p.DEFAULT,
305
+ path: w,
313
306
  dataToSend: e
314
307
  });
315
308
  }
316
- async function de(e) {
309
+ async function le(e) {
317
310
  return $.deleteData({
318
- api: h.DEFAULT,
319
- path: E + e
311
+ api: p.DEFAULT,
312
+ path: w + e
320
313
  });
321
314
  }
322
315
  async function D(e) {
323
316
  return $.fetchData({
324
- api: h.DEFAULT,
325
- path: E + e
317
+ api: p.DEFAULT,
318
+ path: w + e
326
319
  });
327
320
  }
328
- async function fe(e) {
329
- return y(e, D, "groupId");
321
+ async function ue(e) {
322
+ return _(e, D, "groupId");
330
323
  }
331
- async function O(e, t) {
324
+ async function de(e, t) {
332
325
  if (t.length === 0) return;
333
326
  let n;
334
327
  n = typeof e == "object" ? e.emissionId : e;
335
328
  let r;
336
329
  return r = typeof t[0] == "object" ? t.map((e) => e.groupId) : t, $.putData({
337
- api: h.DEFAULT,
330
+ api: p.DEFAULT,
338
331
  path: "emission/groups/remove/" + n,
339
332
  dataToSend: r
340
333
  });
341
334
  }
342
- async function k(e) {
335
+ async function O(e) {
343
336
  return $.putData({
344
- api: h.DEFAULT,
345
- path: E,
337
+ api: p.DEFAULT,
338
+ path: w,
346
339
  dataToSend: e
347
340
  });
348
341
  }
349
- async function A(e) {
350
- return (await j({
342
+ async function k(e) {
343
+ return (await A({
351
344
  ...e,
352
345
  size: 0
353
346
  })).count;
354
347
  }
355
- async function j(e) {
348
+ async function A(e) {
356
349
  return $.fetchData({
357
- api: h.DEFAULT,
350
+ api: p.DEFAULT,
358
351
  path: "emission/groups/search",
359
352
  parameters: e
360
353
  });
361
354
  }
362
- async function M(e) {
355
+ async function j(e) {
363
356
  let t = [], n = 0;
364
357
  for (;;) {
365
- let r = await j({
358
+ let r = await A({
366
359
  ...e,
367
360
  first: n,
368
361
  size: 1
@@ -371,61 +364,61 @@ async function M(e) {
371
364
  }
372
365
  return t;
373
366
  }
374
- var N = {
375
- addToGroups: le,
376
- count: A,
377
- create: ue,
378
- remove: de,
367
+ var M = {
368
+ addToGroups: T,
369
+ count: k,
370
+ create: E,
371
+ remove: le,
379
372
  get: D,
380
- getAllById: fe,
381
- removeFromGroups: O,
382
- update: k,
383
- search: j,
384
- searchNoPagination: M
373
+ getAllById: ue,
374
+ removeFromGroups: de,
375
+ update: O,
376
+ search: A,
377
+ searchNoPagination: j
385
378
  };
386
379
  //#endregion
387
380
  //#region src/api/organisationApi.ts
388
- async function P(e) {
381
+ async function N(e) {
389
382
  return $.fetchData({
390
- api: h.DEFAULT,
383
+ api: p.DEFAULT,
391
384
  path: "organisation/" + e
392
385
  });
393
386
  }
394
- async function F(e) {
395
- return y(e, P, "id");
387
+ async function P(e) {
388
+ return _(e, N, "id");
396
389
  }
397
- async function I(e) {
390
+ async function F(e) {
398
391
  return $.fetchData({
399
- api: h.DEFAULT,
392
+ api: p.DEFAULT,
400
393
  path: "organisation/attributes/" + e
401
394
  });
402
395
  }
403
- var L = {
404
- get: P,
405
- getAllById: F,
406
- getAttributes: I
396
+ var I = {
397
+ get: N,
398
+ getAllById: P,
399
+ getAttributes: F
407
400
  };
408
401
  //#endregion
409
402
  //#region src/helper/arrayHelper.ts
410
- function R(e, t, n) {
403
+ function L(e, t, n) {
411
404
  return n.indexOf(e) === t;
412
405
  }
413
406
  //#endregion
414
407
  //#region src/api/playlistApi.ts
415
- async function z(e) {
408
+ async function R(e) {
416
409
  return $.fetchData({
417
- api: h.DEFAULT,
410
+ api: p.DEFAULT,
418
411
  path: "playlist/" + e
419
412
  });
420
413
  }
421
- async function B(e) {
414
+ async function z(e) {
422
415
  return $.fetchData({
423
- api: h.DEFAULT,
416
+ api: p.DEFAULT,
424
417
  path: "v2/playlist/" + e + "/content"
425
418
  });
426
419
  }
427
- async function V(e) {
428
- let t = await this.getContent(e), n = [], r = t.map((e) => e.organisationId).filter(R), i = t.map((e) => e.emissionId).filter(R), a = await L.getAllById(r), o = await S.getAllById(i);
420
+ async function B(e) {
421
+ let t = await this.getContent(e), n = [], r = t.map((e) => e.organisationId).filter(L), i = t.map((e) => e.emissionId).filter(L), a = await I.getAllById(r), o = await S.getAllById(i);
429
422
  return t.forEach((e) => {
430
423
  let t = a[e.organisationId], r = o[e.emissionId];
431
424
  n.push({
@@ -435,61 +428,61 @@ async function V(e) {
435
428
  });
436
429
  }), n;
437
430
  }
438
- async function pe(e) {
431
+ async function V(e) {
439
432
  return await $.fetchData({
440
- api: h.DEFAULT,
433
+ api: p.DEFAULT,
441
434
  path: "playlist/search",
442
435
  specialTreatement: !0,
443
436
  parameters: e
444
437
  });
445
438
  }
446
- var me = {
447
- get: z,
448
- getContent: B,
449
- getContentFull: V,
450
- search: pe
439
+ var H = {
440
+ get: R,
441
+ getContent: z,
442
+ getContentFull: B,
443
+ search: V
451
444
  };
452
445
  //#endregion
453
446
  //#region src/api/participantApi.ts
454
- async function H(e) {
447
+ async function U(e) {
455
448
  return $.fetchData({
456
- api: h.DEFAULT,
449
+ api: p.DEFAULT,
457
450
  path: "participant/" + e
458
451
  });
459
452
  }
460
- async function he(e) {
461
- return y(e, H, "participantId");
453
+ async function fe(e) {
454
+ return _(e, U, "participantId");
462
455
  }
463
- var ge = {
464
- get: H,
465
- getAllById: he
466
- }, U = (e, t, n) => {
456
+ var pe = {
457
+ get: U,
458
+ getAllById: fe
459
+ }, W = (e, t, n) => {
467
460
  let r = t.lastIndexOf("?"), i = e[r === -1 || r < t.lastIndexOf("/") ? t : t.slice(0, r)];
468
461
  return i ? typeof i == "function" ? i() : Promise.resolve(i) : new Promise((e, r) => {
469
462
  (typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(r.bind(null, /* @__PURE__ */ Error("Unknown variable dynamic import: " + t + (t.split("/").length === n ? "" : ". Note that variables only represent file names one level deep."))));
470
463
  });
471
- }, W = null;
472
- function _e(e) {
473
- W = e;
464
+ }, G = null;
465
+ function me(e) {
466
+ G = e;
474
467
  }
475
- function ve() {
476
- if (!W) throw Error("i18n instance accessed before registerI18n() was called");
477
- return W;
468
+ function he() {
469
+ if (!G) throw Error("i18n instance accessed before registerI18n() was called");
470
+ return G;
478
471
  }
479
- function ye(e, t) {
472
+ function ge(e, t) {
480
473
  e.locale.value = t;
481
474
  let n = document.querySelector("html");
482
475
  n && n.setAttribute("lang", t);
483
476
  }
484
- async function be(e, n, r, i) {
477
+ async function _e(e, n, r, i) {
485
478
  if (!e.messages[n] || Object.keys(e.messages[n]).length === 0) {
486
- let t = await U(/* #__PURE__ */ Object.assign({
479
+ let t = await W(/* #__PURE__ */ Object.assign({
487
480
  "./locale/educationen.ts": () => import("./educationen-KT401RLo.mjs"),
488
481
  "./locale/educationfr.ts": () => import("./educationfr-BIafOUp-.mjs"),
489
482
  "./locale/messages.ts": () => import("./messages-DxUrH00s.mjs")
490
483
  }), `./locale/${n}.ts`, 3);
491
484
  if (t = t.default, i && (n === "fr" || n === "en")) {
492
- let e = await U(/* #__PURE__ */ Object.assign({
485
+ let e = await W(/* #__PURE__ */ Object.assign({
493
486
  "./locale/educationen.ts": () => import("./educationen-KT401RLo.mjs"),
494
487
  "./locale/educationfr.ts": () => import("./educationfr-BIafOUp-.mjs")
495
488
  }), `./locale/education${n}.ts`, 3);
@@ -500,17 +493,17 @@ async function be(e, n, r, i) {
500
493
  }
501
494
  e.setLocaleMessage(n, t);
502
495
  }
503
- return ye(e, n), t();
496
+ return ge(e, n), t();
504
497
  }
505
498
  //#endregion
506
499
  //#region src/api/podcastApi.ts
507
- var xe = /* @__PURE__ */ function(e) {
500
+ var ve = /* @__PURE__ */ function(e) {
508
501
  return e.DATE = "DATE", e.DATE_ASC = "DATE_ASC", e.NAME = "NAME", e.LAST_PODCAST_DESC = "LAST_PODCAST_DESC", e.POPULARITY = "POPULARITY", e.SCORE = "SCORE", e.UPDATE_ASC = "UPDATE_ASC", e.UPDATE_DESC = "UPDATE_DESC", e.SEASONAL = "SEASONAL", e;
509
502
  }({});
510
- async function Se(e, t) {
503
+ async function ye(e, t) {
511
504
  try {
512
505
  return await $.fetchData({
513
- api: h.DEFAULT,
506
+ api: p.DEFAULT,
514
507
  path: "podcast/download/register/" + e + ".mp3",
515
508
  parameters: t,
516
509
  headers: { "X-Extra-UA": "Saooti Player" }
@@ -519,7 +512,7 @@ async function Se(e, t) {
519
512
  if (e instanceof c && e.status === 403) {
520
513
  let t = e.response.data;
521
514
  if (t.includes("is blacklisted") || t.includes("is not whitelisted")) {
522
- let { addNotification: e } = v(), t = ve().global.t;
515
+ let { addNotification: e } = g(), t = he().global.t;
523
516
  e({
524
517
  type: "error",
525
518
  title: t("Generic - Content unavailable - Country blocked - Title"),
@@ -530,39 +523,39 @@ async function Se(e, t) {
530
523
  return Promise.reject(e);
531
524
  }
532
525
  }
533
- function Ce(e) {
526
+ function be(e) {
534
527
  return $.fetchData({
535
- api: h.DEFAULT,
528
+ api: p.DEFAULT,
536
529
  path: "podcast/" + e
537
530
  });
538
531
  }
539
- function we(e) {
532
+ function xe(e) {
540
533
  let t = {};
541
534
  return Object.keys(e).forEach((n) => {
542
535
  let r = e[n];
543
536
  r != null && (n === "beneficiaries" ? t.beneficiary = r : n === "processingStatus" ? t.includeStatus = r : n === "tags" ? t.includeTag = r : n === "pubDateBefore" ? t.before = r : n === "pubDateAfter" ? t.after = r : n === "pageSize" ? t.size = r : t[n] = r);
544
537
  }), t;
545
538
  }
546
- async function G(e, t) {
539
+ async function K(e, t) {
547
540
  return $.fetchData({
548
- api: h.DEFAULT,
541
+ api: p.DEFAULT,
549
542
  path: "v2/podcast/search",
550
- parameters: we(e),
543
+ parameters: xe(e),
551
544
  specialTreatement: t
552
545
  });
553
546
  }
554
- async function Te(e, t) {
555
- return (await G({
547
+ async function Se(e, t) {
548
+ return (await K({
556
549
  ...e,
557
550
  size: 0
558
551
  }, t)).count;
559
552
  }
560
- async function Ee(e, t) {
561
- let n = await G(e, t), r = {
553
+ async function q(e, t) {
554
+ let n = await K(e, t), r = {
562
555
  count: n.count,
563
556
  sort: n.sort,
564
557
  result: []
565
- }, i = n.result.map((e) => e.organisationId).filter(R), a = n.result.map((e) => e.emissionId).filter(R), o = n.result.map((e) => e.animatorId ?? []).flat().filter(R), s = L.getAllById(i), c = S.getAllById(a), l = ge.getAllById(o), [u, d, f] = await Promise.all([
558
+ }, i = n.result.map((e) => e.organisationId).filter(L), a = n.result.map((e) => e.emissionId).filter(L), o = n.result.map((e) => e.animatorId ?? []).flat().filter(L), s = I.getAllById(i), c = S.getAllById(a), l = pe.getAllById(o), [u, d, f] = await Promise.all([
566
559
  s,
567
560
  c,
568
561
  l
@@ -577,151 +570,135 @@ async function Ee(e, t) {
577
570
  });
578
571
  }), r;
579
572
  }
580
- var De = {
581
- count: Te,
582
- downloadRegister: Se,
583
- get: Ce,
584
- search: G,
585
- searchFull: Ee
573
+ var Ce = {
574
+ count: Se,
575
+ downloadRegister: ye,
576
+ get: be,
577
+ search: K,
578
+ searchFull: q
586
579
  };
587
580
  //#endregion
588
581
  //#region src/api/radioApi.ts
589
- async function Oe(e) {
582
+ async function we(e) {
590
583
  return $.fetchData({
591
- api: h.RADIO,
584
+ api: p.RADIO,
592
585
  path: `canal/${e}`
593
586
  });
594
587
  }
595
- async function ke(e) {
588
+ async function Te(e) {
596
589
  return await $.fetchData({
597
- api: h.RADIO,
590
+ api: p.RADIO,
598
591
  path: "canal/orga/" + e + "/"
599
592
  });
600
593
  }
601
- async function Ae(e, t) {
594
+ async function Ee(e, t) {
602
595
  return await $.putData({
603
- api: h.RADIO,
596
+ api: p.RADIO,
604
597
  path: `ambiance/canal/${e}/default`,
605
598
  dataToSend: t
606
599
  });
607
600
  }
608
- var je = {
609
- get: Oe,
610
- getAll: ke,
611
- setDefaultAmbiance: Ae
601
+ var De = {
602
+ get: we,
603
+ getAll: Te,
604
+ setDefaultAmbiance: Ee
612
605
  };
613
606
  //#endregion
614
607
  //#region src/api/aggregatorsApi.ts
615
- async function Me() {
608
+ async function Oe() {
616
609
  return $.fetchData({
617
- api: h.DEFAULT,
610
+ api: p.DEFAULT,
618
611
  path: "rss/aggregator/distributions"
619
612
  });
620
613
  }
621
- async function Ne(e) {
614
+ async function ke(e) {
622
615
  return $.fetchData({
623
- api: h.DEFAULT,
616
+ api: p.DEFAULT,
624
617
  path: "rss/aggregator/list",
625
618
  parameters: e ? { organisationId: e } : void 0
626
619
  });
627
620
  }
628
- async function Pe(e) {
621
+ async function Ae(e) {
629
622
  return $.fetchData({
630
- api: h.DEFAULT,
623
+ api: p.DEFAULT,
631
624
  path: "rss/aggregator/noauth/list",
632
625
  parameters: e ? { organisationId: e } : void 0
633
626
  });
634
627
  }
635
- var Fe = {
636
- getPredefined: Me,
637
- getAll: Ne,
638
- getAllNoAuth: Pe
628
+ var je = {
629
+ getPredefined: Oe,
630
+ getAll: ke,
631
+ getAllNoAuth: Ae
639
632
  };
640
633
  //#endregion
641
634
  //#region src/api/mediathequeApi.ts
642
- async function Ie(e, t) {
635
+ async function Me(e, t) {
643
636
  return $.fetchData({
644
- api: h.MEDIA,
637
+ api: p.MEDIA,
645
638
  path: `cartouchier/list/${e}`,
646
639
  parameters: t
647
640
  });
648
641
  }
649
- async function Le(e) {
642
+ async function Ne(e) {
650
643
  return $.fetchData({
651
- api: h.MEDIA,
644
+ api: p.MEDIA,
652
645
  path: `mix/${e}`
653
646
  });
654
647
  }
655
- async function Re(e) {
648
+ async function Pe(e) {
656
649
  await $.deleteData({
657
- api: h.MEDIA,
650
+ api: p.MEDIA,
658
651
  path: `mix/${e}`
659
652
  });
660
653
  }
661
- async function ze(e, t) {
654
+ async function Fe(e, t) {
662
655
  return $.fetchData({
663
- api: h.MEDIA,
656
+ api: p.MEDIA,
664
657
  path: `playlist/${e}`,
665
658
  parameters: t
666
659
  });
667
660
  }
668
- async function Be(e) {
661
+ async function Ie(e) {
669
662
  await $.deleteData({
670
- api: h.MEDIA,
663
+ api: p.MEDIA,
671
664
  path: `playlist/${e}`
672
665
  });
673
666
  }
674
- var Ve = {
675
- getAllCartouchiers: Ie,
676
- getAllMix: Le,
677
- deleteMix: Re,
678
- getAllPlaylists: ze,
679
- deletePlaylist: Be
680
- };
681
- o.extend(l), o.extend(u);
682
- var K = () => {
683
- let { locale: e } = r();
684
- function t(t) {
685
- return o(t).locale(e.value);
686
- }
687
- t.duration = o.duration;
688
- function n(e, n) {
689
- let r = n ?? d.generalParameters.showTimeWithDates === !0 ? "D MMMM YYYY - HH:mm" : "D MMMM YYYY";
690
- return t(e).format(r);
691
- }
692
- return {
693
- formatDate: n,
694
- dayjs: t
695
- };
696
- }, He = a("cache", () => {
697
- let { dayjs: e } = K(), t = {};
698
- async function n(n, a) {
699
- let o = t[n];
700
- if (i(o)) {
701
- let i = a();
702
- o = {
703
- data: i,
704
- expiration: e().add(30, "minutes")
705
- }, t[n] = o, i.catch(() => r(n));
667
+ var Le = {
668
+ getAllCartouchiers: Me,
669
+ getAllMix: Ne,
670
+ deleteMix: Pe,
671
+ getAllPlaylists: Fe,
672
+ deletePlaylist: Ie
673
+ }, Re = a("cache", () => {
674
+ let e = {};
675
+ async function t(t, i) {
676
+ let a = e[t];
677
+ if (r(a)) {
678
+ let r = i();
679
+ a = {
680
+ data: r,
681
+ expiration: o().add(30, "minutes")
682
+ }, e[t] = a, r.catch(() => n(t));
706
683
  }
707
- return o.data;
684
+ return a.data;
708
685
  }
709
- function r(e) {
710
- delete t[e];
686
+ function n(t) {
687
+ delete e[t];
711
688
  }
712
- function i(t) {
713
- return t ? e().isAfter(t.expiration) : !0;
689
+ function r(e) {
690
+ return e ? o().isAfter(e.expiration) : !0;
714
691
  }
715
692
  return {
716
- getData: n,
717
- invalidate: r
693
+ getData: t,
694
+ invalidate: n
718
695
  };
719
696
  });
720
697
  //#endregion
721
698
  //#region src/api/rubriquesApi.ts
722
- async function Ue(e, t, n) {
699
+ async function ze(e, t, n) {
723
700
  return $.fetchData({
724
- api: h.DEFAULT,
701
+ api: p.DEFAULT,
725
702
  path: "rubriquage/find",
726
703
  parameters: {
727
704
  organisationId: e,
@@ -730,75 +707,75 @@ async function Ue(e, t, n) {
730
707
  specialTreatement: n?.adaptParameters
731
708
  });
732
709
  }
733
- async function We(e) {
710
+ async function Be(e) {
734
711
  return $.postData({
735
- api: h.DEFAULT,
712
+ api: p.DEFAULT,
736
713
  path: "rubriquage/",
737
714
  dataToSend: e
738
715
  });
739
716
  }
740
- async function Ge(e) {
717
+ async function Ve(e) {
741
718
  return $.fetchData({
742
- api: h.DEFAULT,
719
+ api: p.DEFAULT,
743
720
  path: `rubriquage/${e}`
744
721
  });
745
722
  }
746
- async function Ke(e) {
723
+ async function He(e) {
747
724
  return $.putData({
748
- api: h.DEFAULT,
725
+ api: p.DEFAULT,
749
726
  path: "rubriquage/",
750
727
  dataToSend: e
751
728
  });
752
729
  }
753
- async function qe(e) {
730
+ async function Ue(e) {
754
731
  let t = typeof e == "object" ? e.rubriquageId : e;
755
732
  await $.deleteData({
756
- api: h.DEFAULT,
733
+ api: p.DEFAULT,
757
734
  path: "rubriquage/" + t
758
735
  });
759
736
  }
760
- async function q(e) {
737
+ async function We(e) {
761
738
  return $.fetchData({
762
- api: h.DEFAULT,
739
+ api: p.DEFAULT,
763
740
  path: "rubrique/search",
764
741
  parameters: e
765
742
  });
766
743
  }
767
744
  async function J(e) {
768
745
  return $.fetchData({
769
- api: h.DEFAULT,
746
+ api: p.DEFAULT,
770
747
  path: `rubrique/${e}`
771
748
  });
772
749
  }
773
- async function Je(e) {
774
- return He().getData(`rubrique-${e}`, () => J(e));
750
+ async function Ge(e) {
751
+ return Re().getData(`rubrique-${e}`, () => J(e));
775
752
  }
776
- async function Ye(e) {
753
+ async function Ke(e) {
777
754
  return $.fetchData({
778
- api: h.DEFAULT,
755
+ api: p.DEFAULT,
779
756
  path: `rubrique/user/list/rubriques/${e}`
780
757
  });
781
758
  }
782
- async function Xe(e) {
759
+ async function qe(e) {
783
760
  return $.fetchData({
784
- api: h.DEFAULT,
761
+ api: p.DEFAULT,
785
762
  path: `rubrique/user/list/users/${e}`
786
763
  });
787
764
  }
788
- async function Ze(e, t, n) {
765
+ async function Je(e, t, n) {
789
766
  let r = [], i = [], a = [], o = /* @__PURE__ */ new Set();
790
767
  return t.forEach(o.add, o), n.forEach(o.add, o), o.forEach((e) => {
791
768
  let a = t.includes(e), o = n.includes(e);
792
769
  a && !o ? i.push(e) : !a && o && r.push(e);
793
770
  }), r.length > 0 && a.push($.postData({
794
- api: h.DEFAULT,
771
+ api: p.DEFAULT,
795
772
  path: "rubrique/user/associate",
796
773
  dataToSend: {
797
774
  rubriqueIds: r,
798
775
  userIds: [e]
799
776
  }
800
777
  })), i.length > 0 && a.push($.postData({
801
- api: h.DEFAULT,
778
+ api: p.DEFAULT,
802
779
  path: "rubrique/user/dissociate",
803
780
  dataToSend: {
804
781
  rubriqueIds: i,
@@ -807,17 +784,17 @@ async function Ze(e, t, n) {
807
784
  })), Promise.all(a).then();
808
785
  }
809
786
  var Y = {
810
- createRubriquage: We,
811
- getRubriquage: Ge,
787
+ createRubriquage: Be,
788
+ getRubriquage: Ve,
812
789
  getRubrique: J,
813
- getCachedRubrique: Je,
814
- searchRubriquages: Ue,
815
- searchRubriques: q,
816
- updateRubriquage: Ke,
817
- deleteRubriquage: qe,
818
- listUserScope: Ye,
819
- listUsersScopedByRubrique: Xe,
820
- setUserScope: Ze
790
+ getCachedRubrique: Ge,
791
+ searchRubriquages: ze,
792
+ searchRubriques: We,
793
+ updateRubriquage: He,
794
+ deleteRubriquage: Ue,
795
+ listUserScope: Ke,
796
+ listUsersScopedByRubrique: qe,
797
+ setUserScope: Je
821
798
  }, X = a("AuthStore", {
822
799
  state: () => ({
823
800
  authReload: 0,
@@ -922,7 +899,7 @@ var Y = {
922
899
  },
923
900
  authUpdateOrganisation(e) {
924
901
  this.authOrganisation = e;
925
- let t = _();
902
+ let t = h();
926
903
  t.forceUpdateAttributes(e.id, e.attributes ?? {}), t.forceUpdateData(e.id, e);
927
904
  },
928
905
  async fetchProfileAsynchrone() {
@@ -985,7 +962,7 @@ var Y = {
985
962
  }), this.authUpdateOrganisation(s), this.fetchProfileAsynchrone();
986
963
  } catch (e) {
987
964
  if (console.error(e), this.authReload > 5) {
988
- let { addNotification: e } = v(), { t } = r();
965
+ let { addNotification: e } = g(), { t } = r();
989
966
  e({
990
967
  type: "error",
991
968
  title: t("Auth error - Couldn't retrieve user info - Title"),
@@ -998,18 +975,18 @@ var Y = {
998
975
  }
999
976
  }
1000
977
  }), Z = a("FilterStore", () => {
1001
- let t = n(null), r = n(), a = n(), o = n([]), s = n([]), c = n([]), l = n(!1), u = n(), f = i(), p = X(), m = e(() => {
978
+ let t = n(null), r = n(), a = n(), o = n([]), s = n([]), c = n([]), u = n(!1), d = n(), f = i(), p = X(), m = e(() => {
1002
979
  if (f?.query.viewall !== "true") return f?.query.productor ? f.query.productor : t.value === null ? p.authOrgaId : t.value ?? void 0;
1003
980
  });
1004
981
  function h(e) {
1005
- e && m.value === void 0 && d.generalParameters.podcastmaker !== !0 && (t.value = e);
982
+ e && m.value === void 0 && l.generalParameters.podcastmaker !== !0 && (t.value = e);
1006
983
  }
1007
984
  let g = e(() => t.value ?? void 0);
1008
985
  function _(e) {
1009
- (e.imgUrl || !e.orgaId) && (r.value = e.imgUrl), (e.name || !e.orgaId) && (a.value = e.name), e.rubriquageArray && (o.value = e.rubriquageArray), l.value = e.isLive ?? !1, u.value = void 0, t.value = e.orgaId ?? null;
986
+ (e.imgUrl || !e.orgaId) && (r.value = e.imgUrl), (e.name || !e.orgaId) && (a.value = e.name), e.rubriquageArray && (o.value = e.rubriquageArray), u.value = e.isLive ?? !1, d.value = void 0, t.value = e.orgaId ?? null;
1010
987
  }
1011
988
  function v(e) {
1012
- u.value = e;
989
+ d.value = e;
1013
990
  }
1014
991
  function y(e) {
1015
992
  s.value = e;
@@ -1030,8 +1007,8 @@ var Y = {
1030
1007
  filterRubriquage: o,
1031
1008
  filterRubrique: s,
1032
1009
  filterRubriqueDisplay: c,
1033
- filterLive: l,
1034
- filterIab: u
1010
+ filterLive: u,
1011
+ filterIab: d
1035
1012
  };
1036
1013
  }), Q = {
1037
1014
  async createAuthenticatedFetchHeader(e = !1) {
@@ -1076,7 +1053,7 @@ var Y = {
1076
1053
  },
1077
1054
  getMediaContent(e) {
1078
1055
  if (!e) return "";
1079
- let t = m(), n = X(), r = "#t=" + (e.cueIn ?? 0);
1056
+ let t = f(), n = X(), r = "#t=" + (e.cueIn ?? 0);
1080
1057
  return e.cueOut && (r += "," + e.cueOut), t.mediaUrl + "media/content/" + e?.mediaId + "?access_token=" + n.authParam.accessToken + r;
1081
1058
  },
1082
1059
  getUriSearchParams(e) {
@@ -1102,7 +1079,7 @@ var Y = {
1102
1079
  }
1103
1080
  let n = {};
1104
1081
  e.isNotAuth || (n = await Q.createAuthenticatedFetchHeader(e.forceRefresh));
1105
- let r = g(e.api) + e.path + t;
1082
+ let r = m(e.api) + e.path + t;
1106
1083
  return (await s.get(r, {
1107
1084
  headers: {
1108
1085
  ...e.headers,
@@ -1117,7 +1094,7 @@ var Y = {
1117
1094
  let n = Q.getUriSearchParams(e.parameters).toString();
1118
1095
  t = n.length ? "?" + n : "";
1119
1096
  }
1120
- let n = g(e.api) + e.path + t, r = {};
1097
+ let n = m(e.api) + e.path + t, r = {};
1121
1098
  e.isNotAuth || (r = await Q.createAuthenticatedFetchHeader(e.forceRefresh));
1122
1099
  let i = {}, a;
1123
1100
  if (e.contentType === "formData") {
@@ -1145,7 +1122,7 @@ var Y = {
1145
1122
  let n = Q.getUriSearchParams(e.parameters).toString();
1146
1123
  t = n.length ? "?" + n : "";
1147
1124
  }
1148
- let n = g(e.api) + e.path + t, r = {};
1125
+ let n = m(e.api) + e.path + t, r = {};
1149
1126
  e.isNotAuth || (r = await Q.createAuthenticatedFetchHeader(e.forceRefresh));
1150
1127
  let i = {}, a;
1151
1128
  if (e.contentType === "formData") {
@@ -1167,7 +1144,7 @@ var Y = {
1167
1144
  let n = Q.getUriSearchParams(e.parameters).toString();
1168
1145
  t = n.length ? "?" + n : "";
1169
1146
  }
1170
- let n = g(e.api) + e.path + t, r = {};
1147
+ let n = m(e.api) + e.path + t, r = {};
1171
1148
  e.isNotAuth || (r = await Q.createAuthenticatedFetchHeader(e.forceRefresh));
1172
1149
  let i;
1173
1150
  if (e.contentType === "formData") {
@@ -1192,8 +1169,8 @@ var Y = {
1192
1169
  "PLANNED",
1193
1170
  "PROCESSING",
1194
1171
  "ERROR"
1195
- ], t.notLive || t.includeStatus.push("READY_TO_RECORD"))), d.generalParameters.forceOrganisationId && (!t.organisationId || !t.organisationId?.length ? t.organisationId = d.generalParameters.forceOrganisationId : Array.isArray(t.organisationId) && t.organisationId.length === 1 && t.organisationId[0] === "" && (t.organisationId = void 0)), d.generalParameters.forceRubriqueId !== void 0 && (t.rubriqueId ||= [], t.rubriqueId = t.rubriqueId.concat([d.generalParameters.forceRubriqueId].flat())), d.generalParameters.forceNoRubriquageId !== void 0 && (t.noRubriquageId ||= [], t.noRubriquageId.push(...[d.generalParameters.forceNoRubriquageId].flat())), t;
1172
+ ], t.notLive || t.includeStatus.push("READY_TO_RECORD"))), l.generalParameters.forceOrganisationId && (!t.organisationId || !t.organisationId?.length ? t.organisationId = l.generalParameters.forceOrganisationId : Array.isArray(t.organisationId) && t.organisationId.length === 1 && t.organisationId[0] === "" && (t.organisationId = void 0)), l.generalParameters.forceRubriqueId !== void 0 && (t.rubriqueId ||= [], t.rubriqueId = t.rubriqueId.concat([l.generalParameters.forceRubriqueId].flat())), l.generalParameters.forceNoRubriquageId !== void 0 && (t.noRubriquageId ||= [], t.noRubriquageId.push(...[l.generalParameters.forceNoRubriquageId].flat())), t;
1196
1173
  }
1197
1174
  };
1198
1175
  //#endregion
1199
- export { h as C, d as D, p as E, _ as S, m as T, N as _, Y as a, S as b, Fe as c, De as d, be as f, L as g, R as h, X as i, je as l, me as m, Q as n, K as o, _e as p, Z as r, Ve as s, $ as t, xe as u, C as v, g as w, v as x, ce as y };
1176
+ export { m as C, l as E, p as S, d as T, C as _, Y as a, g as b, De as c, _e as d, me as f, M as g, I as h, X as i, ve as l, L as m, Q as n, Le as o, H as p, Z as r, je as s, $ as t, Ce as u, ce as v, f as w, h as x, S as y };