(function(B,F){typeof exports=="object"&&typeof module<"u"?F(exports,require("react"),require("lucide-react")):typeof define=="function"&&define.amd?define(["exports","react","lucide-react"],F):(B=typeof globalThis<"u"?globalThis:B||self,F(B["@jean_b/rc-dialog"]={},B.React,B.lucideReact))})(this,function(B,F,Hr){"use strict";function Gr(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const a=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,a.get?a:{enumerable:!0,get:()=>e[n]})}}return r.default=e,Object.freeze(r)}const J=Gr(F);var je={exports:{}},ue={};/** * @license React * react-jsx-runtime.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Qe;function Kr(){if(Qe)return ue;Qe=1;var e=F,r=Symbol.for("react.element"),n=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function l(d,f,h){var u,p={},O=null,S=null;h!==void 0&&(O=""+h),f.key!==void 0&&(O=""+f.key),f.ref!==void 0&&(S=f.ref);for(u in f)a.call(f,u)&&!s.hasOwnProperty(u)&&(p[u]=f[u]);if(d&&d.defaultProps)for(u in f=d.defaultProps,f)p[u]===void 0&&(p[u]=f[u]);return{$$typeof:r,type:d,key:O,ref:S,props:p,_owner:i.current}}return ue.Fragment=n,ue.jsx=l,ue.jsxs=l,ue}var le={};/** * @license React * react-jsx-runtime.development.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var er;function Xr(){return er||(er=1,process.env.NODE_ENV!=="production"&&function(){var e=F,r=Symbol.for("react.element"),n=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),d=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),S=Symbol.for("react.offscreen"),R=Symbol.iterator,v="@@iterator";function T(t){if(t===null||typeof t!="object")return null;var o=R&&t[R]||t[v];return typeof o=="function"?o:null}var E=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function g(t){{for(var o=arguments.length,c=new Array(o>1?o-1:0),m=1;m=1&&j>=0&&y[P]!==L[j];)j--;for(;P>=1&&j>=0;P--,j--)if(y[P]!==L[j]){if(P!==1||j!==1)do if(P--,j--,j<0||y[P]!==L[j]){var V=` `+y[P].replace(" at new "," at ");return t.displayName&&V.includes("")&&(V=V.replace("",t.displayName)),typeof t=="function"&&Te.set(t,V),V}while(P>=1&&j>=0);break}}}finally{qe=!1,Be.current=_,un(),Error.prepareStackTrace=C}var ce=t?t.displayName||t.name:"",te=ce?Oe(ce):"";return typeof t=="function"&&Te.set(t,te),te}function fn(t,o,c){return Dr(t,!1)}function dn(t){var o=t.prototype;return!!(o&&o.isReactComponent)}function Pe(t,o,c){if(t==null)return"";if(typeof t=="function")return Dr(t,dn(t));if(typeof t=="string")return Oe(t);switch(t){case h:return Oe("Suspense");case u:return Oe("SuspenseList")}if(typeof t=="object")switch(t.$$typeof){case f:return fn(t.render);case p:return Pe(t.type,o,c);case O:{var m=t,C=m._payload,_=m._init;try{return Pe(_(C),o,c)}catch{}}}return""}var ge=Object.prototype.hasOwnProperty,Fr={},$r=E.ReactDebugCurrentFrame;function Ae(t){if(t){var o=t._owner,c=Pe(t.type,t._source,o?o.type:null);$r.setExtraStackFrame(c)}else $r.setExtraStackFrame(null)}function pn(t,o,c,m,C){{var _=Function.call.bind(ge);for(var b in t)if(_(t,b)){var y=void 0;try{if(typeof t[b]!="function"){var L=Error((m||"React class")+": "+c+" type `"+b+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof t[b]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw L.name="Invariant Violation",L}y=t[b](o,b,m,c,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(P){y=P}y&&!(y instanceof Error)&&(Ae(C),g("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",m||"React class",c,b,typeof y),Ae(null)),y instanceof Error&&!(y.message in Fr)&&(Fr[y.message]=!0,Ae(C),g("Failed %s type: %s",c,y.message),Ae(null))}}}var hn=Array.isArray;function He(t){return hn(t)}function mn(t){{var o=typeof Symbol=="function"&&Symbol.toStringTag,c=o&&t[Symbol.toStringTag]||t.constructor.name||"Object";return c}}function vn(t){try{return Ir(t),!1}catch{return!0}}function Ir(t){return""+t}function Mr(t){if(vn(t))return g("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",mn(t)),Ir(t)}var ye=E.ReactCurrentOwner,gn={key:!0,ref:!0,__self:!0,__source:!0},Lr,Nr,Ge;Ge={};function yn(t){if(ge.call(t,"ref")){var o=Object.getOwnPropertyDescriptor(t,"ref").get;if(o&&o.isReactWarning)return!1}return t.ref!==void 0}function bn(t){if(ge.call(t,"key")){var o=Object.getOwnPropertyDescriptor(t,"key").get;if(o&&o.isReactWarning)return!1}return t.key!==void 0}function xn(t,o){if(typeof t.ref=="string"&&ye.current&&o&&ye.current.stateNode!==o){var c=X(ye.current.type);Ge[c]||(g('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',X(ye.current.type),t.ref),Ge[c]=!0)}}function wn(t,o){{var c=function(){Lr||(Lr=!0,g("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",o))};c.isReactWarning=!0,Object.defineProperty(t,"key",{get:c,configurable:!0})}}function En(t,o){{var c=function(){Nr||(Nr=!0,g("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",o))};c.isReactWarning=!0,Object.defineProperty(t,"ref",{get:c,configurable:!0})}}var kn=function(t,o,c,m,C,_,b){var y={$$typeof:r,type:t,key:o,ref:c,props:b,_owner:_};return y._store={},Object.defineProperty(y._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(y,"_self",{configurable:!1,enumerable:!1,writable:!1,value:m}),Object.defineProperty(y,"_source",{configurable:!1,enumerable:!1,writable:!1,value:C}),Object.freeze&&(Object.freeze(y.props),Object.freeze(y)),y};function Cn(t,o,c,m,C){{var _,b={},y=null,L=null;c!==void 0&&(Mr(c),y=""+c),bn(o)&&(Mr(o.key),y=""+o.key),yn(o)&&(L=o.ref,xn(o,C));for(_ in o)ge.call(o,_)&&!gn.hasOwnProperty(_)&&(b[_]=o[_]);if(t&&t.defaultProps){var P=t.defaultProps;for(_ in P)b[_]===void 0&&(b[_]=P[_])}if(y||L){var j=typeof t=="function"?t.displayName||t.name||"Unknown":t;y&&wn(b,j),L&&En(b,j)}return kn(t,y,L,C,m,ye.current,b)}}var Ke=E.ReactCurrentOwner,Wr=E.ReactDebugCurrentFrame;function se(t){if(t){var o=t._owner,c=Pe(t.type,t._source,o?o.type:null);Wr.setExtraStackFrame(c)}else Wr.setExtraStackFrame(null)}var Xe;Xe=!1;function Je(t){return typeof t=="object"&&t!==null&&t.$$typeof===r}function Ur(){{if(Ke.current){var t=X(Ke.current.type);if(t)return` Check the render method of \``+t+"`."}return""}}function Sn(t){return""}var Yr={};function Rn(t){{var o=Ur();if(!o){var c=typeof t=="string"?t:t.displayName||t.name;c&&(o=` Check the top-level render call using <`+c+">.")}return o}}function Vr(t,o){{if(!t._store||t._store.validated||t.key!=null)return;t._store.validated=!0;var c=Rn(o);if(Yr[c])return;Yr[c]=!0;var m="";t&&t._owner&&t._owner!==Ke.current&&(m=" It was passed a child from "+X(t._owner.type)+"."),se(t),g('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',c,m),se(null)}}function Br(t,o){{if(typeof t!="object")return;if(He(t))for(var c=0;c",y=" Did you accidentally export a JSX literal instead of a component?"):P=typeof t,g("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",P,y)}var j=Cn(t,o,c,C,_);if(j==null)return j;if(b){var V=o.children;if(V!==void 0)if(m)if(He(V)){for(var ce=0;ce0?"{key: someKey, "+U.join(": ..., ")+": ...}":"{key: someKey}";if(!zr[te+Ze]){var Dn=U.length>0?"{"+U.join(": ..., ")+": ...}":"{}";g(`A props object containing a "key" prop is being spread into JSX: let props = %s; <%s {...props} /> React keys must be passed directly to JSX without using spread: let props = %s; <%s key={someKey} {...props} />`,Ze,te,Dn,te),zr[te+Ze]=!0}}return t===a?On(j):_n(j),j}}function Tn(t,o,c){return qr(t,o,c,!0)}function Pn(t,o,c){return qr(t,o,c,!1)}var An=Pn,jn=Tn;le.Fragment=a,le.jsx=An,le.jsxs=jn}()),le}process.env.NODE_ENV==="production"?je.exports=Kr():je.exports=Xr();var z=je.exports;const De=(e,r)=>{r(!e)};function Fe(){return Fe=Object.assign?Object.assign.bind():function(e){for(var r=1;r0?$(ae,--N):0,ne--,A===10&&(ne=1,Ee--),A}function Y(){return A=N2||he(A)>3?"":" "}function pt(e,r){for(;--r&&Y()&&!(A<48||A>102||A>57&&A<65||A>70&&A<97););return pe(e,Ce()+(r<6&&H()==32&&Y()==32))}function Ne(e){for(;Y();)switch(A){case e:return N;case 34:case 39:e!==34&&e!==39&&Ne(A);break;case 40:e===41&&Ne(e);break;case 92:Y();break}return N}function ht(e,r){for(;Y()&&e+A!==57;)if(e+A===84&&H()===47)break;return"/*"+pe(r,N-1)+"*"+xe(e===47?e:Y())}function mt(e){for(;!he(H());)Y();return pe(e,N)}function vt(e){return sr(Re("",null,null,null,[""],e=or(e),0,[0],e))}function Re(e,r,n,a,i,s,l,d,f){for(var h=0,u=0,p=l,O=0,S=0,R=0,v=1,T=1,E=1,g=0,D="",Z=i,W=s,M=a,k=D;T;)switch(R=g,g=Y()){case 40:if(R!=108&&$(k,p-1)==58){Me(k+=w(Se(g),"&","&\f"),"&\f")!=-1&&(E=-1);break}case 34:case 39:case 91:k+=Se(g);break;case 9:case 10:case 13:case 32:k+=dt(R);break;case 92:k+=pt(Ce()-1,7);continue;case 47:switch(H()){case 42:case 47:we(gt(ht(Y(),Ce()),r,n),f);break;default:k+="/"}break;case 123*v:d[h++]=q(k)*E;case 125*v:case 59:case 0:switch(g){case 0:case 125:T=0;case 59+u:E==-1&&(k=w(k,/\f/g,"")),S>0&&q(k)-p&&we(S>32?ur(k+";",a,n,p-1):ur(w(k," ","")+";",a,n,p-2),f);break;case 59:k+=";";default:if(we(M=cr(k,r,n,h,u,i,d,D,Z=[],W=[],p),s),g===123)if(u===0)Re(k,r,M,M,Z,s,p,d,W);else switch(O===99&&$(k,3)===110?100:O){case 100:case 108:case 109:case 115:Re(e,M,M,a&&we(cr(e,M,M,0,0,i,d,D,i,Z=[],p),W),i,W,p,d,a?Z:W);break;default:Re(k,M,M,M,[""],W,0,d,W)}}h=u=S=0,v=E=1,D=k="",p=l;break;case 58:p=1+q(k),S=R;default:if(v<1){if(g==123)--v;else if(g==125&&v++==0&&ft()==125)continue}switch(k+=xe(g),g*v){case 38:E=u>0?1:(k+="\f",-1);break;case 44:d[h++]=(q(k)-1)*E,E=1;break;case 64:H()===45&&(k+=Se(Y())),O=H(),u=p=q(D=k+=mt(Ce())),g++;break;case 45:R===45&&q(k)==2&&(v=0)}}return s}function cr(e,r,n,a,i,s,l,d,f,h,u){for(var p=i-1,O=i===0?s:[""],S=Le(O),R=0,v=0,T=0;R0?O[E]+" "+g:w(g,/&\f/g,O[E])))&&(f[T++]=D);return ke(e,r,n,i===0?$e:d,f,h,u)}function gt(e,r,n){return ke(e,r,n,tr,xe(lt()),fe(e,2,-2),0)}function ur(e,r,n,a){return ke(e,r,n,Ie,fe(e,0,a),fe(e,a+1,-1),a)}function ie(e,r){for(var n="",a=Le(e),i=0;i6)switch($(e,r+1)){case 109:if($(e,r+4)!==45)break;case 102:return w(e,/(.+:)(.+)-([^]+)/,"$1"+x+"$2-$3$1"+be+($(e,r+3)==108?"$3":"$2-$3"))+e;case 115:return~Me(e,"stretch")?fr(w(e,"stretch","fill-available"),r)+e:e}break;case 4949:if($(e,r+1)!==115)break;case 6444:switch($(e,q(e)-3-(~Me(e,"!important")&&10))){case 107:return w(e,":",":"+x)+e;case 101:return w(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+x+($(e,14)===45?"inline-":"")+"box$3$1"+x+"$2$3$1"+I+"$2box$3")+e}break;case 5936:switch($(e,r+11)){case 114:return x+e+I+w(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return x+e+I+w(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return x+e+I+w(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return x+e+I+e+e}return e}var Rt=function(r,n,a,i){if(r.length>-1&&!r.return)switch(r.type){case Ie:r.return=fr(r.value,r.length);break;case nr:return ie([de(r,{value:w(r.value,"@","@"+x)})],i);case $e:if(r.length)return ut(r.props,function(s){switch(ct(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ie([de(r,{props:[w(s,/:(read-\w+)/,":"+be+"$1")]})],i);case"::placeholder":return ie([de(r,{props:[w(s,/:(plac\w+)/,":"+x+"input-$1")]}),de(r,{props:[w(s,/:(plac\w+)/,":"+be+"$1")]}),de(r,{props:[w(s,/:(plac\w+)/,I+"input-$1")]})],i)}return""})}},_t=[Rt],dr=function(r){var n=r.key;if(n==="css"){var a=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(a,function(v){var T=v.getAttribute("data-emotion");T.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""))})}var i=r.stylisPlugins||_t,s={},l,d=[];l=r.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(v){for(var T=v.getAttribute("data-emotion").split(" "),E=1;E=4;++a,i-=4)n=e.charCodeAt(a)&255|(e.charCodeAt(++a)&255)<<8|(e.charCodeAt(++a)&255)<<16|(e.charCodeAt(++a)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,r=(n&65535)*1540483477+((n>>>16)*59797<<16)^(r&65535)*1540483477+((r>>>16)*59797<<16);switch(i){case 3:r^=(e.charCodeAt(a+2)&255)<<16;case 2:r^=(e.charCodeAt(a+1)&255)<<8;case 1:r^=e.charCodeAt(a)&255,r=(r&65535)*1540483477+((r>>>16)*59797<<16)}return r^=r>>>13,r=(r&65535)*1540483477+((r>>>16)*59797<<16),((r^r>>>15)>>>0).toString(36)}var Pt={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},At=!1,jt=/[A-Z]|^ms/g,Dt=/_EMO_([^_]+?)_([^]*?)_EMO_/g,mr=function(r){return r.charCodeAt(1)===45},vr=function(r){return r!=null&&typeof r!="boolean"},Ue=rr(function(e){return mr(e)?e:e.replace(jt,"-$&").toLowerCase()}),gr=function(r,n){switch(r){case"animation":case"animationName":if(typeof n=="string")return n.replace(Dt,function(a,i,s){return G={name:i,styles:s,next:G},i})}return Pt[r]!==1&&!mr(r)&&typeof n=="number"&&n!==0?n+"px":n},Ft="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function me(e,r,n){if(n==null)return"";var a=n;if(a.__emotion_styles!==void 0)return a;switch(typeof n){case"boolean":return"";case"object":{var i=n;if(i.anim===1)return G={name:i.name,styles:i.styles,next:G},i.name;var s=n;if(s.styles!==void 0){var l=s.next;if(l!==void 0)for(;l!==void 0;)G={name:l.name,styles:l.styles,next:G},l=l.next;var d=s.styles+";";return d}return $t(e,r,n)}case"function":{if(e!==void 0){var f=G,h=n(e);return G=f,me(e,r,h)}break}}var u=n;if(r==null)return u;var p=r[u];return p!==void 0?p:u}function $t(e,r,n){var a="";if(Array.isArray(n))for(var i=0;i96?Ut:Yt},wr=function(r,n,a){var i;if(n){var s=n.shouldForwardProp;i=r.__emotion_forwardProp&&s?function(l){return r.__emotion_forwardProp(l)&&s(l)}:s}return typeof i!="function"&&a&&(i=r.__emotion_forwardProp),i},Vt=!1,Bt=function(r){var n=r.cache,a=r.serialized,i=r.isStringTag;return pr(n,a,i),Lt(function(){return hr(n,a,i)}),null},zt=function e(r,n){var a=r.__emotion_real===r,i=a&&r.__emotion_base||r,s,l;n!==void 0&&(s=n.label,l=n.target);var d=wr(r,n,a),f=d||xr(i),h=!f("as");return function(){var u=arguments,p=a&&r.__emotion_styles!==void 0?r.__emotion_styles.slice(0):[];if(s!==void 0&&p.push("label:"+s+";"),u[0]==null||u[0].raw===void 0)p.push.apply(p,u);else{p.push(u[0][0]);for(var O=u.length,S=1;S{if(r){let n="";return e?n="modalEnter":n="modalExit",Xt` opacity: 0; visibility: hidden; display: block; animation: ${n} 0.2s ease-out forwards; `}},Qt=Q.dialog` position: fixed; top: 50%; left: 50%; z-index: 50; transform: translate(-50%, -50%); margin: 0; min-width: 20rem; max-width: 24rem; border-radius: 0.25rem; background-color: #fff; padding: 1.25rem; box-shadow: rgba(0, 0, 0, 0.05) 0px 6px 24px 0px, rgba(0, 0, 0, 0.08) 0px 0px 0px 1px; @keyframes modalEnter { from { opacity: 0; transform: translate(-50%, -48%) scale(0.96); visibility: hidden; } to { opacity: 1; transform: translate(-50%, -50%) scale(1); visibility: visible; } } @keyframes modalExit { from { opacity: 1; transform: translate(-50%, -50%) scale(1); visibility: visible; } to { opacity: 0; transform: translate(-50%, -48%) scale(0.96); visibility: hidden; } } `,en=Q.button` display: flex; align-items: center; justify-content: center; position: absolute; right: -0.5rem; top: -0.5rem; width: 2.5rem; height: 2.5rem; border-radius: 0.25rem; border-width: 1px; background-color: #fff; &:hover { background-color: #f9fafb; } @media (min-width: 1024px) { width: 2rem; height: 2rem; } `,rn=Q.span` svg { width: 1.75rem; height: 1.75rem; @media (min-width: 1024px) { width: 1.25rem; height: 1.25rem; } } `,tn=Q.span` position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0; `,Ye=F.createContext({isOpen:!1,setIsOpen:()=>{},hasBeenOpened:!1}),nn=({children:e,isOpen:r,setIsOpen:n})=>{const[a,i]=F.useState(!1),s=F.useMemo(()=>(r&&!a&&i(!0),{isOpen:r,setIsOpen:n,hasBeenOpened:a}),[r,n,a]);return z.jsx(Ye.Provider,{value:s,children:e})},an=({children:e,customEvent:r,onClick:n,onMouseDown:a,onMouseUp:i,onMouseEnter:s,onMouseLeave:l,onTouchStart:d,onTouchEnd:f,onTouchMove:h,onFocus:u,onBlur:p})=>{const O=F.useContext(Ye);if(r)return e;{const S=()=>De(O.isOpen,O.setIsOpen);return F.cloneElement(e,{onClick:K(n,S),onMouseDown:K(a,S),onMouseUp:K(i,S),onMouseEnter:K(s,S),onMouseLeave:K(l,S),onTouchStart:K(d,S),onTouchEnd:K(f,S),onTouchMove:K(h,S),onFocus:K(u,S),onBlur:K(p,S)})}},K=(e,r)=>{if(e)return r},on=({children:e,titleId:r,descriptionId:n})=>{const a=F.useContext(Ye);F.useEffect(()=>{document.body.style.overflow=a.isOpen?"hidden":"auto"},[a.isOpen]);const i=F.useMemo(()=>Zt(a.isOpen,a.hasBeenOpened),[a.hasBeenOpened,a.isOpen]);return z.jsxs(z.Fragment,{children:[z.jsx(Jt,{style:{position:a!=null&&a.isOpen?"fixed":void 0,display:a!=null&&a.isOpen?"block":"none"}}),z.jsxs(Qt,{"aria-modal":"true","aria-labelledby":r,"aria-describedby":n,className:i,children:[z.jsxs(en,{type:"button",onClick:()=>De(a==null?void 0:a.isOpen,a==null?void 0:a.setIsOpen),children:[z.jsx(rn,{children:z.jsx(Hr.X,{})}),z.jsx(tn,{children:"Close"})]}),z.jsx("section",{children:e})]})]})};B.Dialog=nn,B.DialogContent=on,B.DialogTrigger=an,B.handleDialog=De,Object.defineProperty(B,Symbol.toStringTag,{value:"Module"})}); //# sourceMappingURL=rc-dialog.umd.cjs.map