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) {
    var _obj;
    return _define_property({}, token.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(token.componentCls, "-titleContainer"), {
            paddingTop: 8,
            display: 'flex',
            alignItems: 'center'
        }), _define_property(_obj, "".concat(token.componentCls, "-title"), {
            font: 'var(--font-text-h6-base)',
            marginLeft: 12,
            textAlign: 'justify',
            color: 'var(--color-gray-text-default)'
        }), _define_property(_obj, "".concat(token.componentCls, "-loading"), {
            height: 20,
            display: 'flex',
            alignItems: 'center',
            justifyContent: 'center'
        }), _define_property(_obj, "".concat(token.componentCls, "-arrowContainer"), {
            height: 20,
            lineHeight: '20px',
            display: 'flex',
            alignItems: 'center',
            justifyContent: 'center'
        }), _define_property(_obj, "".concat(token.componentCls, "-arrow"), {
            flexShrink: 0,
            width: 16,
            height: 16,
            transition: 'all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)'
        }), _obj),
        '&-body': _define_property({
            display: 'flex'
        }, "".concat(token.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)'
        })
    });
};
export function useStyle(prefixCls) {
    return useEditorStyleRegister('task-list', function(token) {
        var taskListToken = _object_spread_props(_object_spread({}, token), {
            componentCls: ".".concat(prefixCls)
        });
        return [
            genStyle(taskListToken)
        ];
    });
}
