openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
1 lines • 1.92 kB
JavaScript
import{n as e}from"./rolldown-runtime-CNOWq4Kh.js";import{Bw as t,GN as n,JN as r,Lw as i,MN as a,bO as o,cA as s,iT as c,jN as l,qN as u,sT as d,uA as f,vO as p}from"./_2_____________________________.js";import{F as m,O as h,U as g,d as _,f as v,j as y,u as b,x}from"./_6____________________.js";import{$a as S,eo as C}from"./control-ui-boot-chat-styles-DMRbEm40.js";import{c as w,n as T,r as E,s as D}from"./browser-panel-BCPfi26J.js";function O(e){return y(h,{get when(){return e.value},keyed:!0,children:e=>{let n=d(e.context.gateway),i=()=>n.read().snapshot,a=()=>i().phase===`connected`,c=m(()=>C(e.target.tab)),l=m(()=>{let e=c();return e?[e]:[]}),u=()=>!!(c()&&o(i()));return[y(E,{embedded:!0,get style(){return u()?`height: 100dvh;`:`display: none;`},get client(){return v(()=>!!a())()?i().client:null},get available(){return u()},get remoteAvailable(){return u()},presented:!0,get sessionKey(){return e.target.sessionKey},get sessionTabs(){return l()},get fixedTab(){return c()??void 0},get resourceBasePath(){return e.context.resourceBasePath},get authToken(){return t({hello:i().hello,settings:{token:n.read().connection.token},password:n.read().connection.password})}}),v(()=>v(()=>!(a()||i().lastError!==null))()?y(s,{get status(){return v(()=>i().phase===`starting`)()?r(`common.gatewayStarting`):void 0}}):null),v(()=>v(()=>!(u()||!a()&&!i().lastError))()?(()=>{var t=k(),n=t.firstChild,i=n.firstChild;return _(i,()=>r(c()?`browser.unavailable`:`focus.unsupported`)),_(n,()=>e.renderEscape(r(`common.back`)),null),t})():null)]}})}var k,A;function j(){return(j=e((()=>{b(),g(),i(),p(),D(),c(),n(),a(),f(),T(),S(),k=x(`<main class=connect-splash role=status><div class=stack><span>`),u(w),A=l(`openclaw-browser-document`,(e,t)=>(t.style.display=`contents`,y(O,{get value(){return e.props}})),{properties:{props:{default:null,attribute:!1}}})})))()}j();export{A as BrowserDocument,O as BrowserDocumentContent};