import{g as P,p as I,r as M,H as D,O,U as S,W as l,X as s,Y as i,ax as X,a9 as Y,G as $,a_ as g,ab as n,F as c,E as w,bi as A,Z as N,bv as T,a0 as k,a2 as f,a7 as F,ad as t,bO as H,ah as C,bw as r,as as m,b9 as L,a4 as z,bQ as E,bx as j,bP as G,bI as Q}from"./index-B-lUZalq.js";import{M as R}from"./MediaItemThumb-DapaMoP4.js";import{V as U,_ as W}from"./NowPlayingBadge.vue_vue_type_style_index_0_lang-DnroVGI-.js";import{a as Z}from"./VBtn-BPJ1JKW-.js";import{_ as q}from"./_plugin-vue_export-helper-DlAUqK2U.js";const J=I({disabled:Boolean,modelValue:{type:Boolean,default:null},...O()},"VHover"),K=P()({name:"VHover",props:J(),emits:{"update:modelValue":o=>!0},setup(o,y){let{slots:a}=y;const d=M(o,"modelValue"),{runOpenDelay:u,runCloseDelay:b}=D(o,h=>!o.disabled&&(d.value=h));return()=>a.default?.({isHovering:d.value,props:{onMouseenter:u,onMouseleave:b}})}}),_=["model-value"],x={key:0},ee=S({__name:"PanelviewItemCompact",props:{item:{},size:{default:200},isSelected:{type:Boolean,default:!1},showCheckboxes:{type:Boolean,default:!1},permanentOverlay:{type:Boolean,default:!1},isAvailable:{type:Boolean,default:!0},isPlaying:{type:Boolean},parentItem:{default:void 0},disabled:{type:Boolean}},emits:["select"],setup(o,{emit:y}){const a=o,d=y,u=function(e){if(a.showCheckboxes)return;const V="clientX"in e?e.clientX:e.touches[0].clientX,v="clientY"in e?e.clientY:e.touches[0].clientY;G(a.item,V,v,a.parentItem)},b=function(e){if(a.showCheckboxes){d("select",a.item,!a.isSelected);return}E(a.item,e.clientX,e.clientY,a.parentItem)},h=function(e){a.showCheckboxes||Q(a.item,e.clientX,e.clientY,a.parentItem)};return(e,V)=>{const v=j("hold");return s(),l(K,null,{default:i(({isHovering:p,props:B})=>[X((s(),l(Y,$(B,{class:{"on-hover":p,unavailable:!e.isAvailable},elevation:p?3:0,disabled:e.disabled,onClick:b,onContextmenu:g(u,["right","prevent"])}),{default:i(()=>[e.showCheckboxes?(s(),l(A,{key:0,"model-value":e.showCheckboxes,contained:"",scrim:e.isSelected?e.$vuetify.theme.current.dark?"rgba(0,0,0,.75)":"rgba(255,255,255,.75)":"#ffffff00"},{default:i(()=>[c(U,{class:"panel-item-checkbox",ripple:!1,"model-value":e.isSelected},null,8,["model-value"])]),_:1},8,["model-value","scrim"])):n("",!0),c(R,{item:e.isAvailable?e.item:void 0},null,8,["item"]),w("div",{class:C(e.$vuetify.theme.current.dark?"paneldetails-dark":"paneldetails"),"model-value":p||e.$vuetify.display.mobile||e.permanentOverlay},[c(N,{variant:"text",slim:"",tile:"",density:"compact",class:"panel-item-details"},{default:i(()=>[c(T,null,{default:i(()=>[e.item.media_type==f(F).FOLDER?(s(),k("span",x,[w("span",null,t(f(H)(e.item,e.$t)),1)])):(s(),k("span",{key:1,class:C({"is-playing":e.isPlaying})},t(e.item.name),3)),"version"in e.item&&e.item.version?(s(),k("span",{key:2,class:C({"is-playing":e.isPlaying})}," - "+t(e.item.version),3)):n("",!0)]),_:1}),"artists"in e.item&&e.item.artists?(s(),l(r,{key:0,class:"line-clamp-1"},{default:i(()=>[m(t(f(L)(e.item.artists,1)),1)]),_:1})):n("",!0),"authors"in e.item&&e.item.authors?(s(),l(r,{key:1,class:"line-clamp-1"},{default:i(()=>[m(t(e.item.authors.join(" / ")),1)]),_:1})):"publisher"in e.item&&e.item.publisher?(s(),l(r,{key:2,class:"line-clamp-1"},{default:i(()=>[m(t(e.item.publisher),1)]),_:1})):"owner"in e.item&&e.item.owner?(s(),l(r,{key:3,class:"line-clamp-1"},{default:i(()=>[m(t(e.item.owner),1)]),_:1})):"provider_mappings"in e.item?n("",!0):(s(),l(r,{key:4,class:"line-clamp-1"},{default:i(()=>[m(t(e.$t(e.item.media_type)),1)]),_:1}))]),_:1})],10,_),e.isPlaying?(s(),l(W,{key:1,"icon-style":"position: absolute; right: 5px; bottom: 5px","show-badge":!1})):n("",!0),(p||f(z).isTouchscreen)&&e.isAvailable&&e.item.is_playable?(s(),l(Z,{key:2,icon:"mdi-play",color:"primary",fab:"",size:"small",style:{position:"absolute",right:"10px",bottom:"35px",opacity:"0.8"},onClick:g(h,["stop"])})):n("",!0)]),_:2},1040,["class","elevation","disabled"])),[[v,u]])]),_:1})}}}),oe=q(ee,[["__scopeId","data-v-e8fd719b"]]);export{oe as P,K as V};
