import{N as S,O as x,o as V,P as c,u as C,Q as _,b as T,t as b}from"./index-vmUNdjsE.js";import{g as z,c as P,d as I,u as B,e as D,p as E,I as N,f as F,m as W}from"./vuetify-DlufGdsb.js";import{x as a,F as j,n as i,J as A,q}from"./vue-CPEHuaRL.js";const H=E({actionText:String,bgColor:String,color:String,icon:N,image:String,justify:{type:String,default:"center"},headline:String,title:String,text:String,textWidth:{type:[Number,String],default:500},href:String,to:String,...W(),...T(),..._({size:void 0}),...F()},"VEmptyState"),Q=z()({name:"VEmptyState",props:H(),emits:{"click:action":e=>!0},setup(e,o){let{emit:m,slots:t}=o;const{themeClasses:d}=P(e),{backgroundColorClasses:u,backgroundColorStyles:r}=S(()=>e.bgColor),{dimensionStyles:y}=C(e),{displayClasses:g}=I();function l(s){m("click:action",s)}return B(()=>{const s=!!(t.actions||e.actionText),h=!!(t.headline||e.headline),v=!!(t.title||e.title),f=!!(t.text||e.text),k=!!(t.media||e.image||e.icon),n=e.size||(e.image?200:96);return a("div",{class:q(["v-empty-state",{[`v-empty-state--${e.justify}`]:!0},d.value,u.value,g.value,e.class]),style:A([r.value,y.value,e.style])},[k&&a("div",{key:"media",class:"v-empty-state__media"},[t.media?i(c,{key:"media-defaults",defaults:{VImg:{src:e.image,height:n},VIcon:{size:n,icon:e.icon}}},{default:()=>[t.media()]}):a(j,null,[e.image?i(x,{key:"image",src:e.image,height:n},null):e.icon?i(V,{key:"icon",color:e.color,size:n,icon:e.icon},null):void 0])]),h&&a("div",{key:"headline",class:"v-empty-state__headline"},[t.headline?.()??e.headline]),v&&a("div",{key:"title",class:"v-empty-state__title"},[t.title?.()??e.title]),f&&a("div",{key:"text",class:"v-empty-state__text",style:{maxWidth:D(e.textWidth)}},[t.text?.()??e.text]),t.default&&a("div",{key:"content",class:"v-empty-state__content"},[t.default()]),s&&a("div",{key:"actions",class:"v-empty-state__actions"},[i(c,{defaults:{VBtn:{class:"v-empty-state__action-btn",color:e.color??"surface-variant",href:e.href,text:e.actionText,to:e.to}}},{default:()=>[t.actions?.({props:{onClick:l}})??i(b,{onClick:l},null)]})])])}),{}}});export{Q as V};
