openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
1 lines • 1.32 kB
JavaScript
import{n as e,r as t}from"./rolldown-runtime-CNOWq4Kh.js";import{BA as n,dj as r,jA as i,mj as a,pj as o,zA as s}from"./control-ui-boot-shared-DFTSUQQ0.js";import{Rt as c,d as l,g as u,j as d,l as f,m as p,s as m,u as h,x as g}from"./solid-runtime-C416s-HC.js";import{mc as _,pc as v}from"./control-ui-boot-chat-DewxEbIm.js";var y=t({TranscriptSearchContent:()=>b});function b(e){return(()=>{var t=x(),n=t.firstChild,r=n.nextSibling,i=r.firstChild;return t._$$keydown=t=>{t.key!==`Escape`||t.defaultPrevented||t.isComposing||t.keyCode===229||(t.preventDefault(),t.stopPropagation(),e.search.close())},l(t,d(s,{name:`search`}),n),n._$$input=t=>e.search.setQuery(t.currentTarget.value),p(()=>t=>e.search.focusInput(t),n),r._$owner=c(),i._$$click=()=>e.search.close(),l(i,d(s,{name:`x`})),f(()=>({e:a(`chat.thread.searchPlaceholder`),t:a(`chat.thread.search`),a:e.query,o:a(`chat.thread.closeSearch`),i:a(`chat.thread.closeSearch`)}),({e,t,a,o,i:s},c)=>{e!==c?.e&&u(n,`placeholder`,e),t!==c?.t&&u(n,`aria-label`,t),n.value=a??``,o!==c?.o&&(r.content=o),s!==c?.i&&u(i,`aria-label`,s)}),t})()}var x;function S(){return(S=e((()=>{h(),n(),v(),r(),i(),x=g(`<div class=agent-chat__search-bar><input type=text><openclaw-tooltip><button class="btn btn--ghost">`,1),o(_),m([`keydown`,`input`,`click`])})))()}export{S as n,y as t};