import{s,$ as r,r as h,j as i,F as n}from"./main-fine-mails-rush.js";globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(t,e){return this.cache.has(t)?this.cache.get(t):(this.cache.set(t,e),e)}};function u(){const t=new URL(window.location.href),e=new URLSearchParams(t.hash),a={};e.forEach((o,c)=>{o&&(a[c]=o)}),!(!a.code&&!a.oauth_verifier)&&(localStorage.setItem("__bitSocial_platform",JSON.stringify(a)),(a.code||a.oauth_verifier)&&s(r,{isModalOpen:!0,loading:!0}),window.close())}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(t,e){return this.cache.has(t)?this.cache.get(t):(this.cache.set(t,e),e)}};function l(){return h.useEffect(()=>{u()},[]),i(n,{})}export{l as default};
