var __extends=this&&this.__extends||function(){var e=function(r,n){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var n in r)if(Object.prototype.hasOwnProperty.call(r,n))e[n]=r[n]};return e(r,n)};return function(r,n){if(typeof n!=="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(r,n);function t(){this.constructor=r}r.prototype=n===null?Object.create(n):(t.prototype=n.prototype,new t)}}();import{h}from"./index-102043e0.js";import{r as registerField}from"./index-336ef773.js";import{B as BaseField}from"./BaseField-461b6d0c.js";var NumberField=function(e){__extends(r,e);function r(r,n,t,i,o,u,d){if(o===void 0){o=1}if(u===void 0){u=-Infinity}if(d===void 0){d=Infinity}var s=e.call(this,r,"number")||this;s.title=n;s.placeholder=t;s.description=i;s.step=o;s.min=u;s.max=d;return s}r.prototype.showPreview=function(){this.preview=true;return this};r.prototype.getDisplayValue=function(e){return e};return r}(BaseField);NumberField.type="number";var render$3=function(e,r,n,t,i,o){return h("dvn-field-input-number",{disabled:t,field:e,errors:n,onChange:function(r){return i(e,Number(r.detail))},onBlur:function(){return o(e)},value:r})};registerField("number",render$3);var RangeField=function(e){__extends(r,e);function r(r,n,t,i,o,u){if(i===void 0){i=1}if(o===void 0){o=0}if(u===void 0){u=5}var d=e.call(this,r,"range")||this;d.title=n;d.description=t;d.step=i;d.min=o;d.max=u;return d}r.prototype.showPreview=function(){this.preview=true;return this};r.prototype.getDisplayValue=function(e){return e};r.prototype.setInputType=function(e){this.inputType=e;return this};return r}(BaseField);RangeField.type="range";var render$2=function(e,r,n,t,i,o){return h("dvn-field-input-range",{disabled:t,field:e,errors:n,onChange:function(r){return i(e,Number(r.detail))},onBlur:function(){return o(e)},value:r})};registerField("range",render$2);var SectionHeaderField=function(e){__extends(r,e);function r(r,n,t){var i=e.call(this,r,"sectionHeader")||this;i.id=r;i.header=n;i.sectionDescription=t;return i}return r}(BaseField);SectionHeaderField.type="sectionHeader";var render$1=function(e,r,n,t,i,o){return h("dvn-field-input-section-header",{disabled:t,field:e,onChange:function(r){return i(e,r)},onBlur:function(){return o(e)}})};registerField("sectionHeader",render$1);var SubFormField=function(e){__extends(r,e);function r(r,n,t,i,o,u,d){var s=e.call(this,r,"subForm")||this;s.id=r;s.title=n;s.description=i;s.fields=t;s.language=d;s.layout=o;s.showFieldOrder=u;s.value={};return s}return r}(BaseField);SubFormField.type="subForm";var render=function(e,r,n,t,i,o){return h("dlm-input-sub-form",{disabled:t,errors:n,field:e,onChange:function(r){return i(e,r)},onBlur:function(){return o(e)},value:r})};registerField("subForm",render);export{NumberField as N,RangeField as R,SubFormField as S,SectionHeaderField as a};