import{d as I,l as u,b as r,c as i,h as p,e as d,u as o,O as _,q as b,L as C,i as k,w as l,Q as $,f as c,E as h,F as V,j as L,Y as P,p as B,n as w,ad as A}from"./index-0ae84607.js";import{b as y,m as T,c as H,u as S}from"./forwardRefs-d0d7c5bd.js";import{B as D,_ as z}from"./Button-a1dfd3f5.js";import{c as F,V as E,b as N,d as R}from"./VMenu-f26d3a19.js";/* empty css              */const j=["title","innerHTML"],q=["title","innerHTML"],ne=I({__name:"ProviderIcon",props:{domain:{},size:{},dark:{type:Boolean}},setup(e){const a=e,t=u(()=>a.domain in r.providers?r.providers[a.domain].domain:a.domain);return(n,f)=>(i(),p("div",{style:_(`width:${n.size}px;margin-left:10px;margin-right:10px`)},[t.value=="library"?(i(),d(y,{key:0,size:n.size,icon:"mdi-bookshelf",title:n.$t("item_in_library")},null,8,["size","title"])):n.$vuetify.theme.current.dark&&o(r).providerManifests[t.value].icon_svg_dark?(i(),p("div",{key:1,style:_(`width: ${n.size}px`),title:o(r).providerManifests[t.value].name,innerHTML:o(r).providerManifests[t.value].icon_svg_dark},null,12,j)):o(r).providerManifests[t.value].icon_svg?(i(),p("div",{key:2,style:_(`width: ${n.size}px;height: ${n.size}px`),title:o(r).providerManifests[t.value].name,innerHTML:o(r).providerManifests[t.value].icon_svg},null,12,q)):o(r).providerManifests[t.value].icon?(i(),d(y,{key:3,size:n.size,icon:"mdi-"+o(r).providerManifests[t.value].icon,title:o(r).providerManifests[t.value].name,dark:n.$vuetify.theme.current.dark},null,8,["size","icon","title","dark"])):(i(),d(y,{key:4,size:n.size,dark:n.$vuetify.theme.current.dark,icon:"mdi-playlist-play"},null,8,["size","dark"]))],4))}}),O={components:{MAButton:D},props:{contextMenuItems:{type:Array,default:[]}},setup(e,a){const t=u(()=>({}));return{listItemProps:u(()=>({...t.value,...a.attrs}))}}};const Q={key:0,class:"contextmenubtn"};function Y(e,a,t,n,f,M){const g=b("MAButton"),m=b("ListItem",!0);return i(),d(R,h(n.listItemProps,{class:"list-item-main",onInput:a[0]||(a[0]=s=>e.$emit("input",s))}),C({_:2},[k(e.$slots,(s,v)=>({name:v,fn:l(()=>[$(e.$slots,v)])})),e.$slots.append?{name:"append",fn:l(()=>[$(e.$slots,"append"),t.contextMenuItems.length>0?(i(),p("div",Q,[c(F,{location:"bottom end"},{activator:l(({props:s})=>[c(g,h(s,{variant:"list",icon:"mdi-dots-vertical"}),null,16)]),default:l(()=>[c(E,null,{default:l(()=>[(i(!0),p(V,null,k(t.contextMenuItems.filter(s=>s.hide!=!0),(s,v)=>(i(),d(m,{key:v,title:e.$t(s.label,s.labelArgs),disabled:s.disabled==!0,onClick:U=>s.action?s.action():""},{prepend:l(()=>[c(N,{icon:s.icon},null,8,["icon"])]),_:2},1032,["title","disabled","onClick"]))),128))]),_:1})]),_:1})])):L("",!0)]),key:"0"}:void 0]),1040)}const ae=z(O,[["render",Y]]),x={props:{variant:{type:String,default:"default",validator:e=>["default","panel"].includes(e)}},setup(e,a){const t=u(()=>({class:"container-default"})),n=u(()=>({class:P.theme.current.value.dark?"container-default container-panels-dark":"container-default container-panels-light"}));return{btnProps:u(()=>{switch(e.variant){case"default":return t.value;case"panel":return n.value;default:return t.value}})}}};const G=B({fluid:{type:Boolean,default:!1},...T(),...H()},"VContainer"),J=w()({name:"VContainer",props:G(),setup(e,a){let{slots:t}=a;const{rtlClasses:n}=A();return S(()=>c(e.tag,{class:["v-container",{"v-container--fluid":e.fluid},n.value,e.class],style:e.style},t)),{}}});function K(e,a,t,n,f,M){return i(),d(J,h(n.btnProps,{variant:"default",fluid:""}),C({_:2},[k(e.$slots,(g,m)=>({name:m,fn:l(()=>[$(e.$slots,m)])}))]),1040)}const se=z(x,[["render",K]]);export{se as C,ae as L,ne as _};
