UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

1 lines • 2.57 kB
import{n as e}from"./rolldown-runtime-CNOWq4Kh.js";import{sa as t,va as n,ya as r}from"./control-ui-connection-Bfj9beF_.js";import{aj as i,dj as a,mj as o,rj as s}from"./control-ui-boot-shared-DFTSUQQ0.js";import{C as c,O as l,U as u,Y as d,d as f,g as p,j as m,l as h,o as g,p as _,u as v,x as y,y as b}from"./solid-runtime-C416s-HC.js";import{n as x,t as S}from"./en-route-subtitles-C2EbTkck.js";import{n as C,y as w}from"./settings-ui-Ck6BJLhD.js";import"./settings-DAApurug.js";import{n as T,t as E}from"./hub-tabs-BnaRSduq.js";function D(e){return m(s,{traits:{settingsWorkspace:!0},get children(){var t=O(),n=t.firstChild;return f(n,()=>e.children),h(()=>({e:!!e.fillHeight,t:e.id}),({e,t:n},r)=>{e!==r?.e&&t.classList.toggle(`settings-workspace--fill-height`,e),n!==r?.t&&p(t,`id`,n)}),t}})}var O;function k(){return(k=e((()=>{v(),i(),O=y(`<section class=settings-workspace><div class=settings-workspace__body>`)})))()}function A(e){return m(s,{traits:{hubHeader:!0},get children(){var t=j(),i=t.firstChild,a=i.firstChild,s=a.nextSibling,c=s.firstChild,u=c.nextSibling,d=i.nextSibling;return f(a,()=>e.title??r(e.active,o)),f(s,()=>e.subtitle??n(e.active,o),c),f(s,m(l,{get when(){return e.docsUrl},children:e=>[` `,m(C,{get url(){return e()}})]}),u),f(t,m(l,{get when(){return e.tabs},children:t=>(()=>{var n=M();return f(n,m(E,{get id(){return t().id},get active(){return e.active},get tabs(){return t().items},get ariaLabel(){return t().ariaLabel},get panelId(){return t().panelId},get class(){return t().class},onSelect:e=>t().onSelect(e)})),n})()}),d),f(d,()=>e.actions),h(()=>_([`content-header content-header--stacked content-header--settings content-header--page hub-page-header hub-page-header--stacked`,{"hub-page-header--untabbed":!e.tabs,"hub-page-header--wide":e.wide},e.class]),(e,n)=>{g(t,e,n)}),t}})}var j,M;function N(){return(N=e((()=>{v(),u(),t(),i(),S(),a(),T(),w(),j=y(`<section><div class=hub-page-header__title><h1 class=page-title></h1><div class=page-subtitle><!><!></div></div><div class=hub-page-header__actions>`),M=y(`<div class=hub-page-header__tabs>`),x()})))()}function P(e){let t=d(e,`options`);var n=F();return b(n,[{class:`settings-select`},t],!0),f(n,m(c,{get each(){return e.options},keyed:e=>e.value,children:t=>(()=>{var n=I();return f(n,()=>t().label),h(()=>({e:t().value,t:e.value===t().value,a:t().disabled}),({e,t,a:r},i)=>{n.value=e,n.selected=t,r!==i?.a&&p(n,`disabled`,r)}),n})()})),n}var F,I;function L(){return(L=e((()=>{v(),u(),F=y(`<select>`),I=y(`<option>`)})))()}export{D as a,N as i,L as n,k as o,A as r,P as t};