1import{d as I,a as u,p as Q,f as R}from"./-P7bpPeZ.js";import{p as X,Z as g,a as Z,X as j,f as r,a0 as x,c as U,r as V,s as J,x as le}from"./CIXmNaX9.js";import{s as F}from"./BmPXr1IH.js";import{p as o,r as W,s as A}from"./D0IjzFtJ.js";import{n as S,b as l,a as Y,m as E,P as ce,F as ue,E as ie,D as de,k as fe,S as L}from"./XIDpuuf2.js";import{c as pe,d as ve,e as ge,s as _e}from"./GmOmwtQF.js";import{i as N}from"./PDx6ETWq.js";import{a as $}from"./BBbzg8JE.js";function Me(_,e){X(e,!0);let i=o(e,"open",15,!1),d=o(e,"onOpenChange",3,S);pe({variant:l.with(()=>"dialog"),open:l.with(()=>i(),f=>{i(f),d()(f)})});var a=I(),c=g(a);F(c,()=>e.children??j),u(_,a),Z()}var he=R("<button><!></button>");function Ke(_,e){const i=Q();X(e,!0);let d=o(e,"id",19,()=>Y(i)),a=o(e,"ref",15,null),c=o(e,"disabled",3,!1),f=W(e,["$$slots","$$events","$$legacy","children","child","id","ref","disabled"]);const M=ve({variant:l.with(()=>"close"),id:l.with(()=>d()),ref:l.with(()=>a(),n=>a(n)),disabled:l.with(()=>!!c())}),P=x(()=>E(f,M.props));var y=I(),K=g(y);{var D=n=>{var t=I(),s=g(t);F(s,()=>e.child,()=>({props:r(P)})),u(n,t)},k=n=>{var t=he();$(t,()=>({...r(P)}));var s=U(t);F(s,()=>e.children??j),V(t),u(n,t)};N(K,n=>{e.child?n(D):n(k,!1)})}u(_,y),Z()}var me=R("<!> <!>",1),be=R("<!> <div><!></div>",1);function ke(_,e){const i=Q();X(e,!0);let d=o(e,"id",19,()=>Y(i)),a=o(e,"ref",15,null),c=o(e,"forceMount",3,!1),f=o(e,"onCloseAutoFocus",3,S),M=o(e,"onOpenAutoFocus",3,S),P=o(e,"onEscapeKeydown",3,S),y=o(e,"onInteractOutside",3,S),K=o(e,"trapFocus",3,!0),D=o(e,"preventScroll",3,!0),k=o(e,"restoreScrollDelay",3,null),n=W(e,["$$slots","$$events","$$legacy","id","children","child","ref","forceMount","onCloseAutoFocus","onOpenAutoFocus","onEscapeKeydown","onInteractOutside","trapFocus","preventScroll","restoreScrollDelay"]);const t=ge({id:l.with(()=>d()),ref:l.with(()=>a(),z=>a(z))}),s=x(()=>E(n,t.props)),ee=x(()=>t.root.opts.open.current||c());ce(_,A(()=>r(s),{get forceMount(){return c()},get present(){return r(ee)},get ref(){return t.opts.ref},presence:te=>{const oe=x(()=>_e({forceMount:c(),present:t.root.opts.open.current,trapFocus:K(),open:t.root.opts.open.current}));ue(te,{get ref(){return t.opts.ref},loop:!0,get trapFocus(){return r(oe)},get onOpenAutoFocus(){return M()},get id(){return d()},onCloseAutoFocus:w=>{var p;f()(w),!w.defaultPrevented&&((p=t.root.triggerNode)==null||p.focus())},focusScope:(w,p)=>{let G=()=>p==null?void 0:p().props;ie(w,A(()=>r(s),{get enabled(){return t.root.opts.open.current},get ref(){return t.opts.ref},onEscapeKeydown:C=>{P()(C),!C.defaultPrevented&&t.root.handleClose()},children:(C,Fe)=>{de(C,A(()=>r(s),{get ref(){return t.opts.ref},get enabled(){return t.root.opts.open.current},onInteractOutside:O=>{y()(O),!O.defaultPrevented&&t.root.handleClose()},children:(O,Pe)=>{fe(O,A(()=>r(s),{get ref(){return t.opts.ref},get enabled(){return t.root.opts.open.current},children:(re,ye)=>{var H=I(),ne=g(H);{var se=v=>{var h=me(),m=g(h);{var b=B=>{L(B,{get preventScroll(){return D()},get restoreScrollDelay(){return k()}})};N(m,B=>{t.root.opts.open.current&&B(b)})}var T=J(m,2),q=le(()=>({props:E(r(s),G()),...t.snippetProps}));F(T,()=>e.child,()=>r(q)),u(v,h)},ae=v=>{var h=be(),m=g(h);L(m,{get preventScroll(){return D()}});var b=J(m,2);$(b,q=>({...q}),[()=>E(r(s),G())]);var T=U(b);F(T,()=>e.children??j),V(b),u(v,h)};N(ne,v=>{e.child?v(se):v(ae,!1)})}u(re,H)},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{focusScope:!0}})},$$slots:{presence:!0}})),Z()}export{ke as D,Ke as a,Me as b};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.