import{h as t}from"./p-ec7718e6.js";import{B as s}from"./p-d66fb38c.js";const e=new Map;function r(t,s){e.set(t,s)}function i(t,s,r=[],i,n,h){if(t.render)return t.render(t,s,r,i,n,h);const u=e.get(t.type);return u?u(t,s,r,i,n,h):null}class n extends s{constructor(t,s,e,r,i,n=1,h=1){super(t,"text"),this.format="raw",this.id=t,this.title=s,this.placeholder=e,this.description=r,this.inputType=i,this.lines=n,this.linesMax=h}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}}n.type="text",r("text",((s,e,r,i,n,h)=>t("dvn-field-input-text",{disabled:i,field:s,errors:r,onChange:t=>n(s,t.detail),onBlur:()=>h(s),value:e})));export{n as T,i as g,r}