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 IconEnComponent(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-en").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: "M4.30321 2.06641C3.08818 2.06641 2.10321 3.05138 2.10321 4.26641V11.7331C2.10321 12.9481 3.08818 13.9331 4.30321 13.9331H11.7699C12.9849 13.9331 13.9699 12.9481 13.9699 11.7331V4.26641C13.9699 3.05138 12.9849 2.06641 11.7699 2.06641H4.30321ZM3.30321 4.26641C3.30321 3.71412 3.75093 3.26641 4.30321 3.26641H11.7699C12.3222 3.26641 12.7699 3.71412 12.7699 4.26641V11.7331C12.7699 12.2854 12.3222 12.7331 11.7699 12.7331H4.30321C3.75093 12.7331 3.30321 12.2854 3.30321 11.7331V4.26641ZM7.90815 10.5091V9.50578H5.44815V8.65245H7.75148V7.65245H5.44815V6.84578H7.89482V5.84245H4.33482V10.5091H7.90815ZM11.7474 8.36245C11.7474 7.60578 11.2408 7.14911 10.5874 7.14911C10.1508 7.14911 9.82076 7.30578 9.61409 7.64911V7.23911H8.61409V10.5091H9.65742V8.74911C9.65742 8.32578 9.89742 8.12911 10.1874 8.12911C10.5108 8.12911 10.7041 8.34578 10.7041 8.73245V10.5091H11.7474V8.36245Z", clipRule: "evenodd" }));
    }
    var IconEn = react_1.default.forwardRef(IconEnComponent);
    exports.default = IconEn;
});
