import { r as registerInstance, h, H as Host } from './index-ecdfb761.js';

const DvnFieldDisplayCellRawData = class {
  constructor(hostRef) {
    registerInstance(this, hostRef);
  }
  render() {
    let value = this.value || '-';
    let content = JSON.stringify(value, null, 2);
    if (this.field.trimStringQuotes && content.startsWith('"')) {
      content = content.replace(/"/g, '');
    }
    return (h(Host, { class: "d-block" }, h("dvn-highlighted-code", { leaned: true, condensed: true, textToCopy: content }, content)));
  }
};

export { DvnFieldDisplayCellRawData as dvn_field_display_cell_raw_data };
