"use strict";
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;
};
Object.defineProperty(exports, "__esModule", { value: true });
var react_1 = __importStar(require("react"));
var context_1 = require("../context");
function IconAnnotationComponent(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-annotation").concat(loadingKls, " ").concat(className), width: width, height: height, xmlns: "http://www.w3.org/2000/svg", fill: useCurrentColor ? 'currentColor' : '#000', viewBox: "0 0 12 12" }, rest, { ref: ref }),
        react_1.default.createElement("g", { clipPath: "url(#svg_61979344b1__svg_ee656aa13b__clip0_26545_1137312)" },
            react_1.default.createElement("path", { fillRule: "evenodd", d: "M2.64816 0.6C1.40653 0.6 0.399994 1.60654 0.399994 2.84816V7.89236C0.399994 9.13399 1.40653 10.1405 2.64816 10.1405H4.577L5.61347 11.201C5.73731 11.3277 5.90682 11.3994 6.084 11.4C6.26117 11.4006 6.43119 11.3301 6.55592 11.2043L7.61048 10.1405H9.39265C10.6343 10.1405 11.6408 9.13399 11.6408 7.89236V2.84817C11.6408 1.60654 10.6343 0.6 9.39265 0.6H2.64816ZM1.72244 2.84816C1.72244 2.33691 2.1369 1.92245 2.64816 1.92245H9.39265C9.9039 1.92245 10.3184 2.33691 10.3184 2.84817V7.89236C10.3184 8.40362 9.9039 8.81808 9.39265 8.81808H7.33491C7.15855 8.81808 6.98949 8.88853 6.86533 9.01378L6.08967 9.79621L5.32819 9.01712C5.20378 8.88983 5.03331 8.81808 4.85532 8.81808H2.64816C2.1369 8.81808 1.72244 8.40362 1.72244 7.89236V2.84816ZM4.36734 4.67976C4.00216 4.67976 3.70612 4.9758 3.70612 5.34098C3.70612 5.70616 4.00216 6.0022 4.36734 6.0022H7.67346C8.03865 6.0022 8.33469 5.70616 8.33469 5.34098C8.33469 4.9758 8.03865 4.67976 7.67346 4.67976H4.36734Z", clipRule: "evenodd" })),
        react_1.default.createElement("defs", null,
            react_1.default.createElement("clipPath", { id: "svg_61979344b1__svg_ee656aa13b__clip0_26545_1137312" },
                react_1.default.createElement("path", { d: "M0 0H12V12H0z" }))));
}
var IconAnnotation = react_1.default.forwardRef(IconAnnotationComponent);
exports.default = IconAnnotation;
