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 IconSsoComponent(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 ? 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_1.default.createElement("svg", __assign({ className: "".concat(prefix, "-icon ").concat(prefix, "-icon-sso").concat(loadingKls, " ").concat(className), width: width, height: height, xmlns: "http://www.w3.org/2000/svg", fill: useCurrentColor ? 'currentColor' : 'none', viewBox: "0 0 26 24" }, rest, { ref: ref }),
            react_1.default.createElement("g", null,
                react_1.default.createElement("path", { fill: useCurrentColor ? 'currentColor' : '#1664FF', fillRule: "evenodd", d: "M11.917.181a1.041 1.041 0 0 0-1.18.003l-.572.397c-.305.202-.618.39-.938.566a20.63 20.63 0 0 1-2.586 1.21c-.896.339-1.828.576-2.777.708-.403.059-.81.098-1.216.119l-.973.015a1.01 1.01 0 0 0-1.007 1v9.246C.667 18.264 6.978 24 11.332 24c4.353 0 10.66-5.728 10.667-10.544v-.03l.001-.19-.003-9.037a1.011 1.011 0 0 0-1.006-.999l-.956-.015c-.413-.02-.824-.06-1.232-.118-.95-.132-1.883-.37-2.78-.708a20.48 20.48 0 0 1-2.586-1.208 15.213 15.213 0 0 1-.706-.418l-.067-.04-.057-.04-.04-.026-.011-.007.036.024s-.007.001.03.036a1.02 1.02 0 0 0-.129-.101L11.917.18Z", clipRule: "evenodd" }),
                react_1.default.createElement("path", { fill: useCurrentColor ? 'currentColor' : '#fff', d: "M11.333 10.667a2.667 2.667 0 1 0 0-5.334 2.667 2.667 0 0 0 0 5.334ZM6 16.513A4.513 4.513 0 0 1 10.513 12h1.64a4.514 4.514 0 0 1 4.514 4.513.82.82 0 0 1-.82.82H6.82a.82.82 0 0 1-.82-.82Z" }),
                react_1.default.createElement("path", { fill: useCurrentColor ? 'currentColor' : '#00CDE9', d: "M19.333 24a6 6 0 1 0 0-12 6 6 0 0 0 0 12Z" }),
                react_1.default.createElement("path", { fill: useCurrentColor ? 'currentColor' : '#fff', d: "M18.223 14.667h3.636l-2.223 2.8h3.03l-4.847 5.2 1.009-3.8H16l2.223-4.2Z" }),
                react_1.default.createElement("path", { fill: useCurrentColor ? 'currentColor' : '#fff', fillRule: "evenodd", d: "M18.105 14.604a.133.133 0 0 1 .117-.07h3.636a.133.133 0 0 1 .105.216l-2.051 2.583h2.755a.133.133 0 0 1 .097.225l-4.848 5.2a.133.133 0 0 1-.226-.126L18.654 19H16a.133.133 0 0 1-.118-.196l2.223-4.2Zm.198.196-2.082 3.933h2.607a.133.133 0 0 1 .129.168l-.873 3.285L22.36 17.6h-2.724a.133.133 0 0 1-.104-.216l2.05-2.584h-3.28Z", clipRule: "evenodd" })));
    }
    var IconSso = react_1.default.forwardRef(IconSsoComponent);
    exports.default = IconSso;
});
