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(token) {
    return _define_property({}, token.componentCls, {
        display: 'flex',
        gap: 4,
        flexWrap: 'wrap',
        flexDirection: 'column',
        padding: '4px 20px 4px',
        '&&-compact': {
            padding: '4px 12px 4px'
        },
        '&-label': {
            display: 'flex',
            color: 'rgba(0,0,0,0.85)',
            fontSize: '1em',
            width: '100%',
            gap: 4,
            alignItems: 'center',
            justifyContent: 'space-between'
        },
        '&-list': {
            alignItems: 'center',
            flexDirection: 'column',
            borderRadius: 16,
            display: 'flex',
            flexWrap: 'nowrap',
            gap: 4,
            padding: '0px',
            overflow: 'hidden',
            '&-item': {
                display: 'flex',
                gap: 4,
                borderRadius: 8,
                padding: '2px 8px',
                fontSize: 12,
                lineHeight: '14px',
                width: '100%',
                justifyContent: 'space-between',
                alignItems: 'center',
                color: 'rgba(0,0,0,0.65)',
                '&:hover': {
                    backgroundColor: 'rgba(0,0,0,0.02)'
                },
                '&-title': {
                    display: 'flex',
                    maxWidth: '100%',
                    gap: 4,
                    width: '100%'
                },
                '&-icon': {
                    borderRadius: 4,
                    width: 16,
                    height: 16
                }
            }
        }
    });
};
/**
 * Probubble
 * @param prefixCls
 * @returns
 */ export function useStyle(prefixCls) {
    return useEditorStyleRegister('DocInfo', function(token) {
        var proChatToken = _object_spread_props(_object_spread({}, token), {
            componentCls: ".".concat(prefixCls)
        });
        return [
            resetComponent(proChatToken),
            genStyle(proChatToken)
        ];
    });
}
