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 __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;
};
import React, { useContext } from 'react';
import { Context } from '../context';
function IconEventComponent(props, ref) {
    var prefixFromContext = useContext(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.createElement("svg", __assign({ className: "".concat(prefix, "-icon ").concat(prefix, "-icon-event").concat(loadingKls, " ").concat(className), width: width, height: height, xmlns: "http://www.w3.org/2000/svg", fill: useCurrentColor ? 'currentColor' : 'none', viewBox: "0 0 24 24" }, rest, { ref: ref }),
        React.createElement("g", null,
            React.createElement("path", { fill: useCurrentColor ? 'currentColor' : '#00B3EF', d: "M16 0H8a8 8 0 0 0-8 8v8a8 8 0 0 0 8 8h8a8 8 0 0 0 8-8V8a8 8 0 0 0-8-8Z" }),
            React.createElement("path", { fill: useCurrentColor ? 'currentColor' : '#fff', fillRule: "evenodd", d: "M5.5 5A1.5 1.5 0 0 0 4 6.5v9.4a1.5 1.5 0 0 0 1.5 1.5h3.108a2.042 2.042 0 0 1 .227-1.804l.43-.669V12.89c0-3.15 2.593-5.659 5.735-5.659a5.755 5.755 0 0 1 5 2.884V6.5A1.5 1.5 0 0 0 18.5 5h-13Zm.75 2a.75.75 0 0 0 0 1.5h3a.75.75 0 0 0 0-1.5h-3Zm-.75 3.75a.75.75 0 0 1 .75-.75h1.5a.75.75 0 0 1 0 1.5h-1.5a.75.75 0 0 1-.75-.75Z", clipRule: "evenodd", opacity: ".7" }),
            React.createElement("path", { fill: useCurrentColor ? 'currentColor' : '#fff', fillRule: "evenodd", d: "M19.904 16.408a.6.6 0 0 1-.516.92h-8.776a.6.6 0 0 1-.516-.92l.442-.687a1.42 1.42 0 0 0 .227-.77V12.89c0-2.297 1.896-4.159 4.235-4.159 2.339 0 4.235 1.862 4.235 4.16v2.061c0 .273.079.54.227.77l.442.687Zm-6.056 1.643a.84.84 0 1 0 0 1.679h2.31a.84.84 0 0 0 0-1.679h-2.31Z", clipRule: "evenodd" })));
}
var IconEvent = React.forwardRef(IconEventComponent);
export default IconEvent;
