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) {
    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
 */ var useGenStyle = genStyleHooks('ActionIconBox', genStyle);
export function useStyle(prefixCls) {
    var _useGenStyle = _sliced_to_array(useGenStyle(prefixCls), 2), wrapSSR = _useGenStyle[0], hashId = _useGenStyle[1];
    return {
        wrapSSR: wrapSSR,
        hashId: hashId
    };
}
