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