import{j as i}from"./vendor-mui-core-D7t4vMS5.js";import{r as t}from"./vendor-react-DX7tU9aY.js";import{g as c}from"./get-safe-url-D4zRnTpF.js";import"./index-Ca33rdd_.js";import"./vendor-ux-Dl3wVbv_.js";import"./vendor-utils-BzQg432x.js";import"./vendor-hooks-DAZ1H6Va.js";import"./vendor-arcblock-ivFYo5vP.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};
