"use strict";
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
    if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
    return cooked;
};
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 __assign = (this && this.__assign) || function () {
    __assign = Object.assign || function(t) {
        for (var s, i = 1, n = arguments.length; i < n; i++) {
            s = arguments[i];
            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
                t[p] = s[p];
        }
        return t;
    };
    return __assign.apply(this, arguments);
};
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 styled_components_1 = __importDefault(require("styled-components"));
var ToolTip_1 = require("./ToolTip");
var styleConstants_1 = require("./styleConstants");
var Outer = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n  display: inline-block;\n  vertical-align: top;\n"], ["\n  display: inline-block;\n  vertical-align: top;\n"])));
var Wrapper = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n  width: 18px;\n  height: 18px;\n  position: relative;\n  margin-left: 5px;\n  margin-top: -1px;\n"], ["\n  width: 18px;\n  height: 18px;\n  position: relative;\n  margin-left: 5px;\n  margin-top: -1px;\n"])));
var QuestionToolTip = /** @class */ (function (_super) {
    __extends(QuestionToolTip, _super);
    function QuestionToolTip() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    QuestionToolTip.prototype.render = function () {
        var colorEnabled = (this.props.theme && this.props.theme.toolTipColorEnabled) || styleConstants_1.colors.primary.BLACK;
        var colorDisabled = (this.props.theme && this.props.theme.toolTipColorDisabled) || styleConstants_1.colors.accent.CIVIL_GRAY_4;
        var color = this.props.disabled ? colorDisabled : colorEnabled;
        return (React.createElement(Outer, null,
            React.createElement(ToolTip_1.ToolTip, __assign({}, this.props),
                React.createElement(Wrapper, null,
                    React.createElement("svg", { height: "18", viewBox: "0 0 18 18", width: "18", xmlns: "http://www.w3.org/2000/svg" },
                        React.createElement("g", { fill: "none", fillRule: "evenodd", opacity: ".56" },
                            React.createElement("path", { d: "m0 0h18v18h-18z", stroke: color, strokeOpacity: ".008", strokeWidth: ".5" }),
                            React.createElement("path", { d: "m8.25 13.5h1.5v-1.5h-1.5zm.75-12c-4.13999999 0-7.5 3.36000001-7.5 7.5 0 4.1400003 3.36000001 7.5 7.5 7.5 4.1400003 0 7.5-3.3599997 7.5-7.5 0-4.14000035-3.3599997-7.5-7.5-7.5zm0 13.5c-3.30749989 0-6-2.6925002-6-6 0-3.30749989 2.69250011-6 6-6 3.3074998 0 6 2.69250011 6 6 0 3.3074998-2.6925002 6-6 6zm0-10.5c-1.65750003 0-3 1.34249997-3 3h1.5c0-.82500029.6749997-1.5 1.5-1.5.82500023 0 1.5.67499971 1.5 1.5 0 1.5-2.25 1.3125-2.25 3.75h1.5c0-1.6875 2.25-1.875 2.25-3.75 0-1.65750003-1.3425-3-3-3z", fill: color })))))));
    };
    return QuestionToolTip;
}(React.Component));
exports.QuestionToolTip = QuestionToolTip;
var templateObject_1, templateObject_2;
//# sourceMappingURL=QuestionToolTip.js.map