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 IconCancelingInProgressComponent(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 ? false : _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-canceling-in-progress").concat(loadingKls, " ").concat(className), width: width, height: height, viewBox: "0 0 24 25", fill: useCurrentColor ? 'currentColor' : 'none', xmlns: "http://www.w3.org/2000/svg" }, rest, { ref: ref }),
            react_1.default.createElement("switch", null,
                react_1.default.createElement("g", null,
                    react_1.default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M13.7998 6.30669C12.4998 5.90669 11.0998 5.95669 9.79984 6.45669C8.49984 6.95669 7.39984 7.80669 6.64984 8.95669C5.89984 10.1067 5.54984 11.4567 5.59984 12.8567C5.64984 14.2567 6.19984 15.5567 7.09984 16.6067C7.99984 17.6567 9.19984 18.4067 10.5498 18.7067C11.8998 19.0067 13.2998 18.9067 14.5498 18.3067C15.4498 17.9067 16.4998 18.3067 16.8998 19.2067C17.2998 20.1067 16.8998 21.1567 15.9998 21.5567C14.0498 22.4067 11.8498 22.6567 9.74984 22.1567C7.64984 21.6567 5.74984 20.5067 4.34984 18.9067C2.99984 17.3067 2.14984 15.2567 1.99984 13.1067C1.89984 10.9567 2.44984 8.80669 3.59984 7.00669C4.79984 5.20669 6.49984 3.80669 8.54984 3.10669C10.5498 2.35669 12.7998 2.30669 14.8498 2.90669C16.8998 3.50669 18.7498 4.75669 19.9998 6.45669C21.2998 8.20669 21.9998 10.2567 21.9998 12.4567C21.9998 13.4567 21.1998 14.2567 20.1998 14.2567C19.1998 14.2567 18.3998 13.4567 18.3998 12.4567C18.3998 11.0567 17.9498 9.75669 17.1498 8.60669C16.2998 7.50669 15.1498 6.70669 13.7998 6.30669Z", fill: useCurrentColor ? 'currentColor' : 'url(#svg_235c23df4b__a)' }),
                    react_1.default.createElement("linearGradient", { id: "svg_235c23df4b__a", x1: "13.215", y1: "7.364", x2: "10.715", y2: "16.739", gradientUnits: "userSpaceOnUse" },
                        react_1.default.createElement("stop", { stopColor: "#4E5969" }),
                        react_1.default.createElement("stop", { offset: "1", stopColor: "#4E5969", stopOpacity: "0" })),
                    react_1.default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M13.7998 6.30669C12.4998 5.90669 11.0998 5.95669 9.79984 6.45669C8.49984 6.95669 7.39984 7.80669 6.64984 8.95669C5.89984 10.1067 5.54984 11.4567 5.59984 12.8567C5.64984 14.2567 6.19984 15.5567 7.09984 16.6067C7.99984 17.6567 9.19984 18.4067 10.5498 18.7067C11.8998 19.0067 13.2998 18.9067 14.5498 18.3067C15.4498 17.9067 16.4998 18.3067 16.8998 19.2067C17.2998 20.1067 16.8998 21.1567 15.9998 21.5567C14.0498 22.4067 11.8498 22.6567 9.74984 22.1567C7.64984 21.6567 5.74984 20.5067 4.34984 18.9067C2.99984 17.3067 2.14984 15.2567 1.99984 13.1067C1.89984 10.9567 2.44984 8.80669 3.59984 7.00669C4.79984 5.20669 6.49984 3.80669 8.54984 3.10669C10.5498 2.35669 12.7998 2.30669 14.8498 2.90669C16.8998 3.50669 18.7498 4.75669 19.9998 6.45669C21.2998 8.20669 21.9998 10.2567 21.9998 12.4567C21.9998 13.4567 21.1998 14.2567 20.1998 14.2567C19.1998 14.2567 18.3998 13.4567 18.3998 12.4567C18.3998 11.0567 17.9498 9.75669 17.1498 8.60669C16.2998 7.50669 15.1498 6.70669 13.7998 6.30669Z", fill: useCurrentColor ? 'currentColor' : 'url(#svg_235c23df4b__b)' }),
                    react_1.default.createElement("linearGradient", { id: "svg_235c23df4b__b", x1: "-.574", y1: "10.023", x2: "18.801", y2: "13.773", gradientUnits: "userSpaceOnUse" },
                        react_1.default.createElement("stop", { stopColor: "#CCCFD4" }),
                        react_1.default.createElement("stop", { offset: "1", stopColor: "#CCCFD4", stopOpacity: "0" }))),
                react_1.default.createElement("animateTransform", { attributeName: "transform", begin: "0s", dur: "2s", type: "rotate", from: "0 12 12.5", to: "360 12 12.5", repeatCount: "indefinite" })));
    }
    var IconCancelingInProgress = react_1.default.forwardRef(IconCancelingInProgressComponent);
    exports.default = IconCancelingInProgress;
});
