"use strict";(self["webpackChunkgolden_software"]=self["webpackChunkgolden_software"]||[]).push([[140],{4140:function(e,t,r){r.r(t),r.d(t,{default:function(){return i}});r(7658);var a=r(3396),o=r(2268);const n={key:0,class:"flex items-stretch border-b border-indigo-100 dark:border-gray-700"},l={key:1,class:"text-center py-24 text-gray-500 dark:text-gray-400"};var s={__name:"CardComponentNew",props:{title:{type:String,default:null},icon:{type:String,default:null},emptyMessage:{type:String,default:"Nothing's here…"},headerIcon:{type:String,default:null},rounded:{type:String,default:"md:rounded"},hasTable:Boolean,empty:Boolean,form:Boolean,hoverable:Boolean},emits:["headerIconClicked","submit"],setup(e,{emit:t}){const r=e,s=(0,a.Fl)((()=>r.form?"form":"div")),d=(0,a.Fl)((()=>{const e=[r.rounded];return r.hoverable&&e.push("hover:shadow-lg transition-shadow duration-500"),e})),i=e=>{t("submit",e)};return(t,r)=>{const u=(0,a.up)("base-icon");return(0,a.wg)(),(0,a.j4)((0,a.LL)(s.value),{class:(0,o.C_)([d.value,"bg-white border border-indigo-100 shadow-lg shadow-indigo-200 dark:shadow-none dark:bg-gray-900 dark:border-gray-700"]),onSubmit:i},{default:(0,a.w5)((()=>[e.title?((0,a.wg)(),(0,a.iD)("header",n,[(0,a._)("p",{class:(0,o.C_)(["flex items-center py-3 flex-grow font-bold",[e.icon?"px-4":"px-6"]])},[e.icon?((0,a.wg)(),(0,a.j4)(u,{key:0,path:e.icon,class:"mr-3"},null,8,["path"])):(0,a.kq)("",!0),(0,a.Uk)(" "+(0,o.zw)(e.title),1)],2)])):(0,a.kq)("",!0),e.empty?((0,a.wg)(),(0,a.iD)("div",l,[(0,a._)("p",null,(0,o.zw)(e.emptyMessage),1)])):((0,a.wg)(),(0,a.iD)("div",{key:2,class:(0,o.C_)({"p-6":!e.hasTable})},[(0,a.WI)(t.$slots,"default")],2))])),_:3},40,["class"])}}};const d=s;var i=d}}]);
//# sourceMappingURL=140.14f4aa97.js.map