"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 IconPromptWordTemplateComponent(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-prompt-word-template").concat(loadingKls, " ").concat(className), width: width, height: height, xmlns: "http://www.w3.org/2000/svg", fill: useCurrentColor ? 'currentColor' : '#000', viewBox: "0 0 16 16" }, rest, { ref: ref }),
        react_1.default.createElement("path", { d: "M11.094 4.244a1.433 1.433 0 0 1 2.026 0l1.75 1.75a1.435 1.435 0 0 1 0 2.027l-7.1 7.098c-.198.198-.467.31-.748.31H4.771c-.6 0-1.086-.487-1.086-1.086V12.09c0-.28.111-.548.31-.746l7.099-7.1Zm1.066.96a.076.076 0 0 0-.106 0l-7.012 7.01v1.857h1.856l7.011-7.01a.076.076 0 0 0 0-.108L12.16 5.204ZM4.34.572c.29-.015.55.178.619.461.19.787.476 1.225.863 1.566.41.36.951.633 1.755 1.038l.075.037a.603.603 0 0 1-.026 1.09c-1.227.546-1.78 1.068-2.077 1.49a3.22 3.22 0 0 0-.342.643l-.063.158c-.069.17-.148.37-.239.54a.604.604 0 0 1-1.129-.188c-.104-.648-.514-1.295-1.048-1.799-.55-.518-1.112-.775-1.416-.793a.604.604 0 0 1-.066-1.197c.657-.11 1.265-.511 1.734-1.033.477-.53.746-1.11.794-1.487A.603.603 0 0 1 4.34.572Zm.03 2.178c-.145.223-.312.44-.494.643a4.905 4.905 0 0 1-.957.825 5.237 5.237 0 0 1 1.498 1.564 3.88 3.88 0 0 1 .144-.221c.32-.454.784-.907 1.507-1.347a5.94 5.94 0 0 1-1.044-.71 3.596 3.596 0 0 1-.654-.754Z" }));
}
var IconPromptWordTemplate = react_1.default.forwardRef(IconPromptWordTemplateComponent);
exports.default = IconPromptWordTemplate;
