import{j as s}from"./vendor-react-wBh_31cN.js";import{d}from"./index-dNe6i2rS.js";const f={default:"bg-card",muted:"bg-muted"};function x({className:a,variant:t="default",onClick:e,onKeyDown:o,role:n,tabIndex:c,...u}){const i=!!e,l=i?r=>{o==null||o(r),!r.defaultPrevented&&(r.key==="Enter"||r.key===" ")&&(r.preventDefault(),e==null||e(r))}:o;return s.jsx("div",{"data-slot":"card","data-variant":t,onClick:e,onKeyDown:l,role:n??(i?"button":void 0),tabIndex:c??(i?0:void 0),className:d("rounded-lg border border-border text-card-foreground shadow-sm",f[t],i&&"cursor-pointer focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",a),...u})}function b({className:a,...t}){return s.jsx("div",{"data-slot":"card-header",className:d("grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 pt-6 pb-4 has-data-[slot=card-action]:grid-cols-[1fr_auto]",a),...t})}function g({className:a,...t}){return s.jsx("div",{"data-slot":"card-title",className:d("text-lg font-semibold leading-none",a),...t})}function v({className:a,...t}){return s.jsx("div",{"data-slot":"card-description",className:d("text-sm text-muted-foreground",a),...t})}function j({className:a,...t}){return s.jsx("div",{"data-slot":"card-action",className:d("col-start-2 row-span-2 row-start-1 self-start justify-self-end",a),...t})}function N({className:a,...t}){return s.jsx("div",{"data-slot":"card-content",className:d("px-6 pb-6 first:pt-6",a),...t})}export{x as C,b as a,g as b,N as c,v as d,j as e};
