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