import{i as e,k as t,r as n,st as r}from"./branding-ClCX8iZg.js";import{t as i}from"./x-BSilxHOf.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-CAsHHP5h.js";r();var p=e();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,...n}){return(0,p.jsx)(o,{"data-slot":`dialog-overlay`,className:t(`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),...n})}function v({className:e,children:r,showCloseButton:o=!0,...s}){return(0,p.jsxs)(g,{children:[(0,p.jsx)(_,{}),(0,p.jsxs)(a,{"data-slot":`dialog-content`,className:t(`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-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`,e),...s,children:[r,o&&(0,p.jsxs)(d,{"data-slot":`dialog-close`,render:(0,p.jsx)(n,{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,...n}){return(0,p.jsx)(`div`,{"data-slot":`dialog-header`,className:t(`flex flex-col gap-2`,e),...n})}function b({className:e,showCloseButton:r=!1,children:i,...a}){return(0,p.jsxs)(`div`,{"data-slot":`dialog-footer`,className:t(`-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 sm:flex-row sm:justify-end`,e),...a,children:[i,r&&(0,p.jsx)(d,{render:(0,p.jsx)(n,{variant:`outline`}),children:`Close`})]})}function x({className:e,...n}){return(0,p.jsx)(c,{"data-slot":`dialog-title`,className:t(`text-base leading-none font-medium`,e),...n})}function S({className:e,...n}){return(0,p.jsx)(l,{"data-slot":`dialog-description`,className:t(`text-sm text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground`,e),...n})}export{y as a,b as i,v as n,x as o,S as r,h as s,m as t};