'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

const index = require('./index-7cdf1df1.js');

const dvnFieldDisplayCellTextCss = ".sc-dvn-field-display-cell-text-h{display:block;padding:6px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}";

const DvnFieldDisplayCellText = class {
  constructor(hostRef) {
    index.registerInstance(this, hostRef);
  }
  render() {
    const { field } = this;
    let value = this.value;
    if (this.value && field.inputType === 'url') {
      value = index.h("a", { href: value.startsWith('http') ? value : `http://${value}`, target: "_blank" }, value);
    }
    return (index.h(index.Host, null, value));
  }
};
DvnFieldDisplayCellText.style = dvnFieldDisplayCellTextCss;

exports.dvn_field_display_cell_text = DvnFieldDisplayCellText;
