PageSourceSearch

https://www.podsie.org/assets/OptionalPortal-CSk5_nKh.js

js podsie.org collected 2026-09-26 08:48:37 UTC 2,335 bytes, 4 lines download raw bytes

1
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="40a9ba3b-5390-5d62-8129-620b2a32a4bd")}catch(e){}}();
3(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`415b81c2860d879fa09355366cbcb17ab6302154`}}catch{}})();import{o as e,t}from"./react-DJ7JEX99.js";import{t as n}from"./react-dom-C2rawXAL.js";import{t as r}from"./jsx-runtime-BPZIWioN.js";import{A as i,T as a,d as o,n as s}from"./DirectionProvider-WoHhbF4S.js";import{t as c}from"./use-merged-ref-B6P-4Q8y.js";var l=e(t(),1);function u(e){return Array.isArray(e)||e===null?!1:typeof e==`object`?e.type!==l.Fragment:!1}var d={app:100,modal:200,popover:300,overlay:400,max:9999};function f(e){return d[e]}var p=e(r(),1),m=e(n(),1);function h(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 g({target:e,reuseTargetNode:t,...n}){if(e)return typeof e==`string`?document.querySelector(e)||h(n):e;if(t){let e=document.querySelector(`[data-mantine-shared-portal-node]`);if(e)return e;let t=h(n);return t.setAttribute(`data-mantine-shared-portal-node`,`true`),document.body.appendChild(t),t}return h(n)}var _={reuseTargetNode:!0},v=s((e,t)=>{let{children:n,target:r,reuseTargetNode:a,...s}=o(`Portal`,_,e),[u,d]=(0,l.useState)(!1),f=(0,l.useRef)(null);return i(()=>(d(!0),f.current=g({target:r,reuseTargetNode:a,...s}),c(t,f.current),!r&&!a&&f.current&&document.body.appendChild(f.current),()=>{!r&&!a&&f.current&&document.body.removeChild(f.current)}),[r]),!u||!f.current?null:(0,m.createPortal)((0,p.jsx)(p.Fragment,{children:n}),f.current)});v.displayName=`@mantine/core/Portal`;var y=s(({withinPortal:e=!0,children:t,...n},r)=>a()===`test`||!e?(0,p.jsx)(p.Fragment,{children:t}):(0,p.jsx)(v,{ref:r,...n,children:t}));y.displayName=`@mantine/core/OptionalPortal`;export{f as n,u as r,y as t};
4//# debugId=40a9ba3b-5390-5d62-8129-620b2a32a4bd

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.