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