import{av as b,a3 as y,aD as s,ax as t,aU as p,az as a,bE as k,aB as n,aW as C,aw as m,e as h,x as r,d as v,ay as c,K as g,aR as V,aI as R,b0 as x,bC as B,ag as $,aC as M,bF as A,aM as u,bc as I}from"./index-C-Ivu3jU.js";import{P}from"./PanelviewItemCompact-5_ppRL3T.js";import{V as T}from"./VToolbar-DTucOBiF.js";import{V as z}from"./VAlert-B3qbTkCR.js";import{_ as E}from"./_plugin-vue_export-helper-DlAUqK2U.js";const N=b({__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":a(k)(d.$vuetify.display.width)+.5,"free-mode":!0,navigation:!1,mousewheel:{forceToAxis:!0,releaseOnEdges:!0}},{default:n(()=>[C(d.$slots,"default")]),_:3},8,["slides-per-view"])}}}),O={class:"mr-3"},W={key:0},D={class:"carousel-wrapper"},F=b({__name:"WidgetRow",props:{widgetRow:{},editMode:{type:Boolean},showProviderOnCover:{type:Boolean}},emits:["update:settings"],setup(e,{emit:d}){const l=d;return(w,o)=>{const f=p("swiper-slide");return t(),m("div",{class:h(`widget-row ${e.widgetRow.settings&&!e.widgetRow.settings.enabled?"disabled":""}`)},[r(T,{class:"header",color:"transparent"},{title:n(()=>[v("span",O,R(e.widgetRow.title),1),e.widgetRow.subtitle&&a(x)("bp6")?(t(),s(B,{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",W,[e.widgetRow.settings.position!==0?(t(),s(g,{key:0,icon:"mdi-chevron-up",class:"enabled",onClick:o[0]||(o[0]=i=>l("update:settings",{...e.widgetRow.settings,position:e.widgetRow.settings.position-1}))})):c("",!0),r(g,{icon:"mdi-chevron-down",onClick:o[1]||(o[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:o[2]||(o[2]=i=>l("update:settings",{...e.widgetRow.settings,enabled:!e.widgetRow.settings.enabled}))},null,8,["icon"])])):e.widgetRow.provider?(t(),s(V,{key:1,domain:e.widgetRow.provider,size:24},null,8,["domain"])):c("",!0)]),_:1}),v("div",D,[e.widgetRow.items.length>0?(t(),s(N,{key:0},{default:n(()=>[(t(!0),m($,null,M(e.widgetRow.items,i=>(t(),s(f,{key:i.uri},{default:n(()=>[r(P,{item:i,"show-provider-on-cover":e.showProviderOnCover,"permanent-overlay":![a(u).ALBUM,a(u).TRACK,a(u).RADIO].includes(i.media_type),"is-available":a(A)(i),disabled:e.editMode},null,8,["item","show-provider-on-cover","permanent-overlay","is-available","disabled"])]),_:2},1024))),128))]),_:1})):(t(),s(z,{key:1},{default:n(()=>[I(R(w.$t("no_content")),1)]),_:1}))])],2)}}}),q=E(F,[["__scopeId","data-v-a88771f6"]]);export{q as W};
