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 IconPermissionComponent(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-permission").concat(loadingKls, " ").concat(className), width: width, height: height, viewBox: "0 0 18 18", fill: useCurrentColor ? 'currentColor' : '#000', xmlns: "http://www.w3.org/2000/svg" }, rest, { ref: ref }),
            react_1.default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M1.96582 11.5285C1.96582 10.5344 2.77171 9.72852 3.76582 9.72852H13.5158C14.5099 9.72852 15.3158 10.5344 15.3158 11.5285V13.7785C15.3158 14.7726 14.5099 15.5785 13.5158 15.5785H3.76582C2.77171 15.5785 1.96582 14.7726 1.96582 13.7785V11.5285zM3.76582 11.0785C3.51729 11.0785 3.31582 11.28 3.31582 11.5285V13.7785C3.31582 14.027 3.51729 14.2285 3.76582 14.2285H13.5158C13.7643 14.2285 13.9658 14.027 13.9658 13.7785V11.5285C13.9658 11.28 13.7643 11.0785 13.5158 11.0785H3.76582zM3.76582 4.32852C3.51729 4.32852 3.31582 4.52999 3.31582 4.77852V7.02852C3.31582 7.27704 3.51729 7.47852 3.76582 7.47852H7.89082C8.26361 7.47852 8.56582 7.78072 8.56582 8.15352 8.56582 8.52631 8.26361 8.82852 7.89082 8.82852H3.76582C2.77171 8.82852 1.96582 8.02263 1.96582 7.02852V4.77852C1.96582 3.7844 2.77171 2.97852 3.76582 2.97852H7.89082C8.26361 2.97852 8.56582 3.28072 8.56582 3.65352 8.56582 4.02631 8.26361 4.32852 7.89082 4.32852H3.76582zM12.7351 3.77187C11.6581 3.77187 10.7851 4.64492 10.7851 5.72188 10.7851 6.79883 11.6581 7.67188 12.7351 7.67188 13.812 7.67188 14.6851 6.79883 14.6851 5.72188 14.6851 4.64492 13.812 3.77187 12.7351 3.77187zM9.43506 5.72188C9.43506 3.89934 10.9125 2.42188 12.7351 2.42188 14.5576 2.42188 16.0351 3.89934 16.0351 5.72188 16.0351 7.54441 14.5576 9.02188 12.7351 9.02188 10.9125 9.02188 9.43506 7.54441 9.43506 5.72188z" }),
            react_1.default.createElement("path", { d: "M13.8601 5.7218C13.8601 6.34312 13.3564 6.8468 12.7351 6.8468C12.1138 6.8468 11.6101 6.34312 11.6101 5.7218C11.6101 5.10048 12.1138 4.5968 12.7351 4.5968C13.3564 4.5968 13.8601 5.10048 13.8601 5.7218Z" }));
    }
    var IconPermission = react_1.default.forwardRef(IconPermissionComponent);
    exports.default = IconPermission;
});
