@saooti/octopus-sdk 42.3.0-beta1 → 42.3.0-beta2
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/AccessibilityModal-CBIb3UQS.mjs +93 -0
- package/dist/AdsProgressBar-DdkQTxms.mjs +20 -0
- package/dist/AdvancedSearch-CG75321A.mjs +267 -0
- package/dist/AdvancedSearch-RpudziSJ.mjs.map +1 -0
- package/dist/AmazonMusicIcon-6zqZK6Q9.mjs +39 -0
- package/dist/ApplePodcastIcon-C3ogP5y5.mjs +40 -0
- package/dist/CategoryChooser-C-34sFe8.mjs +173 -0
- package/dist/CategoryFilter-CJZx8omI.mjs +143 -0
- package/dist/CategoryList-CwNsFVQm.mjs +107 -0
- package/dist/CategoryPage--kdJgrOE.mjs +28 -0
- package/dist/CategorySearchFilter-D_ZSRtaL.mjs +39 -0
- package/dist/ChapteringModal-Cnut4wcf.mjs +46 -0
- package/dist/CheckIdentityModal-D5F53WBz.mjs +51 -0
- package/dist/ChooseEpisodesNumber-CXJO5dfs.mjs +33 -0
- package/dist/ClassicAccordion-0eaNyzmz.mjs +71 -0
- package/dist/ClassicAlert-DATLZ8J1.mjs +53 -0
- package/dist/ClassicBigChip-BK8v_P0z.mjs +25 -0
- package/dist/ClassicCheckbox-xPu56Drn.mjs +89 -0
- package/dist/ClassicContentEditable-CWmtRihd.mjs +45 -0
- package/dist/ClassicCopyButton-DJ9T09fS.mjs +52 -0
- package/dist/ClassicDatePicker-B7UA9CqR.mjs +187 -0
- package/dist/ClassicDatePicker-DBVj13V8.mjs.map +1 -0
- package/dist/ClassicEmojiPicker-xjxYsjpR.mjs +63 -0
- package/dist/ClassicHelpButton-WkkD_fvP.mjs +34 -0
- package/dist/ClassicInputText-CFzU8ANo.mjs +270 -0
- package/dist/ClassicLazy-CDhWc5-4.mjs +56 -0
- package/dist/ClassicLoading-CXfMjpyl.mjs +40 -0
- package/dist/ClassicModal-Dl2IdzXZ.mjs +63 -0
- package/dist/ClassicModalInBody-D5-RfQ8Z.mjs +58 -0
- package/dist/ClassicMultiselect-g3xqjPns.mjs +201 -0
- package/dist/ClassicNav-DYez6p1J.mjs +47 -0
- package/dist/ClassicNotifications-XerI3fuy.mjs +25 -0
- package/dist/ClassicPopover-ChIaSqUg.mjs +167 -0
- package/dist/ClassicRadio-BbJEgMB7.mjs +61 -0
- package/dist/ClassicRadioLabel-DgimkkQe.mjs +76 -0
- package/dist/ClassicSearch-CtL1cpnF.mjs +63 -0
- package/dist/ClassicSelect-BpA0jKN6.mjs +111 -0
- package/dist/ClassicSpinner-DFRDD51g.mjs +28 -0
- package/dist/ClassicTabs-DYOZLNK2.mjs +40 -0
- package/dist/ClassicTagInput-DiRwA8CF.mjs +62 -0
- package/dist/ClassicWysiwyg-cp3PQYAd.mjs +164 -0
- package/dist/ClipboardModal-CvY7F9XD.mjs +56 -0
- package/dist/CommentInput-CrLp5kVE.mjs +112 -0
- package/dist/CommentItem-DVpqD8WV.mjs +226 -0
- package/dist/CommentList-BVWxtWBd.mjs +201 -0
- package/dist/CommentMoreActions-CtNaymfO.mjs +196 -0
- package/dist/CommentName-DOp7RPYb.mjs +56 -0
- package/dist/CommentParentInfo-BGzHsZBo.mjs +36 -0
- package/dist/CommentPlayer-CaXXK_ur.mjs +47 -0
- package/dist/CommentSection-BLnaNc3j.mjs +79 -0
- package/dist/CommentStore-BvQ47pgC.mjs +279 -0
- package/dist/ContractPreviewModal-DLUIJL6V.mjs +53 -0
- package/dist/CountDown-o6ye6yv1.mjs +17 -0
- package/dist/CountdownOctopus-D0X5hVBu.mjs +23 -0
- package/dist/DateFilter-CWHLeDyi.mjs.map +1 -0
- package/dist/DateFilter-DztHuPm8.mjs +79 -0
- package/dist/DeezerIcon-CybxfijL.mjs +39 -0
- package/dist/DownloadPodcastButton-BhZk8CIi.mjs +30 -0
- package/dist/EditCommentModal-Clonb45M.mjs +115 -0
- package/dist/EditFtpIcon-B1FO4hqc.mjs +39 -0
- package/dist/EmissionGroupChooser-TC2y4oBU.mjs +45 -0
- package/dist/EmissionInlineList-MlKj2KRi.mjs +114 -0
- package/dist/EmissionItem-DhPPoaoI.mjs +116 -0
- package/dist/EmissionList-CiaXhV5K.mjs +229 -0
- package/dist/EmissionPage-CVEdB4gX.mjs +192 -0
- package/dist/EmissionPlayerItem--yZExmAl.mjs +119 -0
- package/dist/EmissionPresentationItem-D2m6v7YY.mjs +41 -0
- package/dist/EmissionPresentationList-R5n9QDjN.mjs +92 -0
- package/dist/EmissionsPage-1TmihhPu.mjs +116 -0
- package/dist/EmissionsPage-DbXGidSU.mjs.map +1 -0
- package/dist/Error403Page-DPVj6dbw.mjs +40 -0
- package/dist/ErrorMessage-B4gtlriP.mjs +22 -0
- package/dist/FooterGarSection-BCWLrhPN.mjs +39 -0
- package/dist/FooterSection-v72S9lf7.mjs +149 -0
- package/dist/GeneralStore-Darfv4af.mjs +39 -0
- package/dist/HomeDropdown-BWACxS1Z.mjs +66 -0
- package/dist/HomePage-BrDLgfWv.mjs +112 -0
- package/dist/IHeartIcon-DP1otYre.mjs +42 -0
- package/dist/InlineRubriqueList-oFCs-YCb.mjs +48 -0
- package/dist/LikeButton-Cu8jAJHx.mjs +40 -0
- package/dist/LikeSection-_QsrlWON.mjs +97 -0
- package/dist/ListPaginate-CWJkWFT9.mjs +163 -0
- package/dist/LiveHorizontalList-DLiVAXF8.mjs +77 -0
- package/dist/LiveList-Dh0Hem9X.mjs +204 -0
- package/dist/LivesPage-OA39_ikp.mjs +40 -0
- package/dist/MapPage-BdFv7ywN.mjs +240 -0
- package/dist/MessageModal-BcqS77v6.mjs +101 -0
- package/dist/MobileMenu-BQw-01vq.mjs +136 -0
- package/dist/MonetizableFilter-B7NHzXEY.mjs +58 -0
- package/dist/NewsletterModal-Yc3Kr6JH.mjs +53 -0
- package/dist/OctopusMultiselect-C8qljiaH.mjs +234 -0
- package/dist/OrganisationChooser-NE9HYr30.mjs +135 -0
- package/dist/OrganisationChooserLight-BzI51-2p.mjs +48 -0
- package/dist/PageLogout-CVZHOw8c.mjs +12 -0
- package/dist/PageNotFound-Dm-Sg2Wi.mjs +37 -0
- package/dist/PaginateParams-Bjz3ZI-5.mjs +75 -0
- package/dist/PaginateSection-Oip_5JHt.mjs +137 -0
- package/dist/ParticipantDescription-DVSfKvtg.mjs +46 -0
- package/dist/ParticipantInlineList-CjwKVHrg.mjs +84 -0
- package/dist/ParticipantItem-DiBk3UKd.mjs +91 -0
- package/dist/ParticipantPage-CXKT_lay.mjs +128 -0
- package/dist/ParticipantsPage-BzqbuOI-.mjs +168 -0
- package/dist/PlayVideoIcon-BhTQpMyL.mjs +40 -0
- package/dist/PlayerAnonymousModal-DFlvvkSt.mjs +61 -0
- package/dist/PlayerCommonParameters-x0zV7AoW.mjs +27 -0
- package/dist/PlayerCompact-OiohowN8.mjs +128 -0
- package/dist/PlayerComponent-DUUeBtc2.mjs +575 -0
- package/dist/PlayerFmIcon-D7gURz4r.mjs +39 -0
- package/dist/PlayerLarge-B4_ykSr8.mjs +128 -0
- package/dist/PlayerParameters-kVBMXQIb.mjs +173 -0
- package/dist/PlayerPlayButton-B4g9KPbX.mjs +231 -0
- package/dist/PlayerProgressBar-BS7USi1u.mjs +67 -0
- package/dist/PlayerStore-Cqg2B90d.mjs +167 -0
- package/dist/PlayerVideo-DiiBvXvy.mjs +35 -0
- package/dist/PlayerVideoDigiteka-CA548VDc.mjs +62 -0
- package/dist/PlayerVideoHls-CA81wom0.mjs +127 -0
- package/dist/PlayerYoutubeEmbed-D-UrFhXm.mjs +25 -0
- package/dist/PlaylistPage-Cdc-C5bJ.mjs +132 -0
- package/dist/PlaylistsPage-isjmS3db.mjs +254 -0
- package/dist/PocketCastIcon-CM5NDsDa.mjs +39 -0
- package/dist/PodcastAddictIcon-CW3Uxj4I.mjs +42 -0
- package/dist/PodcastFilterList-Of_380rv.mjs +139 -0
- package/dist/PodcastImage-D2kKdvYq.mjs +115 -0
- package/dist/PodcastInlineList-BSeXkUls.mjs +123 -0
- package/dist/PodcastInlineListTemplate-CaklJfPE.mjs +187 -0
- package/dist/PodcastIsPlaying-BPtqGlY7.mjs +17 -0
- package/dist/PodcastItem-CFPr0YKQ.mjs +158 -0
- package/dist/PodcastList-BjYKfwcF.mjs +186 -0
- package/dist/PodcastList-Dcn5YJjW.mjs +113 -0
- package/dist/PodcastPage-BvAD7tqO.mjs +434 -0
- package/dist/PodcastPlannedSpinner-DcDDays8.mjs +12 -0
- package/dist/PodcastPlayBar-CFEJrXHM.mjs +39 -0
- package/dist/PodcastPlayBasicButton-BS4hUqwX.mjs +44 -0
- package/dist/PodcastPlayButton-BDynk0ui.mjs +118 -0
- package/dist/PodcastPlaylistInlineList-DG56u99P.mjs +63 -0
- package/dist/PodcastPresentationList-Fnxe51Yx.mjs +132 -0
- package/dist/PodcastProgressBar-D-8JrYft.mjs +66 -0
- package/dist/PodcastRawTranscript-CgyivPNd.mjs +102 -0
- package/dist/PodcastSeasonInfo-DDGSqj8M.mjs +28 -0
- package/dist/PodcastSwiperList-BUI3h66I.mjs +170 -0
- package/dist/PodcastmakerHeader-CBxuNVD3.mjs +33 -0
- package/dist/PodcastsPage-BLJmFD2Y.mjs +132 -0
- package/dist/PodcastsPage-DSweyIOW.mjs.map +1 -0
- package/dist/PresentationLayout-mRFZ6Bfa.mjs +55 -0
- package/dist/ProductorSearch-CDmFsIyS.mjs +91 -0
- package/dist/ProgressBar-8ALgWMQg.mjs +112 -0
- package/dist/QrCode-D9C4oYxi.mjs +105 -0
- package/dist/QrCodeModal-D0Avurdi.mjs +43 -0
- package/dist/RadioCurrently-DtGr3PLP.mjs +57 -0
- package/dist/RadioHistory-CpxLHzV4.mjs +89 -0
- package/dist/RadioImage-C-KQbWwg.mjs +46 -0
- package/dist/RadioList-7MRTQMNr.mjs +70 -0
- package/dist/RadioPage-DeW-O3bK.mjs +69 -0
- package/dist/RadioPlanning-Cis4EYlu.mjs +180 -0
- package/dist/RadioProgressBar-uTb5xpob.mjs +32 -0
- package/dist/RadiolineIcon-CxHZGhfr.mjs +40 -0
- package/dist/RecaptchaModal-CN9l0HRn.mjs +95 -0
- package/dist/ReportAbuseModal-huGsUWu3.mjs +92 -0
- package/dist/RightsIndicator-sadV3bTn.mjs +58 -0
- package/dist/RightsWrapper-3bRF3EvS.mjs +104 -0
- package/dist/RubriqueChoice-DC9P869p.mjs +101 -0
- package/dist/RubriqueChooser-DEYM6kDc.mjs +165 -0
- package/dist/RubriqueFilter-D0Igm1zH.mjs +121 -0
- package/dist/RubriqueList-7sTpZEp-.mjs +117 -0
- package/dist/RubriquePage-CQhtx0Zn.mjs +71 -0
- package/dist/SearchOrder-D_dAhj9M.mjs +62 -0
- package/dist/SearchPage-voiOODER.mjs +41 -0
- package/dist/ShareAnonymous-D5nFlR4f.mjs +199 -0
- package/dist/ShareModalPlayer-Jqxd03FS.mjs +87 -0
- package/dist/ShareNewsletter-DtOGN0QS.mjs +143 -0
- package/dist/SharePlayer-BauFAr_B.mjs +206 -0
- package/dist/SharePlayerColors-BpdifsHh.mjs +49 -0
- package/dist/SharePlayerRadio-Bvmr4PCF.mjs +66 -0
- package/dist/SharePlayerTypes-QeOTKG7p.mjs +150 -0
- package/dist/ShareSocialsButtons-BcGq-6kk.mjs +102 -0
- package/dist/SimpleLayout-BLmTK2DF.mjs +22 -0
- package/dist/SmartLinkPage-COyfD9iX.mjs +136 -0
- package/dist/SnackBar-BL-mLRun.mjs +128 -0
- package/dist/SubscribeButtons-gZHzVHsc.mjs +121 -0
- package/dist/SwiperList-C4QSXsTa.mjs +118 -0
- package/dist/TagList-DTepn6y4.mjs +80 -0
- package/dist/TagPage-Bt7vYAYS.mjs +79 -0
- package/dist/TopBar-CIoCpZw3.mjs +427 -0
- package/dist/TopBar-CtbAb_Vg.mjs.map +1 -0
- package/dist/TuninIcon-DENNxlP8.mjs +39 -0
- package/dist/UserButtonContent-idV4FedY.mjs +131 -0
- package/dist/VastStore-8IiEgtQW.mjs +71 -0
- package/dist/VideoModuleBox-BFf98abI.mjs +58 -0
- package/dist/VideoPage-BwNsHGMr.mjs +148 -0
- package/dist/XIcon-DNBT2Zgf.mjs +39 -0
- package/dist/_plugin-vue_export-helper-B3ysoDQm.mjs +8 -0
- package/dist/buttons-BkfxHdGj.mjs +85 -0
- package/dist/classicApi-xM8VH_yv.mjs +1256 -0
- package/dist/config-DMjLBcZ2.mjs +7 -0
- package/dist/cookiesHelper-5uZhLulK.mjs +20 -0
- package/dist/displayHelper-DQtoqc_6.mjs +11 -0
- package/dist/domHelper-BPw2kGCL.mjs +12 -0
- package/dist/downloadHelper-DZMVVBPZ.mjs +23 -0
- package/dist/{educationen-B0PNsHqt.mjs → educationen-KT401RLo.mjs} +2 -4
- package/dist/educationfr-BIafOUp-.mjs +4 -0
- package/dist/emission-CQ1VuxRc.mjs +22 -0
- package/dist/index.css +2 -7399
- package/dist/index.mjs +453 -992
- package/dist/keys-CV5SBM1i.mjs +4 -0
- package/dist/localisation-CBnt682X.mjs +9 -0
- package/dist/logo_saooti_play_black-Doe3es2H.mjs +4 -0
- package/dist/{messages-BqVF4jGm.mjs → messages-DlxMAMOa.mjs} +6 -8
- package/dist/organisation-JgfYj1Jp.mjs +17 -0
- package/dist/ouest_france_logo-9dPaEPNA.mjs +4 -0
- package/dist/podcast-BoNHyuLe.mjs +53 -0
- package/dist/rolldown-runtime-Dy4uBu1J.mjs +11 -0
- package/dist/src/components/form/ClassicDatePicker.vue.d.ts +4 -4
- package/dist/stringHelper-BtFJzuX4.mjs +13 -0
- package/dist/tests-mocks.mjs +14 -16
- package/dist/tests.mjs +51 -88
- package/dist/types-B-L_HwcA.mjs +9 -0
- package/dist/useAdvancedParamInit-CZg9A_zy.mjs +114 -0
- package/dist/useAppleVideo-Di4qP9h4.mjs +24 -0
- package/dist/useCountdown-vXzlLAgF.mjs +32 -0
- package/dist/useDayjs-DWClhdzK.mjs +28 -0
- package/dist/useErrorHandler-Csr-Rt-V.mjs +12 -0
- package/dist/useImageProxy-CXin0vSD.mjs +16 -0
- package/dist/useOrgaComputed-BzuIlsW6.mjs +16 -0
- package/dist/usePlayerLogicProgress-C7q-kf-v.mjs +70 -0
- package/dist/usePodcastView-D5LgYm-2.mjs +31 -0
- package/dist/usePresentationItem-BITQLdPQ.mjs +100 -0
- package/dist/useResizePhone-4hSkK5pa.mjs +28 -0
- package/dist/useRights-C_mHJdG-.mjs +221 -0
- package/dist/useRouteUpdateParams-DJLm3IAI.mjs +55 -0
- package/dist/useRubriquesFilterComputed-B4ycmO0A.mjs +11 -0
- package/dist/useRubriquesFilterParam-BUXd3wRZ.mjs +32 -0
- package/dist/useSeasonsManagement-DwbmJywJ.mjs +24 -0
- package/dist/useSelectableIcons-Ce9o_TVs.mjs +91 -0
- package/dist/useSelenium-DAM6EF3J.mjs +9 -0
- package/dist/useSeoTitleUrl-UfPXDCPa.mjs +25 -0
- package/dist/useSharePath-D9G8Jdlb.mjs +40 -0
- package/dist/useSharePlatforms-CGPe8OG-.mjs +322 -0
- package/dist/useSimplePageParam-cOIpniRK.mjs +39 -0
- package/dist/useTagOf-Btweq3v2.mjs +17 -0
- package/dist/useTranslation-BrRBfryH.mjs +160 -0
- package/dist/usefetchRadioData-gxXxdT17.mjs +48 -0
- package/dist/youtubeVideoHelper-Cdlokujb.mjs +14 -0
- package/package.json +3 -1
- package/src/components/form/ClassicDatePicker.vue +130 -129
- package/src/components/misc/RightsScopeMenu.vue +2 -2
- package/dist/AccessibilityModal-DqRtmHwG.mjs +0 -148
- package/dist/AdsProgressBar-CAP7Zj--.mjs +0 -42
- package/dist/AdvancedSearch-Cd919sCX.mjs +0 -458
- package/dist/AmazonMusicIcon-D5vNh4HG.mjs +0 -57
- package/dist/ApplePodcastIcon-DtC4TS8H.mjs +0 -59
- package/dist/CategoryChooser-DWEL9V5p.mjs +0 -243
- package/dist/CategoryFilter-DVEBnYn0.mjs +0 -234
- package/dist/CategoryList-EH7OXzFs.mjs +0 -182
- package/dist/CategoryPage-BnSLAU7f.mjs +0 -57
- package/dist/CategorySearchFilter-CEGWqMSt.mjs +0 -72
- package/dist/ChapteringModal-B_5i8VkS.mjs +0 -82
- package/dist/CheckIdentityModal-BZBPEcHE.mjs +0 -86
- package/dist/ChooseEpisodesNumber-OlhXXsCa.mjs +0 -64
- package/dist/ClassicAccordion-PEoPUPeL.mjs +0 -105
- package/dist/ClassicAlert-C8md0KJV.mjs +0 -108
- package/dist/ClassicBigChip-Bt8VhN51.mjs +0 -61
- package/dist/ClassicCheckbox-BHKCPtLR.mjs +0 -127
- package/dist/ClassicContentEditable-BSsnA6oo.mjs +0 -68
- package/dist/ClassicCopyButton-M9AP3MKD.mjs +0 -87
- package/dist/ClassicDatePicker-DWVn4oHu.mjs +0 -249
- package/dist/ClassicEmojiPicker-EQy5H_zL.mjs +0 -93
- package/dist/ClassicHelpButton-B6jXpEKT.mjs +0 -85
- package/dist/ClassicInputText-D2wR2cwa.mjs +0 -371
- package/dist/ClassicLazy-B0R3FSwK.mjs +0 -120
- package/dist/ClassicLoading-Crlw7cAx.mjs +0 -60
- package/dist/ClassicModal-CilwHp9p.mjs +0 -103
- package/dist/ClassicModalInBody-BkaRcZZx.mjs +0 -94
- package/dist/ClassicMultiselect-BEY-HpGk.mjs +0 -341
- package/dist/ClassicNav-Dvm8faD9.mjs +0 -72
- package/dist/ClassicNotifications--mDo0JjY.mjs +0 -45
- package/dist/ClassicPopover-BIyLKorz.mjs +0 -299
- package/dist/ClassicRadio-BwylgGYF.mjs +0 -105
- package/dist/ClassicRadioLabel-ynBzFxC2.mjs +0 -98
- package/dist/ClassicSearch-D5yT0JRA.mjs +0 -90
- package/dist/ClassicSelect-BaY2yvwP.mjs +0 -154
- package/dist/ClassicSpinner-lNq7TnmD.mjs +0 -49
- package/dist/ClassicTabs-Bcine4_p.mjs +0 -77
- package/dist/ClassicTagInput-BDCdmpwB.mjs +0 -116
- package/dist/ClassicWysiwyg-Bew6KMXn.mjs +0 -230
- package/dist/ClipboardModal-DGlwYme6.mjs +0 -84
- package/dist/CommentInput-Di0CG3ju.mjs +0 -187
- package/dist/CommentItem-DuDEsirI.mjs +0 -357
- package/dist/CommentList-vHedAk0r.mjs +0 -299
- package/dist/CommentMoreActions-hWuUjzmm.mjs +0 -289
- package/dist/CommentName-BgLZ0d7p.mjs +0 -96
- package/dist/CommentParentInfo-CeHLz7RQ.mjs +0 -64
- package/dist/CommentPlayer-C_6QaEHw.mjs +0 -86
- package/dist/CommentSection-aaSuOlab.mjs +0 -141
- package/dist/CommentStore-dLDd64nW.mjs +0 -355
- package/dist/ContractPreviewModal-QlKui6Zz.mjs +0 -101
- package/dist/CountDown-CAUtA0Vp.mjs +0 -42
- package/dist/CountdownOctopus-i6-l0aLA.mjs +0 -48
- package/dist/DateFilter-DD9cY_la.mjs +0 -119
- package/dist/DeezerIcon-BUdIKeqN.mjs +0 -57
- package/dist/DownloadPodcastButton-BJ7RYJOz.mjs +0 -53
- package/dist/EditCommentModal-BFkTZS-d.mjs +0 -163
- package/dist/EditFtpIcon-D5VaHXWl.mjs +0 -56
- package/dist/EmissionGroupChooser-BSCzxmhG.mjs +0 -83
- package/dist/EmissionInlineList-BOxiPzSz.mjs +0 -189
- package/dist/EmissionItem-cxNVXqcM.mjs +0 -183
- package/dist/EmissionList-B8sbcC0X.mjs +0 -324
- package/dist/EmissionPage-BgGFOPOx.mjs +0 -327
- package/dist/EmissionPlayerItem-XU4vw96O.mjs +0 -167
- package/dist/EmissionPresentationItem-C-KR7Llt.mjs +0 -78
- package/dist/EmissionPresentationList-BhnYUoBi.mjs +0 -125
- package/dist/EmissionsPage-CEFNekIt.mjs +0 -209
- package/dist/Error403Page-Bzzea5HG.mjs +0 -69
- package/dist/ErrorMessage-DhSwu9H_.mjs +0 -44
- package/dist/FooterGarSection-CpQu-wSQ.mjs +0 -71
- package/dist/FooterSection-DgtO6RJd.mjs +0 -242
- package/dist/GeneralStore-CUlq_NjO.mjs +0 -45
- package/dist/HomeDropdown-4mMWlnQ5.mjs +0 -110
- package/dist/HomePage-BuFrXtLJ.mjs +0 -175
- package/dist/IHeartIcon-70F_rHQh.mjs +0 -61
- package/dist/InlineRubriqueList-kWbzcqyq.mjs +0 -86
- package/dist/LikeButton-DFkrvbgE.mjs +0 -83
- package/dist/LikeSection-BVa93Lkv.mjs +0 -168
- package/dist/ListPaginate-nP9qlKGR.mjs +0 -221
- package/dist/LiveHorizontalList-DWITQA1g.mjs +0 -136
- package/dist/LiveList-DSnUp6wl.mjs +0 -322
- package/dist/LivesPage-BNEVjzsF.mjs +0 -76
- package/dist/MapPage-CdkoZThF.mjs +0 -303
- package/dist/MessageModal-B35dCbWB.mjs +0 -145
- package/dist/MobileMenu-DxDkW3Qi.mjs +0 -187
- package/dist/MonetizableFilter-BGQTUtwX.mjs +0 -81
- package/dist/NewsletterModal-C7qF_Lwj.mjs +0 -82
- package/dist/OctopusMultiselect-tXNIWVpp.mjs +0 -416
- package/dist/OrganisationChooser-Box8SHIL.mjs +0 -192
- package/dist/OrganisationChooserLight-bZveInyG.mjs +0 -84
- package/dist/PageLogout-Bc8zBpoo.mjs +0 -30
- package/dist/PageNotFound-Cy-6UixV.mjs +0 -58
- package/dist/PaginateParams-CbAaMAAM.mjs +0 -106
- package/dist/PaginateSection-BJ6iQai2.mjs +0 -204
- package/dist/ParticipantDescription-CwREwvZy.mjs +0 -70
- package/dist/ParticipantInlineList-B2Q5NyTO.mjs +0 -117
- package/dist/ParticipantItem-DG7xkIkh.mjs +0 -138
- package/dist/ParticipantPage-YUdFxrFu.mjs +0 -202
- package/dist/ParticipantsPage-RN5fRZGk.mjs +0 -262
- package/dist/PlayVideoIcon-CQJTc1O7.mjs +0 -58
- package/dist/PlayerAnonymousModal-CZ9CNQpL.mjs +0 -84
- package/dist/PlayerCommonParameters-Dn-OIiO8.mjs +0 -47
- package/dist/PlayerCompact-BPvDwRxr.mjs +0 -209
- package/dist/PlayerComponent-CfvKYQdk.mjs +0 -916
- package/dist/PlayerFmIcon-BxQ1g45P.mjs +0 -57
- package/dist/PlayerLarge-B7I1L1dO.mjs +0 -192
- package/dist/PlayerParameters-fpNIoYO9.mjs +0 -213
- package/dist/PlayerPlayButton-DfPAcu-m.mjs +0 -400
- package/dist/PlayerProgressBar-D8EkPfW5.mjs +0 -86
- package/dist/PlayerStore-BJVpAm73.mjs +0 -230
- package/dist/PlayerVideo-VIMYPCpF.mjs +0 -72
- package/dist/PlayerVideoDigiteka-BMhRuqNW.mjs +0 -105
- package/dist/PlayerVideoHls-Dp2Zui_T.mjs +0 -233
- package/dist/PlayerYoutubeEmbed-D0A4EWhU.mjs +0 -41
- package/dist/PlaylistPage-DNoPZE5S.mjs +0 -225
- package/dist/PlaylistsPage-Bpo6FhqO.mjs +0 -395
- package/dist/PocketCastIcon-Nm45VN7b.mjs +0 -57
- package/dist/PodcastAddictIcon-DRF7w4QM.mjs +0 -60
- package/dist/PodcastFilterList-CcMACnG4.mjs +0 -254
- package/dist/PodcastImage-OJgGQYSI.mjs +0 -174
- package/dist/PodcastInlineList-IH6YK8sd.mjs +0 -145
- package/dist/PodcastInlineListTemplate-DmBexOIA.mjs +0 -241
- package/dist/PodcastIsPlaying-DWdqRGto.mjs +0 -30
- package/dist/PodcastItem-BPJahZru.mjs +0 -287
- package/dist/PodcastList-CT0VIMu7.mjs +0 -182
- package/dist/PodcastList-DACfAVhQ.mjs +0 -337
- package/dist/PodcastPage-DYLSL0n4.mjs +0 -755
- package/dist/PodcastPlannedSpinner-BN7unEqf.mjs +0 -29
- package/dist/PodcastPlayBar-CF247Sqx.mjs +0 -83
- package/dist/PodcastPlayBasicButton-DTqYvfD6.mjs +0 -72
- package/dist/PodcastPlayButton-NTYtuU8D.mjs +0 -236
- package/dist/PodcastPlaylistInlineList-BYeMpN8H.mjs +0 -115
- package/dist/PodcastPresentationList-Czlf0tD6.mjs +0 -201
- package/dist/PodcastProgressBar-BHDc66Qm.mjs +0 -98
- package/dist/PodcastRawTranscript-BLtVR8lj.mjs +0 -186
- package/dist/PodcastSeasonInfo-DL_CsYTY.mjs +0 -58
- package/dist/PodcastSwiperList-dTcv-wGj.mjs +0 -226
- package/dist/PodcastmakerHeader-6v9XhwSH.mjs +0 -58
- package/dist/PodcastsPage-B56l5Kjv.mjs +0 -233
- package/dist/PresentationLayout-D2sW-Q7l.mjs +0 -88
- package/dist/ProductorSearch-DBtBOZlD.mjs +0 -161
- package/dist/ProgressBar-CBwrWHGZ.mjs +0 -158
- package/dist/QrCode-bOqxtwUc.mjs +0 -177
- package/dist/QrCodeModal-BJgTde22.mjs +0 -64
- package/dist/RadioCurrently-cVZOGF6L.mjs +0 -112
- package/dist/RadioHistory-CcQ8FfOc.mjs +0 -139
- package/dist/RadioImage-BI2egmjL.mjs +0 -85
- package/dist/RadioList-CfdZwyw8.mjs +0 -125
- package/dist/RadioPage-B_cRq9iV.mjs +0 -134
- package/dist/RadioPlanning-BCiXednx.mjs +0 -287
- package/dist/RadioProgressBar-BNjpGNUY.mjs +0 -67
- package/dist/RadiolineIcon-CIePjE9k.mjs +0 -58
- package/dist/RecaptchaModal-BN9b0zWf.mjs +0 -148
- package/dist/ReportAbuseModal-rtfZ9vOl.mjs +0 -134
- package/dist/RightsIndicator-DlR8cPgl.mjs +0 -124
- package/dist/RightsWrapper-znovkxIw.mjs +0 -212
- package/dist/RubriqueChoice-C4rglHV1.mjs +0 -143
- package/dist/RubriqueChooser-BceFw2x2.mjs +0 -241
- package/dist/RubriqueFilter-C6s3XBP5.mjs +0 -200
- package/dist/RubriqueList-DnsLTpnK.mjs +0 -206
- package/dist/RubriquePage-C8h5jocw.mjs +0 -108
- package/dist/SearchOrder-CJ0Fj6Wd.mjs +0 -85
- package/dist/SearchPage-Ce1hioJs.mjs +0 -78
- package/dist/ShareAnonymous-uUv2LpIi.mjs +0 -319
- package/dist/ShareModalPlayer-Bx06vgaH.mjs +0 -135
- package/dist/ShareNewsletter-Dvu3zDWs.mjs +0 -211
- package/dist/SharePlayer-CtK84xh1.mjs +0 -374
- package/dist/SharePlayerColors-D-9MoYm6.mjs +0 -78
- package/dist/SharePlayerRadio-DSTGDqu8.mjs +0 -127
- package/dist/SharePlayerTypes-CGYav59v.mjs +0 -232
- package/dist/ShareSocialsButtons-BFbh1abo.mjs +0 -160
- package/dist/SimpleLayout-DHRxu6tM.mjs +0 -41
- package/dist/SmartLinkPage-sl4oEMLc.mjs +0 -244
- package/dist/SnackBar-DdE1dYhi.mjs +0 -150
- package/dist/SubscribeButtons-BxS1FG9R.mjs +0 -204
- package/dist/SwiperList-BGl22osK.mjs +0 -206
- package/dist/TagList-BZQqMfF0.mjs +0 -134
- package/dist/TagPage-DmQyhjEZ.mjs +0 -125
- package/dist/TopBar-DzQk-qfW.mjs +0 -761
- package/dist/TuninIcon-BplDWgtD.mjs +0 -57
- package/dist/UserButtonContent-D7KwaNvl.mjs +0 -191
- package/dist/VastStore-BPwOrXvb.mjs +0 -80
- package/dist/VideoModuleBox-BkSzsXZQ.mjs +0 -85
- package/dist/VideoPage-DjFoF0Gd.mjs +0 -274
- package/dist/XIcon-Dz4rI_Hd.mjs +0 -57
- package/dist/_plugin-vue_export-helper-BOaGB7Aw.mjs +0 -8
- package/dist/buttons-C0c2cUtN.mjs +0 -181
- package/dist/classicApi-CIVdJnkN.mjs +0 -1923
- package/dist/config-C73GMJpz.mjs +0 -9
- package/dist/cookiesHelper-BIxSrQTV.mjs +0 -23
- package/dist/displayHelper-CpXshNzz.mjs +0 -22
- package/dist/domHelper-DTMIrMbs.mjs +0 -15
- package/dist/downloadHelper-CPZS-pv2.mjs +0 -36
- package/dist/educationfr-DnXyASTX.mjs +0 -6
- package/dist/emission-ByePXT9Y.mjs +0 -33
- package/dist/keys-TjlLYNQE.mjs +0 -18
- package/dist/localisation-iXoGtJ3j.mjs +0 -13
- package/dist/logo_saooti_play_black-BLx_RUuM.mjs +0 -6
- package/dist/organisation-CxyRYjC0.mjs +0 -19
- package/dist/ouest_france_logo-WOgdbVGH.mjs +0 -6
- package/dist/podcast-Da9L7I5Q.mjs +0 -76
- package/dist/rolldown-runtime-D7D4PA-g.mjs +0 -13
- package/dist/stringHelper-B5vD2nE_.mjs +0 -15
- package/dist/types-DmxFXVJz.mjs +0 -12
- package/dist/useAdvancedParamInit-DIDJTLRZ.mjs +0 -169
- package/dist/useAppleVideo-BGOd4QiN.mjs +0 -30
- package/dist/useCountdown-DPweZzmz.mjs +0 -51
- package/dist/useDayjs-BrQnLFO6.mjs +0 -32
- package/dist/useErrorHandler-DOxEeM1f.mjs +0 -21
- package/dist/useImageProxy-DUTIvlMD.mjs +0 -20
- package/dist/useOrgaComputed-1-t4Bid6.mjs +0 -19
- package/dist/usePlayerLogicProgress-DtNC8Vrr.mjs +0 -108
- package/dist/usePodcastView-D9UXxMgg.mjs +0 -56
- package/dist/usePresentationItem-n2v3c6ew.mjs +0 -191
- package/dist/useResizePhone-CpfFUmfV.mjs +0 -37
- package/dist/useRights-BpT-ougU.mjs +0 -276
- package/dist/useRouteUpdateParams-DurlddRA.mjs +0 -59
- package/dist/useRubriquesFilterComputed-worUxu1g.mjs +0 -13
- package/dist/useRubriquesFilterParam-Cd_oier9.mjs +0 -36
- package/dist/useSeasonsManagement-D-ngDipg.mjs +0 -44
- package/dist/useSelectableIcons-5Y8i1tdl.mjs +0 -94
- package/dist/useSelenium-DwQtyBRt.mjs +0 -11
- package/dist/useSeoTitleUrl-CrM1YzAc.mjs +0 -31
- package/dist/useSharePath-Vh29oc9Z.mjs +0 -70
- package/dist/useSharePlatforms-BtGTcWAe.mjs +0 -468
- package/dist/useSimplePageParam-BIrxc4YW.mjs +0 -54
- package/dist/useTagOf-JxYdEyRm.mjs +0 -20
- package/dist/useTranslation-BGaOW_YK.mjs +0 -226
- package/dist/usefetchRadioData-cXwOGaw6.mjs +0 -55
- package/dist/youtubeVideoHelper-DOeaXxVp.mjs +0 -16
|
@@ -0,0 +1,1256 @@
|
|
|
1
|
+
import { computed as e, effectScope as t, nextTick as n, ref as r, toRef as i, watch as a } from "vue";
|
|
2
|
+
import { useI18n as o } from "vue-i18n";
|
|
3
|
+
import { useRoute as s } from "vue-router";
|
|
4
|
+
import { defineStore as c } from "pinia";
|
|
5
|
+
import l from "dayjs";
|
|
6
|
+
import u, { AxiosError as d } from "axios";
|
|
7
|
+
//#region src/stores/ParamSdkStore.ts
|
|
8
|
+
var f = {
|
|
9
|
+
generalParameters: {
|
|
10
|
+
forceOrganisationId: void 0,
|
|
11
|
+
forceRubriqueId: void 0,
|
|
12
|
+
podcastmaker: !1,
|
|
13
|
+
buttonPlus: !0,
|
|
14
|
+
isLiveTab: !0,
|
|
15
|
+
isCaptchaTest: !0,
|
|
16
|
+
podcastItem: 13.5
|
|
17
|
+
},
|
|
18
|
+
podcastsPage: {},
|
|
19
|
+
podcastPage: {
|
|
20
|
+
ShareButtons: !0,
|
|
21
|
+
mainRubrique: 0,
|
|
22
|
+
downloadButton: !1,
|
|
23
|
+
descriptionOrSummary: "description",
|
|
24
|
+
displayEmissionTitleInHeader: !1
|
|
25
|
+
},
|
|
26
|
+
emissionsPage: {
|
|
27
|
+
itemPlayer: !1,
|
|
28
|
+
rubriquage: void 0,
|
|
29
|
+
mainRubrique: void 0,
|
|
30
|
+
buttonMore: !1,
|
|
31
|
+
progressBar: !1
|
|
32
|
+
},
|
|
33
|
+
emissionPage: {},
|
|
34
|
+
player: { isVideoPage: !1 },
|
|
35
|
+
searchPage: { sortCriteria: void 0 },
|
|
36
|
+
advancedSearch: {},
|
|
37
|
+
smartLink: { showOnlyFirstParagraphInDescription: !1 },
|
|
38
|
+
presentationItems: { tags: "none" }
|
|
39
|
+
};
|
|
40
|
+
function p(e) {
|
|
41
|
+
return e === void 0 ? {} : Object.fromEntries(Object.entries(e).filter(([, e]) => e !== void 0));
|
|
42
|
+
}
|
|
43
|
+
var m = {
|
|
44
|
+
initialize: function(e) {
|
|
45
|
+
f.generalParameters = Object.assign(f.generalParameters, p(e.generalParameters)), f.podcastPage = Object.assign(f.podcastPage, p(e.podcastPage)), f.podcastsPage = Object.assign(f.podcastsPage, p(e.podcastsPage)), f.emissionsPage = Object.assign(f.emissionsPage, p(e.emissionsPage)), f.emissionPage = Object.assign(f.emissionPage, p(e.emissionPage)), f.advancedSearch = Object.assign(f.advancedSearch, p(e.advancedSearch)), f.player = Object.assign(f.player, p(e.player)), f.searchPage = Object.assign(f.searchPage, p(e.searchPage)), f.smartLink = Object.assign(f.smartLink, p(e.smartLink)), f.presentationItems = Object.assign(f.presentationItems, p(e.presentationItems));
|
|
46
|
+
},
|
|
47
|
+
state: f
|
|
48
|
+
}, h = c("ApiStore", {
|
|
49
|
+
state: () => ({
|
|
50
|
+
apiUrl: "",
|
|
51
|
+
billingUrl: "",
|
|
52
|
+
chapteringUrl: "",
|
|
53
|
+
commentUrl: "",
|
|
54
|
+
frontendUrl: "",
|
|
55
|
+
hlsUrl: "",
|
|
56
|
+
imageUrl: "",
|
|
57
|
+
importerUrl: "",
|
|
58
|
+
keycloakUrl: "",
|
|
59
|
+
keycloakOpenAiUrl: "",
|
|
60
|
+
mediaUrl: "",
|
|
61
|
+
miniplayerUrl: "",
|
|
62
|
+
openAiUrl: "",
|
|
63
|
+
processorUrl: "",
|
|
64
|
+
radioUrl: "",
|
|
65
|
+
recoUrl: "",
|
|
66
|
+
rtmpUrl: "",
|
|
67
|
+
speechToTextUrl: "",
|
|
68
|
+
textToSpeechUrl: "",
|
|
69
|
+
studioUrl: "",
|
|
70
|
+
videoMakerUrl: "",
|
|
71
|
+
storageUrl: "",
|
|
72
|
+
statRadioUrl: ""
|
|
73
|
+
}),
|
|
74
|
+
actions: { initApis(e) {
|
|
75
|
+
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;
|
|
76
|
+
} }
|
|
77
|
+
}), g = /* @__PURE__ */ function(e) {
|
|
78
|
+
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;
|
|
79
|
+
}(g || {});
|
|
80
|
+
function _(e) {
|
|
81
|
+
let t = h();
|
|
82
|
+
switch (e) {
|
|
83
|
+
case 1: return t.mediaUrl;
|
|
84
|
+
case 2: return t.commentUrl;
|
|
85
|
+
case 3: return t.keycloakUrl;
|
|
86
|
+
case 4: return "";
|
|
87
|
+
case 6: return t.miniplayerUrl;
|
|
88
|
+
case 8: return t.storageUrl;
|
|
89
|
+
case 9: return t.studioUrl;
|
|
90
|
+
case 10: return t.processorUrl;
|
|
91
|
+
case 11: return t.speechToTextUrl;
|
|
92
|
+
case 12: return t.videoMakerUrl;
|
|
93
|
+
case 13: return t.recoUrl;
|
|
94
|
+
case 14: return t.radioUrl;
|
|
95
|
+
case 15: return t.importerUrl;
|
|
96
|
+
case 16: return t.textToSpeechUrl;
|
|
97
|
+
case 17: return t.billingUrl;
|
|
98
|
+
case 18: return t.openAiUrl;
|
|
99
|
+
case 19: return t.chapteringUrl;
|
|
100
|
+
case 20: return t.keycloakOpenAiUrl;
|
|
101
|
+
default: return t.apiUrl;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
//#endregion
|
|
105
|
+
//#region src/stores/SaveFetchStore.ts
|
|
106
|
+
var v = c("SaveFetchStore", {
|
|
107
|
+
state: () => ({
|
|
108
|
+
orgaPublicAttributes: {},
|
|
109
|
+
orgaLiveEnabled: {},
|
|
110
|
+
orgaData: {},
|
|
111
|
+
orgaRubriques: {}
|
|
112
|
+
}),
|
|
113
|
+
actions: {
|
|
114
|
+
async getOrgaAttributes(e) {
|
|
115
|
+
if (this.orgaPublicAttributes[e]) return this.orgaPublicAttributes[e];
|
|
116
|
+
let t = X();
|
|
117
|
+
return e === t.authOrganisation.id && t.authOrganisation.attributes && Object.keys(t.authOrganisation.attributes).length > 1 ? this.orgaPublicAttributes[e] = t.authOrganisation.attributes : this.orgaPublicAttributes[e] = await $.fetchData({
|
|
118
|
+
api: 0,
|
|
119
|
+
path: "organisation/attributes/" + e
|
|
120
|
+
}), this.orgaPublicAttributes[e];
|
|
121
|
+
},
|
|
122
|
+
forceUpdateAttributes(e, t) {
|
|
123
|
+
this.orgaPublicAttributes[e] = t;
|
|
124
|
+
},
|
|
125
|
+
async getOrgaLiveEnabled(e) {
|
|
126
|
+
return e.length ? (this.orgaLiveEnabled[e] || (this.orgaLiveEnabled[e] = await $.fetchData({
|
|
127
|
+
api: 0,
|
|
128
|
+
path: "organisation/liveEnabled/" + e
|
|
129
|
+
})), this.orgaLiveEnabled[e]) : !1;
|
|
130
|
+
},
|
|
131
|
+
async getOrgaData(e) {
|
|
132
|
+
if (this.orgaData[e]) return this.orgaData[e];
|
|
133
|
+
let t = X();
|
|
134
|
+
return e === t.authOrganisation.id ? this.orgaData[e] = t.authOrganisation : this.orgaData[e] = await $.fetchData({
|
|
135
|
+
api: 0,
|
|
136
|
+
path: "organisation/" + e
|
|
137
|
+
}), this.orgaData[e];
|
|
138
|
+
},
|
|
139
|
+
forceUpdateData(e, t) {
|
|
140
|
+
this.orgaData[e] = t;
|
|
141
|
+
},
|
|
142
|
+
async getOrgaRubriques(e) {
|
|
143
|
+
return this.orgaRubriques[e] || (this.orgaRubriques[e] = await $.fetchData({
|
|
144
|
+
api: 0,
|
|
145
|
+
path: "rubriquage/find/" + e
|
|
146
|
+
})), this.orgaRubriques[e];
|
|
147
|
+
},
|
|
148
|
+
forceUpdateRubriques(e) {
|
|
149
|
+
delete this.orgaRubriques[e];
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}), y = c("notifications", () => {
|
|
153
|
+
let t = r([]);
|
|
154
|
+
function n(e) {
|
|
155
|
+
t.value.push(e);
|
|
156
|
+
}
|
|
157
|
+
function i() {
|
|
158
|
+
let e = a.value;
|
|
159
|
+
if (e !== null) {
|
|
160
|
+
let n = t.value.indexOf(e);
|
|
161
|
+
t.value.splice(n, 1), e.closeCallback && e.closeCallback();
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
let a = e(() => {
|
|
165
|
+
if (t.value.length > 0) return t.value[0];
|
|
166
|
+
});
|
|
167
|
+
return {
|
|
168
|
+
addNotification: n,
|
|
169
|
+
currentNotification: a,
|
|
170
|
+
clearNotification: i
|
|
171
|
+
};
|
|
172
|
+
});
|
|
173
|
+
//#endregion
|
|
174
|
+
//#region src/api/apiUtils.ts
|
|
175
|
+
async function b(e, t, n) {
|
|
176
|
+
let r = {}, i = [];
|
|
177
|
+
return e.forEach((e) => {
|
|
178
|
+
let a = t(e).then((e) => r["" + e[n]] = e);
|
|
179
|
+
i.push(a);
|
|
180
|
+
}), await Promise.all(i), r;
|
|
181
|
+
}
|
|
182
|
+
//#endregion
|
|
183
|
+
//#region src/api/emissionApi.ts
|
|
184
|
+
async function x(e) {
|
|
185
|
+
return $.fetchData({
|
|
186
|
+
api: g.DEFAULT,
|
|
187
|
+
path: "emission/" + e
|
|
188
|
+
});
|
|
189
|
+
}
|
|
190
|
+
async function ee(e) {
|
|
191
|
+
return b(e, x, "emissionId");
|
|
192
|
+
}
|
|
193
|
+
async function te(e, t) {
|
|
194
|
+
return $.fetchData({
|
|
195
|
+
api: g.DEFAULT,
|
|
196
|
+
path: "emission/search",
|
|
197
|
+
parameters: {
|
|
198
|
+
query: e,
|
|
199
|
+
first: t?.first ?? 0,
|
|
200
|
+
size: t?.size ?? 10,
|
|
201
|
+
distributedBy: t?.distributedBy,
|
|
202
|
+
organisationId: t?.organisationId
|
|
203
|
+
},
|
|
204
|
+
specialTreatement: t?.specialTreatment ?? !0
|
|
205
|
+
});
|
|
206
|
+
}
|
|
207
|
+
async function S(e) {
|
|
208
|
+
return $.putData({
|
|
209
|
+
api: g.DEFAULT,
|
|
210
|
+
path: "emission/seasons/reset/" + e
|
|
211
|
+
});
|
|
212
|
+
}
|
|
213
|
+
var C = {
|
|
214
|
+
get: x,
|
|
215
|
+
getAllById: ee,
|
|
216
|
+
search: te,
|
|
217
|
+
resetSeasons: S
|
|
218
|
+
}, ne = /* @__PURE__ */ function(e) {
|
|
219
|
+
return e.TRANSLATING = "TRANSLATING", e.FINISHED = "FINISHED", e.FAILED = "FAILED", e.AI_LIMIT_EXCEEDED = "AI_LIMIT_EXCEEDED", e;
|
|
220
|
+
}({});
|
|
221
|
+
async function re(e) {
|
|
222
|
+
return $.fetchData({
|
|
223
|
+
api: g.SPEECHTOTEXT,
|
|
224
|
+
path: `transcription/${e}/languages`
|
|
225
|
+
});
|
|
226
|
+
}
|
|
227
|
+
async function ie(e, t, n) {
|
|
228
|
+
let r = `transcription/${e}/languages/${t}/srt`;
|
|
229
|
+
n !== void 0 && (r = `${r}?mayCreateIfNotExists=${n}`);
|
|
230
|
+
let i = !1, a = 1e3;
|
|
231
|
+
for (; !i;) {
|
|
232
|
+
let e = await $.fetchData({
|
|
233
|
+
api: g.SPEECHTOTEXT,
|
|
234
|
+
path: r
|
|
235
|
+
});
|
|
236
|
+
if (typeof e == "string") return i = !0, e;
|
|
237
|
+
if (await new Promise((e) => setTimeout(e, a)), a += 100, a >= 6e4) break;
|
|
238
|
+
}
|
|
239
|
+
throw Error("Timeout lors de la récupération de la transcription");
|
|
240
|
+
}
|
|
241
|
+
async function ae(e) {
|
|
242
|
+
return $.fetchData({
|
|
243
|
+
api: g.SPEECHTOTEXT,
|
|
244
|
+
path: `transcription/text/${e}`
|
|
245
|
+
});
|
|
246
|
+
}
|
|
247
|
+
async function oe(e, t, n) {
|
|
248
|
+
await $.postData({
|
|
249
|
+
api: g.SPEECHTOTEXT,
|
|
250
|
+
path: `convert/${t}/${e}`,
|
|
251
|
+
dataToSend: n
|
|
252
|
+
});
|
|
253
|
+
}
|
|
254
|
+
async function se(e, t, n) {
|
|
255
|
+
await $.putData({
|
|
256
|
+
api: g.SPEECHTOTEXT,
|
|
257
|
+
path: `regenerate/${t}/${e}`,
|
|
258
|
+
dataToSend: n
|
|
259
|
+
});
|
|
260
|
+
}
|
|
261
|
+
async function ce(e, t) {
|
|
262
|
+
await $.putData({
|
|
263
|
+
api: 11,
|
|
264
|
+
path: "visibility/" + e,
|
|
265
|
+
parameters: { visibility: t }
|
|
266
|
+
});
|
|
267
|
+
}
|
|
268
|
+
async function le(e, t) {
|
|
269
|
+
await $.postData({
|
|
270
|
+
api: g.SPEECHTOTEXT,
|
|
271
|
+
path: "update/" + e,
|
|
272
|
+
dataToSend: { file: new File([t], "file") },
|
|
273
|
+
contentType: "formData"
|
|
274
|
+
});
|
|
275
|
+
}
|
|
276
|
+
async function ue(e, t, n) {
|
|
277
|
+
await $.putData({
|
|
278
|
+
api: g.SPEECHTOTEXT,
|
|
279
|
+
path: `transcription/${e}/languages/${t}/srt`,
|
|
280
|
+
dataToSend: n,
|
|
281
|
+
raw: !0
|
|
282
|
+
});
|
|
283
|
+
}
|
|
284
|
+
var de = {
|
|
285
|
+
changeTranscriptionVisibility: ce,
|
|
286
|
+
getTranslations: re,
|
|
287
|
+
getTranslation: ie,
|
|
288
|
+
getRawTranscription: ae,
|
|
289
|
+
generateTranscription: oe,
|
|
290
|
+
regenerateTranscription: se,
|
|
291
|
+
updateTranscription: le,
|
|
292
|
+
updateTranslation: ue
|
|
293
|
+
}, w = "emission/groups/";
|
|
294
|
+
async function fe(e, t) {
|
|
295
|
+
if (t.length === 0) return;
|
|
296
|
+
let n;
|
|
297
|
+
n = typeof e == "object" ? e.emissionId : e;
|
|
298
|
+
let r;
|
|
299
|
+
return r = typeof t[0] == "object" ? t.map((e) => e.groupId) : t, $.putData({
|
|
300
|
+
api: g.DEFAULT,
|
|
301
|
+
path: w + "add/" + n,
|
|
302
|
+
dataToSend: r
|
|
303
|
+
});
|
|
304
|
+
}
|
|
305
|
+
async function pe(e) {
|
|
306
|
+
return $.postData({
|
|
307
|
+
api: g.DEFAULT,
|
|
308
|
+
path: w,
|
|
309
|
+
dataToSend: e
|
|
310
|
+
});
|
|
311
|
+
}
|
|
312
|
+
async function me(e) {
|
|
313
|
+
return $.deleteData({
|
|
314
|
+
api: g.DEFAULT,
|
|
315
|
+
path: w + e
|
|
316
|
+
});
|
|
317
|
+
}
|
|
318
|
+
async function T(e) {
|
|
319
|
+
return $.fetchData({
|
|
320
|
+
api: g.DEFAULT,
|
|
321
|
+
path: w + e
|
|
322
|
+
});
|
|
323
|
+
}
|
|
324
|
+
async function he(e) {
|
|
325
|
+
return b(e, T, "groupId");
|
|
326
|
+
}
|
|
327
|
+
async function E(e, t) {
|
|
328
|
+
if (t.length === 0) return;
|
|
329
|
+
let n;
|
|
330
|
+
n = typeof e == "object" ? e.emissionId : e;
|
|
331
|
+
let r;
|
|
332
|
+
return r = typeof t[0] == "object" ? t.map((e) => e.groupId) : t, $.putData({
|
|
333
|
+
api: g.DEFAULT,
|
|
334
|
+
path: w + "remove/" + n,
|
|
335
|
+
dataToSend: r
|
|
336
|
+
});
|
|
337
|
+
}
|
|
338
|
+
async function ge(e) {
|
|
339
|
+
return $.putData({
|
|
340
|
+
api: g.DEFAULT,
|
|
341
|
+
path: w,
|
|
342
|
+
dataToSend: e
|
|
343
|
+
});
|
|
344
|
+
}
|
|
345
|
+
async function _e(e) {
|
|
346
|
+
return (await D({
|
|
347
|
+
...e,
|
|
348
|
+
size: 0
|
|
349
|
+
})).count;
|
|
350
|
+
}
|
|
351
|
+
async function D(e) {
|
|
352
|
+
return $.fetchData({
|
|
353
|
+
api: g.DEFAULT,
|
|
354
|
+
path: w + "search",
|
|
355
|
+
parameters: e
|
|
356
|
+
});
|
|
357
|
+
}
|
|
358
|
+
async function ve(e) {
|
|
359
|
+
let t = [], n = 0;
|
|
360
|
+
for (;;) {
|
|
361
|
+
let r = await D({
|
|
362
|
+
...e,
|
|
363
|
+
first: n,
|
|
364
|
+
size: 1
|
|
365
|
+
});
|
|
366
|
+
if (t.push(...r.result), n += r.result.length, n >= r.count || r.result.length === 0) break;
|
|
367
|
+
}
|
|
368
|
+
return t;
|
|
369
|
+
}
|
|
370
|
+
var ye = {
|
|
371
|
+
addToGroups: fe,
|
|
372
|
+
count: _e,
|
|
373
|
+
create: pe,
|
|
374
|
+
remove: me,
|
|
375
|
+
get: T,
|
|
376
|
+
getAllById: he,
|
|
377
|
+
removeFromGroups: E,
|
|
378
|
+
update: ge,
|
|
379
|
+
search: D,
|
|
380
|
+
searchNoPagination: ve
|
|
381
|
+
}, O = c("cache", () => {
|
|
382
|
+
let e = {};
|
|
383
|
+
async function t(t, i) {
|
|
384
|
+
let a = e[t];
|
|
385
|
+
if (r(a)) {
|
|
386
|
+
let r = i();
|
|
387
|
+
a = {
|
|
388
|
+
data: r,
|
|
389
|
+
expiration: l().add(30, "minutes")
|
|
390
|
+
}, e[t] = a, r.catch(() => n(t));
|
|
391
|
+
}
|
|
392
|
+
return a.data;
|
|
393
|
+
}
|
|
394
|
+
function n(t) {
|
|
395
|
+
delete e[t];
|
|
396
|
+
}
|
|
397
|
+
function r(e) {
|
|
398
|
+
return !e || l().isAfter(e.expiration);
|
|
399
|
+
}
|
|
400
|
+
return {
|
|
401
|
+
getData: t,
|
|
402
|
+
invalidate: n
|
|
403
|
+
};
|
|
404
|
+
});
|
|
405
|
+
//#endregion
|
|
406
|
+
//#region src/api/organisationApi.ts
|
|
407
|
+
async function k(e) {
|
|
408
|
+
return $.fetchData({
|
|
409
|
+
api: g.DEFAULT,
|
|
410
|
+
path: "organisation/" + e
|
|
411
|
+
});
|
|
412
|
+
}
|
|
413
|
+
async function A(e) {
|
|
414
|
+
return b(e, k, "id");
|
|
415
|
+
}
|
|
416
|
+
async function j(e) {
|
|
417
|
+
return $.fetchData({
|
|
418
|
+
api: g.DEFAULT,
|
|
419
|
+
path: "organisation/attributes/" + e
|
|
420
|
+
});
|
|
421
|
+
}
|
|
422
|
+
async function M(e) {
|
|
423
|
+
return O().getData(`org-video-config-${e}`, () => $.fetchData({
|
|
424
|
+
api: g.DEFAULT,
|
|
425
|
+
path: "video/config/" + encodeURI(e)
|
|
426
|
+
}));
|
|
427
|
+
}
|
|
428
|
+
var N = {
|
|
429
|
+
get: k,
|
|
430
|
+
getAllById: A,
|
|
431
|
+
getAttributes: j,
|
|
432
|
+
getVideoConfig: M
|
|
433
|
+
};
|
|
434
|
+
//#endregion
|
|
435
|
+
//#region src/helper/arrayHelper.ts
|
|
436
|
+
function P(e, t, n) {
|
|
437
|
+
return n.indexOf(e) === t;
|
|
438
|
+
}
|
|
439
|
+
//#endregion
|
|
440
|
+
//#region src/api/playlistApi.ts
|
|
441
|
+
async function be(e) {
|
|
442
|
+
return $.fetchData({
|
|
443
|
+
api: g.DEFAULT,
|
|
444
|
+
path: "playlist/" + e
|
|
445
|
+
});
|
|
446
|
+
}
|
|
447
|
+
async function xe(e) {
|
|
448
|
+
return $.fetchData({
|
|
449
|
+
api: g.DEFAULT,
|
|
450
|
+
path: "v2/playlist/" + e + "/content"
|
|
451
|
+
});
|
|
452
|
+
}
|
|
453
|
+
async function Se(e) {
|
|
454
|
+
let t = await this.getContent(e), n = [], r = t.map((e) => e.organisationId).filter(P), i = t.map((e) => e.emissionId).filter(P), a = await N.getAllById(r), o = await C.getAllById(i);
|
|
455
|
+
return t.forEach((e) => {
|
|
456
|
+
let t = a[e.organisationId], r = o[e.emissionId];
|
|
457
|
+
n.push({
|
|
458
|
+
...e,
|
|
459
|
+
organisation: t,
|
|
460
|
+
emission: r
|
|
461
|
+
});
|
|
462
|
+
}), n;
|
|
463
|
+
}
|
|
464
|
+
async function Ce(e) {
|
|
465
|
+
return await $.fetchData({
|
|
466
|
+
api: g.DEFAULT,
|
|
467
|
+
path: "playlist/search",
|
|
468
|
+
specialTreatement: !0,
|
|
469
|
+
parameters: e
|
|
470
|
+
});
|
|
471
|
+
}
|
|
472
|
+
var we = {
|
|
473
|
+
get: be,
|
|
474
|
+
getContent: xe,
|
|
475
|
+
getContentFull: Se,
|
|
476
|
+
search: Ce
|
|
477
|
+
};
|
|
478
|
+
//#endregion
|
|
479
|
+
//#region src/api/participantApi.ts
|
|
480
|
+
async function F(e) {
|
|
481
|
+
return $.fetchData({
|
|
482
|
+
api: g.DEFAULT,
|
|
483
|
+
path: "participant/" + e
|
|
484
|
+
});
|
|
485
|
+
}
|
|
486
|
+
async function Te(e) {
|
|
487
|
+
return b(e, F, "participantId");
|
|
488
|
+
}
|
|
489
|
+
var Ee = {
|
|
490
|
+
get: F,
|
|
491
|
+
getAllById: Te
|
|
492
|
+
}, I = (e, t, n) => {
|
|
493
|
+
let r = t.lastIndexOf("?"), i = e[r === -1 || r < t.lastIndexOf("/") ? t : t.slice(0, r)];
|
|
494
|
+
return i ? typeof i == "function" ? i() : Promise.resolve(i) : new Promise((e, r) => {
|
|
495
|
+
(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."))));
|
|
496
|
+
});
|
|
497
|
+
}, L = null;
|
|
498
|
+
function De(e) {
|
|
499
|
+
L = e;
|
|
500
|
+
}
|
|
501
|
+
function Oe() {
|
|
502
|
+
if (!L) throw Error("i18n instance accessed before registerI18n() was called");
|
|
503
|
+
return L;
|
|
504
|
+
}
|
|
505
|
+
function ke(e, t) {
|
|
506
|
+
e.locale.value = t;
|
|
507
|
+
let n = document.querySelector("html");
|
|
508
|
+
n && n.setAttribute("lang", t);
|
|
509
|
+
}
|
|
510
|
+
async function Ae(e, t, r, i) {
|
|
511
|
+
if (!e.messages[t] || Object.keys(e.messages[t]).length === 0) {
|
|
512
|
+
let n = await I(/* #__PURE__ */ Object.assign({
|
|
513
|
+
"./locale/educationen.ts": () => import("./educationen-KT401RLo.mjs"),
|
|
514
|
+
"./locale/educationfr.ts": () => import("./educationfr-BIafOUp-.mjs"),
|
|
515
|
+
"./locale/messages.ts": () => import("./messages-DlxMAMOa.mjs")
|
|
516
|
+
}), `./locale/${t}.ts`, 3);
|
|
517
|
+
if (n = n.default, i && (t === "fr" || t === "en")) {
|
|
518
|
+
let e = await I(/* #__PURE__ */ Object.assign({
|
|
519
|
+
"./locale/educationen.ts": () => import("./educationen-KT401RLo.mjs"),
|
|
520
|
+
"./locale/educationfr.ts": () => import("./educationfr-BIafOUp-.mjs")
|
|
521
|
+
}), `./locale/education${t}.ts`, 3);
|
|
522
|
+
n = {
|
|
523
|
+
...n,
|
|
524
|
+
...e.default
|
|
525
|
+
};
|
|
526
|
+
}
|
|
527
|
+
e.setLocaleMessage(t, n);
|
|
528
|
+
}
|
|
529
|
+
return ke(e, t), n();
|
|
530
|
+
}
|
|
531
|
+
//#endregion
|
|
532
|
+
//#region src/api/podcastApi.ts
|
|
533
|
+
var je = /* @__PURE__ */ function(e) {
|
|
534
|
+
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;
|
|
535
|
+
}({});
|
|
536
|
+
async function Me(e, t) {
|
|
537
|
+
try {
|
|
538
|
+
return await $.fetchData({
|
|
539
|
+
api: g.DEFAULT,
|
|
540
|
+
path: "podcast/download/register/" + e + ".mp3",
|
|
541
|
+
parameters: t,
|
|
542
|
+
headers: { "X-Extra-UA": "Saooti Player" }
|
|
543
|
+
});
|
|
544
|
+
} catch (e) {
|
|
545
|
+
if (e instanceof d && e.status === 403) {
|
|
546
|
+
let t = e.response.data;
|
|
547
|
+
if (t.includes("is blacklisted") || t.includes("is not whitelisted")) {
|
|
548
|
+
let { addNotification: e } = y(), t = Oe().global.t;
|
|
549
|
+
e({
|
|
550
|
+
type: "error",
|
|
551
|
+
title: t("Generic - Content unavailable - Country blocked - Title"),
|
|
552
|
+
message: t("Generic - Content unavailable - Country blocked - Message")
|
|
553
|
+
});
|
|
554
|
+
}
|
|
555
|
+
}
|
|
556
|
+
return Promise.reject(e);
|
|
557
|
+
}
|
|
558
|
+
}
|
|
559
|
+
function Ne(e) {
|
|
560
|
+
return $.fetchData({
|
|
561
|
+
api: g.DEFAULT,
|
|
562
|
+
path: "podcast/" + e
|
|
563
|
+
});
|
|
564
|
+
}
|
|
565
|
+
function Pe(e) {
|
|
566
|
+
let t = {};
|
|
567
|
+
return Object.keys(e).forEach((n) => {
|
|
568
|
+
let r = e[n];
|
|
569
|
+
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);
|
|
570
|
+
}), t;
|
|
571
|
+
}
|
|
572
|
+
async function R(e, t) {
|
|
573
|
+
return $.fetchData({
|
|
574
|
+
api: g.DEFAULT,
|
|
575
|
+
path: "v2/podcast/search",
|
|
576
|
+
parameters: Pe(e),
|
|
577
|
+
specialTreatement: t
|
|
578
|
+
});
|
|
579
|
+
}
|
|
580
|
+
async function Fe(e, t) {
|
|
581
|
+
return (await R({
|
|
582
|
+
...e,
|
|
583
|
+
size: 0
|
|
584
|
+
}, t)).count;
|
|
585
|
+
}
|
|
586
|
+
async function Ie(e, t) {
|
|
587
|
+
let n = await R(e, t), r = {
|
|
588
|
+
count: n.count,
|
|
589
|
+
sort: n.sort,
|
|
590
|
+
result: []
|
|
591
|
+
}, i = n.result.map((e) => e.organisationId).filter(P), a = n.result.map((e) => e.emissionId).filter(P), o = n.result.map((e) => e.animatorId ?? []).flat().filter(P), s = N.getAllById(i), c = C.getAllById(a), l = Ee.getAllById(o), [u, d, f] = await Promise.all([
|
|
592
|
+
s,
|
|
593
|
+
c,
|
|
594
|
+
l
|
|
595
|
+
]);
|
|
596
|
+
return n.result.forEach((e) => {
|
|
597
|
+
let t = u[e.organisationId], n = d[e.emissionId], i = e.animatorId?.map((e) => f[e]);
|
|
598
|
+
r.result.push({
|
|
599
|
+
...e,
|
|
600
|
+
organisation: t,
|
|
601
|
+
emission: n,
|
|
602
|
+
animators: i
|
|
603
|
+
});
|
|
604
|
+
}), r;
|
|
605
|
+
}
|
|
606
|
+
var Le = {
|
|
607
|
+
count: Fe,
|
|
608
|
+
downloadRegister: Me,
|
|
609
|
+
get: Ne,
|
|
610
|
+
search: R,
|
|
611
|
+
searchFull: Ie
|
|
612
|
+
};
|
|
613
|
+
//#endregion
|
|
614
|
+
//#region src/api/radioApi.ts
|
|
615
|
+
async function Re(e) {
|
|
616
|
+
return $.fetchData({
|
|
617
|
+
api: g.RADIO,
|
|
618
|
+
path: `canal/${e}`
|
|
619
|
+
});
|
|
620
|
+
}
|
|
621
|
+
async function ze(e) {
|
|
622
|
+
return await $.fetchData({
|
|
623
|
+
api: g.RADIO,
|
|
624
|
+
path: "canal/orga/" + e + "/"
|
|
625
|
+
});
|
|
626
|
+
}
|
|
627
|
+
async function Be(e, t) {
|
|
628
|
+
return await $.putData({
|
|
629
|
+
api: g.RADIO,
|
|
630
|
+
path: `ambiance/canal/${e}/default`,
|
|
631
|
+
dataToSend: t
|
|
632
|
+
});
|
|
633
|
+
}
|
|
634
|
+
var Ve = {
|
|
635
|
+
get: Re,
|
|
636
|
+
getAll: ze,
|
|
637
|
+
setDefaultAmbiance: Be
|
|
638
|
+
};
|
|
639
|
+
//#endregion
|
|
640
|
+
//#region src/api/aggregatorsApi.ts
|
|
641
|
+
async function z() {
|
|
642
|
+
return $.fetchData({
|
|
643
|
+
api: g.DEFAULT,
|
|
644
|
+
path: "rss/aggregator/distributions"
|
|
645
|
+
});
|
|
646
|
+
}
|
|
647
|
+
async function He(e) {
|
|
648
|
+
return $.fetchData({
|
|
649
|
+
api: g.DEFAULT,
|
|
650
|
+
path: "rss/aggregator/list",
|
|
651
|
+
parameters: e ? { organisationId: e } : void 0
|
|
652
|
+
});
|
|
653
|
+
}
|
|
654
|
+
async function Ue(e) {
|
|
655
|
+
return $.fetchData({
|
|
656
|
+
api: g.DEFAULT,
|
|
657
|
+
path: "rss/aggregator/noauth/list",
|
|
658
|
+
parameters: e ? { organisationId: e } : void 0
|
|
659
|
+
});
|
|
660
|
+
}
|
|
661
|
+
var We = {
|
|
662
|
+
getPredefined: z,
|
|
663
|
+
getAll: He,
|
|
664
|
+
getAllNoAuth: Ue
|
|
665
|
+
};
|
|
666
|
+
//#endregion
|
|
667
|
+
//#region src/api/mediathequeApi.ts
|
|
668
|
+
async function Ge(e, t) {
|
|
669
|
+
return $.fetchData({
|
|
670
|
+
api: g.MEDIA,
|
|
671
|
+
path: `cartouchier/list/${e}`,
|
|
672
|
+
parameters: t
|
|
673
|
+
});
|
|
674
|
+
}
|
|
675
|
+
async function Ke(e) {
|
|
676
|
+
return $.fetchData({
|
|
677
|
+
api: g.MEDIA,
|
|
678
|
+
path: `mix/${e}`
|
|
679
|
+
});
|
|
680
|
+
}
|
|
681
|
+
async function qe(e) {
|
|
682
|
+
await $.deleteData({
|
|
683
|
+
api: g.MEDIA,
|
|
684
|
+
path: `mix/${e}`
|
|
685
|
+
});
|
|
686
|
+
}
|
|
687
|
+
async function Je(e, t) {
|
|
688
|
+
return $.fetchData({
|
|
689
|
+
api: g.MEDIA,
|
|
690
|
+
path: `playlist/${e}`,
|
|
691
|
+
parameters: t
|
|
692
|
+
});
|
|
693
|
+
}
|
|
694
|
+
async function Ye(e) {
|
|
695
|
+
await $.deleteData({
|
|
696
|
+
api: g.MEDIA,
|
|
697
|
+
path: `playlist/${e}`
|
|
698
|
+
});
|
|
699
|
+
}
|
|
700
|
+
var Xe = {
|
|
701
|
+
getAllCartouchiers: Ge,
|
|
702
|
+
getAllMix: Ke,
|
|
703
|
+
deleteMix: qe,
|
|
704
|
+
getAllPlaylists: Je,
|
|
705
|
+
deletePlaylist: Ye
|
|
706
|
+
}, Ze = -2, B = /* @__PURE__ */ function(e) {
|
|
707
|
+
return e.OPTIONAL = "OPTIONAL", e.MANDATORY = "MANDATORY", e.RESTRICTIVE = "RESTRICTIVE", e;
|
|
708
|
+
}({});
|
|
709
|
+
//#endregion
|
|
710
|
+
//#region src/api/rubriquesApi.ts
|
|
711
|
+
async function V(e, t, n) {
|
|
712
|
+
return $.fetchData({
|
|
713
|
+
api: g.DEFAULT,
|
|
714
|
+
path: "rubriquage/find",
|
|
715
|
+
parameters: {
|
|
716
|
+
organisationId: e,
|
|
717
|
+
...t
|
|
718
|
+
},
|
|
719
|
+
specialTreatement: n?.adaptParameters
|
|
720
|
+
});
|
|
721
|
+
}
|
|
722
|
+
async function Qe(e) {
|
|
723
|
+
return (await V([e])).find((e) => e.mode === B.RESTRICTIVE);
|
|
724
|
+
}
|
|
725
|
+
async function $e(e) {
|
|
726
|
+
return $.postData({
|
|
727
|
+
api: g.DEFAULT,
|
|
728
|
+
path: "rubriquage/",
|
|
729
|
+
dataToSend: e
|
|
730
|
+
});
|
|
731
|
+
}
|
|
732
|
+
async function et(e) {
|
|
733
|
+
return $.fetchData({
|
|
734
|
+
api: g.DEFAULT,
|
|
735
|
+
path: `rubriquage/${e}`
|
|
736
|
+
});
|
|
737
|
+
}
|
|
738
|
+
async function tt(e) {
|
|
739
|
+
return $.putData({
|
|
740
|
+
api: g.DEFAULT,
|
|
741
|
+
path: "rubriquage/",
|
|
742
|
+
dataToSend: e
|
|
743
|
+
});
|
|
744
|
+
}
|
|
745
|
+
async function nt(e) {
|
|
746
|
+
let t = typeof e == "object" ? e.rubriquageId : e;
|
|
747
|
+
await $.deleteData({
|
|
748
|
+
api: g.DEFAULT,
|
|
749
|
+
path: "rubriquage/" + t
|
|
750
|
+
});
|
|
751
|
+
}
|
|
752
|
+
async function rt(e) {
|
|
753
|
+
return $.fetchData({
|
|
754
|
+
api: g.DEFAULT,
|
|
755
|
+
path: "rubrique/search",
|
|
756
|
+
parameters: e
|
|
757
|
+
});
|
|
758
|
+
}
|
|
759
|
+
async function it(e) {
|
|
760
|
+
let t = e.map(H);
|
|
761
|
+
return await Promise.all(t);
|
|
762
|
+
}
|
|
763
|
+
async function H(e) {
|
|
764
|
+
return $.fetchData({
|
|
765
|
+
api: g.DEFAULT,
|
|
766
|
+
path: `rubrique/${e}`
|
|
767
|
+
});
|
|
768
|
+
}
|
|
769
|
+
async function at(e) {
|
|
770
|
+
return O().getData(`rubrique-${e}`, () => H(e));
|
|
771
|
+
}
|
|
772
|
+
async function ot(e) {
|
|
773
|
+
return $.fetchData({
|
|
774
|
+
api: g.DEFAULT,
|
|
775
|
+
path: `rubrique/user/list/rubriques/${e}`
|
|
776
|
+
});
|
|
777
|
+
}
|
|
778
|
+
async function st(e) {
|
|
779
|
+
return $.fetchData({
|
|
780
|
+
api: g.DEFAULT,
|
|
781
|
+
path: `rubrique/user/list/users/${e}`
|
|
782
|
+
});
|
|
783
|
+
}
|
|
784
|
+
async function ct(e, t, n) {
|
|
785
|
+
let r = [], i = [], a = [], o = /* @__PURE__ */ new Set();
|
|
786
|
+
return t.forEach(o.add, o), n.forEach(o.add, o), o.forEach((e) => {
|
|
787
|
+
let a = t.includes(e), o = n.includes(e);
|
|
788
|
+
a && !o ? i.push(e) : !a && o && r.push(e);
|
|
789
|
+
}), r.length > 0 && a.push($.postData({
|
|
790
|
+
api: g.DEFAULT,
|
|
791
|
+
path: "rubrique/user/associate",
|
|
792
|
+
dataToSend: {
|
|
793
|
+
rubriqueIds: r,
|
|
794
|
+
userIds: [e]
|
|
795
|
+
}
|
|
796
|
+
})), i.length > 0 && a.push($.postData({
|
|
797
|
+
api: g.DEFAULT,
|
|
798
|
+
path: "rubrique/user/dissociate",
|
|
799
|
+
dataToSend: {
|
|
800
|
+
rubriqueIds: i,
|
|
801
|
+
userIds: [e]
|
|
802
|
+
}
|
|
803
|
+
})), Promise.all(a).then();
|
|
804
|
+
}
|
|
805
|
+
var U = {
|
|
806
|
+
createRubriquage: $e,
|
|
807
|
+
findRestrictiveRubriquage: Qe,
|
|
808
|
+
getAllRubriquesById: it,
|
|
809
|
+
getRubriquage: et,
|
|
810
|
+
getRubrique: H,
|
|
811
|
+
getCachedRubrique: at,
|
|
812
|
+
searchRubriquages: V,
|
|
813
|
+
searchRubriques: rt,
|
|
814
|
+
updateRubriquage: tt,
|
|
815
|
+
deleteRubriquage: nt,
|
|
816
|
+
listUserScope: ot,
|
|
817
|
+
listUsersScopedByRubrique: st,
|
|
818
|
+
setUserScope: ct
|
|
819
|
+
};
|
|
820
|
+
//#endregion
|
|
821
|
+
//#region src/helper/slugify.ts
|
|
822
|
+
function W(e) {
|
|
823
|
+
return e.normalize("NFD").replace(/[\u0300-\u036f]/g, "").toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "");
|
|
824
|
+
}
|
|
825
|
+
//#endregion
|
|
826
|
+
//#region src/components/composable/useSubOrganisations.ts
|
|
827
|
+
var G = r([]), K = r(null), q = null, J = !1;
|
|
828
|
+
function lt(e) {
|
|
829
|
+
return W(e.name);
|
|
830
|
+
}
|
|
831
|
+
var Y = (e, n = lt) => {
|
|
832
|
+
J || (J = !0, G.value.length === 0 && !q && r(), t(!0).run(() => {
|
|
833
|
+
a(e, r);
|
|
834
|
+
}));
|
|
835
|
+
async function r() {
|
|
836
|
+
s(), q = U.findRestrictiveRubriquage(e.value);
|
|
837
|
+
let t = await q;
|
|
838
|
+
q = null, G.value = t ? t.rubriques.map((e) => ({
|
|
839
|
+
id: e.rubriqueId,
|
|
840
|
+
name: e.name,
|
|
841
|
+
podcastCount: e.podcastCount ?? 0,
|
|
842
|
+
annotations: e.annotations ?? {}
|
|
843
|
+
})) : [];
|
|
844
|
+
}
|
|
845
|
+
async function i(e) {
|
|
846
|
+
q && await q;
|
|
847
|
+
let t;
|
|
848
|
+
t = typeof e == "string" ? (t) => n(t) === e : (t) => t.id === e;
|
|
849
|
+
let r = G.value.find(t);
|
|
850
|
+
return r ? Promise.resolve(r) : Promise.reject(`Sub organisation ${e} not found`);
|
|
851
|
+
}
|
|
852
|
+
function o(e) {
|
|
853
|
+
K.value && s(), K.value = e, m.state.generalParameters.forceRubriqueId = [m.state.generalParameters.forceRubriqueId ?? [], e.id].flat();
|
|
854
|
+
}
|
|
855
|
+
function s() {
|
|
856
|
+
if (!K.value) return;
|
|
857
|
+
let e = m.state.generalParameters.forceRubriqueId;
|
|
858
|
+
if (Array.isArray(e)) {
|
|
859
|
+
let t = e.findIndex((e) => e === K.value.id);
|
|
860
|
+
t >= 0 && e.splice(t, 1), m.state.generalParameters.forceRubriqueId = e;
|
|
861
|
+
} else m.state.generalParameters.forceRubriqueId = void 0;
|
|
862
|
+
K.value = null;
|
|
863
|
+
}
|
|
864
|
+
return {
|
|
865
|
+
selectSubOrganisation: o,
|
|
866
|
+
selectedSubOrganisation: K,
|
|
867
|
+
unselectSubOrganisation: s,
|
|
868
|
+
subOrganisations: G,
|
|
869
|
+
getSubOrganisation: i
|
|
870
|
+
};
|
|
871
|
+
}, X = c("AuthStore", {
|
|
872
|
+
state: () => ({
|
|
873
|
+
authReload: 0,
|
|
874
|
+
authName: "",
|
|
875
|
+
authRole: [],
|
|
876
|
+
authOrgaId: void 0,
|
|
877
|
+
authParam: {
|
|
878
|
+
accessToken: void 0,
|
|
879
|
+
refreshToken: void 0,
|
|
880
|
+
expiration: void 0
|
|
881
|
+
},
|
|
882
|
+
authProfile: void 0,
|
|
883
|
+
authOrganisation: {
|
|
884
|
+
id: "",
|
|
885
|
+
name: "",
|
|
886
|
+
imageUrl: "",
|
|
887
|
+
description: void 0,
|
|
888
|
+
monetisable: void 0,
|
|
889
|
+
location: void 0,
|
|
890
|
+
comments: void 0,
|
|
891
|
+
attributes: { RSS_CONTACT: void 0 }
|
|
892
|
+
},
|
|
893
|
+
authVideoConfig: { active: !1 }
|
|
894
|
+
}),
|
|
895
|
+
getters: {
|
|
896
|
+
isAuthenticated() {
|
|
897
|
+
return this.authParam.accessToken !== void 0;
|
|
898
|
+
},
|
|
899
|
+
isRoleAdmin() {
|
|
900
|
+
return this.authRole.includes("ADMIN");
|
|
901
|
+
},
|
|
902
|
+
isRoleAnimator() {
|
|
903
|
+
return this.authRole.includes("ANIMATION");
|
|
904
|
+
},
|
|
905
|
+
isRoleUsers() {
|
|
906
|
+
return this.authRole.includes("USERS");
|
|
907
|
+
},
|
|
908
|
+
isRoleOrganisation() {
|
|
909
|
+
return this.authRole.includes("ORGANISATION");
|
|
910
|
+
},
|
|
911
|
+
isRoleProduction() {
|
|
912
|
+
return this.authRole.includes("PRODUCTION");
|
|
913
|
+
},
|
|
914
|
+
isRolePublication() {
|
|
915
|
+
return this.authRole.includes("PODCAST_VALIDATION");
|
|
916
|
+
},
|
|
917
|
+
isRoleContribution() {
|
|
918
|
+
return this.authRole.includes("PODCAST_CRUD");
|
|
919
|
+
},
|
|
920
|
+
isRolePlaylists() {
|
|
921
|
+
return this.authRole.includes("PLAYLISTS");
|
|
922
|
+
},
|
|
923
|
+
isRoleComments() {
|
|
924
|
+
return this.authRole.includes("COMMENTS_MODERATION");
|
|
925
|
+
},
|
|
926
|
+
isRoleEditor() {
|
|
927
|
+
return this.authRole.includes("EDITION");
|
|
928
|
+
},
|
|
929
|
+
isRoleAnalytics() {
|
|
930
|
+
return this.authRole.includes("ANALYTICS");
|
|
931
|
+
},
|
|
932
|
+
isRoleAdvertising() {
|
|
933
|
+
return this.authRole.includes("ADVERTISING");
|
|
934
|
+
},
|
|
935
|
+
isRoleLive() {
|
|
936
|
+
return this.authRole.includes("LIVE");
|
|
937
|
+
},
|
|
938
|
+
isRoleRadio() {
|
|
939
|
+
return this.authRole.includes("RADIO");
|
|
940
|
+
},
|
|
941
|
+
isRoleBillingAdmin() {
|
|
942
|
+
return this.authRole.includes("BILLING_ADMIN");
|
|
943
|
+
},
|
|
944
|
+
isRoleBillingViewer() {
|
|
945
|
+
return this.authRole.includes("BILLING_VIEWER");
|
|
946
|
+
},
|
|
947
|
+
isOneOfRoleProduction() {
|
|
948
|
+
return this.authRole.includes("PRODUCTION") || this.authRole.includes("RESTRICTED_PRODUCTION");
|
|
949
|
+
},
|
|
950
|
+
isRoleRestrictedProduction() {
|
|
951
|
+
return this.authRole.includes("RESTRICTED_PRODUCTION");
|
|
952
|
+
},
|
|
953
|
+
isGarRole() {
|
|
954
|
+
return this.authProfile?.attributes?.GAR;
|
|
955
|
+
},
|
|
956
|
+
isVideoOrga() {
|
|
957
|
+
return this.authVideoConfig.active;
|
|
958
|
+
},
|
|
959
|
+
userScope() {
|
|
960
|
+
return this.authProfile ? this.authRole.includes("ADMIN") || this.authRole.includes("ORGANISATION") ? [] : this.authProfile.scope : [-1];
|
|
961
|
+
}
|
|
962
|
+
},
|
|
963
|
+
actions: {
|
|
964
|
+
authUpdate(e) {
|
|
965
|
+
this.authName = e.name ?? this.authName, this.authOrgaId = e.organisationId ?? this.authOrgaId, this.authOrgaName = e.organisationName ?? this.authOrgaName, this.authRole = e.role ?? this.authRole;
|
|
966
|
+
},
|
|
967
|
+
authUpdateParam(e) {
|
|
968
|
+
this.authParam = e;
|
|
969
|
+
},
|
|
970
|
+
authUpdateProfile(e) {
|
|
971
|
+
this.authProfile = e, this.authName = e.firstname + " " + e.lastname;
|
|
972
|
+
},
|
|
973
|
+
authUpdateOrganisation(e) {
|
|
974
|
+
this.authOrganisation = e;
|
|
975
|
+
let t = v();
|
|
976
|
+
t.forceUpdateAttributes(e.id, e.attributes ?? {}), t.forceUpdateData(e.id, e);
|
|
977
|
+
},
|
|
978
|
+
async fetchProfileAsynchrone() {
|
|
979
|
+
try {
|
|
980
|
+
let e = await $.fetchData({
|
|
981
|
+
api: 0,
|
|
982
|
+
path: "organisation/attributes/" + encodeURI(this.authOrganisation.id)
|
|
983
|
+
});
|
|
984
|
+
this.authVideoConfig = await N.getVideoConfig(this.authOrganisation.id);
|
|
985
|
+
let t = {
|
|
986
|
+
...this.authOrganisation,
|
|
987
|
+
attributes: e
|
|
988
|
+
};
|
|
989
|
+
if (t.attributes?.SEPA) {
|
|
990
|
+
let e = Object.getOwnPropertyDescriptor(t.attributes, "SEPA");
|
|
991
|
+
e && Object.defineProperty(t.attributes, "iban", e), delete t.attributes.SEPA;
|
|
992
|
+
}
|
|
993
|
+
this.authUpdateOrganisation(t);
|
|
994
|
+
} catch {
|
|
995
|
+
if (this.authReload > 5) return;
|
|
996
|
+
this.authReload += 1, await new Promise((e) => setTimeout(e, 500 * this.authReload)), await this.fetchProfileAsynchrone();
|
|
997
|
+
}
|
|
998
|
+
},
|
|
999
|
+
async fetchProfile() {
|
|
1000
|
+
try {
|
|
1001
|
+
let e = $.fetchData({
|
|
1002
|
+
api: 20,
|
|
1003
|
+
path: "userinfo"
|
|
1004
|
+
}), t = $.fetchData({
|
|
1005
|
+
api: 0,
|
|
1006
|
+
path: "user/me/organisations"
|
|
1007
|
+
}), [n, r] = await Promise.all([e, t]), a = [];
|
|
1008
|
+
try {
|
|
1009
|
+
let e = await U.listUserScope(n.sub);
|
|
1010
|
+
a.push(...e);
|
|
1011
|
+
} catch (e) {
|
|
1012
|
+
console.error(e), a.push(-1);
|
|
1013
|
+
}
|
|
1014
|
+
let o = (r ?? []).toSorted(function(e, t) {
|
|
1015
|
+
return e.name.toLowerCase() < t.name.toLowerCase() ? -1 : +(e.name.toLowerCase() > t.name.toLowerCase());
|
|
1016
|
+
}), s = {
|
|
1017
|
+
firstname: n.given_name,
|
|
1018
|
+
lastname: n.family_name,
|
|
1019
|
+
email: n.email,
|
|
1020
|
+
userId: n.sub,
|
|
1021
|
+
attributes: {
|
|
1022
|
+
CGUValid: n.CGUValid,
|
|
1023
|
+
GAR: n.GAR,
|
|
1024
|
+
description: n.description,
|
|
1025
|
+
imageUrl: n.imageUrl,
|
|
1026
|
+
active_organisation: n.active_organisation
|
|
1027
|
+
},
|
|
1028
|
+
organisations: o,
|
|
1029
|
+
scope: a
|
|
1030
|
+
};
|
|
1031
|
+
if (this.authUpdateProfile(s), !n.active_organisation) return;
|
|
1032
|
+
let c = await $.fetchData({
|
|
1033
|
+
api: 0,
|
|
1034
|
+
path: "organisation/" + n.active_organisation
|
|
1035
|
+
});
|
|
1036
|
+
if (this.authUpdate({
|
|
1037
|
+
organisationId: c.id,
|
|
1038
|
+
organisationName: c.name
|
|
1039
|
+
}), this.authUpdateOrganisation(c), this.fetchProfileAsynchrone(), a.length > 0) {
|
|
1040
|
+
let { selectSubOrganisation: e, getSubOrganisation: t } = Y(i(c, "id"));
|
|
1041
|
+
e(await t(a[0]));
|
|
1042
|
+
}
|
|
1043
|
+
} catch (e) {
|
|
1044
|
+
if (console.error(e), this.authReload > 5) {
|
|
1045
|
+
let { addNotification: e } = y(), { t } = o();
|
|
1046
|
+
e({
|
|
1047
|
+
type: "error",
|
|
1048
|
+
title: t("Auth error - Couldn't retrieve user info - Title"),
|
|
1049
|
+
message: t("Auth error - Couldn't retrieve user info - Message")
|
|
1050
|
+
});
|
|
1051
|
+
return;
|
|
1052
|
+
}
|
|
1053
|
+
this.authReload += 1, await new Promise((e) => setTimeout(e, 500 * this.authReload)), await this.fetchProfile();
|
|
1054
|
+
}
|
|
1055
|
+
}
|
|
1056
|
+
}
|
|
1057
|
+
}), Z = c("FilterStore", () => {
|
|
1058
|
+
let t = r(null), n = r(), i = r(), a = r([]), o = r([]), c = r([]), l = r(!1), u = r(), d = s(), p = X(), m = e(() => {
|
|
1059
|
+
if (d?.query.viewall !== "true") return d?.query.productor ? d.query.productor : t.value === null ? p.authOrgaId : t.value ?? void 0;
|
|
1060
|
+
});
|
|
1061
|
+
function h(e) {
|
|
1062
|
+
e && m.value === void 0 && f.generalParameters.podcastmaker !== !0 && (t.value = e);
|
|
1063
|
+
}
|
|
1064
|
+
let g = e(() => t.value ?? void 0);
|
|
1065
|
+
function _(e) {
|
|
1066
|
+
(e.imgUrl || !e.orgaId) && (n.value = e.imgUrl), (e.name || !e.orgaId) && (i.value = e.name), e.rubriquageArray && (a.value = e.rubriquageArray), l.value = e.isLive ?? !1, u.value = void 0, t.value = e.orgaId ?? null;
|
|
1067
|
+
}
|
|
1068
|
+
function v(e) {
|
|
1069
|
+
u.value = e;
|
|
1070
|
+
}
|
|
1071
|
+
function y(e) {
|
|
1072
|
+
o.value = e;
|
|
1073
|
+
}
|
|
1074
|
+
function b(e) {
|
|
1075
|
+
c.value = e.filter((e) => e);
|
|
1076
|
+
}
|
|
1077
|
+
return {
|
|
1078
|
+
filterOrgaId: m,
|
|
1079
|
+
realOrgaId: g,
|
|
1080
|
+
updateOrgaIfNecessary: h,
|
|
1081
|
+
filterUpdateOrga: _,
|
|
1082
|
+
filterUpdateIab: v,
|
|
1083
|
+
filterUpdateRubrique: y,
|
|
1084
|
+
filterUpdateRubriqueDisplay: b,
|
|
1085
|
+
filterImgUrl: n,
|
|
1086
|
+
filterName: i,
|
|
1087
|
+
filterRubriquage: a,
|
|
1088
|
+
filterRubrique: o,
|
|
1089
|
+
filterRubriqueDisplay: c,
|
|
1090
|
+
filterLive: l,
|
|
1091
|
+
filterIab: u
|
|
1092
|
+
};
|
|
1093
|
+
}), Q = {
|
|
1094
|
+
async createAuthenticatedFetchHeader(e = !1) {
|
|
1095
|
+
let t = X();
|
|
1096
|
+
if (t.authName === "") return {};
|
|
1097
|
+
let n = l(), r = l(t.authParam.expiration);
|
|
1098
|
+
return n.isAfter(r) || e ? { Authorization: "Bearer " + await this.updateAccessToken() } : { Authorization: "Bearer " + t.authParam.accessToken };
|
|
1099
|
+
},
|
|
1100
|
+
async updateAccessToken() {
|
|
1101
|
+
let e = X(), t = await this.refreshToken();
|
|
1102
|
+
return t ? (e.authParam.expiration = t.expiration, e.authParam.accessToken = t.accessToken, e.authParam.refreshToken = t.refreshToken, t.accessToken) : "";
|
|
1103
|
+
},
|
|
1104
|
+
async refreshTokenLoop() {
|
|
1105
|
+
let e = X(), t = l(), n = l(e.authParam.expiration);
|
|
1106
|
+
t.isAfter(n) && await this.updateAccessToken();
|
|
1107
|
+
let r = l(e.authParam.expiration).diff(l(), "millisecond");
|
|
1108
|
+
setTimeout(() => {
|
|
1109
|
+
this.refreshTokenLoop();
|
|
1110
|
+
}, Math.max(r - 5e3, 0));
|
|
1111
|
+
},
|
|
1112
|
+
async refreshToken() {
|
|
1113
|
+
let e = X(), t = await $.postData({
|
|
1114
|
+
api: 20,
|
|
1115
|
+
path: "token",
|
|
1116
|
+
contentType: "urlencoded",
|
|
1117
|
+
dataToSend: {
|
|
1118
|
+
client_id: e.authParam.clientId,
|
|
1119
|
+
grant_type: "refresh_token",
|
|
1120
|
+
refresh_token: e.authParam.refreshToken
|
|
1121
|
+
},
|
|
1122
|
+
isNotAuth: !0,
|
|
1123
|
+
catchFunction: () => {
|
|
1124
|
+
let e = Z();
|
|
1125
|
+
e.filterOrgaId = void 0, e.filterImgUrl = void 0, window.location.href = "/logout";
|
|
1126
|
+
}
|
|
1127
|
+
});
|
|
1128
|
+
if (t) return {
|
|
1129
|
+
accessToken: t.access_token,
|
|
1130
|
+
refreshToken: t.refresh_token,
|
|
1131
|
+
expiration: l().add(t.expires_in, "seconds").toDate()
|
|
1132
|
+
};
|
|
1133
|
+
},
|
|
1134
|
+
getMediaContent(e) {
|
|
1135
|
+
if (!e) return "";
|
|
1136
|
+
let t = h(), n = X(), r = "#t=" + (e.cueIn ?? 0);
|
|
1137
|
+
return e.cueOut && (r += "," + e.cueOut), t.mediaUrl + "media/content/" + e?.mediaId + "?access_token=" + n.authParam.accessToken + r;
|
|
1138
|
+
},
|
|
1139
|
+
getUriSearchParams(e) {
|
|
1140
|
+
let t = new URLSearchParams();
|
|
1141
|
+
for (let [n, r] of Object.entries(e)) r != null && r !== "" && (!Array.isArray(r) || Array.isArray(r) && r.length) && t.append(n, r.toString());
|
|
1142
|
+
return t;
|
|
1143
|
+
},
|
|
1144
|
+
transformObjectValueToString(e) {
|
|
1145
|
+
let t = {};
|
|
1146
|
+
for (let n in e) {
|
|
1147
|
+
let r = e[n];
|
|
1148
|
+
typeof r == "object" && r ? t[n] = JSON.stringify(r) : r && (t[n] = r.toString());
|
|
1149
|
+
}
|
|
1150
|
+
return t;
|
|
1151
|
+
}
|
|
1152
|
+
}, $ = {
|
|
1153
|
+
async fetchData(e) {
|
|
1154
|
+
let t = "";
|
|
1155
|
+
if (e.parameters) {
|
|
1156
|
+
e.specialTreatement && (e.parameters = this.adjustParameters(e));
|
|
1157
|
+
let n = Q.getUriSearchParams(e.parameters).toString();
|
|
1158
|
+
t = n.length ? "?" + n : "";
|
|
1159
|
+
}
|
|
1160
|
+
let n = {};
|
|
1161
|
+
e.isNotAuth || (n = await Q.createAuthenticatedFetchHeader(e.forceRefresh));
|
|
1162
|
+
let r = _(e.api) + e.path + t;
|
|
1163
|
+
return (await u.get(r, {
|
|
1164
|
+
headers: {
|
|
1165
|
+
...e.headers,
|
|
1166
|
+
...n
|
|
1167
|
+
},
|
|
1168
|
+
...e.responseType
|
|
1169
|
+
})).data;
|
|
1170
|
+
},
|
|
1171
|
+
async postData(e) {
|
|
1172
|
+
let t = "";
|
|
1173
|
+
if (e.parameters) {
|
|
1174
|
+
let n = Q.getUriSearchParams(e.parameters).toString();
|
|
1175
|
+
t = n.length ? "?" + n : "";
|
|
1176
|
+
}
|
|
1177
|
+
let n = _(e.api) + e.path + t, r = {};
|
|
1178
|
+
e.isNotAuth || (r = await Q.createAuthenticatedFetchHeader(e.forceRefresh));
|
|
1179
|
+
let i = {}, a;
|
|
1180
|
+
if (e.contentType === "formData") {
|
|
1181
|
+
i = { "Content-Type": "multipart/form-data; charset=utf-8" }, a = new FormData();
|
|
1182
|
+
for (let t in e.dataToSend) {
|
|
1183
|
+
let n = e.dataToSend[t];
|
|
1184
|
+
n !== void 0 && a.append(t, n);
|
|
1185
|
+
}
|
|
1186
|
+
} else e.contentType === "text" ? (i = { "Content-Type": "text/plain" }, a = e.dataToSend) : e.contentType === "urlencoded" ? (i = { "Content-Type": " application/x-www-form-urlencoded" }, a = e.dataToSend) : (e.dataToSend != null || e.dataToSend != null) && (i = { "Content-Type": "application/json; charset=utf-8" }, a = JSON.stringify(e.dataToSend));
|
|
1187
|
+
return e.noContentType && (i = {}), (await u.post(n, a, { headers: {
|
|
1188
|
+
...e.headers,
|
|
1189
|
+
...i,
|
|
1190
|
+
...r
|
|
1191
|
+
} }).catch((t) => {
|
|
1192
|
+
if (e.catchFunction) e.catchFunction();
|
|
1193
|
+
else {
|
|
1194
|
+
let e = t;
|
|
1195
|
+
return Promise.reject(e);
|
|
1196
|
+
}
|
|
1197
|
+
}))?.data;
|
|
1198
|
+
},
|
|
1199
|
+
async putData(e) {
|
|
1200
|
+
let t = "";
|
|
1201
|
+
if (e.parameters) {
|
|
1202
|
+
let n = Q.getUriSearchParams(e.parameters).toString();
|
|
1203
|
+
t = n.length ? "?" + n : "";
|
|
1204
|
+
}
|
|
1205
|
+
let n = _(e.api) + e.path + t, r = {};
|
|
1206
|
+
e.isNotAuth || (r = await Q.createAuthenticatedFetchHeader(e.forceRefresh));
|
|
1207
|
+
let i = {}, a;
|
|
1208
|
+
if (e.contentType === "formData") {
|
|
1209
|
+
i = { "Content-Type": "multipart/form-data; charset=utf-8" }, a = new FormData();
|
|
1210
|
+
for (let t in e.dataToSend) {
|
|
1211
|
+
let n = e.dataToSend[t];
|
|
1212
|
+
n !== void 0 && a.append(t, n);
|
|
1213
|
+
}
|
|
1214
|
+
} else e.raw === !0 && e.dataToSend ? (i = { "Content-Type": "text/plain; charset=utf-8" }, a = e.dataToSend) : (e.dataToSend != null || e.dataToSend != null) && (i = { "Content-Type": "application/json; charset=utf-8" }, a = e.dataToSend);
|
|
1215
|
+
return e.noContentType && (i = {}), (await u.put(n, a, { headers: {
|
|
1216
|
+
...e.headers,
|
|
1217
|
+
...i,
|
|
1218
|
+
...r
|
|
1219
|
+
} })).data;
|
|
1220
|
+
},
|
|
1221
|
+
async deleteData(e) {
|
|
1222
|
+
let t = "";
|
|
1223
|
+
if (e.parameters) {
|
|
1224
|
+
let n = Q.getUriSearchParams(e.parameters).toString();
|
|
1225
|
+
t = n.length ? "?" + n : "";
|
|
1226
|
+
}
|
|
1227
|
+
let n = _(e.api) + e.path + t, r = {};
|
|
1228
|
+
e.isNotAuth || (r = await Q.createAuthenticatedFetchHeader(e.forceRefresh));
|
|
1229
|
+
let i;
|
|
1230
|
+
if (e.contentType === "formData") {
|
|
1231
|
+
i = new FormData();
|
|
1232
|
+
for (let t in e.dataToSend) {
|
|
1233
|
+
let n = e.dataToSend[t];
|
|
1234
|
+
n !== void 0 && i.append(t, n);
|
|
1235
|
+
}
|
|
1236
|
+
} else i = e.dataToSend;
|
|
1237
|
+
return (await u.delete(n, {
|
|
1238
|
+
headers: {
|
|
1239
|
+
...e.headers,
|
|
1240
|
+
...r
|
|
1241
|
+
},
|
|
1242
|
+
data: i
|
|
1243
|
+
})).data;
|
|
1244
|
+
},
|
|
1245
|
+
adjustParameters(e) {
|
|
1246
|
+
let t = e.parameters ?? {};
|
|
1247
|
+
return e.path.includes("podcast/search") && (!e.parameters?.includeHidden || e.isNotAuth ? t.validity = !0 : (t.includeStatus = [
|
|
1248
|
+
"READY",
|
|
1249
|
+
"PLANNED",
|
|
1250
|
+
"PROCESSING",
|
|
1251
|
+
"ERROR"
|
|
1252
|
+
], t.notLive || t.includeStatus.push("READY_TO_RECORD"))), f.generalParameters.forceOrganisationId && (!t.organisationId || !t.organisationId?.length ? t.organisationId = f.generalParameters.forceOrganisationId : Array.isArray(t.organisationId) && t.organisationId.length === 1 && t.organisationId[0] === "" && (t.organisationId = void 0)), f.generalParameters.forceRubriqueId !== void 0 && (t.rubriqueId ||= [], t.rubriqueId = t.rubriqueId.concat([f.generalParameters.forceRubriqueId].flat())), f.generalParameters.forceNoRubriquageId !== void 0 && (t.noRubriquageId ||= [], t.noRubriquageId.push(...[f.generalParameters.forceNoRubriquageId].flat())), t;
|
|
1253
|
+
}
|
|
1254
|
+
};
|
|
1255
|
+
//#endregion
|
|
1256
|
+
export { f as A, C, _ as D, g as E, h as O, de as S, v as T, we as _, Y as a, ye as b, Ze as c, We as d, Ve as f, De as g, Ae as h, X as i, m as k, B as l, Le as m, Q as n, W as o, je as p, Z as r, U as s, $ as t, Xe as u, P as v, y as w, ne as x, N as y };
|