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 IconPromiseComponent(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-promise").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("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M26.572 3.648c1.228.827 1.997 1.331 2.213 1.454a29.236 29.236 0 003.736 1.796c1.17.464 2.472.8 3.842 1.004a17.659 17.659 0 001.606.165h.026l1.477.024c1.913.03 3.42 1.506 3.52 3.31l.004.188v.153l.001 1.378.001 2.45v1.2L43 17.836v.028l.002 1.125-4 .03-.002-1.153V16.771l-.001-1.606v-.406l-.001-1.638v-1.22l-1.044-.016c-.126 0-.392-.015-.647-.034a21.815 21.815 0 01-1.559-.177c-1.674-.249-3.284-.666-4.76-1.251a33.318 33.318 0 01-4.26-2.048c-.297-.17-.94-.588-1.993-1.293l-.232-.156-.555.395c-.253.194-1.003.664-1.679 1.051a33.67 33.67 0 01-4.26 2.051c-1.473.585-3.082 1.002-4.757 1.251-.542.08-1.066.14-1.559.177-.211.016-.443.03-.552.032l-.043.001-1.097.018v14.4c0 6.369 8.625 14.879 14.498 14.879.783 0 1.614-.151 2.467-.428l3.02 2.916c-1.85.846-3.722 1.33-5.487 1.33-8.024 0-18.27-10.023-18.494-18.418L6 26.302V11.591C6 9.764 7.444 8.228 9.328 8.1l.196-.009 1.54-.024c-.015 0 .03-.003.096-.007l.217-.015c.39-.029.815-.077 1.258-.143 1.37-.203 2.672-.54 3.836-1.002a29.585 29.585 0 003.74-1.8 22.677 22.677 0 001.243-.765l.043-.031.887-.349c1.246-.888 2.932-1.18 4.188-.307zm7.426 19.585c2.713-1.857 6.491-1.615 8.927.719 2.767 2.652 2.767 6.977.01 9.617l-6.753 6.558-.033.032a3.17 3.17 0 01-4.347-.045l-6.727-6.536a6.62 6.62 0 01.004-9.63l.02-.019c2.437-2.314 6.196-2.545 8.9-.696zm1.898 3.592c1.165-1.105 3.097-1.1 4.261.015 1.124 1.077 1.124 2.774 0 3.85L34 36.671 27.853 30.7c-1.134-1.087-1.134-2.784-.01-3.86l.013-.013c1.166-1.107 3.097-1.102 4.261.013l.495.475 1.383 1.33 1.88-1.8.021-.02z" }));
    }
    var IconPromise = react_1.default.forwardRef(IconPromiseComponent);
    exports.default = IconPromise;
});
