manifest
Version:
Self-hosted Manifest LLM router with embedded server, SQLite database, and dashboard
2 lines (1 loc) • 884 B
JavaScript
import{a as o,i as d,m as p,h,s as u,t,d as m}from"./vendor-C-Y5oNOq.js";var f=t("<button class=modal-terminal__copy title=Copy>"),y=t('<svg width=14 height=14 viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=2 aria-hidden=true><polyline points="20 6 9 17 4 12">'),v=t('<svg width=14 height=14 viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=2 aria-hidden=true><rect x=9 y=9 width=13 height=13 rx=2 ry=2></rect><path d="M5 15H4a2 2 0 01-2-2V4a2 2 0 012-2h9a2 2 0 012 2v1">');const w=s=>{const[a,r]=o(!1),[l,i]=o(!1),n=async()=>{try{await navigator.clipboard.writeText(s.text),r(!0),setTimeout(()=>r(!1),2e3)}catch{i(!0),setTimeout(()=>i(!1),2e3)}};return(()=>{var e=f();return e.$$click=n,d(e,(()=>{var c=p(()=>!!a());return()=>c()?y():v()})()),h(()=>u(e,"aria-label",a()?"Copied":l()?"Copy failed":"Copy to clipboard")),e})()};m(["click"]);export{w as C};