var __extends = (this && this.__extends) || function (d, b) {
    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
    function __() { this.constructor = d; }
    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
define(["require", "exports", "react", "../../Utilities", "./Check.scss"], function (require, exports, React, Utilities_1, Check_scss_1) {
    "use strict";
    var Check = (function (_super) {
        __extends(Check, _super);
        function Check() {
            return _super !== null && _super.apply(this, arguments) || this;
        }
        Check.prototype.shouldComponentUpdate = function (newProps) {
            return this.props.isChecked !== newProps.isChecked || this.props.checked !== newProps.checked;
        };
        Check.prototype.render = function () {
            var _a = this.props, isChecked = _a.isChecked, checked = _a.checked;
            isChecked = isChecked || checked;
            return (React.createElement("div", { className: Utilities_1.css('ms-Check', Check_scss_1.default.root, (_b = {},
                    _b['is-checked ' + Check_scss_1.default.rootIsChecked] = isChecked,
                    _b)) },
                React.createElement("div", { className: Utilities_1.css('ms-Icon ms-Check-background', Check_scss_1.default.background) }),
                React.createElement("i", { className: Utilities_1.css('ms-Check-check ms-Icon ms-Icon--CheckMark', Check_scss_1.default.check) })));
            var _b;
        };
        return Check;
    }(React.Component));
    Check.defaultProps = {
        isChecked: false
    };
    exports.Check = Check;
});

//# sourceMappingURL=Check.js.map
