openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
1 lines • 2.91 kB
JavaScript
import{n as e}from"./rolldown-runtime-CNOWq4Kh.js";import{Gr as t,du as n,ii as r,iu as i,ou as a,ri as o}from"./_4____________________________.js";import{BN as s,GN as c,JN as l,LN as u}from"./_2_____________________________.js";import{C as d,O as f,U as p,Y as m,d as h,g,j as _,l as v,o as y,p as b,u as x,x as S,y as C}from"./_6____________________.js";import{n as w,t as T}from"./en-route-subtitles-CjswZHfJ.js";import{o as E,w as D}from"./settings-controls-runtime-CwXZmgDo.js";import"./route-chrome-styles-NRybfaJ0.js";import{n as O,t as k}from"./hub-tabs-B2BTtoLm.js";function A(e){let t=m(e,`options`,`class`);var n=j();return C(n,[t,{get class(){return[`settings-select`,e.class]}}],!0),h(n,_(d,{get each(){return e.options},keyed:e=>e.value,children:t=>(()=>{var n=M();return h(n,()=>t().label),v(()=>({e:t().value,t:e.value===t().value,a:t().disabled,o:typeof t().label==`string`?t().label:void 0}),({e,t,a:r,o:i},a)=>{n.value=e,n.selected=t,r!==a?.a&&g(n,`disabled`,r),i!==a?.o&&g(n,`title`,i)}),n})()})),n}var j,M;function N(){return(N=e((()=>{x(),p(),j=S(`<select>`),M=S(`<option>`)})))()}function P(e){return _(u,{traits:{settingsWorkspace:!0},get children(){var t=F(),n=t.firstChild;return h(n,()=>e.children),v(()=>({e:!!e.fillHeight,t:e.id}),({e,t:n},r)=>{e!==r?.e&&t.classList.toggle(`settings-workspace--fill-height`,e),n!==r?.t&&g(t,`id`,n)}),t}})}var F;function I(){return(I=e((()=>{x(),s(),F=S(`<section class=settings-workspace><div class=settings-workspace__body>`)})))()}function L(e){return _(u,{traits:{hubHeader:!0},get children(){var t=R(),n=t.firstChild,i=n.firstChild,a=i.nextSibling,s=a.firstChild,c=s.nextSibling,u=n.nextSibling;return h(i,()=>e.title??r(e.active,l)),h(a,()=>e.subtitle??o(e.active,l),s),h(a,_(f,{get when(){return e.docsUrl},children:e=>[` `,_(E,{get url(){return e()}})]}),c),h(t,_(f,{get when(){return e.tabs},children:t=>(()=>{var n=z();return h(n,_(k,{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})()}),u),h(u,()=>e.actions),v(()=>b([`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)=>{y(t,e,n)}),t}})}var R,z;function B(){return(B=e((()=>{x(),p(),t(),s(),T(),c(),O(),D(),R=S(`<section><div class=hub-page-header__title><h1 class=page-title></h1><div class=page-subtitle><!><!></div></div><div class=hub-page-header__actions>`),z=S(`<div class=hub-page-header__tabs>`),w()})))()}function V(e,t=Intl.DateTimeFormat().resolvedOptions().timeZone,r=Intl.supportedValuesOf(`timeZone`)){return n([t,`UTC`,...e,...a(r)])}function H(){return(H=e((()=>{i()})))()}export{P as a,N as c,B as i,V as n,I as o,L as r,A as s,H as t};