"use strict";
var __webpack_require__ = {};
(()=>{
    __webpack_require__.d = (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 = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
})();
(()=>{
    __webpack_require__.r = (exports1)=>{
        if ("u" > 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__, {
    TaskIcon: ()=>TaskIcon
});
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
const index_cjs_namespaceObject = require("../../icons/index.cjs");
const external_icons_index_cjs_namespaceObject_0 = require("../../../icons/index.cjs");
const external_TaskIcon_styles_cjs_namespaceObject = require("./TaskIcon.styles.cjs");
const external_TaskIcon_types_cjs_namespaceObject = require("./TaskIcon.types.cjs");
const SIZE_CONFIG = {
    sm: {
        container: 24,
        icon: 16,
        borderRadius: 4
    },
    md: {
        container: 32,
        icon: 24,
        borderRadius: 8
    },
    lg: {
        container: 72,
        icon: 48,
        borderRadius: 8
    }
};
const getIconForType = (type, iconSize)=>{
    switch(type){
        case external_TaskIcon_types_cjs_namespaceObject.TaskItemTypeValues.Agent:
            return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(index_cjs_namespaceObject.AgentProject, {
                w: iconSize,
                h: iconSize
            });
        case external_TaskIcon_types_cjs_namespaceObject.TaskItemTypeValues.ExternalAgent:
            return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_icons_index_cjs_namespaceObject_0.AutopilotIcon, {
                size: iconSize
            });
        case external_TaskIcon_types_cjs_namespaceObject.TaskItemTypeValues.Automation:
            return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(index_cjs_namespaceObject.RpaProject, {
                w: iconSize,
                h: iconSize
            });
        case external_TaskIcon_types_cjs_namespaceObject.TaskItemTypeValues.ApiAutomation:
            return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(index_cjs_namespaceObject.ApiProject, {
                w: iconSize,
                h: iconSize
            });
        case external_TaskIcon_types_cjs_namespaceObject.TaskItemTypeValues.User:
            return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(index_cjs_namespaceObject.HumanIcon, {
                w: iconSize,
                h: iconSize
            });
        case external_TaskIcon_types_cjs_namespaceObject.TaskItemTypeValues.AgenticProcess:
            return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(index_cjs_namespaceObject.BusinessProcessProject, {
                w: iconSize,
                h: iconSize
            });
        case external_TaskIcon_types_cjs_namespaceObject.TaskItemTypeValues.Connector:
            return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(index_cjs_namespaceObject.ConnectorBuilderProject, {
                w: iconSize,
                h: iconSize
            });
        case external_TaskIcon_types_cjs_namespaceObject.TaskItemTypeValues.Timer:
            return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_icons_index_cjs_namespaceObject_0.DurationIcon, {
                size: iconSize
            });
        case external_TaskIcon_types_cjs_namespaceObject.TaskItemTypeValues.CaseManagement:
            return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(index_cjs_namespaceObject.CaseManagementProject, {
                w: iconSize,
                h: iconSize
            });
        case external_TaskIcon_types_cjs_namespaceObject.TaskItemTypeValues.Queues:
            return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_icons_index_cjs_namespaceObject_0.QueueIcon, {
                size: iconSize
            });
        case external_TaskIcon_types_cjs_namespaceObject.TaskItemTypeValues.Tools:
            return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_icons_index_cjs_namespaceObject_0.ConfigurationIcon, {
                size: iconSize
            });
        case external_TaskIcon_types_cjs_namespaceObject.TaskItemTypeValues.MoreElements:
            return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_icons_index_cjs_namespaceObject_0.MoreIcon, {
                size: iconSize
            });
        case external_TaskIcon_types_cjs_namespaceObject.TaskItemTypeValues.CreateNew:
            return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_icons_index_cjs_namespaceObject_0.CreateIcon, {
                size: iconSize
            });
    }
};
const TaskIcon = ({ type, size = 'md' })=>{
    const { container, icon, borderRadius } = SIZE_CONFIG[size];
    const displayIcon = getIconForType(type, icon);
    return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_TaskIcon_styles_cjs_namespaceObject.TaskIconContainer, {
        $size: container,
        $taskType: type,
        $borderRadius: borderRadius,
        children: displayIcon
    });
};
exports.TaskIcon = __webpack_exports__.TaskIcon;
for(var __rspack_i in __webpack_exports__)if (-1 === [
    "TaskIcon"
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
Object.defineProperty(exports, '__esModule', {
    value: true
});
