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 IconFirstFrameComponent(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-first_frame").concat(loadingKls, " ").concat(className), width: width, height: height, viewBox: "0 0 22 22", fill: useCurrentColor ? 'currentColor' : '#000', xmlns: "http://www.w3.org/2000/svg" }, rest, { ref: ref }),
            react_1.default.createElement("path", { d: "M17.5857 3.6102C18.5798 3.6102 19.3855 4.41589 19.3855 5.41V16.5868C19.3854 17.5808 18.5797 18.3866 17.5857 18.3866H7.09937C6.10545 18.3864 5.29969 17.5807 5.29956 16.5868V5.41C5.29956 4.41597 6.10536 3.61033 7.09937 3.6102H17.5857ZM3.40991 3.70004C3.85169 3.70004 4.20963 4.05809 4.20972 4.49985V17.4998C4.20972 17.9417 3.85174 18.2997 3.40991 18.2997C2.96808 18.2997 2.61011 17.9417 2.61011 17.4998V4.49985C2.61019 4.05809 2.96814 3.70004 3.40991 3.70004ZM7.09937 5.20981C6.98902 5.20994 6.89917 5.29963 6.89917 5.41V16.5868C6.8993 16.697 6.9891 16.7868 7.09937 16.787H17.5857C17.6961 16.787 17.7858 16.6971 17.7859 16.5868V5.41C17.7859 5.29955 17.6962 5.20981 17.5857 5.20981H7.09937ZM10.9441 7.83481C11.045 7.83481 11.1426 7.86946 11.2214 7.93246L14.5105 10.5633C14.7019 10.7167 14.7329 10.9958 14.5798 11.1873C14.5594 11.2129 14.536 11.2362 14.5105 11.2567L11.2214 13.8875C11.0298 14.0408 10.7507 14.0099 10.5974 13.8182C10.5344 13.7394 10.4998 13.6418 10.4998 13.5409V8.27914C10.4998 8.03373 10.6987 7.83487 10.9441 7.83481Z" }));
    }
    var IconFirstFrame = react_1.default.forwardRef(IconFirstFrameComponent);
    exports.default = IconFirstFrame;
});
