UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

1 lines • 1.29 kB
import{n as e}from"./rolldown-runtime-CNOWq4Kh.js";import{GN as t,JN as n,rA as r,tA as i}from"./_2_____________________________.js";import{O as a,U as o,d as s,gt as c,j as l,u,x as d}from"./_6____________________.js";import{r as f,t as p}from"./debug-overlay-loading-view-CFdqbZyW.js";import{n as m,t as h}from"./debug-overlay-frame-view-CBaZupJZ.js";function g(e){let t;c(()=>{let n=e.host.elements;return n.pendingDebugOverlayFrame=t,()=>{n.pendingDebugOverlayFrame=void 0}});let r=()=>e.state.status===`error`?e.state:void 0;return l(h,{ref:e=>t=e,get mode(){return e.mode},onToggleMode:()=>e.host.togglePendingDebugOverlayMode(),get onClose(){return e.onClose},get body(){return l(a,{get when(){return r()},get fallback(){return l(a,{get when(){return e.mode===`minimized`},get fallback(){return l(p,{})},get children(){var e=_();return s(e,()=>n(`common.loading`)),e}})},children:t=>l(i,{get actionLabel(){return n(`common.retry`)},get error(){return t().error},get stale(){return t().stale},get subtitle(){return t().element.label},get onRetry(){return e.onRetry}})})}})}var _;function v(){return(v=e((()=>{u(),o(),r(),t(),m(),f(),_=d(`<div class=debug-overlay__compact-loading role=status>`)})))()}function y(){return(y=e((()=>{v()})))()}y();export{g as renderPendingDebugOverlay};