"use strict";

exports.__esModule = true;
exports["default"] = void 0;
var _react = _interopRequireDefault(require("react"));
var _styledComponents = _interopRequireDefault(require("styled-components"));
var _backdropBlur = _interopRequireDefault(require("./mixins/backdropBlur"));
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
var Container = _styledComponents["default"].div.withConfig({
  displayName: "backdropContainer__Container",
  componentId: "sc-8f2v2j-0"
})(["position:fixed;inset:0;z-index:", ";pointer-events:none;outline:none;"], function (_ref) {
  var zIndex = _ref.zIndex;
  return zIndex || "35";
});
var Backdrop = _styledComponents["default"].div.withConfig({
  displayName: "backdropContainer__Backdrop",
  componentId: "sc-8f2v2j-1"
})(["position:absolute;inset:0;pointer-events:all;background-color:rgba(0,0,0,0.3);", ";}"], _backdropBlur["default"]);
var BackdropContainer = function BackdropContainer(_ref2) {
  var children = _ref2.children,
    backdropContainerProps = _ref2.backdropContainerProps,
    backdropProps = _ref2.backdropProps,
    onClick = _ref2.onClick;
  return /*#__PURE__*/_react["default"].createElement(Container, _extends({
    "data-testid": "layer-backdropContainer"
  }, backdropContainerProps), /*#__PURE__*/_react["default"].createElement(Backdrop, _extends({
    "data-testid": "layer-backdrop"
  }, backdropProps, {
    onClick: onClick
  })), children);
};
var _default = exports["default"] = BackdropContainer;