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 IconAgentFileComponent(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-agent_file").concat(loadingKls, " ").concat(className), width: width, height: height, viewBox: "0 0 16 16", fill: useCurrentColor ? 'currentColor' : '#000', xmlns: "http://www.w3.org/2000/svg" }, rest, { ref: ref }),
            react_1.default.createElement("g", { clipPath: "url(#svg_481e034e60__clip0_36927_1120675)" },
                react_1.default.createElement("path", { d: "M9.05139 1C9.66996 1.00013 10.2633 1.2453 10.7008 1.68262L12.8893 3.87109C13.3266 4.30857 13.5718 4.90194 13.5719 5.52051V12.667C13.5719 13.9557 12.5276 15 11.2389 15H4.73303C3.44445 14.9998 2.40004 13.9556 2.40002 12.667V3.33301C2.40007 2.04441 3.44447 1.00018 4.73303 1H9.05139ZM4.73303 2.27246C4.14742 2.27264 3.67253 2.74736 3.67249 3.33301V12.667C3.6725 13.2527 4.1474 13.7274 4.73303 13.7275H11.2389C11.8246 13.7275 12.2994 13.2527 12.2994 12.667V5.52051C12.2993 5.23937 12.1877 4.96931 11.9889 4.77051L9.80139 2.58301C9.60259 2.38421 9.33253 2.27259 9.05139 2.27246H4.73303ZM7.53577 5.42871C7.7843 5.18018 8.18763 5.18018 8.43616 5.42871L10.5573 7.5498C10.8058 7.79834 10.8058 8.20166 10.5573 8.4502C10.3088 8.69819 9.90626 8.69822 9.65784 8.4502L8.62366 7.41602L8.62268 10.8281C8.62257 11.1796 8.33744 11.4649 7.98596 11.4648C7.63449 11.4647 7.35011 11.1796 7.35022 10.8281L7.3512 7.41406L6.31506 8.4502C6.06658 8.69854 5.66317 8.69852 5.41467 8.4502C5.16619 8.20171 5.16627 7.79835 5.41467 7.5498L7.53577 5.42871Z" })),
            react_1.default.createElement("defs", null,
                react_1.default.createElement("clipPath", { id: "svg_481e034e60__clip0_36927_1120675" },
                    react_1.default.createElement("path", { d: "M0 0H16V16H0z" }))));
    }
    var IconAgentFile = react_1.default.forwardRef(IconAgentFileComponent);
    exports.default = IconAgentFile;
});
