'use strict';

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

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

const DvnFieldInputAttachment = class {
  constructor(hostRef) {
    index.registerInstance(this, hostRef);
    this.blur = index.createEvent(this, "blur", 7);
  }
  render() {
    const { disabled, errors, field, value } = this;
    const hasError = errors && errors.length > 0;
    return (index.h("dvn-file-input", { disabled: disabled || field.disabled, placeholder: field.placeholder, onBlur: () => this.blur.emit(), value: value, multiple: field.multiple, feedback: hasError ? 'error' : undefined, leaned: true, overrideStyle: { width: '100%' } }));
  }
};

exports.dvn_field_input_attachment = DvnFieldInputAttachment;
