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