import{B as e,E as t,F as n,H as r,It as i,Mt as a,U as o,V as s,W as c,Y as l,Z as u,at as d,ft as f,j as p,jt as m,mt as h,ot as g,p as _,pt as v,s as y,st as b,tt as x}from"./BA99CCI5.js";import"./xihTtKlq.js";import"./DGo8yE5j.js";import{a as S,r as C,t as w}from"./DvT-Y1N62.js";import{n as T,t as E}from"./C73dJ-MR2.js";var D=c(`<div class="fixed inset-0 z-[100] overflow-y-auto bg-black/50 p-4 backdrop-blur-sm sm:p-6" role="dialog" aria-modal="true" tabindex="-1"><div class="flex min-h-full w-full items-start justify-center sm:items-center"><div><div class="flex flex-shrink-0 items-center justify-between border-b border-neutral-300 px-6 py-4 dark:border-neutral-700/60"><h2 class="text-lg font-semibold text-neutral-900 dark:text-neutral-50"> </h2> <button type="button" class="rounded-lg p-1 text-neutral-500 transition-colors hover:bg-neutral-100 hover:text-neutral-700 dark:text-neutral-400 dark:hover:bg-neutral-800 dark:hover:text-neutral-200"><!></button></div> <div class="flex-1 overflow-auto px-6 py-4"><!></div></div></div></div>`);function O(c,O){a(O,!1);let k=y(O,`open`,12,!1),A=y(O,`header`,8,`Information`),j=y(O,`size`,8,`md`),M={sm:`max-w-sm`,md:`max-w-lg`,lg:`max-w-2xl`,xl:`max-w-4xl`,"2xl":`max-w-6xl`};function N(){k(!1)}function P(e){e.key===`Escape`&&k()&&N()}d(()=>u(k()),()=>{typeof window<`u`&&(k()?window.addEventListener(`keydown`,P):window.removeEventListener(`keydown`,P))}),g();var F=o(),I=v(F),L=e=>{var a=D(),o=f(a),c=f(o),d=f(c),m=f(d),g=f(m,!0);i(m);var v=h(m,2),y=f(v);S(y,{size:20}),i(v),i(d);var k=h(d,2),P=f(k);n(P,O,`default`,{},null),i(k),i(c),i(o),i(a),b(()=>{t(c,1,`relative my-4 flex max-h-[calc(100svh-2rem)] w-full ${u(j()),x(()=>M[j()])??``} flex-col rounded-xl border border-neutral-300 bg-white shadow-xl sm:my-0 dark:border-neutral-700/60 dark:bg-neutral-900`),s(g,A())}),l(`click`,v,N),p(1,c,()=>C,()=>({duration:170,start:.97,opacity:.5,easing:T})),p(2,c,()=>C,()=>({duration:120,start:.97,opacity:.5,easing:E})),l(`click`,o,_(N)),p(1,a,()=>w,()=>({duration:140})),p(2,a,()=>w,()=>({duration:110})),r(e,a)};e(I,e=>{k()&&e(L)}),r(c,F),m()}export{O as t};