import{I as c}from"./ItemsListing-BGSSzUZI.js";import{I as f,_ as v}from"./ProviderDetails.vue_vue_type_script_setup_true_lang-DPNsnPHb.js";import{ay as h,J as y,L as I,az as w,aA as s,o as V,aI as n,aB as p,E as g,aP as m,bX as k}from"./index-DQ0AtwBO.js";import"./Container-B_XuBbhG.js";import"./index-kQIztB-E.js";import"./Toolbar-DzEOyy2X.js";import"./VToolbar-C46SA8LU.js";import"./Button-BN1AB9wp.js";import"./ListItem-1CvnM0XT.js";import"./NowPlayingBadge.vue_vue_type_style_index_0_lang-DZkK7xbC.js";import"./MediaItemThumb-CrlE-QNi.js";import"./VCheckbox-BR0Jkn6d.js";import"./VCheckboxBtn-CmKDOTuO.js";import"./VSelectionControl-CwC4p8T5.js";import"./PanelviewItemCompact-DtgmaW7-.js";import"./userPreferences-D6aKtNNy.js";import"./VInfiniteScroll-C0GSG3iw.js";import"./VVirtualScroll-DJ5JNDOI.js";import"./VAlert-DHftkkb2.js";import"./marquee_text_sync-Dwk33ZPp.js";import"./VDialog-DPUbCG_Q.js";const F=h({__name:"RadioDetails",props:{itemId:{},provider:{}},setup(a){const t=a,e=y(),l=async function(){e.value=await m.getRadio(t.itemId,t.provider)};I(()=>t.itemId,o=>{o&&l()},{immediate:!0});const d=async function(o){const i=[];if(t.provider=="library"){const r=await m.getRadioVersions(t.itemId,t.provider);i.push(...r)}for(const r of k(e.value)){const u=await m.getRadioVersions(r.item_id,r.provider_instance);i.push(...u)}return i};return(o,i)=>(s(),w("section",null,[V(f,{item:e.value},null,8,["item"]),e.value?(s(),n(c,{key:0,itemtype:"radioversions","parent-item":e.value,"show-provider":!0,"show-favorites-only-filter":!1,"show-library":!1,"show-radio-number":!1,"show-duration":!1,"load-items":d,"sort-keys":["provider","sort_name"],title:o.$t("other_versions"),"hide-on-empty":!0,checksum:a.provider+a.itemId},null,8,["parent-item","title","checksum"])):p("",!0),i[0]||(i[0]=g("br",null,null,-1)),e.value?(s(),n(v,{key:1,"item-details":e.value},null,8,["item-details"])):p("",!0)]))}});export{F as default};
