import"./DsnmJJEf.js";import{p as _,e as j,f as M,a as f,b as z,o as B,d as o,r,s as m,g as E,t as K,c as T,h as X}from"./BfUaJvxP.js";import{d as q,e as A,s as C,a as v}from"./Bci9YmGs.js";import{i as D}from"./C8yDvkQM.js";import{h as F}from"./DogoSe-2.js";import{g as G}from"./CF1ujZlL.js";import{X as H}from"./C2JxrXH5.js";var I=T('<div class="fixed inset-0 z-50 flex items-center justify-center bg-neutral-900/75 p-4 backdrop-blur-sm sm:p-8"><div class="flex max-h-[90vh] w-full max-w-3xl flex-col rounded-xl border border-border bg-card shadow-2xl"><div class="flex shrink-0 items-center justify-between border-b border-border px-6 py-4"><h2 class="text-lg font-semibold text-foreground"> </h2> <button type="button" class="inline-flex h-8 w-8 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-accent hover:text-foreground"><!></button></div> <div class="prose prose-sm dark:prose-invert max-w-none overflow-y-auto px-6 py-5"></div></div></div>');function S(u,t){_(t,!0);const h=X(()=>t.content?G.parse(t.content,{async:!1}):"");function b(e){e.target===e.currentTarget&&t.onclose()}function x(e){e.key==="Escape"&&t.onclose()}var d=j();A("keydown",B,function(...e){(t.open?x:void 0)?.apply(this,e)});var p=M(d);{var g=e=>{var a=I(),l=o(a),n=o(l),s=o(n),y=o(s,!0);r(s);var i=m(s,2),w=o(i);H(w,{size:16}),r(i),r(n);var c=m(n,2);F(c,()=>E(h),!0),r(c),r(l),r(a),K(()=>C(y,t.title)),v("click",a,b),v("click",i,function(...k){t.onclose?.apply(this,k)}),f(e,a)};D(p,e=>{t.open&&e(g)})}f(u,d),z()}q(["click"]);export{S as M};
