function _define_property(obj, key, value) {
    if (key in obj) {
        Object.defineProperty(obj, key, {
            value: value,
            enumerable: true,
            configurable: true,
            writable: true
        });
    } else {
        obj[key] = value;
    }
    return obj;
}
function _object_spread(target) {
    for(var i = 1; i < arguments.length; i++){
        var source = arguments[i] != null ? arguments[i] : {};
        var ownKeys = Object.keys(source);
        if (typeof Object.getOwnPropertySymbols === "function") {
            ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
                return Object.getOwnPropertyDescriptor(source, sym).enumerable;
            }));
        }
        ownKeys.forEach(function(key) {
            _define_property(target, key, source[key]);
        });
    }
    return target;
}
function ownKeys(object, enumerableOnly) {
    var keys = Object.keys(object);
    if (Object.getOwnPropertySymbols) {
        var symbols = Object.getOwnPropertySymbols(object);
        if (enumerableOnly) {
            symbols = symbols.filter(function(sym) {
                return Object.getOwnPropertyDescriptor(object, sym).enumerable;
            });
        }
        keys.push.apply(keys, symbols);
    }
    return keys;
}
function _object_spread_props(target, source) {
    source = source != null ? source : {};
    if (Object.getOwnPropertyDescriptors) {
        Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
    } else {
        ownKeys(Object(source)).forEach(function(key) {
            Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
        });
    }
    return target;
}
import { useEditorStyleRegister } from "../Hooks/useStyle";
var genStyle = function genStyle(token) {
    var _obj;
    return _define_property({}, token.componentCls, (_obj = {
        display: 'flex',
        height: '100%',
        minHeight: '600px',
        backgroundColor: 'transparent',
        overflow: 'hidden',
        border: 'none',
        boxSizing: 'border-box',
        margin: 2,
        '*': {
            boxSizing: 'border-box'
        }
    }, // 主体内容区域
    _define_property(_obj, "".concat(token.componentCls, "-body"), {
        display: 'flex',
        flex: 1,
        boxShadow: 'var(--shadow-card-base)',
        borderRadius: 'var(--radius-modal-base)',
        overflow: 'hidden',
        border: '1px solid rgba(140, 171, 255, 0.12)'
    }), // 侧边栏基础样式
    _define_property(_obj, "".concat(token.componentCls, "-sidebar-left"), {
        display: 'flex',
        flexDirection: 'column',
        backgroundColor: 'var(--color-gray-bg-page-light)',
        borderRight: "1px solid var(--color-gray-border-light)",
        overflow: 'hidden',
        boxSizing: 'border-box',
        padding: '12px'
    }), _define_property(_obj, "".concat(token.componentCls, "-sidebar-left-collapsed"), {
        padding: '0 !important',
        width: '0 !important',
        minWidth: '0 !important',
        maxWidth: '0 !important',
        border: 'none !important'
    }), // 右侧边栏包装器
    _define_property(_obj, "&-sidebar-wrapper-right", {
        display: 'flex',
        alignItems: 'stretch',
        height: '100%'
    }), // 右侧边栏特殊样式
    _define_property(_obj, "&-sidebar-right", {
        borderRight: 'none',
        height: '100%'
    }), // 折叠状态样式
    _define_property(_obj, "&-sidebar-right-collapsed", _define_property({
        width: '0 !important',
        minWidth: '0 !important',
        maxWidth: '0 !important',
        padding: '0 !important',
        opacity: 0,
        overflow: 'hidden'
    }, "".concat(token.componentCls, "-sidebar-content"), {
        display: 'none'
    })), // 拖拽手柄样式
    _define_property(_obj, "&-resize-handle", {
        width: '6px',
        cursor: 'col-resize',
        backgroundColor: 'transparent',
        position: 'relative',
        zIndex: 10,
        flexShrink: 0,
        marginLeft: '1px',
        marginRight: '1px',
        '&::before': {
            content: '""',
            position: 'absolute',
            left: '50%',
            top: 0,
            bottom: 0,
            width: '6px',
            backgroundColor: 'transparent',
            transform: 'translateX(-50%)',
            transition: 'background-color 0.2s ease'
        },
        '&:hover::before': {
            backgroundColor: 'var(--color-primary-9, #1d7afc)'
        }
    }), // 侧边栏内容
    _define_property(_obj, "&-sidebar-content", {
        flex: 1,
        display: 'flex',
        flexDirection: 'column',
        overflow: 'hidden',
        width: '100%',
        height: '100%'
    }), // 主内容区域
    _define_property(_obj, "&-main", {
        flex: 1,
        minWidth: 0,
        backgroundColor: 'var(--color-gray-bg-page-light)',
        borderTopRightRadius: 'var(--radius-modal-base)',
        borderBottomRightRadius: 'var(--radius-modal-base)',
        overflow: 'hidden',
        '&-content': {
            flex: 1,
            height: 'calc(100% - 48px)'
        }
    }), _obj));
};
export var useAgenticLayoutStyle = function useAgenticLayoutStyle(prefixCls) {
    return useEditorStyleRegister('agentic-layout', function(token) {
        var agenticLayoutToken = _object_spread_props(_object_spread({}, token), {
            componentCls: ".".concat(prefixCls)
        });
        return [
            genStyle(agenticLayoutToken)
        ];
    });
};
