import{d as R,j as y,e as s,o as t,L as p,u as o,bu as k,w as a,aR as C,c as m,E as V,b as r,a as v,q as c,v as h,t as b,J as $,bs as x,F as B,r as M,bv as A,M as u,b4 as I}from"./index-BLuBzgcR.js";import{P as T}from"./PanelviewItemCompact-Czo8xJLH.js";import{V as E}from"./VToolbar-BFOvSQM-.js";import{a as g}from"./VBtn-i8gedOhv.js";import{V as N}from"./VAlert-Du-laR0E.js";import{_ as z}from"./_plugin-vue_export-helper-DlAUqK2U.js";const L=R({__name:"Carousel",setup(e){return y(()=>{document.documentElement.style.setProperty("--swiper-navigation-color","primary")}),(d,l)=>{const w=p("swiper");return t(),s(w,{"slides-per-view":o(k)(d.$vuetify.display.width)+.5,"free-mode":!0,navigation:!1,mousewheel:{forceToAxis:!0,releaseOnEdges:!0}},{default:a(()=>[C(d.$slots,"default")]),_:3},8,["slides-per-view"])}}}),P={class:"mr-3"},W={key:0},D={class:"carousel-wrapper"},F=R({__name:"WidgetRow",props:{widgetRow:{},editMode:{type:Boolean}},emits:["update:settings"],setup(e,{emit:d}){const l=d;return(w,n)=>{const f=p("swiper-slide");return t(),m("div",{class:V(`widget-row ${e.widgetRow.settings&&!e.widgetRow.settings.enabled?"disabled":""}`)},[r(E,{class:"header",color:"transparent"},{title:a(()=>[v("span",P,b(e.widgetRow.title),1),e.widgetRow.subtitle&&o($)("bp6")?(t(),s(x,{key:0,inline:"",outlined:"",text:e.widgetRow.subtitle,density:"compact",size:"small"},null,8,["text"])):c("",!0)]),append:a(()=>[e.editMode&&e.widgetRow.settings?(t(),m("div",W,[e.widgetRow.settings.position!==0?(t(),s(g,{key:0,icon:"mdi-chevron-up",class:"enabled",onClick:n[0]||(n[0]=i=>l("update:settings",{...e.widgetRow.settings,position:e.widgetRow.settings.position-1}))})):c("",!0),r(g,{icon:"mdi-chevron-down",onClick:n[1]||(n[1]=i=>l("update:settings",{...e.widgetRow.settings,position:e.widgetRow.settings.position+1}))}),r(g,{icon:e.widgetRow.settings.enabled?"mdi-checkbox-marked":"mdi-checkbox-blank-outline",onClick:n[2]||(n[2]=i=>l("update:settings",{...e.widgetRow.settings,enabled:!e.widgetRow.settings.enabled}))},null,8,["icon"])])):e.widgetRow.provider?(t(),s(h,{key:1,domain:e.widgetRow.provider,size:24},null,8,["domain"])):c("",!0)]),_:1}),v("div",D,[e.widgetRow.items.length>0?(t(),s(L,{key:0},{default:a(()=>[(t(!0),m(B,null,M(e.widgetRow.items,i=>(t(),s(f,{key:i.uri},{default:a(()=>[r(T,{item:i,"permanent-overlay":![o(u).ALBUM,o(u).TRACK,o(u).RADIO].includes(i.media_type),"is-available":o(A)(i),disabled:e.editMode},null,8,["item","permanent-overlay","is-available","disabled"])]),_:2},1024))),128))]),_:1})):(t(),s(N,{key:1},{default:a(()=>[I(b(w.$t("no_content")),1)]),_:1}))])],2)}}}),U=z(F,[["__scopeId","data-v-b4fbe42a"]]);export{U as W};
