import{r as e,h as t,H as l}from"./p-9f21f85f.js";import{h as r,l as s}from"./p-42581b1d.js";const i=class{constructor(t){e(this,t)}render(){const{field:e}=this;let i=this.value;if(!i)return t(l,null);if("url"===e.inputType)i=t("a",{href:i.startsWith("http")?i:`http://${i}`,target:"_blank"},i);else if("email"===e.inputType)i=t("a",{href:`mailto:${i}`},i);else if(r(this.value))return t(l,{innerHTML:s(i)});return t(l,null,"markdown"===e.format?t("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}