'use strict';

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

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

let DvnFieldDisplayRange = class {
  constructor(hostRef) {
    index.registerInstance(this, hostRef);
  }
  render() {
    const { field, value } = this;
    const options = [];
    for (let i = field.min; i <= field.max; i += field.step) {
      options.push(i);
    }
    if (field.inputType === 'stars') {
      return (index.h(index.Host, { class: "d-block" }, index.h("dvn-rating-stars", { disabled: true, options: options, readonly: true, value: value })));
    }
    return (index.h(index.Host, { class: "d-block" }, value));
  }
};

exports.dvn_field_display_range = DvnFieldDisplayRange;
