import{_ as k}from"./index-96Zm5C3V.js";import{d as h,c as f,y as s,A as n,J as i,S as r,K as c,B as e,D as l,a7 as m,G as v,Q as p}from"./vendor-vue-CcL5gLKJ.js";import{u as T}from"./vendor-i18n-xZjp_O9P.js";const x={class:"empty-state"},B={class:"mb-5 flex h-20 w-20 items-center justify-center rounded-2xl bg-gray-100 dark:bg-dark-800"},b={key:1,class:"empty-state-icon h-10 w-10",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24","stroke-width":"1.5"},g={class:"empty-state-title"},w={class:"empty-state-description"},C={key:0,class:"mt-6"},H=h({__name:"EmptyState",props:{icon:{},title:{},description:{default:""},actionText:{},actionTo:{},actionIcon:{type:Boolean,default:!0},message:{}},emits:["action"],setup(t){const{t:d}=T(),u=t,y=f(()=>u.title||d("common.noData"));return(o,a)=>(e(),s("div",x,[n("div",B,[r(o.$slots,"icon",{},()=>[t.icon?(e(),l(m(t.icon),{key:0,class:"empty-state-icon h-10 w-10","aria-hidden":"true"})):(e(),s("svg",b,[...a[1]||(a[1]=[n("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M20 13V6a2 2 0 00-2-2H6a2 2 0 00-2 2v7m16 0v5a2 2 0 01-2 2H6a2 2 0 01-2-2v-5m16 0h-2.586a1 1 0 00-.707.293l-2.414 2.414a1 1 0 01-.707.293h-3.172a1 1 0 01-.707-.293l-2.414-2.414A1 1 0 006.586 13H4"},null,-1)])]))])]),n("h3",g,c(y.value),1),n("p",w,c(t.description),1),t.actionText||o.$slots.action?(e(),s("div",C,[r(o.$slots,"action",{},()=>[t.actionText?(e(),l(m(t.actionTo?"RouterLink":"button"),{key:0,to:t.actionTo,onClick:a[0]||(a[0]=$=>!t.actionTo&&o.$emit("action")),class:"btn btn-primary"},{default:v(()=>[t.actionIcon?(e(),l(k,{key:0,name:"plus",size:"md",class:"mr-2"})):i("",!0),p(" "+c(t.actionText),1)]),_:1},8,["to"])):i("",!0)])])):i("",!0)]))}});export{H as _};
