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 IconImageUploadComponent(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-image_upload").concat(loadingKls, " ").concat(className), width: width, height: height, viewBox: "0 0 28 28", fill: useCurrentColor ? 'currentColor' : '#000', xmlns: "http://www.w3.org/2000/svg" }, rest, { ref: ref }),
            react_1.default.createElement("path", { d: "M14.6584 4.54338C15.2018 4.54366 15.6427 4.98426 15.6428 5.52775C15.6427 6.07128 15.2019 6.51184 14.6584 6.51212H7.43333C6.16406 6.51238 5.13435 7.54275 5.13435 8.81215L5.1333 20.306C5.13334 20.4682 5.15072 20.6265 5.18273 20.7792L9.36632 16.8354L9.50304 16.7198C10.1518 16.2185 11.0621 16.218 11.7105 16.7198L11.8451 16.8354L14.122 18.983L18.0616 15.2306L18.2005 15.1096C18.9221 14.5495 19.9653 14.6157 20.6109 15.2895L22.8678 17.6442V14.1063C22.8679 13.5628 23.3086 13.1221 23.8522 13.1219C24.3956 13.1222 24.8365 13.5629 24.8366 14.1063V20.306C24.8363 22.6633 22.926 24.5734 20.5688 24.5737H7.43228C5.07529 24.5732 3.16483 22.6632 3.16455 20.306V8.81215C3.16455 6.45456 5.07593 4.54363 7.43333 4.54338H14.6584ZM6.38691 22.3505C6.70072 22.5114 7.05554 22.6048 7.43228 22.605H10.3213L12.6949 20.3428L10.6063 18.373L6.38691 22.3505ZM13.1787 22.605H20.5688C21.7784 22.6046 22.7678 21.6692 22.8584 20.4827L19.3005 16.7692L13.1787 22.605ZM9.9763 9.4663C11.2455 9.46657 12.2762 10.496 12.2763 11.7653C12.2763 13.0346 11.2456 14.065 9.9763 14.0653C8.70697 14.0651 7.67735 13.0347 7.67732 11.7653C7.67754 10.4961 8.70709 9.46659 9.9763 9.4663ZM19.921 4.53076C20.3416 4.11019 21.0233 4.11019 21.4438 4.53076L23.6682 6.75506C24.046 7.13358 24.0453 7.74716 23.6671 8.12541C23.2888 8.50331 22.6762 8.50309 22.2978 8.12541L21.6468 7.47441V11.414C21.6468 11.9495 21.2126 12.3835 20.6772 12.3837C20.1417 12.3836 19.7075 11.9495 19.7075 11.414V7.48493L19.0702 8.1212C18.6918 8.49913 18.0793 8.49917 17.7009 8.1212C17.3227 7.74286 17.3218 7.12933 17.6999 6.75086L19.921 4.53076Z" }));
    }
    var IconImageUpload = react_1.default.forwardRef(IconImageUploadComponent);
    exports.default = IconImageUpload;
});
