import{a7 as p,L as y,ai as a,a9 as t,az as b,ac as o,bn as k,ae as n,aB as h,a8 as m,r as C,o as r,E as v,aa as c,ah as g,av as V,an as R,aH as B,bm as $,a0 as x,af as A,aT as M,bo as T,aq as u,_ as I}from"./index-CFcIX8RO.js";import{P}from"./PanelviewItemCompact-YHP34gKS.js";import{V as z}from"./VToolbar-B_3_MVxk.js";import{V as E}from"./VAlert-DZurr_D6.js";const N=p({__name:"Carousel",setup(e){return y(()=>{document.documentElement.style.setProperty("--swiper-navigation-color","primary")}),(d,l)=>{const w=b("swiper");return t(),a(w,{"slides-per-view":o(k)(d.$vuetify.display.width)+.5,"free-mode":!0,navigation:!1,mousewheel:{forceToAxis:!0,releaseOnEdges:!0}},{default:n(()=>[h(d.$slots,"default")]),_:3},8,["slides-per-view"])}}}),O={class:"mr-3"},L={key:0},W={class:"carousel-wrapper"},D=p({__name:"WidgetRow",props:{widgetRow:{},editMode:{type:Boolean},showProviderOnCover:{type:Boolean}},emits:["update:settings"],setup(e,{emit:d}){const l=d;return(w,s)=>{const f=b("swiper-slide");return t(),m("div",{class:C(`widget-row ${e.widgetRow.settings&&!e.widgetRow.settings.enabled?"disabled":""}`)},[r(z,{class:"header",color:"transparent"},{title:n(()=>[v("span",O,R(e.widgetRow.title),1),e.widgetRow.subtitle&&o(B)("bp6")?(t(),a($,{key:0,inline:"",outlined:"",text:e.widgetRow.subtitle,density:"compact",size:"small"},null,8,["text"])):c("",!0)]),append:n(()=>[e.editMode&&e.widgetRow.settings?(t(),m("div",L,[e.widgetRow.settings.position!==0?(t(),a(g,{key:0,icon:"mdi-chevron-up",class:"enabled",onClick:s[0]||(s[0]=i=>l("update:settings",{...e.widgetRow.settings,position:e.widgetRow.settings.position-1}))})):c("",!0),r(g,{icon:"mdi-chevron-down",onClick:s[1]||(s[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:s[2]||(s[2]=i=>l("update:settings",{...e.widgetRow.settings,enabled:!e.widgetRow.settings.enabled}))},null,8,["icon"])])):e.widgetRow.provider?(t(),a(V,{key:1,domain:e.widgetRow.provider,size:24},null,8,["domain"])):c("",!0)]),_:1}),v("div",W,[e.widgetRow.items.length>0?(t(),a(N,{key:0},{default:n(()=>[(t(!0),m(x,null,A(e.widgetRow.items,i=>(t(),a(f,{key:i.uri},{default:n(()=>[r(P,{item:i,"show-provider-on-cover":e.showProviderOnCover,"permanent-overlay":![o(u).ALBUM,o(u).TRACK,o(u).RADIO].includes(i.media_type),"is-available":o(T)(i),disabled:e.editMode},null,8,["item","show-provider-on-cover","permanent-overlay","is-available","disabled"])]),_:2},1024))),128))]),_:1})):(t(),a(E,{key:1},{default:n(()=>[M(R(w.$t("no_content")),1)]),_:1}))])],2)}}}),K=I(D,[["__scopeId","data-v-a88771f6"]]);export{K as W};
