"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
Object.defineProperty(exports, "SelectAll", {
    enumerable: true,
    get: function() {
        return SelectAll;
    }
});
const _react = /*#__PURE__*/ _interop_require_default(require("react"));
const _Itemstyles = require("../Inner/ui/Item/Item.styles");
const _SelectAllstyles = require("./SelectAll.styles");
function _interop_require_default(obj) {
    return obj && obj.__esModule ? obj : {
        default: obj
    };
}
const SelectAll = ({ variant, selectAllOptions })=>/*#__PURE__*/ _react.default.createElement(_SelectAllstyles.Wrapper, {
        variant: variant,
        onClick: selectAllOptions?.onClick,
        sticky: selectAllOptions?.sticky
    }, /*#__PURE__*/ _react.default.createElement(_Itemstyles.Wrapper, {
        variant: variant
    }, /*#__PURE__*/ _react.default.createElement(_Itemstyles.IconWrapper, {
        variant: variant
    }, /*#__PURE__*/ _react.default.createElement(_Itemstyles.StyledCheckboxWrapper, {
        onClick: (e)=>e.preventDefault()
    }, /*#__PURE__*/ _react.default.createElement(_Itemstyles.StyledCheckbox, {
        checked: selectAllOptions?.checked,
        indeterminate: selectAllOptions?.indeterminate,
        appearance: "default"
    }))), /*#__PURE__*/ _react.default.createElement(_Itemstyles.StyledCell, {
        title: selectAllOptions?.label || 'Выбрать всё'
    })), /*#__PURE__*/ _react.default.createElement(_SelectAllstyles.DividerWrapper, null, /*#__PURE__*/ _react.default.createElement(_SelectAllstyles.Divider, {
        variant: variant
    })));
