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 IconSelectComponent(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-select").concat(loadingKls, " ").concat(className), width: width, height: height, xmlns: "http://www.w3.org/2000/svg", fill: useCurrentColor ? 'currentColor' : '#000', viewBox: "0 0 14 14" }, rest, { ref: ref }),
            react_1.default.createElement("path", { d: "M11.66 5.72 2.99.712a.532.532 0 0 0-.63.074.508.508 0 0 0-.16.385v10.016c0 .139.064.278.16.374.107.096.235.15.374.15a.541.541 0 0 0 .352-.14l2.072-2.007 1.772 3.075a1 1 0 0 0 1.357.374l1.9-1.1a.996.996 0 0 0 .363-1.356L8.778 7.471l2.765-.8a.523.523 0 0 0 .117-.95Zm-3.822.929c-.043.01-.075.032-.117.053a.536.536 0 0 0-.193.716l2.083 3.609-1.805 1.036-2.072-3.599a.53.53 0 0 0-.384-.267h-.075a.509.509 0 0 0-.363.15L3.246 9.948v-7.87l6.813 3.94-2.221.63Z" }),
            react_1.default.createElement("path", { fillRule: "evenodd", d: "M3.028.647 11.7 5.655a.6.6 0 0 1 .219.806.583.583 0 0 1-.356.281l-2.673.774 1.725 3.003c.3.507.114 1.16-.39 1.458l-1.9 1.1a1.07 1.07 0 0 1-.53.139c-.38 0-.735-.207-.93-.539L5.142 9.685l-2.005 1.942a.616.616 0 0 1-.402.158.628.628 0 0 1-.424-.169l-.003-.002a.619.619 0 0 1-.182-.427V1.17c0-.167.06-.327.184-.44a.608.608 0 0 1 .719-.084Zm0 0L2.99.71Zm-.075.13A.457.457 0 0 0 2.41.84v.001a.433.433 0 0 0-.136.329v10.016c0 .116.054.236.137.32a.477.477 0 0 0 .322.128.466.466 0 0 0 .301-.119l2.14-2.073 1.82 3.158a.934.934 0 0 0 .8.465.92.92 0 0 0 .454-.118l1.9-1.1a.921.921 0 0 0 .337-1.253l-1.82-3.17 2.86-.828a.433.433 0 0 0 .261-.209.448.448 0 0 0-.164-.604L2.953.776Zm.218 1.171 7.08 4.094-2.395.68a.254.254 0 0 0-.062.026l-.037.02a.461.461 0 0 0-.163.612l2.12 3.674-1.936 1.11L5.668 8.5a.456.456 0 0 0-.323-.227h-.07a.434.434 0 0 0-.31.127L3.17 10.124V1.948Zm.15.26v7.564L4.86 8.293a.585.585 0 0 1 .416-.171h.085a.606.606 0 0 1 .44.305l2.034 3.533L9.508 11 7.463 7.455a.612.612 0 0 1 .219-.817l.005-.003a.483.483 0 0 1 .132-.059l2.05-.581L3.32 2.208Z", clipRule: "evenodd" }));
    }
    var IconSelect = react_1.default.forwardRef(IconSelectComponent);
    exports.default = IconSelect;
});
