import{x as p,c as u,I as n,D as a,z as t,V as o,y as l,G as r,B as d}from"./index-DKhfhZyI.js";import{w as v}from"./VListItem-DG7fZYqG.js";const m=["title"],f=["innerHTML"],y=["title"],h=["innerHTML"],g=["title"],k=["innerHTML"],$=p({__name:"ProviderIcon",props:{domain:{},size:{},dark:{type:Boolean},monochrome:{type:Boolean}},setup(c){const s=c,i=u(()=>{if(s.domain in n.providers)return n.providers[s.domain].domain;if(s.domain in n.providerManifests)return s.domain});return(e,z)=>(t(),a("div",{style:o(`width:${e.size}px;margin-left:10px;margin-right:10px;content-align:center`)},[e.domain&&e.domain=="library"?(t(),l(v,{key:0,size:e.size,icon:"mdi-bookshelf",title:e.$t("item_in_library")},null,8,["size","title"])):s.monochrome&&i.value&&r(n).providerManifests[i.value].icon_svg_monochrome?(t(),a("div",{key:1,class:"d-flex align-center justify-center align-content-center justify-content-center",style:o(`width: ${e.size}px;height: ${e.size}px;${e.$vuetify.theme.current.dark?"":"filter: invert(1);"}`),title:r(n).providerManifests[i.value].name},[d("div",{class:"svg-wrapper",innerHTML:r(n).providerManifests[i.value].icon_svg_monochrome},null,8,f)],12,m)):e.$vuetify.theme.current.dark&&i.value&&r(n).providerManifests[i.value].icon_svg_dark?(t(),a("div",{key:2,class:"d-flex align-center justify-center align-content-center justify-content-center",style:o(`width: ${e.size}px;height: ${e.size}px;`),title:r(n).providerManifests[i.value].name},[d("div",{class:"svg-wrapper",innerHTML:r(n).providerManifests[i.value].icon_svg_dark},null,8,h)],12,y)):i.value&&r(n).providerManifests[i.value].icon_svg?(t(),a("div",{key:3,class:"d-flex align-center justify-center align-content-center justify-content-center",style:o(`width: ${e.size}px;height: ${e.size}px;`),title:r(n).providerManifests[i.value].name},[d("div",{class:"svg-wrapper",innerHTML:r(n).providerManifests[i.value].icon_svg},null,8,k)],12,g)):i.value&&r(n).providerManifests[i.value].icon?(t(),l(v,{key:4,size:e.size,icon:"mdi-"+r(n).providerManifests[i.value].icon,title:r(n).providerManifests[i.value].name,dark:e.$vuetify.theme.current.dark},null,8,["size","icon","title","dark"])):(t(),l(v,{key:5,size:e.size,dark:e.$vuetify.theme.current.dark,icon:"mdi-playlist-play"},null,8,["size","dark"]))],4))}});export{$ as _};
