UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

1 lines • 1.07 kB
import{n as e}from"./rolldown-runtime-CNOWq4Kh.js";import{GN as t,JN as n,Js as r,XM as i,Ys as a}from"./_2_____________________________.js";import{Rt as o,d as s,g as c,j as l,l as u,s as d,u as f,x as p}from"./_6____________________.js";function m(e){let t=()=>n(`connection.help.copyCommand`),i;var a=h(),d=a.firstChild,f=d.firstChild;return a._$owner=o(),d._$$keydown=e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),i.click())},d._$$click=e=>{e.target instanceof Element&&e.target.closest(`.chat-copy-btn`)||i.click()},s(f,()=>e.command),s(d,l(r,{ref:e=>i=e,get text(){return e.command},get idleLabel(){return t()}}),null),u(()=>({e:t(),t:e.variant===`hero`,a:n(`connection.help.copyCommandAria`,{command:e.command})}),({e,t,a:n},r)=>{e!==r?.e&&(a.content=e),t!==r?.t&&d.classList.toggle(`login-gate__command--hero`,t),n!==r?.a&&c(d,`aria-label`,n)}),a}var h;function g(){return(g=e((()=>{f(),t(),a(),i(),h=p(`<openclaw-tooltip><div class=login-gate__command role=button tabindex=0><code translate=no>`,1),d([`click`,`keydown`])})))()}export{g as n,m as t};