text: import{d as c,C as $,o as t,c as s,a as i,b as n,u as h,I as v,t as y,_ as u,r as x,F as b,e as w,f as d,w as B,g as F,h as V}from"./index.f6d5cb7b.js";const j={class:"p-4 text-lg text-center bg-transparent border shadow dark:bg-gray-500"},q={class:"flex justify-center w-full"},I={class:"mt-3 mb-3 dark:font-bold"},_=c({props:{card:{type:$,required:!0}},setup(e){return(a,l)=>(t(),s("div",j,[i("div",q,[n(h(v),{icon:e.card.icon,class:"mt-2 text-3xl txt-neutral"},null,8,["icon"])]),i("div",I,y(e.card.title),1)]))}}),N=c({components:{SimpleCard:_},props:{cards:{type:Object,required:!0},onCtrlClickCard:{type:Function,default:()=>null}}}),S={class:"grid grid-cols-1 gap-6 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 xl:grid-cols-5 2xl:grid-cols-6"},D=["onClick"];function E(e,a,l,m,g,f){const o=_,C=x("router-link");return t(),s("div",S,[(t(!0),s(b,null,w(e.cards,(r,k)=>(t(),s("div",{key:k},[r.url?(t(),d(C,{key:0,to:r.url},{default:B(()=>[n(o,{card:r},null,8,["card"])]),_:2},1032,["to"])):e.onCtrlClickCard!==null?(t(),s("div",{key:1,onClick:F(M=>e.onCtrlClickCard(r),["ctrl"])},[n(o,{card:r},null,8,["card"])],8,D)):(t(),d(o,{key:2,card:r},null,8,["card"]))]))),128))])}var p=u(N,[["render",E]]);const G=c({components:{CardsGrid:p},setup(){return{categories:V}}}),H={class:"p-5"};function L(e,a,l,m,g,f){const o=p;return t(),s("div",H,[n(o,{cards:e.categories},null,8,["cards"])])}var z=u(G,[["render",L]]);export{z as default};
  