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 IconSettingComponent(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-setting").concat(loadingKls, " ").concat(className), width: width, height: height, xmlns: "http://www.w3.org/2000/svg", fill: useCurrentColor ? 'currentColor' : '#000', viewBox: "0 0 16 16" }, rest, { ref: ref }),
            react_1.default.createElement("path", { fillRule: "evenodd", d: "M9.59.903a7.229 7.229 0 0 0-3.18 0l-.298.068-.932 2.124-2.294-.25-.207.225a7.273 7.273 0 0 0-1.59 2.765l-.091.29L2.363 8 1.177 9.629l-.179.245.09.29a7.274 7.274 0 0 0 1.59 2.766l.208.226 2.294-.251.809 1.844.123.28.299.068a7.225 7.225 0 0 0 3.178 0l.3-.067.931-2.125 2.295.25.207-.225a7.272 7.272 0 0 0 1.59-2.765l.09-.29L13.638 8l1.187-1.629.179-.246-.09-.29a7.273 7.273 0 0 0-1.59-2.765l-.208-.226-2.295.251L9.888.971 9.59.903ZM6.971 2.027a6.036 6.036 0 0 1 2.056 0l.747 1.703a.992.992 0 0 0 1.016.588l1.836-.201A6.06 6.06 0 0 1 13.66 5.91l-1.096 1.505a.992.992 0 0 0 0 1.168l1.096 1.505a6.06 6.06 0 0 1-1.032 1.794l-1.836-.2a.992.992 0 0 0-1.016.587l-.747 1.703a6.034 6.034 0 0 1-2.056 0l-.746-1.703a.992.992 0 0 0-1.017-.588l-1.836.201a6.06 6.06 0 0 1-1.032-1.794l1.097-1.505a.992.992 0 0 0 0-1.168L2.34 5.911a6.061 6.061 0 0 1 1.032-1.794l1.836.2a.992.992 0 0 0 1.017-.587l.746-1.703ZM8 4.97A3.025 3.025 0 0 1 11.02 8 3.025 3.025 0 0 1 8 11.03 3.025 3.025 0 0 1 4.982 8c0-1.673 1.35-3.03 3.018-3.03ZM6.194 8c0-1.005.81-1.818 1.806-1.818.998 0 1.807.813 1.807 1.818 0 1.005-.81 1.818-1.807 1.818A1.812 1.812 0 0 1 6.194 8Z", clipRule: "evenodd" }));
    }
    var IconSetting = react_1.default.forwardRef(IconSettingComponent);
    exports.default = IconSetting;
});
