UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

1 lines • 1.89 kB
import{n as e}from"./rolldown-runtime-CNOWq4Kh.js";import{A_ as t,DE as n,FC as r,MC as i,N_ as a,QA as o,TE as s,ZA as c,dj as l,hO as u,mO as d,mj as f,pj as p}from"./control-ui-boot-shared-DFTSUQQ0.js";import{F as m,O as h,U as g,d as _,f as v,j as y,u as b,x}from"./solid-runtime-C416s-HC.js";import{El as S,Tl as C}from"./control-ui-boot-chat-DewxEbIm.js";import{O as w,k as T}from"./browser-client-Dzvp4d4w.js";import{n as E,r as D}from"./browser-panel-Cd51lklu.js";function O(e){return y(h,{get when(){return e.value},keyed:!0,children:e=>{let t=a(e.context.gateway),i=()=>t.read().snapshot,o=()=>i().phase===`connected`,s=m(()=>S(e.target.tab)),c=()=>!!(s()&&n(i()));return[y(D,{embedded:!0,get style(){return c()?`height: 100dvh;`:`display: none;`},get client(){return v(()=>!!o())()?i().client:null},get available(){return c()},get remoteAvailable(){return c()},presented:!0,get sessionKey(){return e.target.sessionKey},get fixedTab(){return s()??void 0},get resourceBasePath(){return e.context.resourceBasePath},get authToken(){return r({hello:i().hello,settings:{token:t.read().connection.token},password:t.read().connection.password})}}),v(()=>v(()=>!(o()||i().lastError!==null))()?y(d,{get status(){return v(()=>i().phase===`starting`)()?f(`common.gatewayStarting`):void 0}}):null),v(()=>v(()=>!(c()||!o()&&!i().lastError))()?(()=>{var t=k(),n=t.firstChild,r=n.firstChild;return _(r,()=>f(s()?`browser.unavailable`:`focus.unsupported`)),_(n,()=>e.renderEscape(f(`common.back`)),null),t})():null)]}})}var k,A;function j(){return(j=e((()=>{b(),g(),i(),s(),w(),t(),l(),o(),u(),E(),C(),k=x(`<main class=connect-splash role=status><div class=stack><span>`),p(T),A=c(`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};