import{jsx as e,jsxs as s}from"react/jsx-runtime";import*as o from"@radix-ui/react-dialog";import{XIcon as l}from"lucide-react";import{c as n}from"./utils-CMbmcP35.js";function u({...t}){return e(o.Root,{"data-slot":"dialog",...t})}function r({...t}){return e(o.Portal,{"data-slot":"dialog-portal",...t})}function d({className:t,...a}){return e(o.Overlay,{"data-slot":"dialog-overlay",className:n("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80",t),...a})}function m({className:t,children:a,...i}){return s(r,{"data-slot":"dialog-portal",children:[e(d,{}),s(o.Content,{"data-slot":"dialog-content","aria-describedby":void 0,className:n("bg-background 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 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",t),...i,children:[a,s(o.Close,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[e(l,{}),e("span",{className:"sr-only",children:"Close"})]})]})]})}function p({className:t,...a}){return e("div",{"data-slot":"dialog-header",className:n("flex flex-col gap-2 text-center sm:text-left",t),...a})}function x({className:t,...a}){return e("div",{"data-slot":"dialog-footer",className:n("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",t),...a})}function v({className:t,...a}){return e(o.Title,{"data-slot":"dialog-title",className:n("text-lg leading-none font-semibold",t),...a})}function b({className:t,...a}){return e(o.Description,{"data-slot":"dialog-description",className:n("text-muted-foreground text-sm",t),...a})}export{u as D,m as a,p as b,v as c,b as d,x as e};
