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 R,E as V,J as x,l as b,R as B,Q as N,A as S,U as w,N as I}from"./BdHKhsMk.js";import{n as g,u as j}from"./sbA6UCYW.js";import{I as k}from"./CTQFqgc5.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}=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)=>(_(),C(e(v),null,{default:s(()=>[t(e(x),null,{default:s(()=>[t(e(R),null,{default:s(()=>n[2]||(n[2]=[V("Run Command")])),_:1})]),_:1}),t(e(I),null,{default:s(()=>[b("form",{onSubmit:n[1]||(n[1]=w(r=>p(),["prevent"])),class:"flex gap-2"},[t(e(B),{modelValue:e(a),"onUpdate:modelValue":n[0]||(n[0]=r=>N(a)?a.value=r:null),placeholder:"pnpm run start"},null,8,["modelValue"]),t(e(S),{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};
