"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");

exports.__esModule = true;
exports.Hidden = void 0;

var _style = _interopRequireDefault(require("styled-jsx/style"));

var _react = _interopRequireDefault(require("react"));

var _classnames = _interopRequireDefault(require("classnames"));

var _useTheme = _interopRequireDefault(require("../../hooks/useTheme"));

var _jsxRuntime = require("react/jsx-runtime");

// Generated with util/create-component.js
const Hidden = props => {
  const theme = (0, _useTheme.default)();
  const {
    xs = null,
    sm = null,
    md = null,
    lg = null,
    xl = null,
    children,
    className = null,
    ...otherProps
  } = props;
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
    "data-testid": "Wps-Hidden",
    ...otherProps,
    className: _style.default.dynamic([["2017533070", [xs === true ? `display: none;` : xs === false ? `display: block;` : ``, theme.breakpoints.sm.min, sm === true ? `display: none;` : sm === false ? `display: block;` : ``, theme.breakpoints.md.min, md === true ? `display: none;` : md === false ? `display: block;` : ``, theme.breakpoints.lg.min, lg === true ? `display: none;` : lg === false ? `display: block;` : ``, theme.breakpoints.xl.min, xl === true ? `display: none;` : xl === false ? `display: block;` : ``]]]) + " " + (otherProps && otherProps.className != null && otherProps.className || (0, _classnames.default)("Wps-Hidden", className) || ""),
    children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_style.default, {
      id: "2017533070",
      dynamic: [xs === true ? `display: none;` : xs === false ? `display: block;` : ``, theme.breakpoints.sm.min, sm === true ? `display: none;` : sm === false ? `display: block;` : ``, theme.breakpoints.md.min, md === true ? `display: none;` : md === false ? `display: block;` : ``, theme.breakpoints.lg.min, lg === true ? `display: none;` : lg === false ? `display: block;` : ``, theme.breakpoints.xl.min, xl === true ? `display: none;` : xl === false ? `display: block;` : ``],
      children: `.Wps-Hidden.__jsx-style-dynamic-selector{${xs === true ? `display: none;` : xs === false ? `display: block;` : ``};}@media only screen and (min-width:${theme.breakpoints.sm.min}){.Wps-Hidden.__jsx-style-dynamic-selector{${sm === true ? `display: none;` : sm === false ? `display: block;` : ``};}}@media only screen and (min-width:${theme.breakpoints.md.min}){.Wps-Hidden.__jsx-style-dynamic-selector{${md === true ? `display: none;` : md === false ? `display: block;` : ``};}}@media only screen and (min-width:${theme.breakpoints.lg.min}){.Wps-Hidden.__jsx-style-dynamic-selector{${lg === true ? `display: none;` : lg === false ? `display: block;` : ``};}}@media only screen and (min-width:${theme.breakpoints.xl.min}){.Wps-Hidden.__jsx-style-dynamic-selector{${xl === true ? `display: none;` : xl === false ? `display: block;` : ``};}}`
    }), children]
  });
};

exports.Hidden = Hidden;