import{j as i}from"./app-BBZbvTSO.js";import n from"./FieldBase-C0gzKbbb.js";import{I as d}from"./input-dmj4QjAp.js";/* empty css            */import"./label-BPDCCRHl.js";import"./index-13DH8-b5.js";import"./utils-YhN_nlHn.js";import"./input-error-Bz7f2c6i.js";function I({field:r,value:o,onChange:t,processing:e,errors:l}){var a,p,m,s;return i.jsx(n,{field:r,value:o,onChange:t,processing:e,errors:l,children:i.jsx(d,{id:r.name,type:"text",required:r.required,value:o||"",onChange:u=>t(r,u.target.value),disabled:e||((p=(a=r.options)==null?void 0:a.slug)==null?void 0:p.readonly),placeholder:r.placeholder,className:(s=(m=r.options)==null?void 0:m.slug)!=null&&s.readonly?"cursor-not-allowed":""})})}export{I as default};
