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 IconScaleComponent(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-scale").concat(loadingKls, " ").concat(className), width: width, height: height, xmlns: "http://www.w3.org/2000/svg", fill: useCurrentColor ? 'currentColor' : '#000', viewBox: "0 0 20 20" }, rest, { ref: ref }),
            react_1.default.createElement("g", { fillRule: "evenodd", clipRule: "evenodd" },
                react_1.default.createElement("path", { d: "M16.7887 2.62204L17.378 3.21129C17.5407 3.37401 17.5407 3.63783 17.378 3.80055L13.342 7.83588 15.8083 7.83629C15.994 7.83629 16.0614 7.85563 16.1293 7.89195 16.1972 7.92826 16.2505 7.98155 16.2868 8.04945 16.3231 8.11735 16.3424 8.1847 16.3424 8.37044V8.96882C16.3424 9.15455 16.3231 9.2219 16.2868 9.2898 16.2505 9.35771 16.1972 9.41099 16.1293 9.44731 16.0614 9.48362 15.994 9.50296 15.8083 9.50296H11.3424C10.8822 9.50296 10.5091 9.12986 10.5091 8.66963V4.20377C10.5091 4.01804 10.5284 3.95069 10.5647 3.88278 10.6011 3.81488 10.6544 3.76159 10.7223 3.72528 10.7902 3.68897 10.8575 3.66963 11.0432 3.66963H11.6416C11.8274 3.66963 11.8947 3.68897 11.9626 3.72528 12.0305 3.76159 12.0838 3.81488 12.1201 3.88278 12.1564 3.95069 12.1758 4.01804 12.1758 4.20377V6.64546L16.1995 2.62204C16.3622 2.45932 16.626 2.45932 16.7887 2.62204zM9.16667 10C9.6269 10 10 10.3731 10 10.8333V15.4167C10 15.6468 9.81345 15.8333 9.58333 15.8333H8.75C8.51988 15.8333 8.33333 15.6468 8.33333 15.4167L8.33314 12.9163 4.35156 16.8985C4.18884 17.0612 3.92503 17.0612 3.76231 16.8985L3.17305 16.3092C3.01033 16.1465 3.01033 15.8827 3.17305 15.72L7.22606 11.6667H4.58333C4.35321 11.6667 4.16667 11.4801 4.16667 11.25V10.4167C4.16667 10.1865 4.35321 10 4.58333 10H9.16667z" })));
    }
    var IconScale = react_1.default.forwardRef(IconScaleComponent);
    exports.default = IconScale;
});
