'use strict';

var IsDisabledMixin = {
  computed: {
    isDisabled: function isDisabled() {
      var disabled = this.$attrs.disabled;

      if (disabled === false || !Object.prototype.hasOwnProperty.call(this.$attrs, 'disabled')) {
        return false;
      }

      return true;
    }
  }
};

exports.IsDisabledMixin = IsDisabledMixin;
