"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 IconWhiteListComponent(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-whiteList").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", { d: "M8.57471 9.07874C8.98925 9.07874 9.32544 9.41425 9.32568 9.82874C9.32568 10.2434 8.9894 10.5797 8.57471 10.5797H6.07178C4.18276 10.5799 2.65188 12.1116 2.65186 14.0006V14.8346C2.65186 14.8807 2.68879 14.9186 2.73486 14.9186H11.0776C11.4923 14.9186 11.8286 15.2549 11.8286 15.6696C11.8284 16.0841 11.4922 16.4205 11.0776 16.4205H2.73486C1.8594 16.4205 1.1499 15.7101 1.1499 14.8346V14.0006C1.14993 11.2822 3.35338 9.07887 6.07178 9.07874H8.57471ZM15.5073 9.34924C15.7726 9.03053 16.2462 8.98725 16.5649 9.25256C16.8831 9.51783 16.9264 9.99064 16.6616 10.3092L13.5356 14.0641C13.3982 14.229 13.1965 14.3269 12.9819 14.3336C12.7674 14.3402 12.56 14.2553 12.4126 14.0992L10.5327 12.1071C10.2481 11.8055 10.2615 11.3302 10.563 11.0455C10.8645 10.7611 11.3399 10.7754 11.6245 11.0768L12.9233 12.4528L15.5073 9.34924ZM8.57471 1.56995C10.3717 1.56995 11.8286 3.02686 11.8286 4.82385C11.8284 6.62065 10.3716 8.07678 8.57471 8.07678C6.77795 8.07667 5.32103 6.62058 5.3208 4.82385C5.3208 3.02693 6.77781 1.57006 8.57471 1.56995ZM8.57471 3.07092C7.60719 3.07104 6.82275 3.85631 6.82275 4.82385C6.82299 5.7912 7.60733 6.57569 8.57471 6.57581C9.54218 6.57581 10.3264 5.79127 10.3267 4.82385C10.3267 3.85624 9.54232 3.07092 8.57471 3.07092Z" }));
}
var IconWhiteList = react_1.default.forwardRef(IconWhiteListComponent);
exports.default = IconWhiteList;
