import{r as t,h as e,H as i}from"./p-a0569a5f.js";import{h as n,l}from"./p-42581b1d.js";let a=class{constructor(e){t(this,e),this.meta={}}render(){const{field:t,meta:a}=this;let r=this.value;const{lines:s=0}=a;return r?("url"===t.inputType&&(r=e("a",{href:r.startsWith("http")?r:`http://${r}`,target:"_blank"},r)),n(r)?e(i,{style:{"--line-count":s},innerHTML:l(this.value)}):e(i,{style:{"--line-count":s}},"markdown"===t.format?e("dvn-markdown",{content:r}):r)):e(i,{style:{"--line-count":s}},"-")}};a.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{a as dvn_field_display_text}