import{j as i}from"./vendor-mui-core-CDEc-eG6.js";import{r as t}from"./vendor-react-DX7tU9aY.js";import{g as c}from"./get-safe-url-B1bR9jl-.js";import"./index-DGZk149v.js";import"./vendor-ux-bFYdDLNG.js";import"./vendor-utils-_C9URqjS.js";import"./vendor-hooks-BrgYeCrj.js";import"./vendor-arcblock-DY2miJjh.js";function I(){const e=t.useRef(null),n=t.useRef(Date.now());return t.useEffect(()=>{const r=`open-window-url-${new URLSearchParams(window.location.search).get("key")}`;return e.current=setInterval(()=>{if(Date.now()-n.current>10*1e3){localStorage.removeItem(r),clearInterval(e.current);return}const o=localStorage.getItem(r);if(o)try{const{url:a,time:s}=JSON.parse(o);localStorage.removeItem(r),Date.now()-s<10*1e3&&(window.location.href=c(a,{allowDomains:null}))}catch{}},200),()=>clearInterval(e.current)},[]),i.jsx("div",{})}export{I as default};
