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 componentCls = token.componentCls;
    var _obj, _obj1;
    return _define_property({}, componentCls, {
        '&-thoughtChainItem': {
            marginBottom: 4,
            display: 'flex',
            '.ai-paas-spin-dot-item': {
                color: 'var(--color-primary-control-fill-primary)'
            }
        },
        '&-left': {
            display: 'flex',
            flexDirection: 'column',
            alignItems: 'center',
            padding: '8px 0 0',
            gap: 4
        },
        '&-right': {
            padding: '8px 0'
        },
        '&-content-left': {
            flex: 1,
            flexShrink: 0,
            width: 16,
            display: 'flex',
            justifyContent: 'center'
        },
        '&-dash-line': {
            width: 1,
            boxSizing: 'border-box',
            height: '100%',
            borderLeft: '1px dashed var(--color-gray-text-disabled)'
        },
        '&-status': {
            display: 'flex',
            height: 22,
            alignItems: 'center',
            color: 'var(--color-gray-text-disabled)',
            svg: {
                width: 16,
                height: 16
            }
        },
        '&-status-idle': {
            height: 16,
            display: 'flex',
            alignItems: 'center',
            justifyContent: 'center'
        },
        '&-top': (_obj = {
            display: 'flex',
            marginBottom: 4,
            gap: 4,
            cursor: 'pointer'
        }, _define_property(_obj, "".concat(componentCls, "-titleContainer"), {
            paddingTop: 8,
            display: 'flex',
            alignItems: 'center'
        }), _define_property(_obj, "".concat(componentCls, "-title"), {
            font: 'var(--font-text-h6-base)',
            marginLeft: 12,
            textAlign: 'justify',
            color: 'var(--color-gray-text-default)'
        }), _define_property(_obj, "".concat(componentCls, "-loading"), {
            height: 20,
            display: 'flex',
            alignItems: 'center',
            justifyContent: 'center'
        }), _define_property(_obj, "".concat(componentCls, "-arrowContainer"), {
            height: 20,
            lineHeight: '20px',
            display: 'flex',
            alignItems: 'center',
            justifyContent: 'center'
        }), _define_property(_obj, "".concat(componentCls, "-arrow"), {
            flexShrink: 0,
            width: 16,
            height: 16,
            transition: 'all 0.35s cubic-bezier(0.4, 0, 0.2, 1)'
        }), _obj),
        '&-body': _define_property({
            display: 'flex'
        }, "".concat(componentCls, "-content"), {
            font: 'var(--font-text-paragraph-sm)',
            marginLeft: 12,
            display: 'flex',
            flexDirection: 'column',
            gap: 2,
            letterSpacing: 'var(--letter-spacing-paragraph-sm, normal)',
            color: 'var(--color-gray-text-secondary)'
        }),
        // Simple variant - wrapper
        '&-simple-wrapper': {
            borderRadius: 'var(--radius-control-base, 8px)',
            overflow: 'hidden'
        },
        // Simple variant - bar
        '&-simple': (_obj1 = {
            display: 'flex',
            alignItems: 'center',
            height: 36,
            padding: '0 4px',
            gap: 8,
            cursor: 'pointer',
            userSelect: 'none',
            borderRadius: 'var(--radius-control-base, 8px)',
            transition: 'background 0.3s cubic-bezier(0.4, 0, 0.2, 1)',
            '&:hover': {
                background: 'var(--color-gray-control-fill-active, rgba(0,0,0,0.04))'
            }
        }, _define_property(_obj1, "".concat(componentCls, "-simple-status"), _define_property({
            display: 'flex',
            alignItems: 'center',
            flexShrink: 0
        }, "".concat(componentCls, "-status"), {
            height: 'auto',
            svg: {
                width: 14,
                height: 14
            }
        })), _define_property(_obj1, "".concat(componentCls, "-simple-text"), {
            flex: 1,
            minWidth: 0,
            font: 'var(--font-text-paragraph-base, 14px)',
            letterSpacing: 'var(--letter-spacing-paragraph-base, normal)',
            color: 'var(--color-gray-text-default, rgba(0,3,9,0.85))',
            overflow: 'hidden',
            textOverflow: 'ellipsis',
            whiteSpace: 'nowrap'
        }), _define_property(_obj1, "".concat(componentCls, "-simple-arrow"), {
            flexShrink: 0,
            display: 'flex',
            alignItems: 'center',
            justifyContent: 'center'
        }), _obj1),
        // Simple variant - content area
        '&-simple-content': {
            display: 'grid',
            gridTemplateRows: '0fr',
            opacity: 0,
            transition: 'grid-template-rows 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1)',
            '& > *': {
                overflow: 'hidden'
            },
            '&-expanded': {
                gridTemplateRows: '1fr',
                opacity: 1
            }
        },
        '&-simple-list': {
            padding: '4px 12px 8px'
        }
    });
};
export function useStyle(prefixCls) {
    return useEditorStyleRegister('task-list', function(token) {
        var taskListToken = _object_spread_props(_object_spread({}, token), {
            componentCls: ".".concat(prefixCls)
        });
        return [
            genStyle(taskListToken)
        ];
    });
}
