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 __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;
};
import React, { useContext } from 'react';
import { Context } from '../context';
function IconGraphSWindowComponent(props, ref) {
    var prefixFromContext = useContext(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.createElement("svg", __assign({ className: "".concat(prefix, "-icon ").concat(prefix, "-icon-graph-S-window").concat(loadingKls, " ").concat(className), width: width, height: height, xmlns: "http://www.w3.org/2000/svg", fill: useCurrentColor ? 'currentColor' : '#000', viewBox: "0 0 20 20" }, rest, { ref: ref }),
        React.createElement("path", { fillRule: "evenodd", d: "m16.776 17.378.59-.59a.417.417 0 0 0 0-.589l-4.037-4.035h2.467c.185 0 .253-.02.32-.056a.38.38 0 0 0 .158-.158c.036-.067.056-.135.056-.32v-.599c0-.186-.02-.253-.056-.32a.378.378 0 0 0-.157-.158c-.068-.037-.136-.056-.321-.056H11.33a.833.833 0 0 0-.834.833v4.466c0 .186.02.253.056.321.036.068.09.121.158.158.067.036.135.055.32.055h.599c.186 0 .253-.019.32-.055a.378.378 0 0 0 .158-.158c.037-.068.056-.135.056-.32v-2.443l4.024 4.024a.417.417 0 0 0 .589 0ZM8.616 9.52c.46 0 .833-.373.833-.833V4.104a.417.417 0 0 0-.416-.417h-.834a.417.417 0 0 0-.416.417v2.5L3.8 2.622a.417.417 0 0 0-.59 0l-.589.59a.417.417 0 0 0 0 .589l4.053 4.053H4.033a.417.417 0 0 0-.417.417v.833c0 .23.186.417.417.417h4.583Z", clipRule: "evenodd" }));
}
var IconGraphSWindow = React.forwardRef(IconGraphSWindowComponent);
export default IconGraphSWindow;
