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