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(token) {
    return _define_property({}, token.componentCls, {
        cursor: 'pointer',
        position: 'relative',
        display: 'flex',
        alignItems: 'center',
        '&-container': {
            padding: 12,
            border: '1px solid #f0f0f0',
            borderRadius: '0.5em',
            margin: '8px 0',
            width: '100%',
            maxHeight: '120px',
            minHeight: 72,
            backgroundImage: 'linear-gradient(rgb(249, 251, 255) 0%, rgb(243, 248, 255) 100%)',
            flex: 1,
            display: 'flex',
            alignItems: 'center',
            gap: 12,
            color: '#262626',
            justifyContent: 'space-between',
            '&-content': {
                display: 'flex',
                alignItems: 'center',
                gap: 12,
                color: '#262626',
                fontSize: 16,
                flex: 1,
                minWidth: 0,
                '& &-title': {
                    overflow: 'ellipsis',
                    textOverflow: 'ellipsis',
                    textWrap: 'nowrap',
                    textDecoration: 'none',
                    display: 'block',
                    color: '#262626'
                },
                '& &-description': {
                    flex: 1,
                    minWidth: 0,
                    marginTop: 4,
                    lineHeight: '24px',
                    display: 'flex',
                    fontSize: 12,
                    color: 'rgba(0,0,0,0.45)',
                    justifyContent: 'space-between'
                },
                '& &-collaborators': {
                    flex: 1,
                    minWidth: 0,
                    display: 'flex',
                    justifyContent: 'space-between'
                },
                '& &-updateTime': {
                    color: 'rgba(0,0,0,0.45)',
                    fontSize: 12
                }
            },
            '& [data-icon-box]': {
                padding: '0 18px',
                color: '#6b7280',
                cursor: 'pointer',
                '&:hover': {
                    color: '#1667ff'
                }
            }
        }
    });
};
/**
 * BubbleChat
 * @param prefixCls
 * @returns
 */ export function useStyle(prefixCls) {
    return useEditorStyleRegister('editor-content-link-card', function(token) {
        var editorToken = _object_spread_props(_object_spread({}, token), {
            componentCls: ".".concat(prefixCls)
        });
        return [
            genStyle(editorToken)
        ];
    });
}
