import{t as e}from"./react-DK-MTtD8.js";import{s as t,t as n}from"./utils-CXcsdpX-.js";import{$a as r,Ja as i,Qa as a,Xa as o,Ya as s,Za as c,eo as l,ro as u,to as d,za as f}from"./index-Ct5uU080.js";e();var p=t();function m({...e}){return(0,p.jsx)(i,{"data-slot":`dialog`,...e})}function h({...e}){return(0,p.jsx)(d,{"data-slot":`dialog-trigger`,...e})}function g({...e}){return(0,p.jsx)(r,{"data-slot":`dialog-portal`,...e})}function _({className:e,...t}){return(0,p.jsx)(a,{"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,...i}){return(0,p.jsxs)(g,{"data-slot":`dialog-portal`,children:[(0,p.jsx)(_,{}),(0,p.jsxs)(o,{"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),...i,children:[t,r&&(0,p.jsxs)(s,{"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)(u,{}),(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,...i}){return(0,p.jsxs)(`div`,{"data-slot":`dialog-footer`,className:n(`flex flex-col-reverse gap-2 sm:flex-row sm:justify-end`,e),...i,children:[r,t&&(0,p.jsx)(s,{asChild:!0,children:(0,p.jsx)(f,{variant:`outline`,children:`Close`})})]})}function x({className:e,...t}){return(0,p.jsx)(l,{"data-slot":`dialog-title`,className:n(`text-lg leading-none font-semibold`,e),...t})}function S({className:e,...t}){return(0,p.jsx)(c,{"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};