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