import{n as e,t}from"./compiler-runtime-BUESly0A.js";import{t as n}from"./clsx-CIqcJ5es.js";import{S as r,i,m as a,o,r as s}from"./kbd-DHJbAzkH.js";var c=t(),l=e();function u(e){let t=(0,c.c)(16),u,d,f,p,m;t[0]===e?(u=t[1],d=t[2],f=t[3],p=t[4],m=t[5]):({title:m,hint:f,children:u,className:d,...p}=e,t[0]=e,t[1]=u,t[2]=d,t[3]=f,t[4]=p,t[5]=m);let h=typeof d==`string`?d:void 0,g;t[6]===h?g=t[7]:(g=n(`fixed inset-0 z-50 flex items-center justify-center bg-overlay`,h),t[6]=h,t[7]=g);let _;t[8]!==u||t[9]!==f||t[10]!==m?(_=(0,l.jsx)(s,{className:`w-full max-w-2xl max-h-[80vh] flex flex-col rounded-sm border border-hairline bg-bg`,children:(0,l.jsx)(o,{className:`outline-none flex flex-col min-h-0`,children:e=>{let{close:t}=e;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(`div`,{className:`flex items-baseline gap-3 border-b border-hairline px-5 pt-4 pb-3`,children:[m&&(0,l.jsx)(a,{slot:`title`,className:`m-0 font-serif text-2xl font-normal tracking-tight`,children:m}),f&&(0,l.jsx)(`p`,{className:`m-0 font-mono text-xs text-mute`,children:f}),(0,l.jsx)(`button`,{type:`button`,"aria-label":`Close`,onClick:t,className:`ml-auto inline-flex items-center justify-center w-7 h-7 rounded-sm text-mute hover:text-ink hover:bg-bg-card cursor-pointer`,children:(0,l.jsx)(r,{size:16,"aria-hidden":`true`})})]}),(0,l.jsx)(`div`,{className:`overflow-y-auto px-5 pt-4 pb-5`,children:u})]})}})}),t[8]=u,t[9]=f,t[10]=m,t[11]=_):_=t[11];let v;return t[12]!==p||t[13]!==g||t[14]!==_?(v=(0,l.jsx)(i,{isDismissable:!0,className:g,...p,children:_}),t[12]=p,t[13]=g,t[14]=_,t[15]=v):v=t[15],v}export{u as t};