UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

1 lines • 1.08 kB
import{n as e}from"./rolldown-runtime-CNOWq4Kh.js";import{AN as t,EN as n}from"./_2_____________________________.js";import{F as r,S as i,U as a,f as o,j as s,u as c,w as l}from"./_6____________________.js";import{u,w as d}from"./settings-controls-runtime-CwXZmgDo.js";function f(e){let t=r(()=>e.model.configRead),a=r(()=>e.model.configSchemaRead),c=r(()=>e.model.configError),d=()=>e.model.configValue&&e.model.configSchema?e.model.onConfigWriteRetry():e.model.onConfigReadRetry(),f=(t,n)=>[o(()=>t?e.renderError(t,n):null),o(()=>o(()=>!!e.loading)()?s(u,{get rows(){return e.rows},carapace:!0}):null)];function p(){let e=r(async()=>{let e=c(),n=t(),r=a(),i=await n?.settled,o=[t()===n?i:null,r].find(t=>t&&!t.ok&&t.error===e);if(o&&!o.ok)throw Error(o.error);return null});return[o(e),o(()=>f(c(),d))]}return s(l,{get on(){return[t(),a()]},get fallback(){return f(c(),d)},get children(){return s(i,{fallback:(t,r)=>f(n(t()),()=>{e.model.onConfigReadRetry(),r()}),get children(){return s(p,{})}})}})}function p(){return(p=e((()=>{c(),a(),d(),t()})))()}export{p as n,f as t};