"use strict";

exports.__esModule = true;
exports.default = void 0;
var _react = _interopRequireDefault(require("react"));
var _Paper = _interopRequireDefault(require("@material-ui/core/Paper"));
var _paperProps = _interopRequireWildcard(require("./paperProps"));
var _classnames = _interopRequireDefault(require("classnames"));
var _styles = require("@material-ui/core/styles");
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
(function () {
  var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
  enterModule && enterModule(module);
})();
(function () {
  var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
  enterModule && enterModule(module);
})();
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
  return a;
};
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
  return a;
};
var useStyle = (0, _styles.makeStyles)(function (theme) {
  return {
    container: {
      padding: theme.spacing(2),
      backgroundColor: theme.palette.grey.lighter,
      "&::-webkit-scrollbar": {
        width: theme.spacing(1.5)
      },
      "&::-webkit-scrollbar-thumb": {
        background: theme.palette.grey.borders,
        border: "5px transparent solid",
        backgroundClip: "padding-box",
        borderRadius: theme.spacing(1.5)
      }
    }
  };
});
var Paper = function Paper(_ref) {
  var content = _ref.content,
    paperProps = _ref.paperProps;
  if ((0, _paperProps.isPaperProps)(paperProps) === false) {
    throw new TypeError("paperProps property is not of type PaperProps");
  }
  var classes = useStyle();
  var elevation = (paperProps == null ? void 0 : paperProps.get(_paperProps.default.propNames.elevation)) || 0;
  var square = (paperProps == null ? void 0 : paperProps.get(_paperProps.default.propNames.square)) || false;
  var variant = (paperProps == null ? void 0 : paperProps.get(_paperProps.default.propNames.variant)) || "outlined";
  var rootStyle = paperProps == null ? void 0 : paperProps.getStyle(_paperProps.default.ruleNames.root);
  return /*#__PURE__*/_react.default.createElement(_Paper.default, {
    classes: {
      root: (0, _classnames.default)(classes.container, rootStyle)
    },
    elevation: elevation,
    square: square,
    variant: variant
  }, content);
};
__signature__(Paper, "useStyle{classes}", function () {
  return [useStyle];
});
__signature__(Paper, "useStyle{classes}", function () {
  return [useStyle];
});
var _default = Paper;
var _default2 = _default;
var _default3 = exports.default = _default2;
;
(function () {
  var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
  if (!reactHotLoader) {
    return;
  }
  reactHotLoader.register(useStyle, "useStyle", "/home/vsts/work/1/s/src/components/MaterialUI/Surfaces/Paper.js");
  reactHotLoader.register(Paper, "Paper", "/home/vsts/work/1/s/src/components/MaterialUI/Surfaces/Paper.js");
  reactHotLoader.register(_default, "default", "/home/vsts/work/1/s/src/components/MaterialUI/Surfaces/Paper.js");
})();
;
(function () {
  var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
  leaveModule && leaveModule(module);
})();
;
(function () {
  var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
  if (!reactHotLoader) {
    return;
  }
  reactHotLoader.register(useStyle, "useStyle", "/home/vsts/work/1/s/src/components/MaterialUI/Surfaces/Paper.js");
  reactHotLoader.register(Paper, "Paper", "/home/vsts/work/1/s/src/components/MaterialUI/Surfaces/Paper.js");
  reactHotLoader.register(_default2, "default", "/home/vsts/work/1/s/src/components/MaterialUI/Surfaces/Paper.js");
})();
;
(function () {
  var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
  leaveModule && leaveModule(module);
})();