
/**
 * 由 Fantastic-admin 提供技术支持
 * Powered by Fantastic-admin
 * https://fantastic-admin.hurui.me
 */
  
import{Bt as e,Kt as t,pn as n}from"./src-CLMBPGj1.js";import{B as r,Tt as i}from"./reactivity.esm-bundler-D9OPVc9J.js";import{D as a,E as o,k as s,mt as c,qt as l,v as u}from"./runtime-core.esm-bundler-D-xeQwTN.js";import{t as d}from"./kbd-B4MY4AyK.js";var f=s({__name:`command`,props:{text:{}},setup(n){let s=n,{copy:f,copied:p,isSupported:m}=t({legacy:!0});return(t,h)=>{let g=e,_=d;return c(),u(_,{class:`me-1 cursor-pointer pointer-events-auto`,onClick:h[0]||(h[0]=e=>r(m)&&r(f)(s.text))},{default:l(()=>[a(g,{name:r(p)?`i-lucide:check`:`i-lucide:copy`,class:`size-3`},null,8,[`name`]),o(` `+i(n.text),1)]),_:1})}}}),p=n({default:()=>m}),m=f;export{p as n,m as t};