import{n as e}from"./useStore-CusP06SD.js";import{a as t}from"./dist-DhH_lYkz.js";import{t as n}from"./input-CsfmMUT5.js";import{t as r}from"./DeleteOption-dxKSbv6N.js";import{r as i}from"./form-context-B-ekdUc0.js";var a=e(),o=({className:e,showDelete:o=!1,onDelete:s})=>{let c=i();return(0,a.jsxs)(`div`,{className:t(`flex items-center gap-2`,e),children:[(0,a.jsx)(n,{type:`text`,id:`${c.name}`,className:`form-input`,value:c.state.value?String(c.state.value):``,"aria-invalid":!!(c.state.meta.isTouched&&c.state.meta.errorMap.onBlur?.length>0),onBlur:c.handleBlur,onChange:e=>c.handleChange(e.target.value)}),o&&(0,a.jsx)(r,{onClick:s})]})};export{o as default};