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