"use strict";
var __extends = (this && this.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __importStar = (this && this.__importStar) || function (mod) {
    if (mod && mod.__esModule) return mod;
    var result = {};
    if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
    result["default"] = mod;
    return result;
};
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
var React = __importStar(require("react"));
var classnames_1 = __importDefault(require("classnames"));
var CardContent_1 = require("./CardContent");
var CardImage_1 = require("./CardImage");
var Card = /** @class */ (function (_super) {
    __extends(Card, _super);
    function Card() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    Card.prototype.render = function () {
        var props = this.props;
        var className = classnames_1.default('rc-card', {
            'rc-card--secondary': props.secondary,
            'rc-card--with-footer': props.hasFooter,
            'rc-card--clickable': props.onClick
        });
        return (
        // eslint-disable-next-line
        React.createElement("section", { "data-test-automation-id": props.testAutomationId, className: className, onClick: props.onClick, role: props.onClick ? 'button' : 'presentation' }, props.children));
    };
    Card.Image = CardImage_1.CardImage;
    Card.Content = CardContent_1.CardContent;
    Card.defaultProps = {
        secondary: false,
        hasFooter: false,
        testAutomationId: 'card'
    };
    return Card;
}(React.PureComponent));
exports.Card = Card;
//# sourceMappingURL=Card.js.map