UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

1 lines • 1.74 kB
import{n as e}from"./rolldown-runtime-CNOWq4Kh.js";import{lo as t}from"./control-ui-connection-Bfj9beF_.js";import{B as n,F as r,U as i,b as a,d as o,h as s,j as c,l,u,x as d}from"./solid-runtime-C416s-HC.js";import{n as f,t as p}from"./route-controls-runtime-Bx6nx3QW.js";import{g as m,h,i as g,n as _,r as v}from"./lobster-pet-identity-Cg5EqPlD.js";import{c as y,d as b,h as x,p as S,v as C,y as w}from"./settings-ui-Ck6BJLhD.js";function T(e){function i(r,i,a,o=!1){e.throwIfAborted(),o&&r.classList.add(`settings-row-mount`);let[c,l]=n({value:i},{ownedWrite:!0}),u=s(()=>a(()=>c().value),r),d=!0,f=()=>{d&&(d=!1,p(),u())},p=t(e,`abort`,f,{once:!0});return{update(t){if(e.throwIfAborted(),!d)throw Error(`This Settings component has ended.`);l({value:t})},dispose:f}}return{mountSection:(e,t)=>i(e,t,e=>c(S,{get title(){return e().title},get children(){return e().content}})),mountRow:(e,t)=>i(e,t,e=>c(b,{get title(){return e().title},get description(){return e().description},get control(){return e().control}}),!0),mountStatus:(e,t)=>i(e,t,e=>c(x,{get kind(){return e().kind},get label(){return e().label}})),mountValue:(e,t)=>i(e,t,e=>c(C,{get value(){return e().value},get mono(){return e().mono}})),mountNavigation:(t,n)=>i(t,n,t=>c(y,{get title(){return t().title},onClick:()=>{e.throwIfAborted(),t().onClick()}}),!0),mountLobster:(e,t)=>i(e,t,e=>{let t=r(()=>_(f(e().seed)));var n=E();return o(n,c(h,{get look(){return t()},get sleeping(){return e().sleeping},get reading(){return e().reading},get grumpy(){return e().grumpy},get standalone(){return e().standalone}})),l(()=>`${g(t())};display:contents`,(e,t)=>{a(n,e,t)}),n})}}var E;function D(){return(D=e((()=>{u(),i(),m(),p(),v(),w(),E=d(`<div>`)})))()}export{D as n,T as t};