'use strict';

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

const index = require('./index-1141a245.js');
const util = require('./util-9ec42ae0.js');

const dvnFieldDisplayCellReferenceCss = ".sc-dvn-field-display-cell-reference-h{display:-ms-flexbox;display:flex;overflow:auto;padding:0 4px}.sc-dvn-field-display-cell-reference-h abbr.sc-dvn-field-display-cell-reference{border-bottom:none}";

const DvnFieldDisplayCellReference = class {
  constructor(hostRef) {
    index.registerInstance(this, hostRef);
  }
  render() {
    const { field, meta } = this;
    const value = this.value || [];
    return (index.h(index.Host, null, Array.isArray(value)
      ? value.map(data => util.renderReference(field, data, meta))
      : util.renderReference(field, value, meta)));
  }
};
DvnFieldDisplayCellReference.style = dvnFieldDisplayCellReferenceCss;

exports.dvn_field_display_cell_reference = DvnFieldDisplayCellReference;
