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