import{h}from"./index-ecdfb761.js";var fieldTypeMap=new Map;function registerField(e,r){fieldTypeMap.set(e,r)}function generateField(e,r,i,n,t,a){if(i===void 0){i=[]}if(e.render){return e.render(e,r,i,n,t,a)}if(e.customViewTag){var d=e.customViewTag;return h(d,{disabled:n,field:e,errors:i,onChange:t,onBlur:a,value:r})}var l=fieldTypeMap.get(e.type);if(l){return l(e,r,i,n,t,a)}return null}export{generateField as g,registerField as r};