import{r as t,h as e,H as l}from"./p-a0569a5f.js";import{h as r,l as s}from"./p-42581b1d.js";let i=class{constructor(e){t(this,e)}render(){const{field:t}=this;let i=this.value;if(!i)return e(l,null);if("url"===t.inputType)i=e("a",{href:i.startsWith("http")?i:`http://${i}`,target:"_blank"},i);else if(r(this.value))return e(l,{innerHTML:s(i)});return e(l,null,"markdown"===t.format?e("dvn-markdown",{content:i}):i)}};i.style=".sc-dvn-field-display-cell-text-h{display:block;padding:6px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}";export{i as dvn_field_display_cell_text}