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 IconTreeRulesComponent(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 ? false : _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-tree_rules").concat(loadingKls, " ").concat(className), width: width, height: height, xmlns: "http://www.w3.org/2000/svg", fill: useCurrentColor ? 'currentColor' : 'none', viewBox: "0 0 22 22" }, rest, { ref: ref }),
            react_1.default.createElement("rect", { width: "22", height: "22", fill: useCurrentColor ? 'currentColor' : '#17BBBA', rx: "6" }),
            react_1.default.createElement("path", { fill: useCurrentColor ? 'currentColor' : '#fff', d: "m17.943 12.24-1.848-4.205h.373a.665.665 0 0 0 .656-.673.665.665 0 0 0-.656-.672h-1.955a.227.227 0 0 1-.107-.03L13.278 6a1.506 1.506 0 0 0-.76-.207h-.862v-1.12A.665.665 0 0 0 11 4a.665.665 0 0 0-.656.672v1.12h-.862c-.265 0-.529.073-.76.207l-1.127.662a.204.204 0 0 1-.107.029H5.533a.665.665 0 0 0-.657.672c0 .372.294.673.657.673h.373l-1.848 4.206a.684.684 0 0 0 .134.751l.463-.475c-.463.475-.463.475-.463.477l.002.002.004.005.014.014.04.035a2.898 2.898 0 0 0 .601.403c.407.21 1 .407 1.77.407s1.363-.198 1.77-.407a2.899 2.899 0 0 0 .602-.402l.04-.037.013-.013.004-.005.002-.002-.463-.477.463.475a.684.684 0 0 0 .134-.751L7.341 8.035h.142c.266 0 .529-.072.76-.207l1.127-.661c.033-.02.07-.03.108-.03h.862v8.518H8.152a.665.665 0 0 0-.656.673c0 .37.294.672.656.672h5.688a.665.665 0 0 0 .656-.672.665.665 0 0 0-.656-.673h-2.188V7.138h.862c.038 0 .075.01.108.029l1.128.661c.23.135.493.207.759.207h.143l-1.848 4.206a.684.684 0 0 0 .134.751l.463-.475c-.463.475-.463.475-.463.477l.002.002.005.005.013.014.04.035a2.896 2.896 0 0 0 .601.403c.408.21 1 .407 1.77.407s1.363-.198 1.77-.407a2.902 2.902 0 0 0 .602-.402l.04-.037.008-.008.005-.005.004-.005.002-.002-.463-.477.465.475a.678.678 0 0 0 .14-.751Z" }));
    }
    var IconTreeRules = react_1.default.forwardRef(IconTreeRulesComponent);
    exports.default = IconTreeRules;
});
