"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__, {
    StandardLayout: ()=>StandardLayout
});
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
const styles_namespaceObject = require("@mui/material/styles");
const apollo_core_namespaceObject = require("@uipath/apollo-core");
var apollo_core_default = /*#__PURE__*/ __webpack_require__.n(apollo_core_namespaceObject);
const index_cjs_namespaceObject = require("../../service/index.cjs");
const header_cjs_namespaceObject = require("../header/header.cjs");
const chat_history_cjs_namespaceObject = require("../history/chat-history.cjs");
const chat_input_cjs_namespaceObject = require("../input/chat-input.cjs");
const chat_scroll_container_cjs_namespaceObject = require("../message/chat-scroll-container.cjs");
const chat_settings_cjs_namespaceObject = require("../settings/chat-settings.cjs");
var chat_settings_cjs_default = /*#__PURE__*/ __webpack_require__.n(chat_settings_cjs_namespaceObject);
const MainContainer = (0, styles_namespaceObject.styled)('div')(({ historyOpen })=>({
        flex: 1,
        display: 'flex',
        flexDirection: 'column',
        height: '100%',
        maxHeight: '100%',
        minWidth: '0',
        margin: `0 ${apollo_core_default().Spacing.SpacingL}`,
        ...historyOpen && {
            width: `calc(100% - ${index_cjs_namespaceObject.CHAT_DRAWER_WIDTH_FULL_SCREEN}px)`
        }
    }));
const HeaderContainer = (0, styles_namespaceObject.styled)('div')(({ padding })=>({
        flexShrink: 0,
        padding
    }));
const InputBackground = (0, styles_namespaceObject.styled)('div')(()=>({
        flexShrink: 0,
        paddingBottom: apollo_core_default().Spacing.SpacingXs
    }));
const InputContainer = (0, styles_namespaceObject.styled)('div')(()=>({
        maxWidth: index_cjs_namespaceObject.CHAT_WIDTH_FULL_SCREEN_MAX_WIDTH,
        margin: '0 auto',
        width: '100%'
    }));
const StandardLayout = ({ historyOpen, settingsOpen, historyDisabled, settingsDisabled, mode, headerDisabled, headerSeparatorDisabled, readOnly })=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(jsx_runtime_namespaceObject.Fragment, {
        children: [
            /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(MainContainer, {
                historyOpen: historyOpen,
                children: [
                    !headerDisabled && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(HeaderContainer, {
                        padding: headerSeparatorDisabled ? `${apollo_core_default().Spacing.SpacingBase} 0` : `${apollo_core_default().Spacing.SpacingXs} 0 ${apollo_core_default().Spacing.SpacingBase}`,
                        children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(header_cjs_namespaceObject.AutopilotChatHeader, {})
                    }),
                    /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(chat_scroll_container_cjs_namespaceObject.ChatScrollContainer, {
                        mode: mode
                    }),
                    !readOnly && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(InputBackground, {
                        children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(InputContainer, {
                            children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(chat_input_cjs_namespaceObject.AutopilotChatInput, {})
                        })
                    })
                ]
            }),
            !historyDisabled && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(chat_history_cjs_namespaceObject.AutopilotChatHistory, {
                open: historyOpen,
                isFullScreen: false
            }),
            !settingsDisabled && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(chat_settings_cjs_default(), {
                open: settingsOpen,
                isFullScreen: false
            })
        ]
    });
exports.StandardLayout = __webpack_exports__.StandardLayout;
for(var __rspack_i in __webpack_exports__)if (-1 === [
    "StandardLayout"
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
Object.defineProperty(exports, '__esModule', {
    value: true
});
