import { Component, h, Host, Prop } from '@stencil/core';
export class DvnFieldDisplayCellRawData {
  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)));
  }
  static get is() { return "dvn-field-display-cell-raw-data"; }
  static get properties() { return {
    "value": {
      "type": "any",
      "mutable": false,
      "complexType": {
        "original": "any",
        "resolved": "any",
        "references": {}
      },
      "required": false,
      "optional": false,
      "docs": {
        "tags": [],
        "text": ""
      },
      "attribute": "value",
      "reflect": false
    },
    "field": {
      "type": "unknown",
      "mutable": false,
      "complexType": {
        "original": "RawDataField",
        "resolved": "RawDataField",
        "references": {
          "RawDataField": {
            "location": "import",
            "path": "../raw-data"
          }
        }
      },
      "required": false,
      "optional": false,
      "docs": {
        "tags": [],
        "text": ""
      }
    }
  }; }
}
