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 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'
        }
    });
};
var useGenStyle = genStyleHooks('TaskList', genStyle);
export function useStyle(prefixCls) {
    var _useGenStyle = _sliced_to_array(useGenStyle(prefixCls !== null && prefixCls !== void 0 ? prefixCls : 'task-list'), 2), wrapSSR = _useGenStyle[0], hashId = _useGenStyle[1];
    return {
        wrapSSR: wrapSSR,
        hashId: hashId
    };
}
