function _array_like_to_array(arr, len) {
    if (len == null || len > arr.length) len = arr.length;
    for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
    return arr2;
}
function _array_with_holes(arr) {
    if (Array.isArray(arr)) return arr;
}
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 _iterable_to_array_limit(arr, i) {
    var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
    if (_i == null) return;
    var _arr = [];
    var _n = true;
    var _d = false;
    var _s, _e;
    try {
        for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){
            _arr.push(_s.value);
            if (i && _arr.length === i) break;
        }
    } catch (err) {
        _d = true;
        _e = err;
    } finally{
        try {
            if (!_n && _i["return"] != null) _i["return"]();
        } finally{
            if (_d) throw _e;
        }
    }
    return _arr;
}
function _non_iterable_rest() {
    throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}
function _sliced_to_array(arr, i) {
    return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
}
function _unsupported_iterable_to_array(o, minLen) {
    if (!o) return;
    if (typeof o === "string") return _array_like_to_array(o, minLen);
    var n = Object.prototype.toString.call(o).slice(8, -1);
    if (n === "Object" && o.constructor) n = o.constructor.name;
    if (n === "Map" || n === "Set") return Array.from(n);
    if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
}
import { genStyleHooks } from "../../../../Hooks/useStyle";
var genStyle = function genStyle(token) {
    var _obj;
    return _define_property({}, token.componentCls, (_obj = {
        display: 'flex',
        flexDirection: 'column',
        position: 'fixed',
        right: 0,
        top: 0,
        width: 300,
        padding: 16,
        paddingRight: 24,
        boxSizing: 'border-box',
        gap: 8,
        borderLeft: '1px solid rgba(0,0,0,0.04)',
        maxWidth: '300px',
        backgroundColor: 'var(--color-gray-bg-card-white)',
        height: '100vh',
        // 列表整体入场：从右侧 100% 滑入并淡入
        // 替代 framer-motion 的 `initial={translateX(100%)} animate={translateX(0)}`
        animationName: "".concat(token.componentCls, "-slideInRight"),
        animationDuration: '0.3s',
        animationTimingFunction: 'cubic-bezier(0.4, 0, 0.2, 1)',
        animationFillMode: 'both',
        '&-item': {
            padding: '12px',
            border: '1px solid rgba(0,0,0,0.04)',
            borderRadius: 8,
            cursor: 'pointer',
            display: 'flex',
            flexDirection: 'column',
            gap: 8,
            // 单条入场：从下方 50px 上滑并淡入；
            // stagger 延迟通过 inline `--comment-item-delay` 注入，
            // 替代 framer-motion 父级 `staggerChildren: 0.07, delayChildren: 0.2`。
            opacity: 0,
            animationName: "".concat(token.componentCls, "-slideInUp"),
            animationDuration: '0.3s',
            animationTimingFunction: 'cubic-bezier(0.4, 0, 0.2, 1)',
            animationDelay: 'var(--comment-item-delay, 0s)',
            animationFillMode: 'forwards',
            transition: 'transform 0.18s cubic-bezier(0.4, 0, 0.2, 1)',
            '&:hover': {
                backgroundColor: 'var(--color-gray-bg-page-light)',
                // 替代 framer-motion 的 `whileHover={{scale: 1.04}}`
                transform: 'scale(1.04)'
            },
            '&-header': {
                display: 'flex',
                gap: 8,
                justifyContent: 'space-between',
                '&-title': {
                    display: 'flex',
                    gap: 8,
                    flex: 1,
                    alignItems: 'flex-end'
                },
                '&-name': {
                    display: 'flex',
                    gap: 4,
                    alignItems: 'center'
                },
                '&-time': {
                    color: 'var(--color-gray-text-disabled)',
                    fontSize: '12px'
                },
                '&-action': {
                    display: 'flex',
                    gap: 8,
                    '& &-item': {
                        cursor: 'pointer',
                        '&:hover': {
                            color: token.colorPrimary
                        }
                    }
                }
            }
        }
    }, _define_property(_obj, "@keyframes ".concat(token.componentCls, "-slideInRight"), {
        from: {
            transform: 'translateX(100%)',
            opacity: 0
        },
        to: {
            transform: 'translateX(0)',
            opacity: 1
        }
    }), _define_property(_obj, "@keyframes ".concat(token.componentCls, "-slideInUp"), {
        from: {
            transform: 'translateY(50px)',
            opacity: 0
        },
        to: {
            transform: 'translateY(0)',
            opacity: 1
        }
    }), _obj));
};
/**
 * BubbleChat
 * @param prefixCls
 * @returns
 */ var useGenStyle = genStyleHooks('CommentList', genStyle);
export function useStyle(prefixCls) {
    var _useGenStyle = _sliced_to_array(useGenStyle(prefixCls !== null && prefixCls !== void 0 ? prefixCls : 'editor-content-column'), 2), wrapSSR = _useGenStyle[0], hashId = _useGenStyle[1];
    return {
        wrapSSR: wrapSSR,
        hashId: hashId
    };
}
