import{I as c}from"./ItemsListing-SrM633Zb.js";import{I as f,_ as v}from"./ProviderDetails.vue_vue_type_script_setup_true_lang-OXy0lG-f.js";import{x as h,r as y,w as I,y as a,D as w,n as V,z as m,K as p,B as g,I as s,aA as k}from"./index-m8nKq5sO.js";import"./ItemContextMenu.vue_vue_type_style_index_0_scoped_3a9a25e3_lang-CIVcfVNt.js";import"./ProviderIcon.vue_vue_type_style_index_0_lang-DCVBDHCR.js";import"./VListItem-BgwpeMXY.js";import"./VChip-3PA_sq0L.js";import"./VList-Dq2hFeo-.js";import"./VMenu-Bm7-wo-8.js";import"./VCard-DaTV885y.js";import"./VCardText-DV3N2e-3.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./eventbus-CGRXT3Tn.js";import"./ListItem-DgDbw47e.js";import"./VCheckbox-DB8Mf-0e.js";import"./VCheckboxBtn-GM1QeixE.js";import"./VSpacer-Cw6OWjUU.js";/* empty css              */import"./PanelviewItemCompact-CdGmHuPo.js";import"./Container-CzaMJHFj.js";import"./VContainer-CFZeQyHT.js";import"./Toolbar-DE7xAoi9.js";import"./VToolbar-CjHms_z-.js";import"./VTextField-CAVAhBK-.js";import"./VInfiniteScroll-4ozHzZOU.js";import"./layout-CKQl_2vD.js";import"./VRow-DOb23SwQ.js";import"./VVirtualScroll-Di-Iytdq.js";import"./VAlert-CcnHiMQr.js";import"./marquee_text_sync-DCQdTOa4.js";import"./VDialog-BQ5W8yPe.js";const ee=h({__name:"RadioDetails",props:{itemId:{},provider:{}},setup(n){const t=n,e=y(),l=async function(){e.value=await s.getRadio(t.itemId,t.provider)};I(()=>t.itemId,i=>{i&&l()},{immediate:!0});const d=async function(i){const r=[];if(t.provider=="library"){const o=await s.getRadioVersions(t.itemId,t.provider);r.push(...o)}for(const o of k(e.value)){const u=await s.getRadioVersions(o.item_id,o.provider_instance);r.push(...u)}return r};return(i,r)=>(a(),w("section",null,[V(f,{item:e.value},null,8,["item"]),e.value?(a(),m(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:i.$t("other_versions"),"hide-on-empty":!0,checksum:i.provider+i.itemId},null,8,["parent-item","title","checksum"])):p("",!0),r[0]||(r[0]=g("br",null,null,-1)),e.value?(a(),m(v,{key:1,"item-details":e.value},null,8,["item-details"])):p("",!0)]))}});export{ee as default};
