'use strict';

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

const index = require('./index-7cdf1df1.js');
require('./BaseField-f50bb8f0.js');
const date = require('./date-8e8ca89a.js');
const moment = require('./moment-d48a0164.js');

const dvnFieldDisplayDateCss = ".sc-dvn-field-display-date-h{display:block;height:20px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}";

const DvnFieldDisplayDate = class {
  constructor(hostRef) {
    index.registerInstance(this, hostRef);
  }
  render() {
    let date$1 = this.value;
    if (this.field.dateDataType === date.DateDataType.Unix) {
      date$1 = new Date(this.value * 1000);
    }
    return (index.h(index.Host, null, this.value ? moment.hooks(date$1).format(this.field.dateFormat) : '-'));
  }
};
DvnFieldDisplayDate.style = dvnFieldDisplayDateCss;

exports.dvn_field_display_date = DvnFieldDisplayDate;
