import{_ as l}from"./DynamicIcon.js?ver=1.6.0";import{r as i,e as a,o as t,m as r,b as o,c as s,f as _,w as y,t as c,d as f}from"./vue.esm-bundler.js?ver=1.6.0";import{_ as h}from"./_plugin-vue_export-helper.js?ver=1.6.0";const k={name:"PageHeading",components:{DynamicIcon:l},props:{title:{type:String},icon:{type:String},to:{type:Object}}},g={class:"page-heading-wrap"},p={key:1,class:"page-title"},x={key:2,class:"actions"};function $(e,d,n,w,b,q){const m=i("DynamicIcon"),u=i("router-link");return t(),a("div",g,[e.$slots.title?r(e.$slots,"title",{key:0}):(t(),a("h1",p,[n.to?(t(),s(u,{key:0,to:n.to},{default:y(()=>[n.icon?(t(),s(m,{key:0,name:n.icon},null,8,["name"])):o("",!0)]),_:1},8,["to"])):o("",!0),_(" "+c(n.title),1)])),e.$slots.action?(t(),a("div",x,[r(e.$slots,"action")])):o("",!0)])}const P=h(k,[["render",$]]),S={class:"fct-empty-text"},D={class:"flex items-center justify-center mb-4"},v={key:0},B={key:1},V={__name:"Empty",props:{icon:{type:String,required:!0},text:{type:String,required:!1,default:null},hasDark:{type:Boolean,default:!1},title:{type:String,required:!1,default:null}},setup(e){return(d,n)=>(t(),a("div",S,[f("div",D,[e.icon?(t(),s(l,{key:0,name:e.icon,"has-dark":e.hasDark,class:"w-[100px]"},null,8,["name","has-dark"])):o("",!0)]),e.title?(t(),a("h3",v,c(e.title),1)):o("",!0),e.text?(t(),a("p",B,c(e.text),1)):o("",!0)]))}};export{P,V as _};
