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 IconStarComponent(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-star").concat(loadingKls, " ").concat(className), width: width, height: height, viewBox: "0 0 12 12", fill: useCurrentColor ? 'currentColor' : '#000', xmlns: "http://www.w3.org/2000/svg" }, rest, { ref: ref }),
            react_1.default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M5.18961 1.50584C5.41887 1.04131 6.08127 1.04131 6.31053 1.50584L7.47809 3.87158L10.0888 4.25094C10.6015 4.32543 10.8062 4.95541 10.4352 5.317L8.54607 7.15847L8.99204 9.75867C9.07961 10.2692 8.54371 10.6586 8.0852 10.4175L5.75007 9.18988L3.41494 10.4175C2.95642 10.6586 2.42053 10.2692 2.5081 9.75867L2.95407 7.15847L1.06491 5.317C0.693966 4.95542 0.898659 4.32543 1.4113 4.25094L4.02205 3.87158L5.18961 1.50584ZM5.75007 2.62977L4.83153 4.49093C4.74049 4.6754 4.56451 4.80325 4.36095 4.83283L2.30703 5.13129L3.79326 6.58C3.94056 6.72358 4.00778 6.93046 3.97301 7.1332L3.62216 9.17882L5.45923 8.21301C5.64131 8.11729 5.85883 8.11729 6.04091 8.21301L7.87798 9.17882L7.52713 7.1332C7.49236 6.93046 7.55958 6.72358 7.70688 6.58L9.19311 5.13129L7.13919 4.83283C6.93562 4.80325 6.75965 4.6754 6.66861 4.49093L5.75007 2.62977Z" }));
    }
    var IconStar = react_1.default.forwardRef(IconStarComponent);
    exports.default = IconStar;
});
