"use strict";
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 __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    var desc = Object.getOwnPropertyDescriptor(m, k);
    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
      desc = { enumerable: true, get: function() { return m[k]; } };
    }
    Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
    Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
    o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
    if (mod && mod.__esModule) return mod;
    var result = {};
    if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
    __setModuleDefault(result, mod);
    return result;
};
var __rest = (this && this.__rest) || function (s, e) {
    var t = {};
    for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
        t[p] = s[p];
    if (s != null && typeof Object.getOwnPropertySymbols === "function")
        for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
            if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
                t[p[i]] = s[p[i]];
        }
    return t;
};
Object.defineProperty(exports, "__esModule", { value: true });
var react_1 = __importStar(require("react"));
var context_1 = require("../context");
function IconCheckComponent(props, ref) {
    var prefixFromContext = (0, react_1.useContext)(context_1.Context).prefix;
    var _a = props.className, className = _a === void 0 ? '' : _a, prefixFromProps = props.prefix, _b = props.width, width = _b === void 0 ? '1em' : _b, _c = props.height, height = _c === void 0 ? '1em' : _c, _d = props.useCurrentColor, useCurrentColor = _d === void 0 ? true : _d, spin = props.spin, rest = __rest(props, ["className", "prefix", "width", "height", "useCurrentColor", "spin"]);
    var prefix = prefixFromProps || prefixFromContext || 'hiagent';
    var loadingKls = spin ? " ".concat(prefix, "-icon-loading") : '';
    return react_1.default.createElement("svg", __assign({ className: "".concat(prefix, "-icon ").concat(prefix, "-icon-check").concat(loadingKls, " ").concat(className), width: width, height: height, viewBox: "0 0 49 48", fill: useCurrentColor ? 'currentColor' : '#000', xmlns: "http://www.w3.org/2000/svg" }, rest, { ref: ref }),
        react_1.default.createElement("g", { clipPath: "url(#svg_0ba4439ee9__svg_0ba4439ee9__clip0_94162_209422)", fillRule: "evenodd", clipRule: "evenodd" },
            react_1.default.createElement("path", { d: "M37.4928 11.5659L39.3527 13.1265C40.3803 13.9878 40.5142 15.5192 39.6523 16.5464C39.6522 16.5465 39.6521 16.5467 39.6514 16.5465L23.414 35.8867C22.5515 36.913 21.0205 37.0467 19.9931 36.1855L16.2734 33.0643L34.0719 11.8647C34.9344 10.8384 36.4654 10.7046 37.4928 11.5659Z" }),
            react_1.default.createElement("path", { d: "M10.055 24.3979L11.684 22.5887C12.567 21.608 14.0718 21.5122 15.072 22.3731L26.4917 32.2021L23.3847 35.9406C22.5277 36.9718 20.997 37.113 19.9657 36.256C19.953 36.2454 19.9404 36.2347 19.9279 36.2239L10.2696 27.8575C9.2561 26.9796 9.1462 25.4463 10.0241 24.4328C10.0343 24.4211 10.0446 24.4094 10.055 24.3979Z" })),
        react_1.default.createElement("defs", null,
            react_1.default.createElement("clipPath", { id: "svg_0ba4439ee9__svg_0ba4439ee9__clip0_94162_209422" },
                react_1.default.createElement("path", { transform: "translate(.822)", d: "M0 0H48V48H0z" }))));
}
var IconCheck = react_1.default.forwardRef(IconCheckComponent);
exports.default = IconCheck;
