import{r as e,t}from"./compiler-runtime-CVnuRdak.js";import{r as n,t as r}from"./button-C1nwPVFQ.js";import{a as i,i as a,m as o,n as s,o as c,r as l,s as u,t as d}from"./dist-OTL8-1C2.js";var f=t(),p=e();function m(e){let t=(0,f.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,p.jsx)(c,{"data-slot":`dialog`,...n}),t[2]=n,t[3]=r),r}function h(e){let t=(0,f.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,p.jsx)(i,{"data-slot":`dialog-portal`,...n}),t[2]=n,t[3]=r),r}function g(e){let t=(0,f.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,p.jsx)(d,{"data-slot":`dialog-close`,className:`font-mono uppercase`,...n}),t[2]=n,t[3]=r),r}function _(e){let t=(0,f.c)(8),r,i;t[0]===e?(r=t[1],i=t[2]):({className:r,...i}=e,t[0]=e,t[1]=r,t[2]=i);let o;t[3]===r?o=t[4]:(o=n(`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`,r),t[3]=r,t[4]=o);let s;return t[5]!==i||t[6]!==o?(s=(0,p.jsx)(a,{"data-slot":`dialog-overlay`,className:o,...i}),t[5]=i,t[6]=o,t[7]=s):s=t[7],s}function v(e){let t=(0,f.c)(15),i,a,c,l;t[0]===e?(i=t[1],a=t[2],c=t[3],l=t[4]):({className:a,children:i,showCloseButton:l,...c}=e,t[0]=e,t[1]=i,t[2]=a,t[3]=c,t[4]=l);let u=l===void 0?!0:l,m;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,p.jsx)(_,{}),t[5]=m):m=t[5];let g;t[6]===a?g=t[7]:(g=n(`fixed top-1/2 left-1/2 z-50 flex w-full max-h-[calc(100dvh-2rem)] max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 flex-col gap-6 overflow-hidden rounded-xl bg-popover p-6 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`,a),t[6]=a,t[7]=g);let v;t[8]===u?v=t[9]:(v=u&&(0,p.jsx)(d,{"data-slot":`dialog-close`,asChild:!0,children:(0,p.jsxs)(r,{variant:`ghost`,className:`absolute top-2 right-2`,size:`icon-sm`,children:[(0,p.jsx)(o,{}),(0,p.jsx)(`span`,{className:`sr-only`,children:`Close`})]})}),t[8]=u,t[9]=v);let y;return t[10]!==i||t[11]!==c||t[12]!==g||t[13]!==v?(y=(0,p.jsxs)(h,{children:[m,(0,p.jsxs)(s,{"data-slot":`dialog-content`,className:g,...c,children:[i,v]})]}),t[10]=i,t[11]=c,t[12]=g,t[13]=v,t[14]=y):y=t[14],y}function y(e){let t=(0,f.c)(8),r,i;t[0]===e?(r=t[1],i=t[2]):({className:r,...i}=e,t[0]=e,t[1]=r,t[2]=i);let a;t[3]===r?a=t[4]:(a=n(`flex shrink-0 flex-col gap-4`,r),t[3]=r,t[4]=a);let o;return t[5]!==i||t[6]!==a?(o=(0,p.jsx)(`div`,{"data-slot":`dialog-header`,className:a,...i}),t[5]=i,t[6]=a,t[7]=o):o=t[7],o}function b(e){let t=(0,f.c)(8),r,i;t[0]===e?(r=t[1],i=t[2]):({className:r,...i}=e,t[0]=e,t[1]=r,t[2]=i);let a;t[3]===r?a=t[4]:(a=n(`-mx-6 min-h-0 flex-1 overflow-y-auto px-6 subtle-scrollbar scroll-fade-mask`,r),t[3]=r,t[4]=a);let o;return t[5]!==i||t[6]!==a?(o=(0,p.jsx)(`div`,{"data-slot":`dialog-body`,className:a,...i}),t[5]=i,t[6]=a,t[7]=o):o=t[7],o}function x(e){let t=(0,f.c)(14),i,a,o,s;t[0]===e?(i=t[1],a=t[2],o=t[3],s=t[4]):({className:a,showCloseButton:s,children:i,...o}=e,t[0]=e,t[1]=i,t[2]=a,t[3]=o,t[4]=s);let c=s===void 0?!1:s,l;t[5]===a?l=t[6]:(l=n(`-mx-6 -mb-6 flex shrink-0 flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 px-6 py-4 sm:flex-row sm:justify-end`,a),t[5]=a,t[6]=l);let u;t[7]===c?u=t[8]:(u=c&&(0,p.jsx)(d,{asChild:!0,children:(0,p.jsx)(r,{variant:`outline`,children:`Close`})}),t[7]=c,t[8]=u);let m;return t[9]!==i||t[10]!==o||t[11]!==l||t[12]!==u?(m=(0,p.jsxs)(`div`,{"data-slot":`dialog-footer`,className:l,...o,children:[i,u]}),t[9]=i,t[10]=o,t[11]=l,t[12]=u,t[13]=m):m=t[13],m}function S(e){let t=(0,f.c)(8),r,i;t[0]===e?(r=t[1],i=t[2]):({className:r,...i}=e,t[0]=e,t[1]=r,t[2]=i);let a;t[3]===r?a=t[4]:(a=n(`font-heading text-base leading-none font-medium`,r),t[3]=r,t[4]=a);let o;return t[5]!==i||t[6]!==a?(o=(0,p.jsx)(u,{"data-slot":`dialog-title`,className:a,...i}),t[5]=i,t[6]=a,t[7]=o):o=t[7],o}function C(e){let t=(0,f.c)(8),r,i;t[0]===e?(r=t[1],i=t[2]):({className:r,...i}=e,t[0]=e,t[1]=r,t[2]=i);let a;t[3]===r?a=t[4]:(a=n(`text-sm text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground`,r),t[3]=r,t[4]=a);let o;return t[5]!==i||t[6]!==a?(o=(0,p.jsx)(l,{"data-slot":`dialog-description`,className:a,...i}),t[5]=i,t[6]=a,t[7]=o):o=t[7],o}export{C as a,S as c,v as i,b as n,x as o,g as r,y as s,m as t};