"use strict";const u=require("react"),l=require("react-dom"),f=require("./index-ChLwd62c.js"),d=require("./index-MQ0c3ZX_.js"),p=require("react/jsx-runtime");function P(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const a=P(u);var m="Portal",c=a.forwardRef((e,r)=>{const{container:t,...n}=e,[i,s]=a.useState(!1);d.useLayoutEffect2(()=>s(!0),[]);const o=t||i&&globalThis?.document?.body;return o?l.createPortal(p.jsx(f.Primitive.div,{...n,ref:r}),o):null});c.displayName=m;exports.Portal=c;
//# sourceMappingURL=index-DKuHkHFX.js.map
