PageSourceSearch

https://ridemtu.com/assets/portal-Ty30PHP7.js

js ridemtu.com collected 2026-09-27 13:01:23 UTC 1,789 bytes, 1 lines download raw bytes

1import{j as s,r as d}from"./chunk-LFPYN7LY-BYCOceFh.js";import{r as h}from"./index-DAESeoaZ.js";import{c as C}from"./spinner-WEkHiO-h.js";import{u as f}from"./use-update-effect-NPvO9y9c.js";const[N,E]=C({strict:!1,name:"PortalManagerContext"});function y(e){const{children:c,zIndex:n}=e;return s.jsx(N,{value:{zIndex:n},children:c})}y.displayName="PortalManager";const[v,z]=C({strict:!1,name:"PortalContext"}),P="chakra-portal",I=".chakra-portal",M=e=>s.jsx("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),R=e=>{const{appendToParentPortal:c,children:n}=e,[a,l]=d.useState(null),t=d.useRef(null),[,r]=d.useState({});d.useEffect(()=>r({}),[]);const p=z(),o=E();f(()=>{if(!a)return;const u=a.ownerDocument,i=c?p??u.body:u.body;if(!i)return;t.current=u.createElement("div"),t.current.className=P,i.appendChild(t.current),r({});const m=t.current;return()=>{i.contains(m)&&i.removeChild(m)}},[a]);const j=o!=null&&o.zIndex?s.jsx(M,{zIndex:o==null?void 0:o.zIndex,children:n}):n;return t.current?h.createPortal(s.jsx(v,{value:t.current,children:j}),t.current):s.jsx("span",{ref:u=>{u&&l(u)}})},S=e=>{const{children:c,containerRef:n,appendToParentPortal:a}=e,l=n.current,t=l??(typeof window<"u"?document.body:void 0),r=d.useMemo(()=>{const o=l==null?void 0:l.ownerDocument.createElement("div");return o&&(o.className=P),o},[l]),[,p]=d.useState({});return f(()=>p({}),[]),f(()=>{if(!(!r||!t))return t.appendChild(r),()=>{t.removeChild(r)}},[r,t]),t&&r?h.createPortal(s.jsx(v,{value:a?r:null,children:c}),r):null};function x(e){const c={appendToParentPortal:!0,...e},{containerRef:n,...a}=c;return n?s.jsx(S,{containerRef:n,...a}):s.jsx(R,{...a})}x.className=P;x.selector=I;x.displayName="Portal";export{x as P,y as a};

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.