/**
 * amis-ui v6.14.0-beta.1
 * Copyright 2018-2025 fex
 */

import { __extends } from 'tslib';
import React__default from 'react';

var ItemActionsWrapper = /** @class */ (function (_super) {
    __extends(ItemActionsWrapper, _super);
    function ItemActionsWrapper() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    ItemActionsWrapper.prototype.render = function () {
        var _a, _b;
        var _c = this.props, cx = _c.classnames, children = _c.children, dom = _c.dom;
        if (!dom) {
            return;
        }
        var frame = (_b = (_a = dom.closest('table')) === null || _a === void 0 ? void 0 : _a.parentElement) === null || _b === void 0 ? void 0 : _b.parentElement;
        var rect = dom.getBoundingClientRect();
        var height = rect.height;
        var top = rect.top - frame.getBoundingClientRect().top;
        return (React__default.createElement("div", { className: cx('Table-itemActions-wrap'), style: { top: top + 'px', height: height + 'px' } }, children));
    };
    return ItemActionsWrapper;
}(React__default.PureComponent));

export { ItemActionsWrapper as default };
