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',
        alignItems: 'center',
        justifyContent: 'space-between',
        padding: '0 var(--padding-4x)',
        backgroundColor: 'var(--color-gray-bg-page-light)',
        minHeight: '48px',
        flexShrink: 0,
        zIndex: 10,
        borderTopLeftRadius: 'inherit',
        borderTopRightRadius: 'inherit'
    }, // 左侧区域样式
    _define_property(_obj, "".concat(token.componentCls, "-left"), {
        display: 'flex',
        alignItems: 'center',
        gap: 'var(--margin-2x)',
        '&-title': {
            fontSize: 'var(--font-size-lg)',
            fontWeight: 600,
            color: 'var(--color-gray-text-default)',
            margin: 0,
            lineHeight: '1.4'
        },
        '&-separator': {
            width: '1px',
            height: '24px',
            backgroundColor: 'var(--color-gray-border-light)'
        }
    }), // 右侧区域样式
    _define_property(_obj, "".concat(token.componentCls, "-right"), {
        display: 'flex',
        alignItems: 'center',
        gap: 'var(--margin-2x)'
    }), _obj));
};
export var useLayoutHeaderStyle = function useLayoutHeaderStyle(prefixCls) {
    return useEditorStyleRegister('layout-header', function(token) {
        var layoutHeaderToken = _object_spread_props(_object_spread({}, token), {
            componentCls: ".".concat(prefixCls)
        });
        return [
            genStyle(layoutHeaderToken)
        ];
    });
};
