openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
1 lines • 1.27 kB
JavaScript
import{n as e,r as t}from"./rolldown-runtime-CNOWq4Kh.js";import{GN as n,JN as r,XM as i,Xs as a,Zs as o,fN as s,pN as c,qN as l}from"./_2_____________________________.js";import{Rt as u,d,g as f,j as p,l as m,m as h,s as g,u as _,x as v}from"./_6____________________.js";var y=t({TranscriptSearchContent:()=>b});function b(e){return(()=>{var t=x(),n=t.firstChild,i=n.nextSibling,a=i.firstChild;return t._$$keydown=t=>{t.key!==`Escape`||t.defaultPrevented||t.isComposing||t.keyCode===229||(t.preventDefault(),t.stopPropagation(),e.search.close())},d(t,p(s,{name:`search`}),n),n._$$input=t=>e.search.setQuery(t.currentTarget.value),h(()=>t=>e.search.focusInput(t),n),i._$owner=u(),a._$$click=()=>e.search.close(),d(a,p(s,{name:`x`})),m(()=>({e:r(`chat.thread.searchPlaceholder`),t:r(`chat.thread.search`),a:e.query,o:r(`chat.thread.closeSearch`),i:r(`chat.thread.closeSearch`)}),({e,t,a:r,o,i:s},c)=>{e!==c?.e&&f(n,`placeholder`,e),t!==c?.t&&f(n,`aria-label`,t),n.value=r??``,o!==c?.o&&(i.content=o),s!==c?.i&&f(a,`aria-label`,s)}),t})()}var x;function S(){return(S=e((()=>{_(),c(),a(),n(),i(),x=v(`<div class=agent-chat__search-bar><input type=text><openclaw-tooltip><button class="btn btn--ghost">`,1),l(o),g([`keydown`,`input`,`click`])})))()}export{S as n,y as t};