"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index15.css');const e=require("react/jsx-runtime"),l=require("../../classix-5H4IWnMA.cjs"),u=require("../badge/index.cjs"),g=require("../checkbox/index.cjs"),h=require("../figure/index.cjs"),q=require("../icon/index.cjs"),p="_card_18wqh_1",x="_head_18wqh_31",j="_center_18wqh_44",w="_content_18wqh_56",f="_clickable_18wqh_94",y="_image_18wqh_109",N="_selected_18wqh_137",t={card:p,head:x,center:j,content:w,clickable:f,"image-top":"_image-top_18wqh_109","image-left":"_image-left_18wqh_119","image-right":"_image-right_18wqh_120",image:y,selected:N},b=({badge:i,checkbox:c,children:r,header:m,icon:_,image:o,imagePosition:d="top",onClick:s,variant:a="default"})=>e.jsxs("article",{className:l.t(t.card,d&&t[`image-${d}`],s&&t.clickable,(c==null?void 0:c.checked)&&t.selected),"data-minimal":a==="minimal",onClick:s,onKeyDown:n=>{s&&n.currentTarget===document.activeElement&&(n.key==="Enter"||n.key===" ")&&(n.preventDefault(),n.currentTarget.click())},tabIndex:s?0:-1,"data-component":"card",children:[o&&a!=="minimal"&&e.jsx(h.Figure,{className:t.image,children:o}),e.jsxs("section",{children:[e.jsxs("div",{className:l.t(t.head,a==="minimal"&&t.center),children:[c&&e.jsx("span",{onClick:n=>n.stopPropagation(),children:e.jsx(g.Checkbox,{...c})}),m,i&&e.jsx(u.Badge,{...i}),_&&e.jsx(q.Icon,{name:_,size:"medium"})]}),r&&e.jsx("div",{className:t.content,children:r})]})]});exports.Card=b;
//# sourceMappingURL=index.cjs.map
