import{c as e,a8 as a,c7 as s,a9 as n,cm as r,B as t}from"./index-nE6cslhy.js";import{r as o,j as i,c as l}from"./vendor-react-Co0R0q1H.js";import{T as c}from"./triangle-alert-wbV__oEe.js";const m=e("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]]),d={danger:"text-sys-red",warning:"text-sys-indigo",default:"text-sys-blue"},x={danger:"danger",warning:"warning",default:"primary"},h=o.memo(function({isOpen:e,title:o="Confirm",message:m,confirmLabel:h="Confirm",cancelLabel:f="Cancel",variant:j="default",onConfirm:p,onCancel:y}){return i.jsxs(a,{open:e,onClose:y,size:"sm",children:[i.jsx(s,{icon:i.jsx(c,{className:l("w-5 h-5",d[j])}),title:o,onClose:y}),i.jsx(n,{children:i.jsx("p",{className:"text-sm text-fg-secondary",children:m})}),i.jsxs(r,{children:[i.jsx(t,{color:"muted",onClick:y,className:"flex-1",children:f}),i.jsx(t,{color:x[j],onClick:p,className:"flex-1",children:h})]})]})});export{h as C,m as T};
