import{i as e}from"./bundle-mjs-NviOedTj.js";import{a as t}from"./card-BIJl8bBv.js";var n=e(),r={emerald:{border:`ring-control-accent/20`,iconBox:`ring-control-accent/25 bg-control-accent/10 text-control-accent`},indigo:{border:`ring-indigo-500/20`,iconBox:`ring-indigo-200 bg-indigo-50 text-indigo-600 dark:ring-indigo-800 dark:bg-indigo-950 dark:text-indigo-400`},orange:{border:`ring-orange-500/20`,iconBox:`ring-orange-200 bg-orange-50 text-orange-600 dark:ring-orange-800 dark:bg-orange-950 dark:text-orange-400`},blue:{border:`ring-blue-500/20`,iconBox:`ring-blue-200 bg-blue-50 text-blue-600 dark:ring-blue-800 dark:bg-blue-950 dark:text-blue-400`}};function i({icon:e,title:i,description:a,accent:o=`emerald`,featured:s,className:c,badge:l,headerAction:u,children:d}){let f=r[o];return(0,n.jsxs)(`div`,{className:t(`bg-card corner-squircle rounded-3xl ring-1 ring-foreground/10 flex flex-col gap-5 p-5 relative overflow-clip transition-all duration-300 ease-in-out`,s&&f.border,c),children:[s&&(0,n.jsx)(`div`,{className:`pointer-events-none absolute inset-x-0 top-0 h-24 bg-gradient-to-b from-control-accent/[0.04] to-transparent`}),(0,n.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,n.jsx)(`div`,{className:t(`rounded-xl corner-squircle p-2 ring-1 shrink-0`,f.iconBox),children:e}),(0,n.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,n.jsxs)(`div`,{className:`flex items-center gap-2 pb-1`,children:[(0,n.jsx)(`h3`,{className:`text-sm font-semibold`,children:i}),l&&(0,n.jsx)(`span`,{className:`rounded-full bg-control-accent/15 px-2 py-0.5 text-ui-10 font-semibold text-control-accent`,children:l})]}),(0,n.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:a})]}),u&&(0,n.jsx)(`div`,{className:`shrink-0`,children:u})]}),d]})}export{i as t};