define('@cardstack/tools/components/cs-toggle-switch', ['exports', '@cardstack/tools/templates/components/cs-toggle-switch'], function (exports, _csToggleSwitch) {
  'use strict';

  Object.defineProperty(exports, "__esModule", {
    value: true
  });
  exports.default = Ember.Component.extend({
    layout: _csToggleSwitch.default,
    classNames: ['cs-toggle-switch'],
    classNameBindings: ['enabled::disabled'],
    enabled: true,
    click: function click() {
      if (this.get('enabled')) {
        this.get('change')(!this.get('value'));
      }
    }
  });
});