openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
1 lines • 854 B
JavaScript
import{n as e}from"./rolldown-runtime-CNOWq4Kh.js";import{Cn as t,En as n,Ka as r,On as i,bt as a,i as o,n as s,wn as c,wt as l}from"./_4____________________________.js";function u(){let e=new URLSearchParams(window.location.search),a={state:e.get(`state`),code:e.get(`code`),error:e.get(`error`)};a.state&&r()?.setItem(`${s}${a.state}`,JSON.stringify(a)),window.history.replaceState(null,``,window.location.pathname);let{theme:o,fontUi:c,fontChat:u}=l();n(i(o,c,u).ui),t(c,u);let d=document.createElement(`main`);d.setAttribute(`role`,`status`),d.textContent=a.error?`Sign-in was not completed. You can close this window.`:`Signed in. You can close this window.`,document.body.classList.add(`openclaw-id-callback`),document.body.replaceChildren(d),window.close()}function d(){return(d=e((()=>{a(),c(),o()})))()}d();export{u as finishOpenClawIdCallback};