import{t as e}from"./react-D0JuimcS.js";import{o as t,t as n}from"./utils-Dac180Gn.js";import{Aa as r,Da as i,Ea as a,Fa as o,Ma as s,Na as c,Oa as l,ga as u,ja as d,ka as f}from"./index-8M5AnKdQ.js";e();var p=t();function m({...e}){return(0,p.jsx)(a,{"data-slot":`dialog`,...e})}function h({...e}){return(0,p.jsx)(c,{"data-slot":`dialog-trigger`,...e})}function g({...e}){return(0,p.jsx)(d,{"data-slot":`dialog-portal`,...e})}function _({className:e,...t}){return(0,p.jsx)(r,{"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/50`,e),...t})}function v({className:e,children:t,showCloseButton:r=!0,...a}){return(0,p.jsxs)(g,{"data-slot":`dialog-portal`,children:[(0,p.jsx)(_,{}),(0,p.jsxs)(l,{"data-slot":`dialog-content`,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 outline-none sm:max-w-lg`,e),...a,children:[t,r&&(0,p.jsxs)(i,{"data-slot":`dialog-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:[(0,p.jsx)(o,{}),(0,p.jsx)(`span`,{className:`sr-only`,children:`Close`})]})]})]})}function y({className:e,...t}){return(0,p.jsx)(`div`,{"data-slot":`dialog-header`,className:n(`flex flex-col gap-2 text-center sm:text-left`,e),...t})}function b({className:e,showCloseButton:t=!1,children:r,...a}){return(0,p.jsxs)(`div`,{"data-slot":`dialog-footer`,className:n(`flex flex-col-reverse gap-2 sm:flex-row sm:justify-end`,e),...a,children:[r,t&&(0,p.jsx)(i,{asChild:!0,children:(0,p.jsx)(u,{variant:`outline`,children:`Close`})})]})}function x({className:e,...t}){return(0,p.jsx)(s,{"data-slot":`dialog-title`,className:n(`text-lg leading-none font-semibold`,e),...t})}function S({className:e,...t}){return(0,p.jsx)(f,{"data-slot":`dialog-description`,className:n(`text-muted-foreground text-sm`,e),...t})}export{y as a,b as i,v as n,x as o,S as r,h as s,m as t};