"use strict";
var __webpack_require__ = {};
(()=>{
    __webpack_require__.n = function(module) {
        var getter = module && module.__esModule ? function() {
            return module['default'];
        } : function() {
            return module;
        };
        __webpack_require__.d(getter, {
            a: getter
        });
        return getter;
    };
})();
(()=>{
    __webpack_require__.d = function(exports1, definition) {
        for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
            enumerable: true,
            get: definition[key]
        });
    };
})();
(()=>{
    __webpack_require__.o = function(obj, prop) {
        return Object.prototype.hasOwnProperty.call(obj, prop);
    };
})();
(()=>{
    __webpack_require__.r = function(exports1) {
        if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
            value: 'Module'
        });
        Object.defineProperty(exports1, '__esModule', {
            value: true
        });
    };
})();
var __webpack_exports__ = {};
__webpack_require__.r(__webpack_exports__);
__webpack_require__.d(__webpack_exports__, {
    hasIcon: ()=>hasIcon,
    icons: ()=>Icon_rslib_entry_icons,
    Icon: ()=>Icon,
    registerIcon: ()=>registerIcon,
    registerIcons: ()=>registerIcons,
    default: ()=>Icon_rslib_entry_
});
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
require("react");
const icons_namespaceObject = require("@ant-design/icons");
var icons_default = /*#__PURE__*/ __webpack_require__.n(icons_namespaceObject);
const external_preloaded_js_namespaceObject = require("./preloaded.js");
let IconFont;
const Icon_rslib_entry_icons = new Map();
function registerIcon(type) {
    let icon = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : IconFont;
    Icon_rslib_entry_icons.set(type.toLowerCase(), icon);
}
function hasIcon(type) {
    if (!type) return false;
    return Icon_rslib_entry_icons.has(type.toLowerCase());
}
function registerIcons(components) {
    Object.keys(components).forEach((type)=>{
        registerIcon(type, components[type]);
    });
}
Object.keys(icons_namespaceObject).forEach((name)=>{
    if (name.endsWith('Outlined')) registerIcon(name, icons_namespaceObject[name]);
});
const Icon = (props)=>{
    const { type = '', component, ...restProps } = props;
    if (component) return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(icons_default(), {
        component: component,
        ...restProps
    });
    if (type && Icon_rslib_entry_icons.has(type.toLowerCase())) {
        const IconComponent = Icon_rslib_entry_icons.get(type.toLowerCase());
        return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(IconComponent, {
            ...restProps
        });
    }
    if (type && IconFont) return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(IconFont, {
        type: type
    });
    return null;
};
Icon.createFromIconfontCN = (options)=>{
    IconFont = (0, icons_namespaceObject.createFromIconfontCN)(options);
};
Icon.register = (icons)=>{
    registerIcons(icons);
};
for(const name in external_preloaded_js_namespaceObject){
    const PreloadedIcon = (props)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(Icon, {
            component: external_preloaded_js_namespaceObject[name],
            ...props
        });
    Icon.register({
        [name]: PreloadedIcon
    });
}
const Icon_rslib_entry_ = Icon;
var __webpack_export_target__ = exports;
for(var __webpack_i__ in __webpack_exports__)__webpack_export_target__[__webpack_i__] = __webpack_exports__[__webpack_i__];
if (__webpack_exports__.__esModule) Object.defineProperty(__webpack_export_target__, '__esModule', {
    value: true
});
