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