"use strict";(self["webpackChunkgolden_software"]=self["webpackChunkgolden_software"]||[]).push([[660],{5660:function(e,r,o){o.r(r),o.d(r,{default:function(){return f}});o(7658);var a=o(3396),t=o(2268),l=o(9242),n=o(6526);const d={key:0,class:"flex items-stretch border-b border-blue-100 dark:border-gray-700"},s=["onClick"],i={key:1,class:"text-center py-24 text-gray-500 dark:text-gray-400"};var u={__name:"CardComponent",props:{title:{type:String,default:null},emptyMessage:{type:String,default:"Please Upload File…"},icon:{type:String,default:null},headerIcon:{type:String,default:null},rounded:{type:String,default:"md:rounded"},hasTable:Boolean,empty:Boolean,form:Boolean,hoverable:Boolean,color:Boolean},emits:["headerIconClicked","submit"],setup(e,{emit:r}){const o=e,u=(0,a.Fl)((()=>o.form?"form":"div")),c=(0,a.Fl)((()=>{const e=[o.rounded];return o.hoverable&&e.push("hover:shadow-xl hover:shadow-[#1670ff70] hover:border-[#80808040] transition duration-500 border"),o.color&&e.push("md:rounded-md lg:rounded-xl shadow-xl shadow-[#1670ff]/[0.2] bg-gradient-to-br from-[#1670ff20] via-[#1670ff10] to-[#1670ff00]"),e})),f=(0,a.Fl)((()=>o.headerIcon??n.Shd)),p=()=>{r("headerIconClicked")},h=e=>{r("submit",e)};return(r,o)=>{const n=(0,a.up)("base-icon");return(0,a.wg)(),(0,a.j4)((0,a.LL)(u.value),{class:(0,t.C_)([c.value,"bg-white border border-blue-100 shadow-lg shadow-blue-100 dark:bg-gray-800 dark:border-gray-700 dark:shadow-md dark:shadow-gray-800"]),onSubmit:h},{default:(0,a.w5)((()=>[e.title?((0,a.wg)(),(0,a.iD)("header",d,[(0,a._)("p",{class:(0,t.C_)(["flex items-center py-3 flex-grow font-bold",[e.icon?"px-4":"px-6"]])},[e.icon?((0,a.wg)(),(0,a.j4)(n,{key:0,path:e.icon,class:"mr-3",size:"20"},null,8,["path"])):(0,a.kq)("",!0),(0,a.Uk)(" "+(0,t.zw)(e.title),1)],2),f.value?((0,a.wg)(),(0,a.iD)("a",{key:0,href:"#",class:"flex items-center py-3 px-4 justify-center ring-blue-700 focus:ring","aria-label":"more options",onClick:(0,l.iM)(p,["prevent"])},[(0,a.Wm)(n,{path:f.value,size:"20"},null,8,["path"])],8,s)):(0,a.kq)("",!0)])):(0,a.kq)("",!0),e.empty?((0,a.wg)(),(0,a.iD)("div",i,[(0,a._)("p",null,(0,t.zw)(e.emptyMessage),1)])):((0,a.wg)(),(0,a.iD)("div",{key:2,class:(0,t.C_)({"p-6":!e.hasTable})},[(0,a.WI)(r.$slots,"default")],2))])),_:3},40,["class"])}}};const c=u;var f=c}}]);
//# sourceMappingURL=660.39e244a2.js.map