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) {
    return _define_property({}, token.componentCls, {
        display: 'inline-flex',
        alignItems: 'center',
        justifyContent: 'center',
        gap: '6px',
        padding: '8px 20px',
        borderRadius: '200px',
        boxShadow: 'var(--shadow-border-base)',
        border: 'none',
        fontSize: '14px',
        fontWeight: 400,
        lineHeight: '32px',
        height: '32px',
        cursor: 'pointer',
        transition: 'all 0.2s ease',
        backgroundColor: 'var(--color-gray-bg-card-white)',
        color: 'var(--color-gray-text-secondary)',
        outline: 'none',
        userSelect: 'none',
        whiteSpace: 'nowrap',
        flexShrink: 0,
        '&:hover': {
        },
        '&:active': {
            transform: 'scale(0.98)'
        },
        '&:focus-visible': {
            boxShadow: 'var(--shadow-border-base)'
        },
        '&-selected': _define_property({
            backgroundColor: 'var(--color-gray-control-fill-primary)',
            color: 'var(--color-gray-contrast)',
            '&:hover': {
            }
        }, "".concat(token.componentCls, "-icon"), {
            borderLeft: '1px solid rgba(255, 255, 255, 0.3)'
        }),
        '&-icon': {
            display: 'inline-flex',
            alignItems: 'center',
            justifyContent: 'center',
            fontSize: '16px',
            lineHeight: 1,
            marginLeft: '6px',
            paddingLeft: '8px',
            borderLeft: '1px solid var(--color-gray-border-light)',
            '&-clickable': {
                cursor: 'pointer',
                '&:hover': {
                    opacity: 0.7
                },
                '&:active': {
                    opacity: 0.9
                }
            }
        },
        '&-text': {
            display: 'inline-flex',
            alignItems: 'center'
        }
    });
};
/**
 * ButtonTab 组件样式
 */ export var useStyle = function useStyle(prefixCls) {
    return useEditorStyleRegister('ChatBootButtonTab', function(token) {
        var buttonTabToken = _object_spread_props(_object_spread({}, token), {
            componentCls: ".".concat(prefixCls)
        });
        return [
            genStyle(buttonTabToken)
        ];
    });
};
