import{jsxs as n,jsx as s}from"react/jsx-runtime";import*as i from"react";import*as t from"@radix-ui/react-alert-dialog";import{c as l}from"./utils-CMbmcP35.js";import{b as r}from"./button-BvFBRYHq.js";const w=t.Root,b=t.Trigger,m=t.Portal,d=i.forwardRef(({className:a,...e},o)=>s(t.Overlay,{className:l("fixed inset-0 z-50 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),...e,ref:o}));d.displayName=t.Overlay.displayName;const c=i.forwardRef(({className:a,...e},o)=>n(m,{children:[s(d,{}),s(t.Content,{ref:o,className:l("fixed left-[50%] top-[50%] z-50 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),...e})]}));c.displayName=t.Content.displayName;const f=({className:a,...e})=>s("div",{className:l("flex flex-col space-y-2 text-center sm:text-left",a),...e});f.displayName="AlertDialogHeader";const p=({className:a,...e})=>s("div",{className:l("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",a),...e});p.displayName="AlertDialogFooter";const g=i.forwardRef(({className:a,...e},o)=>s(t.Title,{ref:o,className:l("text-lg font-semibold",a),...e}));g.displayName=t.Title.displayName;const N=i.forwardRef(({className:a,...e},o)=>s(t.Description,{ref:o,className:l("text-sm text-muted-foreground",a),...e}));N.displayName=t.Description.displayName;const y=i.forwardRef(({className:a,...e},o)=>s(t.Action,{ref:o,className:l(r(),a),...e}));y.displayName=t.Action.displayName;const x=i.forwardRef(({className:a,...e},o)=>s(t.Cancel,{ref:o,className:l(r({variant:"outline"}),"mt-2 sm:mt-0",a),...e}));x.displayName=t.Cancel.displayName;export{w as A,c as a,f as b,g as c,N as d,p as e,x as f,y as g,b as h};
