import{U as c,o as k,W as s,X as t,ak as b,a2 as n,aq as R,br as y,Y as o,aQ as V,a0 as p,ah as C,F as d,ab as w,ac as h,E as _,ad as u,bp as $,ar as B,I,a1 as A,bs as M,a7 as m,as as T}from"./index-B-lUZalq.js";import{P as E}from"./PanelviewItemCompact-CIDxIfoQ.js";import{V as N}from"./VToolbar-RljK0PC9.js";import{a as g}from"./VBtn-BPJ1JKW-.js";import{V as W}from"./VAlert-QHTIcuEJ.js";import{_ as z}from"./_plugin-vue_export-helper-DlAUqK2U.js";const P=c({__name:"Carousel",setup(v){return k(()=>{document.documentElement.style.setProperty("--swiper-navigation-color","primary")}),(r,l)=>{const e=b("swiper");return t(),s(e,{"slides-per-view":n(y)(r.$vuetify.display.width)+.5,"space-between":24,"free-mode":!0,navigation:!n(R)({breakpoint:"mobile"}),mousewheel:{forceToAxis:!0,releaseOnEdges:!0}},{default:o(()=>[V(r.$slots,"default")]),_:3},8,["slides-per-view","navigation"])}}}),D={class:"mr-3"},F={key:0},L=c({__name:"WidgetRow",props:{widgetRow:{},editMode:{type:Boolean}},emits:["update:settings"],setup(v,{emit:r}){const l=r;return(e,a)=>{const f=b("swiper-slide");return t(),p("div",{class:C(`widget-row ${e.widgetRow.settings&&!e.widgetRow.settings.enabled?"disabled":""}`)},[d(N,{class:"header",color:"transparent"},{prepend:o(()=>[d(B,{icon:e.widgetRow.icon},null,8,["icon"])]),title:o(()=>[_("span",D,u(e.widgetRow.title),1),e.widgetRow.subtitle&&n(R)("bp6")?(t(),s($,{key:0,inline:"",outlined:"",text:e.widgetRow.subtitle,density:"compact",size:"small"},null,8,["text"])):w("",!0)]),append:o(()=>[e.editMode&&e.widgetRow.settings?(t(),p("div",F,[e.widgetRow.settings.position!==0?(t(),s(g,{key:0,icon:"mdi-chevron-up",class:"enabled",onClick:a[0]||(a[0]=i=>l("update:settings",{...e.widgetRow.settings,position:e.widgetRow.settings.position-1}))})):w("",!0),d(g,{icon:"mdi-chevron-down",onClick:a[1]||(a[1]=i=>l("update:settings",{...e.widgetRow.settings,position:e.widgetRow.settings.position+1}))}),d(g,{icon:e.widgetRow.settings.enabled?"mdi-checkbox-marked":"mdi-checkbox-blank-outline",onClick:a[2]||(a[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"])):w("",!0)]),_:1}),e.widgetRow.items.length>0?(t(),s(P,{key:0},{default:o(()=>[(t(!0),p(I,null,A(e.widgetRow.items,i=>(t(),s(f,{key:i.uri},{default:o(()=>[d(E,{item:i,"permanent-overlay":![n(m).ALBUM,n(m).TRACK,n(m).RADIO].includes(i.media_type),"is-available":n(M)(i),disabled:e.editMode},null,8,["item","permanent-overlay","is-available","disabled"])]),_:2},1024))),128))]),_:1})):(t(),s(W,{key:1},{default:o(()=>[T(u(e.$t("no_content")),1)]),_:1}))],2)}}}),X=z(L,[["__scopeId","data-v-d3794258"]]);export{X as W};
