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 IconOrientationComponent(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-orientation").concat(loadingKls, " ").concat(className), width: width, height: height, xmlns: "http://www.w3.org/2000/svg", fill: useCurrentColor ? 'currentColor' : '#000', viewBox: "0 0 24 24" }, rest, { ref: ref }),
            react_1.default.createElement("path", { fillRule: "evenodd", d: "M8 6.587c0-1.214.416-2.203 1.087-2.885.67-.679 1.655-1.115 2.913-1.115 1.258 0 2.243.436 2.913 1.115.671.682 1.087 1.67 1.087 2.885 0 .615-.111 1.413-.517 2.092-.38.636-1.069 1.256-2.427 1.493a1 1 0 0 0-.815.823L12 12.452l-.24-1.457a1 1 0 0 0-.786-.817C8.817 9.734 8 7.71 8 6.587Zm4-6c-1.742 0-3.257.615-4.337 1.712C6.584 3.393 6 4.904 6 6.587c0 1.605 1.023 4.421 3.89 5.369l.904 5.467c.226 1.364 2.186 1.364 2.412 0l.899-5.44c1.509-.423 2.495-1.275 3.094-2.278.662-1.107.801-2.31.801-3.118 0-1.683-.584-3.194-1.663-4.288C15.257 1.202 13.742.587 12 .587ZM7.847 15.735a1 1 0 1 0-.438-1.951c-1.586.356-2.987.904-4.018 1.62-1.012.703-1.835 1.696-1.835 2.952 0 .898.427 1.67 1.03 2.281.597.607 1.412 1.108 2.341 1.507 1.861.8 4.363 1.27 7.073 1.27s5.212-.47 7.073-1.27c.929-.399 1.744-.9 2.342-1.507.602-.611 1.03-1.383 1.03-2.28 0-1.257-.824-2.25-1.835-2.952-1.032-.717-2.433-1.265-4.018-1.621a1 1 0 0 0-.44 1.95c1.43.322 2.565.791 3.316 1.313.771.536.977 1.002.977 1.31 0 .222-.101.518-.455.877-.358.364-.926.737-1.706 1.073-1.557.669-3.778 1.107-6.284 1.107-2.505 0-4.726-.439-6.283-1.107-.78-.336-1.348-.71-1.707-1.073-.353-.36-.454-.655-.454-.878 0-.307.205-.773.976-1.309.75-.522 1.886-.99 3.315-1.312Z", clipRule: "evenodd" }));
    }
    var IconOrientation = react_1.default.forwardRef(IconOrientationComponent);
    exports.default = IconOrientation;
});
