1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`82e4baa6c68c429597a8dcf8c86fc75e13a47707`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`5bc0aca2-1a8a-4956-9984-7fe33232a9fd`,e._sentryDebugIdIdentifier=`sentry-dbid-5bc0aca2-1a8a-4956-9984-7fe33232a9fd`)}catch{}})();import{o as e}from"./chunk-BYEayUvb.js";import{t}from"./react-C0i5OX_v.js";import{t as n}from"./react-dom-Cg8t6qxX.js";import{t as r}from"./jsx-runtime-DU0S17m4.js";import{f as i,n as a,y as o}from"./Box-DUhe_Bpw.js";import{t as s}from"./is-element-COFHhKiv.js";import{t as c}from"./use-isomorphic-effect-W7J8Uqwr.js";import{t as l}from"./use-merged-ref-BIPZ2XEE.js";var u=e(t(),1);function d(e){let t=u.Children.toArray(e);return t.length!==1||!s(t[0])?null:t[0]}var f=r(),p=e(n(),1);function m(e){let t=document.createElement(`div`);return t.setAttribute(`data-portal`,`true`),typeof e.className==`string`&&t.classList.add(...e.className.split(` `).filter(Boolean)),typeof e.style==`object`&&Object.assign(t.style,e.style),typeof e.id==`string`&&t.setAttribute(`id`,e.id),t}function h({target:e,reuseTargetNode:t,...n}){if(e)return typeof e==`string`?document.querySelector(e)||m(n):e;if(t){let e=document.querySelector(`[data-mantine-shared-portal-node]`);if(e)return e;let t=m(n);return t.setAttribute(`data-mantine-shared-portal-node`,`true`),document.body.appendChild(t),t}return m(n)}var g={reuseTargetNode:!0},_=a(e=>{let{children:t,target:n,reuseTargetNode:r,ref:a,...o}=i(`Portal`,g,e),[s,d]=(0,u.useState)(!1),m=(0,u.useRef)(null);return c(()=>(d(!0),m.current=h({target:n,reuseTargetNode:r,...o}),l(a,m.current),!n&&!r&&m.current&&document.body.appendChild(m.current),()=>{!n&&!r&&m.current&&document.body.removeChild(m.current)}),[n]),!s||!m.current?null:(0,p.createPortal)((0,f.jsx)(f.Fragment,{children:t}),m.current)});_.displayName=`@mantine/core/Portal`;var v=a(({withinPortal:e=!0,children:t,...n})=>o()===`test`||!e?(0,f.jsx)(f.Fragment,{children:t}):(0,f.jsx)(_,{...n,children:t}));v.displayName=`@mantine/core/OptionalPortal`;export{d as n,v as t}; 2//# sourceMappingURL=OptionalPortal-COocROml.js.map
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.