import{I as u}from"./ItemsListing-1e4c97cc.js";import{I as f,_ as v}from"./ProviderDetails.vue_vue_type_script_setup_true_lang-1e678135.js";import{d as h,r as _,L as y,c as a,g as I,f as g,e as m,j as n,i as w,b as s,ar as V}from"./index-13cec455.js";import"./ItemContextMenu.vue_vue_type_style_index_0_scoped_d4387993_lang-070a5f76.js";import"./eventbus-1a74ea4a.js";import"./VListItem-3995941d.js";import"./VLabel-dc3f418b.js";import"./VList-a053873b.js";import"./VCardText-3285fd42.js";import"./VCard-7c0bc2b7.js";import"./VMenu-693c2219.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./ListItem-359f4456.js";import"./Button-a9c1eb8e.js";import"./PanelviewItemCompact-ca3ca463.js";import"./VCheckboxBtn-deee0e68.js";import"./VSpacer-46ab8aa1.js";/* empty css              */import"./VAlert-3e4ba415.js";import"./Container-34b102f9.js";import"./Toolbar-c1a5714a.js";import"./VToolbar-be936393.js";import"./VTextField-59596a04.js";import"./VVirtualScroll-c6e56d95.js";import"./VInfiniteScroll-cb91c423.js";import"./layout-5b19be1f.js";import"./VDialog-d88e5297.js";const k=w("br",null,null,-1),Y=h({__name:"RadioDetails",props:{itemId:{},provider:{}},setup(p){const t=p,e=_(),l=async function(){e.value=await s.getRadio(t.itemId,t.provider)};y(()=>t.itemId,i=>{i&&l()},{immediate:!0});const d=async function(i){const o=[];if(t.provider=="library"){const r=await s.getRadioVersions(t.itemId,t.provider);o.push(...r)}for(const r of V(e.value)){const c=await s.getRadioVersions(r.item_id,r.provider_instance);o.push(...c)}return o};return(i,o)=>(a(),I("section",null,[g(f,{item:e.value},null,8,["item"]),e.value?(a(),m(u,{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"])):n("",!0),k,e.value?(a(),m(v,{key:1,"item-details":e.value},null,8,["item-details"])):n("",!0)]))}});export{Y as default};
