import{g as I,p,s as M,ae as D,ai as S,av as L,aD as l,ax as t,aB as s,L as O,aO as T,ad as Y,b8 as w,ay as o,d as C,x as m,bs as z,aw as y,aR as A,az as c,aM as V,au as H,K as X,aE as $,aH as N,aI as n,bZ as E,e as B,bI as d,bc as r,bk as F,b$ as R,bJ as j,b_ as J,bT as K}from"./index-C-Ivu3jU.js";import{V as Z,_ as q}from"./NowPlayingBadge.vue_vue_type_style_index_0_lang-B5IzKSW4.js";import{M as G}from"./MediaItemThumb-BsXB7IV6.js";import{_ as Q}from"./_plugin-vue_export-helper-DlAUqK2U.js";const U=p({disabled:Boolean,modelValue:{type:Boolean,default:null},...S()},"VHover"),W=I()({name:"VHover",props:U(),emits:{"update:modelValue":e=>!0},setup(e,h){let{slots:i}=h;const u=M(e,"modelValue"),{runOpenDelay:f,runCloseDelay:b}=D(e,v=>!e.disabled&&(u.value=v));return()=>i.default?.({isHovering:u.value,props:{onMouseenter:f,onMouseleave:b}})}}),_={class:"thumb-container"},ee={style:{position:"absolute",left:"-10px",top:"0px","z-index":"2"}},ae={key:1,class:"play-button-overlay"},te={key:0},ie=L({__name:"PanelviewItemCompact",props:{item:{},size:{default:200},isSelected:{type:Boolean,default:!1},showCheckboxes:{type:Boolean,default:!1},permanentOverlay:{type:Boolean,default:!1},showProviderOnCover:{type:Boolean,default:!1},isAvailable:{type:Boolean,default:!0},isPlaying:{type:Boolean},parentItem:{default:void 0},disabled:{type:Boolean}},emits:["select"],setup(e,{emit:h}){const i=e,u=h,f=function(a){if(i.showCheckboxes)return;const g="clientX"in a?a.clientX:a.touches[0].clientX,k="clientY"in a?a.clientY:a.touches[0].clientY;J(i.item,g,k,i.parentItem)},b=function(a){if(i.showCheckboxes){u("select",i.item,!i.isSelected);return}R(i.item,a.clientX,a.clientY,i.parentItem)},v=function(a){i.showCheckboxes||K(i.item,a.clientX,a.clientY,i.parentItem)};return(a,g)=>{const k=j("hold");return t(),l(W,null,{default:s(({isHovering:x,props:P})=>[O((t(),l(T,Y(P,{class:{"on-hover":x,unavailable:!e.isAvailable},elevation:"0",disabled:e.disabled,onClick:b,onContextmenu:w(f,["right","prevent"])}),{default:s(()=>[e.showCheckboxes?(t(),l(z,{key:0,"model-value":e.showCheckboxes,contained:"",scrim:e.isSelected?a.$vuetify.theme.current.dark?"rgba(0,0,0,.75)":"rgba(255,255,255,.75)":"#ffffff00"},{default:s(()=>[m(Z,{class:"panel-item-checkbox",ripple:!1,"model-value":e.isSelected},null,8,["model-value"])]),_:1},8,["model-value","scrim"])):o("",!0),C("div",_,[m(G,{item:e.isAvailable?e.item:void 0},null,8,["item"]),C("div",ee,[e.showProviderOnCover&&"provider_mappings"in e.item?(t(),l(A,{key:0,domain:e.item.media_type==c(V).PLAYLIST?e.item.provider_mappings[0].provider_domain:e.item.provider,size:20},null,8,["domain"])):o("",!0)]),e.isPlaying?(t(),l(q,{key:0,"icon-style":"position: absolute; right: 5px; bottom: 5px","show-badge":!1})):o("",!0),(x||c(H).isTouchscreen)&&e.isAvailable&&e.item.is_playable?(t(),y("div",ae,[m(X,{icon:"mdi-play",color:"white",fab:"",style:{opacity:"0.6","font-size":"20px"},onClick:w(v,["stop"])})])):o("",!0)]),m($,{variant:"text",slim:"",tile:"",density:"compact",class:"panel-item-details"},{default:s(()=>[m(N,null,{default:s(()=>[e.item.media_type==c(V).FOLDER?(t(),y("span",te,[C("span",null,n(c(E)(e.item,a.$t)),1)])):(t(),y("span",{key:1,class:B({"is-playing":e.isPlaying})},n(e.item.name),3)),"version"in e.item&&e.item.version?(t(),y("span",{key:2,class:B({"is-playing":e.isPlaying})}," - "+n(e.item.version),3)):o("",!0)]),_:1}),"artists"in e.item&&e.item.artists?(t(),l(d,{key:0,class:"line-clamp-1"},{default:s(()=>[r(n(c(F)(e.item.artists,1)),1)]),_:1})):o("",!0),"authors"in e.item&&e.item.authors?(t(),l(d,{key:1,class:"line-clamp-1"},{default:s(()=>[r(n(e.item.authors.join(" / ")),1)]),_:1})):"publisher"in e.item&&e.item.publisher?(t(),l(d,{key:2,class:"line-clamp-1"},{default:s(()=>[r(n(e.item.publisher),1)]),_:1})):"owner"in e.item&&e.item.owner?(t(),l(d,{key:3,class:"line-clamp-1"},{default:s(()=>[r(n(e.item.owner),1)]),_:1})):"provider_mappings"in e.item?o("",!0):(t(),l(d,{key:4,class:"line-clamp-1"},{default:s(()=>[r(n(a.$t(e.item.media_type)),1)]),_:1}))]),_:1})]),_:2},1040,["class","disabled"])),[[k,f]])]),_:1})}}}),me=Q(ie,[["__scopeId","data-v-eba3a2ae"]]);export{me as P,W as V};
