define('@cardstack/tools/components/cardstack-tools-launcher', ['exports', '@cardstack/tools/templates/components/cardstack-tools-launcher'], function (exports, _cardstackToolsLauncher) {
  'use strict';

  Object.defineProperty(exports, "__esModule", {
    value: true
  });
  exports.default = Ember.Component.extend({
    layout: _cardstackToolsLauncher.default,
    tools: Ember.inject.service('cardstack-tools'),
    toolsAvailable: Ember.computed.alias('tools.available'),
    active: Ember.computed.alias('tools.active'),
    tagName: '',
    actions: {
      setActive: function setActive(isActive) {
        this.get('tools').setActive(isActive);
      },
      toggleActive: function toggleActive() {
        this.get('tools').setActive(!this.get('active'));
      }
    }
  });
});