import{bx as R,r,j as e,by as z,bz as d,bA as i,bB as n,bC as m,bD as c,bE as x,as as T,bn as E}from"./vendor-laZsiqLO.js";import{c as o}from"./utils-RgT4yCq8.js";import{b as f}from"./button-B8f8jW4H.js";const F=R,H=z,p=r.forwardRef(({className:a,...s},t)=>e.jsx(x,{className:o("fixed inset-0 z-[200] bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",a),...s,ref:t}));p.displayName=x.displayName;const g=r.forwardRef(({className:a,...s},t)=>e.jsxs(H,{children:[e.jsx(p,{}),e.jsx(d,{ref:t,className:o("fixed left-[50%] top-[50%] z-[200] grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",a),...s})]}));g.displayName=d.displayName;const u=({className:a,...s})=>e.jsx("div",{className:o("flex flex-col space-y-2 text-center sm:text-left",a),...s});u.displayName="AlertDialogHeader";const I=({className:a,...s})=>e.jsx("div",{className:o("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",a),...s});I.displayName="AlertDialogFooter";const b=r.forwardRef(({className:a,...s},t)=>e.jsx(i,{ref:t,className:o("text-lg font-semibold",a),...s}));b.displayName=i.displayName;const N=r.forwardRef(({className:a,...s},t)=>e.jsx(n,{ref:t,className:o("text-sm text-muted-foreground",a),...s}));N.displayName=n.displayName;const y=r.forwardRef(({className:a,...s},t)=>e.jsx(c,{ref:t,className:o(f(),a),...s}));y.displayName=c.displayName;const h=r.forwardRef(({className:a,...s},t)=>e.jsx(m,{ref:t,className:o(f({variant:"outline"}),"mt-2 sm:mt-0",a),...s}));h.displayName=m.displayName;function M({open:a,onOpenChange:s,onConfirm:t,title:j="Are you sure?",description:w="This action cannot be undone.",confirmText:v="Continue",cancelText:A="Cancel",variant:D="default",icon:C}){const l=D==="destructive",k=C||(l?T:E);return e.jsx(F,{open:a,onOpenChange:s,children:e.jsxs(g,{className:"sm:max-w-[425px] p-0 overflow-hidden",children:[e.jsx("div",{className:"p-6",children:e.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 sm:gap-5",children:[e.jsx("div",{className:o("mx-auto flex h-12 w-12 shrink-0 items-center justify-center rounded-full sm:mx-0 sm:h-10 sm:w-10",l?"bg-red-100 dark:bg-red-500/20":"bg-primary/10"),children:e.jsx(k,{className:o("h-6 w-6 sm:h-5 sm:w-5",l?"text-red-600 dark:text-red-500":"text-primary")})}),e.jsxs(u,{className:"text-center sm:text-start space-y-1.5",children:[e.jsx(b,{className:"text-lg font-semibold tracking-tight",children:j}),e.jsx(N,{className:"text-sm text-muted-foreground leading-relaxed",children:w})]})]})}),e.jsxs("div",{className:"bg-muted/50 px-6 py-4 flex flex-col-reverse sm:flex-row sm:justify-end gap-2 border-t",children:[e.jsx(h,{className:"mt-0 border-muted-foreground/20 hover:bg-muted",children:A}),e.jsx(y,{onClick:t,className:o("shadow-sm transition-colors",l?"bg-red-600 text-white hover:bg-red-700 dark:bg-red-600 dark:hover:bg-red-700":"bg-primary text-primary-foreground hover:bg-primary/90"),children:v})]})]})})}export{F as A,M as C,g as a,u as b,b as c,N as d,I as e,h as f,y as g};
