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