import{d as c,r as f,b as C,e as _,f as e,H as V,w as s,j as t,K as v,E as R,J as x,l as b,U as B,R as S,A as w,V as I,Q as N}from"./DGA3dmy8.js";import{u as g,n as j}from"./CjwkogD-.js";import{I as k}from"./CCeWr_SP.js";const H=c({__name:"run-command",props:{id:{}},emits:["command-entered"],setup(d,{emit:m}){const a=f(""),l=d,u=m,{runScript:i}=g(),p=()=>{const o=l.id??j();u("command-entered",{command:a.value,id:o}),i({id:o,command:a.value}),a.value=""};return(o,n)=>(_(),C(e(V),null,{default:s(()=>[t(e(x),null,{default:s(()=>[t(e(v),null,{default:s(()=>n[2]||(n[2]=[R("Run Command")])),_:1,__:[2]})]),_: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}))}}),z=Object.assign(H,{__name:"CardsRunCommand"});export{z as R};
//# sourceMappingURL=olZrzGfp.js.map
