import"./CWj6FrbW.js";import{p as C,f as a,V as R,I,a as M,s as w,n as J,W as K}from"./DBjB5OCe.js";import{c as _,a as e,t as P}from"./BPWik_uC.js";import{i as L}from"./Bt3nURZf.js";import{s as N}from"./D_OexQu7.js";import{p as h,c as r,s as b,r as V}from"./DC36HjL5.js";import{P as O}from"./CHs6cjgL.js";import{D as Q,a as S,b as T,X as U,c as Y}from"./D_MMzKOw.js";import{c as Z}from"./BvgKA-TV.js";import{t as tt}from"./BNKx-7xT.js";function W(...o){return tt(Z(o))}function at(o,t){C(t,!0);let s=h(t,"ref",15,null),i=V(t,["$$slots","$$events","$$legacy","ref","class"]);var n=_(),l=a(n);const d=R(()=>W("fixed inset-0 z-50 bg-black/80  data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t.class));r(l,()=>Q,(f,c)=>{c(f,b({get class(){return I(d)}},()=>i,{get ref(){return s()},set ref(p){s(p)}}))}),e(o,n),M()}var et=P('<!> <span class="sr-only">Close</span>',1),ot=P("<!> <!>",1),st=P("<!> <!>",1);function bt(o,t){C(t,!0);let s=h(t,"ref",15,null),i=h(t,"hideClose",3,!1),n=V(t,["$$slots","$$events","$$legacy","ref","class","portalProps","hideClose","children"]);var l=_(),d=a(l);r(d,()=>rt,(f,c)=>{c(f,b(()=>t.portalProps,{children:(p,nt)=>{var x=st(),y=a(x);r(y,()=>at,(m,u)=>{u(m,{})});var X=w(y,2);const j=R(()=>W("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",t.class));r(X,()=>S,(m,u)=>{u(m,b({get class(){return I(j)}},()=>n,{get ref(){return s()},set ref(g){s(g)},children:(g,lt)=>{var $=ot(),D=a($);N(D,()=>t.children??J);var q=w(D,2);{var A=v=>{var z=_(),B=a(z);r(B,()=>T,(E,F)=>{F(E,{class:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none",children:(G,it)=>{var k=et(),H=a(k);U(H,{class:"size-4"}),K(2),e(G,k)},$$slots:{default:!0}})}),e(v,z)};L(q,v=>{i()||v(A)})}e(g,$)},$$slots:{default:!0}}))}),e(p,x)},$$slots:{default:!0}}))}),e(o,l),M()}const Pt=Y,rt=O;export{bt as D,Pt as R,W as c};
