import{I as c}from"./ItemsListing-Bt7nSL64.js";import{I as f,_ as v}from"./ProviderDetails.vue_vue_type_script_setup_true_lang-p2INfbe3.js";import{d as h,r as y,ae as I,c as w,b as V,h as n,e as p,a as g,o as s,v as m,bH as k}from"./index-BFxAF8P3.js";import"./Container-DiM3aZEa.js";import"./index-kQIztB-E.js";import"./VContainer-t8f0pxyy.js";/* empty css              */import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./Toolbar-IABQ_cGm.js";import"./VToolbar-4Hyomzsc.js";import"./VBtn-CWo0kh8N.js";import"./Button-DpLLjLX9.js";import"./ListItem-DLPNteOT.js";import"./NowPlayingBadge.vue_vue_type_style_index_0_lang-C9phX4G4.js";import"./VInput-CzWaDhLk.js";import"./MediaItemThumb-qBrtbw2Q.js";import"./PanelviewItemCompact-Dn5F-Rok.js";import"./VSpacer-Cg98NNsv.js";import"./VTextField-CudJeW4H.js";import"./VInfiniteScroll-C0KSwa81.js";import"./layout-Bgw3llWv.js";import"./VRow-B06TmOJY.js";import"./VVirtualScroll-ktNB5s8w.js";import"./VAlert-Dikxe4B7.js";import"./marquee_text_sync-D4Cb9OFR.js";import"./VDialog-jEFtM9ke.js";const U=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{U as default};
