import{c as e,X as a,bR as s,Y as n,cP as r,B as t}from"./index-ltw-H9qF.js";import{r as o,j as l,c as i}from"./vendor-react-LhvuxEgB.js";import{T as c}from"./triangle-alert-Cj0wW48h.js";const d=e("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]),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"}]]),h={danger:"text-sys-red",warning:"text-sys-indigo",default:"text-sys-blue"},x={danger:"danger",warning:"warning",default:"primary"},p=o.memo(function({isOpen:e,title:o="Confirm",message:d,confirmLabel:m="Confirm",cancelLabel:p="Cancel",variant:f="default",onConfirm:j,onCancel:y}){return l.jsxs(a,{open:e,onClose:y,size:"sm",children:[l.jsx(s,{icon:l.jsx(c,{className:i("w-5 h-5",h[f])}),title:o,onClose:y}),l.jsx(n,{children:l.jsx("p",{className:"text-sm text-fg-secondary",children:d})}),l.jsxs(r,{children:[l.jsx(t,{color:"muted",onClick:y,className:"flex-1",children:p}),l.jsx(t,{color:x[f],onClick:j,className:"flex-1",children:m})]})]})});export{p as C,d as P,m as T};
