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) {
    return _define_property({}, token.componentCls, {
        minWidth: 28,
        minHeight: 28,
        lineHeight: 1,
        display: 'flex',
        cursor: 'pointer',
        boxSizing: 'border-box',
        padding: 4,
        alignItems: 'center',
        gap: 8,
        justifyContent: 'center',
        borderRadius: 'var(--radius-control-sm)',
        fontSize: '1em',
        color: 'var(--color-gray-text-secondary)',
        transition: 'color 0.3s cubic-bezier(0.4, 0, 0.2, 1)',
        '&-title': {
            font: 'var(--font-text-body-base)',
            letterSpacing: 'var(--letter-spacing-body-base, normal)',
            color: 'var(--color-gray-text-default)'
        },
        '&-light': {
            '&:hover': {
                borderRadius: 'var(--radius-control-base)',
                background: 'var(--color-gray-control-fill-hover)',
                backdropFilter: 'blur(20px)',
                boxSizing: 'border-box'
            }
        },
        '&-dark': {
            color: 'var(--color-gray-bg-card-white)',
            '&:hover': {
                background: 'var(--color-gray-text-secondary)',
                boxSizing: 'border-box'
            }
        },
        '&-active': {
            color: 'var(--color-gray-a9)'
        },
        '&-noPadding': {
            padding: 0
        },
        '&-standalone': {
            minWidth: 'inherit',
            minHeight: 'inherit',
            maxHeight: 'inherit',
            padding: '8px 12px',
            color: 'var(--color-gray-text-default)',
            borderRadius: 18,
            border: '1px solid var(--color-gray-border-light)',
            background: "radial-gradient(22% 66% at 96% 113%, rgba(255, 255, 245, 0.52) 0%, rgba(230, 238, 255, 0) 100%),radial-gradient(14% 234% at 100% 50%, rgba(162, 255, 255, 0.28) 0%, rgba(153, 202, 255, 0.1193) 13%, rgba(229, 189, 255, 0.0826) 38%, rgba(231, 211, 252, 0.0544) 59%, rgba(235, 255, 245, 0) 100%)"
        },
        '&-danger': {
            '&:hover': {
                color: token.colorError,
                background: token.colorErrorBgHover
            }
        },
        '&-primary': {
            '&:hover': {
                color: token.colorPrimary,
                background: token.colorPrimaryBgHover
            }
        },
        '&-border-less': {
            height: 'auto',
            lineHeight: 1,
            background: 'none!important',
            '&:hover': {
                color: token.colorPrimary,
                background: 'none!important'
            }
        },
        '&-transform': {
            '&:hover': {
                color: token.colorPrimary,
                transform: 'translateX(8px) scale(1.1)',
                background: 'none'
            }
        }
    });
};
/**
 * Probubble
 * @param prefixCls
 * @returns
 */ export function useStyle(prefixCls) {
    return useEditorStyleRegister('ActionIconBox', function(token) {
        var proChatToken = _object_spread_props(_object_spread({}, token), {
            componentCls: ".".concat(prefixCls)
        });
        return [
            genStyle(proChatToken)
        ];
    });
}
