import{h as t}from"./p-9f21f85f.js";import{r as s}from"./p-31e77e7b.js";import{B as e}from"./p-105f7627.js";class r extends e{constructor(t,s,e,r,i,h=1,n=1){super(t,"text"),this.format="raw",this.id=t,this.title=s,this.placeholder=e,this.description=r,this.inputType=i,this.lines=h,this.linesMax=n}showPreview(){return this.preview=!0,this}getDisplayValue(t){return t}setInputType(t){return this.inputType=t,this}setFormat(t){return this.format=t,this}setLines(t){return this.lines=t,this}setLinesMax(t){return this.linesMax=t,this}setAutoComplete(t){return this.autoComplete=t,this}}r.type="text",s("text",((s,e,r,i,h,n)=>t("dvn-field-input-text",{disabled:i,field:s,errors:r,onChange:t=>{t.stopImmediatePropagation(),h(s,t.detail)},onBlur:()=>n(s),value:e})));export{r as T}