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 IconRetryComponent(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-retry").concat(loadingKls, " ").concat(className), width: width, height: height, viewBox: "0 0 48 48", fill: useCurrentColor ? 'currentColor' : '#000', xmlns: "http://www.w3.org/2000/svg" }, rest, { ref: ref }),
            react_1.default.createElement("g", { clipPath: "url(#svg_165e6d21e0__svg_165e6d21e0__clip0_9868_144708)" },
                react_1.default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M42.8308 23.1427L47.9097 28.4455C48.0312 28.5723 48.0312 28.778 47.9097 28.9049C47.8513 28.9658 47.7722 29 47.6897 29L44.4018 29.0006C42.1584 38.1843 33.8756 45 24.0008 45C14.1257 45 5.8426 38.1838 3.59961 28.9996L7.74786 28.9995C9.88286 35.9485 16.3519 41 24.0008 41C31.6493 41 38.1181 35.9489 40.2534 29.0005L37.3119 29C37.1401 29 37.0008 28.8546 37.0008 28.6752C37.0008 28.589 37.0336 28.5064 37.0919 28.4455L42.1708 23.1427C42.3531 22.9524 42.6486 22.9524 42.8308 23.1427ZM0.311127 19H10.6889C10.7714 19 10.8505 19.0342 10.9089 19.0951C11.013 19.2039 11.0279 19.3705 10.9535 19.4958L10.9089 19.5545L5.83 24.8573C5.67053 25.0238 5.42436 25.0446 5.24321 24.9197L5.17 24.8573L0.091127 19.5545C0.0327794 19.4936 0 19.411 0 19.3248C0 19.1711 0.10234 19.0422 0.239788 19.0086L0.311127 19H10.6889H0.311127ZM24.0006 3C33.8757 3 42.1588 9.81616 44.4018 19.0004L40.2535 19.0005C38.1185 12.0515 31.6495 7 24.0006 7C16.352 7 9.88324 12.0511 7.74793 18.9995L3.59961 18.9994C5.84296 9.81567 14.1258 3 24.0006 3Z" })),
            react_1.default.createElement("defs", null,
                react_1.default.createElement("clipPath", { id: "svg_165e6d21e0__svg_165e6d21e0__clip0_9868_144708" },
                    react_1.default.createElement("path", { d: "M0 0H48V48H0z" }))));
    }
    var IconRetry = react_1.default.forwardRef(IconRetryComponent);
    exports.default = IconRetry;
});
