UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

1 lines • 892 B
import{n as e}from"./rolldown-runtime-CNOWq4Kh.js";import{dj as t,mj as n}from"./control-ui-boot-shared-DFTSUQQ0.js";import{C as r,O as i,U as a,d as o,g as s,j as c,l,s as u,u as d,x as f}from"./solid-runtime-C416s-HC.js";function p(e){return[(()=>{var t=m();return o(t,c(r,{get each(){return e.resources},children:t=>(()=>{var n=g(),r=n.firstChild,i=r.nextSibling;return n._$$click=()=>e.onAttach(t),o(r,()=>t.title||t.name),o(i,()=>t.description||t.uri),l(()=>e.disabled,e=>{s(n,`disabled`,e)}),n})()})),t})(),c(i,{get when(){return!e.resources.length},get children(){var e=h();return o(e,()=>n(`mcpApp.noResources`)),e}})]}var m,h,g;function _(){return(_=e((()=>{d(),a(),t(),m=f(`<div class=mcp-app-resources__results>`),h=f(`<p role=status>`),g=f(`<button type=button class="btn mcp-app-resources__result"><span></span><small>`),u([`click`])})))()}_();export{p as McpAppResourceResults};