define('@cardstack/tools/components/cs-mode-choices', ['exports', '@cardstack/tools/templates/components/cs-mode-choices'], function (exports, _csModeChoices) {
  'use strict';

  Object.defineProperty(exports, "__esModule", {
    value: true
  });
  exports.default = Ember.Component.extend({
    layout: _csModeChoices.default,
    tagName: '',
    tools: Ember.inject.service('cardstack-tools'),

    optionsKey: Ember.computed('for', function () {
      return this.get('for') + 'Choices';
    }),

    actions: {
      activate: function activate(modeId) {
        this.get('tools')['set' + Ember.String.capitalize(this.get('for'))](modeId);
      }
    }

  });
});