import{d as c,r as f,b as C,e as V,f as e,J as _,w as s,j as t,L as v,E as R,K as x,l as b,U as B,R as S,A as w,V as I,Q as N}from"./DrjE4E2T.js";import{n as g,u as j}from"./T09L0pCq.js";import{I as k}from"./Bzcv36_K.js";const T=c({__name:"run-command",props:{id:{}},emits:["command-entered"],setup(d,{emit:m}){const a=f(""),l=d,u=m,{runScript:i}=j(),p=()=>{const o=l.id??g();u("command-entered",{command:a.value,id:o}),i({id:o,command:a.value}),a.value=""};return(o,n)=>(V(),C(e(_),null,{default:s(()=>[t(e(x),null,{default:s(()=>[t(e(v),null,{default:s(()=>n[2]||(n[2]=[R("Run Command")])),_:1})]),_:1}),t(e(N),null,{default:s(()=>[b("form",{onSubmit:n[1]||(n[1]=I(r=>p(),["prevent"])),class:"flex gap-2"},[t(e(B),{modelValue:e(a),"onUpdate:modelValue":n[0]||(n[0]=r=>S(a)?a.value=r:null),placeholder:"pnpm run start"},null,8,["modelValue"]),t(e(w),{size:"icon",type:"submit"},{default:s(()=>[t(e(k),{icon:"lucide:send"})]),_:1})],32)]),_:1})]),_:1}))}}),A=Object.assign(T,{__name:"CardsRunCommand"});export{A as R};
