'use strict';

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

const index = require('./index-1ee80297.js');

const dvnFieldDisplaySingleChoiceCss = ".sc-dvn-field-display-single-choice-h{display:block;height:20px}";

let DvnFieldDisplaySingleChoice = class {
  constructor(hostRef) {
    index.registerInstance(this, hostRef);
  }
  render() {
    const selectedOption = this.field.getOptionOfValue(this.value);
    return (index.h(index.Host, null, (this.value && selectedOption) ? selectedOption.label : '-'));
  }
};
DvnFieldDisplaySingleChoice.style = dvnFieldDisplaySingleChoiceCss;

exports.dvn_field_display_single_choice = DvnFieldDisplaySingleChoice;
