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 { resetComponent, useEditorStyleRegister } from "../../../../Hooks/useStyle";
var genStyle = function genStyle(token) {
    return _define_property({}, token.componentCls, {
        borderTopLeftRadius: '0.5em',
        borderTopRightRadius: '0.5em',
        borderBottom: '1px solid rgb(229 231 235 / 0.8)',
        overflow: 'hidden',
        height: '42px',
        fontSize: '1.05em',
        color: 'rgb(107 114 128 / 80%)',
        backdropFilter: 'blur(8px)',
        boxSizing: 'border-box',
        backgroundColor: 'rgb(255 255 255)',
        padding: '6px 4px',
        '&-item': {
            display: 'flex',
            height: '32px',
            fontSize: '1.05em',
            borderRadius: '4px',
            lineHeight: '32px',
            padding: '0 6px',
            boxSizing: 'border-box',
            alignItems: 'center',
            gap: '2px',
            cursor: 'pointer',
            '&:hover': {
                backgroundColor: 'rgb(229 231 235 / 0.65)'
            }
        },
        '&-item--more': {
            color: '#1677ff'
        }
    });
};
/**
 * BubbleChat
 * @param prefixCls
 * @returns
 */ export function useStyle(prefixCls) {
    return useEditorStyleRegister('ToolBar-' + prefixCls, function(token) {
        var editorToken = _object_spread_props(_object_spread({}, token), {
            componentCls: ".".concat(prefixCls)
        });
        return [
            resetComponent(editorToken),
            genStyle(editorToken)
        ];
    });
}
