"use strict";
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;
};
Object.defineProperty(exports, "__esModule", { value: true });
var react_1 = __importStar(require("react"));
var context_1 = require("../context");
function IconMagicComponent(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-magic").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("g", { clipPath: "url(#svg_2f3a4fccca__clip0_2798_6914)" },
            react_1.default.createElement("path", { d: "M7.00008 0.293457C7.20472 0.293457 7.37353 0.453551 7.39941 0.65918C7.4637 1.17086 7.58261 1.66551 7.75033 2.13631L7.98446 2.7111C8.66802 4.19667 9.85377 5.39741 11.3204 6.08976L11.8878 6.32731L12.0729 6.39168C12.5081 6.53651 12.9624 6.63861 13.431 6.69303C13.5861 6.71105 13.7067 6.84191 13.7067 7.00008L13.701 7.05819C13.6757 7.18928 13.5666 7.29138 13.431 7.30713L13.3586 7.31624C12.8489 7.38098 12.3565 7.50167 11.8878 7.67285L11.3204 7.9104C9.85377 8.60275 8.66802 9.80349 7.98446 11.2891L7.75033 11.8639C7.58261 12.3347 7.4637 12.8293 7.39941 13.341L7.38346 13.4156C7.33108 13.5841 7.17921 13.7067 7.00008 13.7067L6.92546 13.6993C6.7798 13.6707 6.66163 13.5601 6.6167 13.4156L6.60075 13.341C6.53646 12.8293 6.41755 12.3347 6.24984 11.8639L6.01571 11.2891C5.33214 9.80349 4.14639 8.60275 2.67977 7.9104L2.11239 7.67285C1.68288 7.51599 1.23347 7.40128 0.769124 7.33333L0.569173 7.30713C0.414044 7.28911 0.293457 7.15825 0.293457 7.00008C0.293457 6.84191 0.414044 6.71105 0.569173 6.69303C1.0378 6.63861 1.4921 6.53651 1.92725 6.39168L2.11239 6.32731L2.67977 6.08976C4.14639 5.39741 5.33214 4.19667 6.01571 2.7111L6.24984 2.13631C6.41755 1.66551 6.53646 1.17086 6.60075 0.65918C6.62663 0.453551 6.79544 0.293457 7.00008 0.293457Z" })),
        react_1.default.createElement("defs", null,
            react_1.default.createElement("clipPath", { id: "svg_2f3a4fccca__clip0_2798_6914" },
                react_1.default.createElement("path", { d: "M0 0H14V14H0z" }))));
}
var IconMagic = react_1.default.forwardRef(IconMagicComponent);
exports.default = IconMagic;
