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;
};
(function (factory) {
    if (typeof module === "object" && typeof module.exports === "object") {
        var v = factory(require, exports);
        if (v !== undefined) module.exports = v;
    }
    else if (typeof define === "function" && define.amd) {
        define(["require", "exports", "react", "../context"], factory);
    }
})(function (require, exports) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    var react_1 = __importStar(require("react"));
    var context_1 = require("../context");
    function IconRerankComponent(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-rerank").concat(loadingKls, " ").concat(className), width: width, height: height, viewBox: "0 0 14 14", fill: useCurrentColor ? 'currentColor' : '#000', xmlns: "http://www.w3.org/2000/svg" }, rest, { ref: ref }),
            react_1.default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M12.5416 2.0415C12.5416 2.20259 12.411 2.33317 12.25 2.33317L2.62496 2.33317L2.62496 12.8332C2.62496 12.9943 2.49437 13.1248 2.33329 13.1248L1.74996 13.1248C1.58887 13.1248 1.45829 12.9943 1.45829 12.8332L1.45829 1.45817C1.45829 1.29709 1.58888 1.1665 1.74996 1.1665L12.25 1.1665C12.411 1.1665 12.5416 1.29709 12.5416 1.45817L12.5416 2.0415ZM7.58329 5.24984C7.58329 5.41092 7.45271 5.5415 7.29163 5.5415L3.79163 5.5415C3.63054 5.5415 3.49996 5.41092 3.49996 5.24984L3.49996 4.6665C3.49996 4.50542 3.63054 4.37484 3.79163 4.37484L7.29163 4.37484C7.45271 4.37484 7.58329 4.50542 7.58329 4.6665L7.58329 5.24984ZM9.62496 8.45817C9.62496 8.61925 9.49438 8.74984 9.33329 8.74984L3.79163 8.74984C3.63054 8.74984 3.49996 8.61925 3.49996 8.45817L3.49996 7.87484C3.49996 7.71375 3.63054 7.58317 3.79163 7.58317L9.33329 7.58317C9.49438 7.58317 9.62496 7.71375 9.62496 7.87484L9.62496 8.45817ZM11.6666 11.6665C11.6666 11.8276 11.536 11.9582 11.375 11.9582L3.79163 11.9582C3.63054 11.9582 3.49996 11.8276 3.49996 11.6665L3.49996 11.0832C3.49996 10.9221 3.63054 10.7915 3.79163 10.7915L11.375 10.7915C11.536 10.7915 11.6666 10.9221 11.6666 11.0832L11.6666 11.6665Z" }));
    }
    var IconRerank = react_1.default.forwardRef(IconRerankComponent);
    exports.default = IconRerank;
});
