var __extends=this&&this.__extends||function(){var e=function(r,t){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var t in r)if(Object.prototype.hasOwnProperty.call(r,t))e[t]=r[t]};return e(r,t)};return function(r,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e(r,t);function n(){this.constructor=r}r.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();import{h}from"./index-b7735e0d.js";import{r as registerField}from"./index-403101cb.js";import{B as BaseField}from"./BaseField-461b6d0c.js";var NumberField=function(e){__extends(r,e);function r(r,t,n,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=t;s.placeholder=n;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$2=function(e,r,t,n,i,o){return h("dvn-field-input-number",{disabled:n,field:e,errors:t,onChange:function(r){return i(e,Number(r.detail))},onBlur:function(){return o(e)},value:r})};registerField("number",render$2);var RangeField=function(e){__extends(r,e);function r(r,t,n,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=t;d.description=n;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$1=function(e,r,t,n,i,o){return h("dvn-field-input-range",{disabled:n,field:e,errors:t,onChange:function(r){return i(e,Number(r.detail))},onBlur:function(){return o(e)},value:r})};registerField("range",render$1);var SectionHeaderField=function(e){__extends(r,e);function r(r,t,n){var i=e.call(this,r,"sectionHeader")||this;i.id=r;i.header=t;i.sectionDescription=n;return i}return r}(BaseField);SectionHeaderField.type="sectionHeader";var render=function(e,r,t,n,i,o){return h("dvn-field-input-section-header",{disabled:n,field:e,onChange:function(r){return i(e,r)},onBlur:function(){return o(e)}})};registerField("sectionHeader",render);export{NumberField as N,RangeField as R,SectionHeaderField as S};