import{D as h,j as x,G as A,M as m,_ as B}from"./index-BTUEMLf5.js";import{d as f,o as I,D as i,av as k,u as a,E as s,h as $,e as t,b as u,ad as v,H as r,f as R,I as c,P as V,a1 as y,F as M,M as p,$ as P}from"./lucide-_oCiFqes.js";import{P as D}from"./PanelviewItemCompact-CLqGya98.js";import{_ as T}from"./ProviderIcon.vue_vue_type_style_index_0_lang-DjFjyMgl.js";import{B as E,m as g,n as N,r as O}from"./vuetify-BaCqMXPP.js";const z=f({__name:"Carousel",setup(e){return I(()=>{document.documentElement.style.setProperty("--swiper-navigation-color","primary")}),(d,l)=>{const w=k("swiper");return t(),i(w,{"slides-per-view":a(h)(d.$vuetify.display.width)+.5,"free-mode":!0,navigation:!1,mousewheel:{forceToAxis:!0,releaseOnEdges:!0}},{default:s(()=>[$(d.$slots,"default")]),_:3},8,["slides-per-view"])}}}),W={key:0},F={class:"carousel-wrapper"},L=f({__name:"WidgetRow",props:{widgetRow:{},editMode:{type:Boolean},showProviderOnCover:{type:Boolean},showActionIcon:{type:Boolean}},emits:["update:settings"],setup(e,{emit:d}){const l=d,w=()=>{e.widgetRow.action&&e.widgetRow.action()};return(b,o)=>{const C=k("swiper-slide");return t(),u("div",{class:v(`widget-row ${e.widgetRow.settings&&!e.widgetRow.settings.enabled?"disabled":""}`)},[r(E,{class:"header",color:"transparent"},{title:s(()=>[R("span",{class:v(["mr-3",{"clickable-title":e.showActionIcon&&e.widgetRow.action}]),onClick:o[0]||(o[0]=n=>e.showActionIcon&&w())},y(e.widgetRow.title),3),e.widgetRow.subtitle&&a(x)("bp6")?(t(),i(N,{key:0,inline:"",outlined:"",text:e.widgetRow.subtitle,density:"compact",size:"small"},null,8,["text"])):c("",!0)]),append:s(()=>[e.editMode&&e.widgetRow.settings?(t(),u("div",W,[e.widgetRow.settings.position!==0?(t(),i(g,{key:0,icon:"mdi-chevron-up",class:"enabled",onClick:o[1]||(o[1]=n=>l("update:settings",{...e.widgetRow.settings,position:e.widgetRow.settings.position-1}))})):c("",!0),r(g,{icon:"mdi-chevron-down",onClick:o[2]||(o[2]=n=>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[3]||(o[3]=n=>l("update:settings",{...e.widgetRow.settings,enabled:!e.widgetRow.settings.enabled}))},null,8,["icon"])])):e.showActionIcon&&e.widgetRow.icon?(t(),i(g,{key:1,icon:typeof e.widgetRow.icon=="string"?e.widgetRow.icon:void 0,variant:"text",onClick:w},{default:s(()=>[typeof e.widgetRow.icon!="string"?(t(),i(V(e.widgetRow.icon),{key:0,class:"w-[22px] h-[22px]"})):c("",!0)]),_:1},8,["icon"])):e.widgetRow.provider?(t(),i(T,{key:2,domain:e.widgetRow.provider,size:24},null,8,["domain"])):c("",!0)]),_:1}),R("div",F,[e.widgetRow.items.length>0?(t(),i(z,{key:0},{default:s(()=>[(t(!0),u(M,null,p(e.widgetRow.items,n=>(t(),i(C,{key:n.uri},{default:s(()=>[r(D,{item:n,"show-provider-on-cover":e.showProviderOnCover,"permanent-overlay":![a(m).ALBUM,a(m).TRACK,a(m).RADIO].includes(n.media_type),"is-available":a(A)(n),disabled:e.editMode},null,8,["item","show-provider-on-cover","permanent-overlay","is-available","disabled"])]),_:2},1024))),128))]),_:1})):(t(),i(O,{key:1},{default:s(()=>[P(y(b.$t("no_content")),1)]),_:1}))])],2)}}}),U=B(L,[["__scopeId","data-v-c17db5cf"]]);export{U as W};
