import{R as e}from"./p-0563ceba.js";import{B as t}from"./p-105f7627.js";import"./p-1e47e7bd.js";import{M as r}from"./p-6c8be41c.js";import{h as s}from"./p-9f21f85f.js";import{r as i}from"./p-31e77e7b.js";import{S as c}from"./p-1187cc7c.js";import{S as n}from"./p-881a2bb8.js";import{T as a}from"./p-968ee2ec.js";import{D as o}from"./p-825ab276.js";class u extends t{constructor(e,t,r,s,i=1,c=-1/0,n=1/0){super(e,"number"),this.title=t,this.placeholder=r,this.description=s,this.step=i,this.min=c,this.max=n}showPreview(){return this.preview=!0,this}getDisplayValue(e){return e}}u.type="number",i("number",((e,t,r,i,c,n)=>s("dvn-field-input-number",{disabled:i,field:e,errors:r,onChange:t=>c(e,Number(t.detail)),onBlur:()=>n(e),value:t})));class b extends t{constructor(e,t,r,s=1,i=0,c=5){super(e,"range"),this.title=t,this.description=r,this.step=s,this.min=i,this.max=c}showPreview(){return this.preview=!0,this}getDisplayValue(e){return e}setInputType(e){return this.inputType=e,this}}b.type="range",i("range",((e,t,r,i,c,n)=>s("dvn-field-input-range",{disabled:i,field:e,errors:r,onChange:t=>c(e,Number(t.detail)),onBlur:()=>n(e),value:t})));class p extends t{constructor(e,t,r){super(e,"sectionHeader"),this.id=e,this.header=t,this.sectionDescription=r}}function j(s){if(s)switch(s.type){case o.type:return Object.assign(Object.create(o.prototype),s);case r.type:return Object.assign(Object.create(r.prototype),s);case u.type:return Object.assign(Object.create(u.prototype),s);case b.type:return Object.assign(Object.create(b.prototype),s);case p.type:return Object.assign(Object.create(p.prototype),s);case c.type:return Object.assign(Object.create(c.prototype),s);case n.type:return Object.assign(Object.create(n.prototype),s);case a.type:return Object.assign(Object.create(a.prototype),s);case e.type:return Object.assign(Object.create(e.prototype),s);default:return Object.assign(Object.create(t.prototype),s)}}p.type="sectionHeader",i("sectionHeader",((e,t,r,i,c,n)=>s("dvn-field-input-section-header",{disabled:i,field:e,onChange:t=>c(e,t),onBlur:()=>n(e)})));export{u as N,b as R,j as g}