import{a as e,u as n}from"../../hooks.js";import{M as o}from"../../vendor.js";var l=function(l){var i,d,a=l.field,t=l.element,r=l.onChange,u=l.onCustomChange,s=l.editableRef,f=e(),m=(0,n().getOverrides)("component",t.type,{output:"field",field:a}),v={id:a.id,name:a.name,disabled:a.disabled,onChange:m.onChange?u.bind(null,a.key,m):r.bind(null,a.key),value:null!==(i=o(t,a.key))&&void 0!==i?i:a.default};return a.condition&&!a.condition(t)?null:(null===(d=m.render)||void 0===d?void 0:d.call(m,v,{field:a,element:t,options:f,editableRef:s,onChange:r}))||null};export{l as F};
//# sourceMappingURL=Field.js.map
