"use strict";
var __webpack_require__ = {};
(()=>{
    __webpack_require__.n = (module)=>{
        var getter = module && module.__esModule ? ()=>module['default'] : ()=>module;
        __webpack_require__.d(getter, {
            a: getter
        });
        return getter;
    };
})();
(()=>{
    __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__, {
    Ol: ()=>Ol,
    Li: ()=>Li,
    Ul: ()=>Ul
});
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
const material_namespaceObject = require("@mui/material");
const apollo_core_namespaceObject = require("@uipath/apollo-core");
var apollo_core_default = /*#__PURE__*/ __webpack_require__.n(apollo_core_namespaceObject);
const external_react_namespaceObject = require("react");
var external_react_default = /*#__PURE__*/ __webpack_require__.n(external_react_namespaceObject);
const chat_state_provider_cjs_namespaceObject = require("../../../providers/chat-state-provider.cjs");
const external_text_cjs_namespaceObject = require("./text.cjs");
const Ul = /*#__PURE__*/ external_react_default().memo(({ children })=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(material_namespaceObject.Box, {
        component: "ul",
        sx: {
            listStyleType: 'disc',
            marginBlock: 'unset',
            marginInline: 'unset',
            paddingInlineStart: apollo_core_default().Spacing.SpacingM,
            display: 'block',
            lineHeight: apollo_core_default().FontFamily.FontMicroLineHeight
        },
        children: children
    }));
const Ol = /*#__PURE__*/ external_react_default().memo(({ children, start })=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(material_namespaceObject.Box, {
        component: "ol",
        start: start,
        sx: {
            marginBlock: 'unset',
            marginInline: 'unset',
            paddingInlineStart: apollo_core_default().Spacing.SpacingBase,
            lineHeight: apollo_core_default().FontFamily.FontMicroLineHeight
        },
        children: children
    }));
const Li = /*#__PURE__*/ external_react_default().memo(({ children })=>{
    const { spacing } = (0, chat_state_provider_cjs_namespaceObject.useChatState)();
    return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(material_namespaceObject.Box, {
        component: "li",
        sx: {
            '&::marker': {
                color: 'var(--color-foreground)',
                fontSize: apollo_core_default().FontFamily.FontMSize
            }
        },
        children: external_react_default().Children.map(children, (child)=>{
            if ('string' == typeof child) {
                const hasVisibleContent = child.trim().length > 0;
                if (!hasVisibleContent) return null;
                return (0, external_text_cjs_namespaceObject.Text)({
                    children: child,
                    customStyle: {
                        display: 'inline'
                    },
                    variant: spacing.markdownTokens.li
                });
            }
            return child;
        })
    });
});
exports.Li = __webpack_exports__.Li;
exports.Ol = __webpack_exports__.Ol;
exports.Ul = __webpack_exports__.Ul;
for(var __rspack_i in __webpack_exports__)if (-1 === [
    "Li",
    "Ol",
    "Ul"
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
Object.defineProperty(exports, '__esModule', {
    value: true
});
