text: "use strict";
  
  exports.__esModule = true;
  exports.cardSelectableBehavior = void 0;
  
  var _keyboardKey = require("../../keyboard-key");
  
  var _attributes = require("../../attributes");
  
  /**
   * @description
   * Behavior for a selectable card component
   * @specification
   * Adds role='group'.
   * Adds attribute 'aria-disabled=true' based on the property 'disabled'.
   * Adds attribute 'tabIndex=0' to 'root' slot.
   * Adds attribute 'data-is-focusable=true' to 'root' slot.
   * Triggers 'performClick' action with 'Spacebar' on 'root'.
   */
  var cardSelectableBehavior = function cardSelectableBehavior(props) {
    var _root;
  
    return {
      attributes: {
        root: (_root = {
          role: 'group',
          tabIndex: 0
        }, _root[_attributes.IS_FOCUSABLE_ATTRIBUTE] = true, _root['aria-disabled'] = props.disabled, _root)
      },
      keyActions: {
        root: {
          performClick: {
            keyCombinations: [{
              keyCode: _keyboardKey.SpacebarKey
            }]
          }
        }
      }
    };
  };
  
  exports.cardSelectableBehavior = cardSelectableBehavior;
  //# sourceMappingURL=cardSelectableBehavior.js.map
  