import{j as e,H as r,I as t,J as n,f as a,_ as l,g as o,d as s,a as i,c,k as p,i as u,l as d}from"./vendor.js";import{C as f}from"./core/CoreImageField/index.js";import{T as x}from"./core/Text/index.js";function v(e,r){var t=p(e);if(u){var n=u(e);r&&(n=d(n).call(n,(function(r){return c(e,r).enumerable}))),t.push.apply(t,n)}return t}function h(e){for(var r=1;r<arguments.length;r++){var t,n=null!=arguments[r]?arguments[r]:{};if(r%2)a(t=v(Object(n),!0)).call(t,(function(r){l(e,r,n[r])}));else if(o)s(e,o(n));else{var p;a(p=v(Object(n))).call(p,(function(r){i(e,r,c(n,r))}))}}return e}var j={type:"text",render:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=n.field;return e.exports.jsx(r,h(h({},t),{},{placeholder:e.exports.jsx(x,{children:a.placeholder}),type:a.valueType||"text"}))}},m={type:"select",render:function(r){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=n.field;return e.exports.jsx(t,h(h({},r),{},{options:a.options,placeholder:e.exports.jsx(x,{children:a.placeholder}),parseTitle:a.parseTitle||function(r){return null!=r&&r.title?e.exports.jsx(x,{children:r.title}):r},parseValue:a.parseValue||function(e){return(null==e?void 0:e.value)||e}}))}},g={type:"color",render:function(r){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=t.field;return e.exports.jsx(n,h(h({},r),{},{placeholder:e.exports.jsx(x,{children:a.placeholder})}))}},y={type:"core-image",render:function(r){return e.exports.jsx(f,h({},r))}};export{j as F,m as a,g as b,y as c};
//# sourceMappingURL=fields.js.map
