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 IconTimeoutComponent(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-timeout").concat(loadingKls, " ").concat(className), width: width, height: height, xmlns: "http://www.w3.org/2000/svg", fill: useCurrentColor ? 'currentColor' : '#000', viewBox: "0 0 20 20" }, rest, { ref: ref }),
            react_1.default.createElement("path", { d: "M10 1.766a8.227 8.227 0 0 1 8.026 6.41c.099.433-.248.824-.693.824-.366 0-.673-.27-.762-.626A6.774 6.774 0 0 0 10 3.232a6.77 6.77 0 0 0-6.769 6.769 6.77 6.77 0 0 0 7.83 6.685c.473-.076.939.265.939.745a.674.674 0 0 1-.543.672 8.222 8.222 0 0 1-4.608-.497A8.237 8.237 0 0 1 1.766 10 8.235 8.235 0 0 1 10 1.766Zm5.787 14.287c.15 0 .292.056.398.155.105.1.165.234.165.374v.589c0 .14-.06.275-.165.374a.581.581 0 0 1-.398.155h-.625a.583.583 0 0 1-.398-.155.514.514 0 0 1-.164-.374v-.589a.51.51 0 0 1 .164-.374.578.578 0 0 1 .398-.155h.625ZM15.963 11c.129 0 .252.048.343.134a.446.446 0 0 1 .143.323c0 .836-.044 2.546-.175 3.392-.034.221-.202.44-.485.44h-.632c-.282 0-.45-.22-.484-.44-.13-.846-.173-2.556-.173-3.392a.44.44 0 0 1 .143-.323.502.502 0 0 1 .343-.134h.977ZM9.917 5.1c.405 0 .733.328.733.732v3.822a1.568 1.568 0 0 1-.459 1.108L7.52 13.435a.734.734 0 0 1-1.039-1.037l2.704-2.702V5.832c0-.404.328-.732.732-.732Z" }));
    }
    var IconTimeout = react_1.default.forwardRef(IconTimeoutComponent);
    exports.default = IconTimeout;
});
