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, _obj1;
    return _obj1 = {}, _define_property(_obj1, token.componentCls, (_obj = {
        display: 'flex',
        boxSizing: 'border-box',
        listStyle: 'none',
        margin: 0,
        padding: 0,
        flexFlow: 'wrap',
        gap: '4px'
    }, // 容器样式
    _define_property(_obj, "".concat(token.componentCls, "-item"), {
        marginBottom: '0px',
        marginRight: '-8px',
        boxSizing: 'border-box',
        display: 'flex',
        position: 'relative',
        zIndex: 1,
        cursor: 'pointer',
        'img,[data-type="image"]': {
            borderRadius: '8px',
            transition: 'all 0.2s cubic-bezier(0.645, 0.045, 0.355, 1)'
        },
        '&:hover': {
            'img,[data-type="image"]': {
                boxShadow: '0 2px 8px rgba(0, 122, 204, 0.15)',
                transform: 'translateY(-16px) scale(1.5)'
            }
        }
    }), _define_property(_obj, "".concat(token.componentCls, "-link"), {
        display: 'flex',
        textDecoration: 'none',
        color: 'inherit',
        '&:focus': {
            outline: '2px solid var(--color-primary-control-fill-primary)',
            outlineOffset: '2px'
        }
    }), _define_property(_obj, "".concat(token.componentCls, "-image"), {
        objectFit: 'cover',
        display: 'block',
        width: '18px',
        height: '18px'
    }), _define_property(_obj, "".concat(token.componentCls, "-loading"), {
        display: 'flex',
        listStyle: 'none',
        margin: 0,
        padding: 0,
        alignItems: 'center',
        justifyContent: 'center',
        minHeight: '40px',
        color: 'var(--color-gray-text-secondary)',
        fontSize: '14px'
    }), _define_property(_obj, "".concat(token.componentCls, "-empty"), {
        display: 'flex',
        listStyle: 'none',
        margin: 0,
        padding: 0,
        alignItems: 'center',
        justifyContent: 'center',
        minHeight: '40px',
        color: 'var(--color-gray-text-disabled)',
        fontSize: '14px',
        fontStyle: 'italic'
    }), // 圆形头像样式
    _define_property(_obj, "".concat(token.componentCls, "-item-circle"), {
        borderRadius: '50%'
    }), _define_property(_obj, "".concat(token.componentCls, "-borderless"), {
        border: 'none',
        padding: 0,
        backgroundColor: 'transparent'
    }), _define_property(_obj, "".concat(token.componentCls, "-default"), {
    }), _obj)), _define_property(_obj1, "".concat(token.componentCls, "-container"), {
        position: 'relative',
        borderRadius: '200px',
        height: 28,
        display: 'flex',
        alignItems: 'center',
        gap: 6,
        width: 'max-content',
        padding: '0 8px',
        background: 'var(--color-gray-bg-card-white)',
        boxShadow: 'var(--shadow-control-base)'
    }), // 描述文字样式
    _define_property(_obj1, "".concat(token.componentCls, "-description"), {
        fontSize: '13px',
        fontWeight: 'normal',
        lineHeight: '22px',
        letterSpacing: 'normal',
        color: 'var(--color-gray-text-secondary)'
    }), _obj1;
};
export function useStyle(prefixCls) {
    return useEditorStyleRegister('visual-list', function(token) {
        var visualListToken = _object_spread_props(_object_spread({}, token), {
            componentCls: ".".concat(prefixCls)
        });
        return [
            genStyle(visualListToken)
        ];
    });
}
