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 IconSpeech2textComponent(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-speech2text").concat(loadingKls, " ").concat(className), width: width, height: height, viewBox: "0 0 22 22", fill: useCurrentColor ? 'currentColor' : '#000', xmlns: "http://www.w3.org/2000/svg" }, rest, { ref: ref }),
            react_1.default.createElement("path", { d: "M17.5967 4C18.4451 4 19.1336 4.68771 19.1338 5.53613V17.5967C19.1338 18.4453 18.4453 19.1338 17.5967 19.1338H5.53613C4.68773 19.1336 4 18.4451 4 17.5967V11.8682C4 11.592 4.22386 11.3682 4.5 11.3682H5.03613C5.31227 11.3682 5.53613 11.592 5.53613 11.8682V17.5967H17.5967V5.53613H13.2988C13.0867 5.53613 12.9141 5.36449 12.9141 5.15234V4.38379C12.9142 4.1718 13.0868 4 13.2988 4H17.5967ZM14.4951 9C14.6745 9.0001 14.8203 9.15146 14.8203 9.33789V10.0127C14.8203 10.1991 14.6745 10.3505 14.4951 10.3506H12.2197V16.0908C12.2197 16.2773 12.074 16.4287 11.8945 16.4287H11.2451C11.0656 16.4287 10.9199 16.2773 10.9199 16.0908V10.3506H8.64453C8.46523 10.3504 8.32031 10.199 8.32031 10.0127V9.33789C8.32031 9.15155 8.46523 9.00023 8.64453 9H14.4951ZM6.2002 1.59961C6.36579 1.59971 6.5 1.73477 6.5 1.90039V9.2998C6.5 9.46542 6.36579 9.5995 6.2002 9.59961H5.2998C5.13421 9.5995 5 9.46542 5 9.2998V1.90039C5 1.73477 5.13421 1.59971 5.2998 1.59961H6.2002ZM8.7002 3C8.86573 3.00011 8.99989 3.13427 9 3.2998V7.2998C9 7.46542 8.86579 7.5995 8.7002 7.59961H7.7998C7.63421 7.5995 7.5 7.46542 7.5 7.2998V3.2998C7.50011 3.13427 7.63427 3.00011 7.7998 3H8.7002ZM3.7002 3.75C3.86573 3.75011 3.99989 3.88427 4 4.0498V6.4502C3.99989 6.61573 3.86573 6.74989 3.7002 6.75H2.7998C2.63427 6.74989 2.50011 6.61573 2.5 6.4502V4.0498C2.50011 3.88427 2.63427 3.75011 2.7998 3.75H3.7002ZM11.2002 4C11.3657 4.00011 11.4999 4.13427 11.5 4.2998V5.7002C11.4999 5.86573 11.3657 5.99989 11.2002 6H10.2998C10.1343 5.99989 10.0001 5.86573 10 5.7002V4.2998C10.0001 4.13427 10.1343 4.00011 10.2998 4H11.2002Z" }));
    }
    var IconSpeech2text = react_1.default.forwardRef(IconSpeech2textComponent);
    exports.default = IconSpeech2text;
});
