"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__, {
    EditorContainer: ()=>EditorContainer
});
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 EDITOR_PADDING = apollo_core_default().Spacing.SpacingXs;
const LINE_GAP = apollo_core_default().Spacing.SpacingMicro;
const EditorContainer = (0, styles_namespaceObject.styled)('div')(({ minRows, maxRows, lineHeight })=>{
    const rowHeight = `calc(${lineHeight} + ${LINE_GAP})`;
    return {
        width: '100%',
        minHeight: `calc(${minRows} * ${rowHeight} + ${EDITOR_PADDING})`,
        maxHeight: `calc(${maxRows} * ${rowHeight} + ${EDITOR_PADDING})`,
        overflowY: 'auto',
        cursor: 'text',
        '& .tiptap': {
            outline: 'none',
            minHeight: `calc(${minRows} * ${rowHeight} + ${EDITOR_PADDING})`,
            paddingBottom: EDITOR_PADDING,
            '& p': {
                margin: 0,
                minHeight: rowHeight,
                lineHeight: rowHeight
            },
            '& p.is-editor-empty:first-of-type::before': {
                content: 'attr(data-placeholder)',
                float: 'left',
                color: 'var(--color-foreground-de-emp)',
                pointerEvents: 'none',
                height: 0
            }
        }
    };
});
exports.EditorContainer = __webpack_exports__.EditorContainer;
for(var __rspack_i in __webpack_exports__)if (-1 === [
    "EditorContainer"
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
Object.defineProperty(exports, '__esModule', {
    value: true
});
