define('@cardstack/core-types/components/cs-one-way-input', ['exports', '@cardstack/core-types/templates/components/cs-one-way-input'], function (exports, _csOneWayInput) {
  'use strict';

  Object.defineProperty(exports, "__esModule", {
    value: true
  });
  exports.default = Ember.Component.extend({
    layout: _csOneWayInput.default,
    tagName: '',
    type: 'text',
    actions: {
      maybeEnter: function maybeEnter(event) {
        if (event.keyCode === 13) {
          var onEnter = this.get('onenter');
          if (onEnter) {
            onEnter();
          }
        }
      },
      onChange: function onChange(value) {
        var onchange = this.get("onchange");
        if (onchange) {
          onchange(value);
        }
      },
      onFocus: function onFocus(event) {
        var onfocus = this.get("onfocus");
        if (onfocus) {
          onfocus(event);
        }
      },
      onBlur: function onBlur(event) {
        var onblur = this.get("onblur");
        if (onblur) {
          onblur(event);
        }
      }
    }
  });
});