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 IconProtectionComponent(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-protection").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", { d: "M8.22656 1.4541C8.39372 1.45434 8.5293 1.5906 8.5293 1.75781V2.52832C11.5948 2.79711 14.0374 5.05885 14.3496 7.90723C14.3648 8.0096 14.3742 8.11453 14.376 8.2207V8.25977C14.376 8.27827 14.3754 8.29702 14.375 8.31543C14.3746 8.33269 14.3748 8.35003 14.374 8.36719L14.376 8.36914V8.97461C14.3759 9.30924 14.1042 9.58007 13.7695 9.58008H8.52148V13.3408C8.52126 14.3433 7.70851 15.156 6.70605 15.1562C5.70338 15.1562 4.88987 14.3434 4.88965 13.3408V12.9727C4.88965 12.6379 5.16138 12.3662 5.49609 12.3662C5.83072 12.3663 6.10156 12.638 6.10156 12.9727V13.3408C6.10179 13.674 6.37282 13.9443 6.70605 13.9443C7.03907 13.9441 7.30935 13.6738 7.30957 13.3408V9.58008L4.36914 9.58105L2.06055 9.58008C1.7259 9.58005 1.45418 9.30924 1.4541 8.97461V8.36914L1.45605 8.36816L1.45703 8.36719C1.45546 8.33164 1.4541 8.2957 1.4541 8.25977C1.45411 8.13978 1.46339 8.02149 1.48047 7.90625C1.79363 5.05332 4.24465 2.78958 7.31738 2.52734V1.75781C7.31738 1.59045 7.45276 1.4541 7.62012 1.4541H8.22656ZM7.91504 3.71387C5.12242 3.71397 2.9445 5.67861 2.68555 8.03906L2.67969 8.08398C2.6713 8.14058 2.667 8.19946 2.66699 8.25977C2.66699 8.32128 2.71876 8.36816 2.78027 8.36816H13.0498C13.1113 8.36816 13.1641 8.32128 13.1641 8.25977V8.24023C13.1632 8.18714 13.1588 8.13515 13.1514 8.08496L13.1475 8.06152L13.1455 8.03906C12.8867 5.67841 10.7079 3.71387 7.91504 3.71387Z" }));
    }
    var IconProtection = react_1.default.forwardRef(IconProtectionComponent);
    exports.default = IconProtection;
});
