import{K as e,Nt as t,Zt as n,_t as r}from"./branding-B7dW-jsD.js";import{t as i}from"./x-D-b1r1Zq.js";import{a,c as o,i as s,n as c,o as l,r as u,s as d,t as f}from"./DialogTrigger-CZQGcnjs.js";n();var p=t();function m({...e}){return(0,p.jsx)(u,{"data-slot":`dialog`,...e})}function h({...e}){return(0,p.jsx)(f,{"data-slot":`dialog-trigger`,...e})}function g({...e}){return(0,p.jsx)(s,{"data-slot":`dialog-portal`,...e})}function _({className:e,...t}){return(0,p.jsx)(o,{"data-slot":`dialog-overlay`,className:r(`fixed inset-0 isolate z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0`,e),...t})}function v({className:t,children:n,showCloseButton:o=!0,...s}){return(0,p.jsxs)(g,{children:[(0,p.jsx)(_,{}),(0,p.jsxs)(a,{"data-slot":`dialog-content`,className:r(`fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-[var(--radius-xl)] bg-popover p-4 text-sm text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95`,t),...s,children:[n,o&&(0,p.jsxs)(d,{"data-slot":`dialog-close`,render:(0,p.jsx)(e,{variant:`ghost`,className:`absolute top-2 right-2`,size:`icon-sm`}),children:[(0,p.jsx)(i,{}),(0,p.jsx)(`span`,{className:`sr-only`,children:`Close`})]})]})]})}function y({className:e,...t}){return(0,p.jsx)(`div`,{"data-slot":`dialog-header`,className:r(`flex flex-col gap-2`,e),...t})}function b({className:t,showCloseButton:n=!1,children:i,...a}){return(0,p.jsxs)(`div`,{"data-slot":`dialog-footer`,className:r(`-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-[var(--radius-xl)] border-t bg-muted/50 p-4 sm:flex-row sm:justify-end`,t),...a,children:[i,n&&(0,p.jsx)(d,{render:(0,p.jsx)(e,{variant:`outline`}),children:`Close`})]})}function x({className:e,...t}){return(0,p.jsx)(c,{"data-slot":`dialog-title`,className:r(`text-base leading-none font-medium`,e),...t})}function S({className:e,...t}){return(0,p.jsx)(l,{"data-slot":`dialog-description`,className:r(`text-sm text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground`,e),...t})}export{y as a,b as i,v as n,x as o,S as r,h as s,m as t};