"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 IconSyncComponent(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-sync").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: "M13.314 13.1974L14.7409 12.0686 12.2591 8.93159 10.6472 10.2068 10.565 10.289C3.47163 17.3823 3.15939 28.6889 9.62823 36.1532 12.4416 39.3995 16.3318 41.6371 20.5611 42.4119L21.2819 38.4774C18.3926 37.9481 15.6303 36.5676 13.3934 34.3307 7.5621 28.4993 7.53566 19.0614 13.314 13.1974zM27.4353 5.03271C31.0975 5.70362 34.6023 7.45635 37.4315 10.2855 44.8515 17.7055 44.8515 29.7356 37.4315 37.1555L36.0172 38.5698 33.1888 35.7413 34.6031 34.3271C40.4609 28.4693 40.4609 18.9718 34.6031 13.1139 32.3661 10.877 29.6039 9.49655 26.7145 8.96724L27.4353 5.03271z" }),
        react_1.default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M36 36.7998C35.4477 36.7998 35 36.3521 35 35.7998V31.2998C35 30.7475 34.5523 30.2998 34 30.2998H32C31.4477 30.2998 31 30.7475 31 31.2998V38.7998C31 39.9044 31.8954 40.7998 33 40.7998H40.5C41.0523 40.7998 41.5 40.3521 41.5 39.7998V37.7998C41.5 37.2475 41.0523 36.7998 40.5 36.7998H36zM12.5 11C13.0523 11 13.5 11.4477 13.5 12V16.5C13.5 17.0523 13.9477 17.5 14.5 17.5H16.5C17.0523 17.5 17.5 17.0523 17.5 16.5L17.5 9.00003C17.5 7.89546 16.6046 7.00003 15.5 7.00003L8 7.00003C7.44771 7.00003 7 7.44774 7 8.00003L7 10C7 10.5523 7.44771 11 8 11L12.5 11z" }));
}
var IconSync = react_1.default.forwardRef(IconSyncComponent);
exports.default = IconSync;
