import{r as t,h as e,H as i}from"./p-ec7718e6.js";const n=class{constructor(e){t(this,e),this.meta={}}render(){const{field:t,meta:n}=this;let l=this.value||"-";this.value&&"url"===t.inputType&&(l=e("a",{href:l.startsWith("http")?l:"http://"+l,target:"_blank"},l));const{lines:r=0}=n;return e(i,{style:{"--line-count":r}},"markdown"===t.format?e("dvn-markdown",{content:l}):l)}};n.style="dvn-field-display-text{display:block;--line-count:0;overflow:hidden;display:-webkit-box;-webkit-line-clamp:var(--line-count);-webkit-box-orient:vertical;line-height:var(--line-height);min-height:calc(var(--line-count) * var(--line-height))}";export{n as dvn_field_display_text}