import{I as f}from"./InfoHeader-DfuCry24.js";import{I as v}from"./ItemsListing-C1b5yQiV.js";import{_ as I}from"./ProviderDetails.vue_vue_type_style_index_0_lang-BSaE68QI.js";import{a,E as _}from"./index-DZlkQBIo.js";import{d as h,w as b,o as w,r as p,a0 as y,b as k,H as E,D as n,I as l,F as D,e as r}from"./lucide-rdpCIAa9.js";import"./Toolbar-DniqyWB1.js";import"./vuetify-Bqoyv5N3.js";import"./marquee_text_sync-C4anEqYx.js";import"./vue-router-L5ZXYjYf.js";import"./MarqueeText-DgKFL4qZ.js";import"./MediaItemThumb-D5BGkKzB.js";import"./ProviderIcon.vue_vue_type_style_index_0_lang-DdV4SG7b.js";import"./vue-i18n-DcUAF_YX.js";import"./Container-NSEd6yqV.js";import"./index-kQIztB-E.js";import"./userPreferences-DJP6hSfu.js";import"./Button-BsCJep0g.js";import"./ListItem-Bftb8sGK.js";import"./NowPlayingBadge.vue_vue_type_style_index_0_lang-sDEo2g9I.js";import"./PanelviewItemCompact-B4my2NRP.js";import"./color-CcshWhNz.js";import"./qrcode-Rbgibj1J.js";import"./marked-i_gIkIP3.js";import"./vueuse-Bzb9fPDA.js";/* empty css            */import"./swiper-BaHiVTYj.js";const X=h({__name:"PodcastDetails",props:{itemId:{},provider:{}},setup(d){const e=d,i=p(!1),t=p(),u=async function(){t.value=await a.getPodcast(e.itemId,e.provider)};b(()=>e.itemId,o=>{o&&u()},{immediate:!0}),w(()=>{const o=a.subscribe(_.MEDIA_ITEM_UPDATED,s=>{const m=s.data;t.value?.uri==m.uri&&(t.value=m,i.value=!0)});y(o)});const c=async function(o){return await a.getPodcastEpisodes(e.itemId,e.provider)};return(o,s)=>(r(),k(D,null,[E(f,{item:t.value},null,8,["item"]),t.value?(r(),n(v,{key:0,itemtype:"podcastepisodes","parent-item":t.value,"show-provider":!1,"show-library":!1,"show-favorites-only-filter":!1,"show-track-number":!0,"show-refresh-button":!0,"load-items":c,"sort-keys":["position","position_desc","name","duration","duration_desc"],"update-available":i.value,title:o.$t("podcast_episodes"),"allow-key-hooks":!0,path:`podcast.${e.itemId}.${e.provider}`,"restore-state":!0,"no-server-side-sorting":!0},null,8,["parent-item","update-available","title","path"])):l("",!0),t.value?(r(),n(I,{key:1,"item-details":t.value},null,8,["item-details"])):l("",!0)],64))}});export{X as default};
