import{h as s}from"./p-1ea36ff3.js";import{r as e}from"./p-681f800a.js";import{B as r}from"./p-eebad85b.js";class t extends r{constructor(s,e,r,t,i=1,n=-1/0,a=1/0){super(s,"number"),this.title=e,this.placeholder=r,this.description=t,this.step=i,this.min=n,this.max=a}showPreview(){return this.preview=!0,this}getDisplayValue(s){return s}}t.type="number",e("number",((e,r,t,i,n,a)=>s("dvn-field-input-number",{disabled:i,field:e,errors:t,onChange:s=>n(e,Number(s.detail)),onBlur:()=>a(e),value:r})));class i extends r{constructor(s,e,r,t=1,i=0,n=5){super(s,"range"),this.title=e,this.description=r,this.step=t,this.min=i,this.max=n}showPreview(){return this.preview=!0,this}getDisplayValue(s){return s}setInputType(s){return this.inputType=s,this}}i.type="range",e("range",((e,r,t,i,n,a)=>s("dvn-field-input-range",{disabled:i,field:e,errors:t,onChange:s=>n(e,Number(s.detail)),onBlur:()=>a(e),value:r})));class n extends r{constructor(s,e,r){super(s,"sectionHeader"),this.id=s,this.header=e,this.sectionDescription=r}}n.type="sectionHeader",e("sectionHeader",((e,r,t,i,n,a)=>s("dvn-field-input-section-header",{disabled:i,field:e,onChange:s=>n(e,s),onBlur:()=>a(e)})));class a extends r{constructor(s,e,r,t,i,n,a){super(s,"subForm"),this.id=s,this.title=e,this.description=t,this.fields=r,this.language=a,this.layout=i,this.showFieldOrder=n,this.value={}}}a.type="subForm",e("subForm",((e,r,t,i,n,a)=>s("dlm-input-sub-form",{disabled:i,errors:t,field:e,onChange:s=>n(e,s),onBlur:()=>a(e),value:r})));export{t as N,i as R,a as S,n as a}