import{I as f,_ as v}from"./ProviderDetails.vue_vue_type_script_setup_true_lang-DKVZaoMX.js";import{I}from"./ItemsListing-t4zttHcu.js";import{U as _,x as m,w as b,o as h,a6 as o,aY as w,b as y,a0 as k,X as i,F as E,W as p,ab as n,I as D}from"./index-B-lUZalq.js";import"./MediaItemThumb-DapaMoP4.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./Toolbar-BvxWbi_E.js";import"./VToolbar-RljK0PC9.js";import"./VBtn-BPJ1JKW-.js";import"./marquee_text_sync-D7pvlIaW.js";import"./VDialog-CAgq0L03.js";import"./layout-BuzUTwrQ.js";import"./Container-Br6JH6Pm.js";import"./Button-kSJGA_Pw.js";import"./VContainer-DB65WVbe.js";/* empty css              */import"./ListItem-LV_WU--g.js";import"./NowPlayingBadge.vue_vue_type_style_index_0_lang-DnroVGI-.js";import"./VInput-BWBQqjuk.js";import"./PanelviewItemCompact-CIDxIfoQ.js";import"./VSpacer-DDLrofv-.js";import"./VTextField-B-d5Pe9I.js";import"./VInfiniteScroll-CKZj-VKd.js";import"./VRow-BQOTE9C_.js";import"./VVirtualScroll-CceW16X7.js";import"./VAlert-QHTIcuEJ.js";const Q=_({__name:"PodcastDetails",props:{itemId:{},provider:{}},setup(l){const t=l,r=m(!1),e=m(),d=async function(){e.value=await o.getPodcast(t.itemId,t.provider)};b(()=>t.itemId,a=>{a&&d()},{immediate:!0}),h(()=>{const a=o.subscribe(w.MEDIA_ITEM_UPDATED,s=>{const c=s.data;e.value?.uri==c.uri&&(r.value=!0)});y(a)});const u=async function(a){return await o.getPodcastEpisodes(t.itemId,t.provider)};return(a,s)=>(i(),k(D,null,[E(f,{item:e.value},null,8,["item"]),e.value?(i(),p(I,{key:0,itemtype:"podcastepisodes","parent-item":e.value,"show-provider":!1,"show-library":!1,"show-favorites-only-filter":!1,"show-track-number":!0,"show-refresh-button":!0,"load-items":u,"sort-keys":["position","position_desc","name","duration","duration_desc"],"update-available":r.value,title:a.$t("podcast_episodes"),"allow-key-hooks":!0,path:`podcast.${t.itemId}.${t.provider}`,"restore-state":!0,"no-server-side-sorting":!0},null,8,["parent-item","update-available","title","path"])):n("",!0),e.value?(i(),p(v,{key:1,"item-details":e.value},null,8,["item-details"])):n("",!0)],64))}});export{Q as default};
