import _objectWithoutProperties from"@babel/runtime/helpers/esm/objectWithoutProperties";import _extends from"@babel/runtime/helpers/esm/extends";import*as React from"react";import PropTypes from"prop-types";import clsx from"clsx";import withStyles from"../styles/withStyles";export var styles=function(e){var o={};return e.shadows.forEach(function(e,t){o["elevation".concat(t)]={boxShadow:e}}),_extends({root:{backgroundColor:e.palette.background.paper,color:e.palette.text.primary,transition:e.transitions.create("box-shadow")},rounded:{borderRadius:e.shape.borderRadius},outlined:{border:"1px solid ".concat(e.palette.divider)}},o)};var Paper=React.forwardRef(function(e,o){var t=e.classes,r=e.className,a=e.component,s=void 0===a?"div":a,n=e.square,i=void 0!==n&&n,p=e.elevation,l=void 0===p?1:p,c=e.variant,d=void 0===c?"elevation":c,m=_objectWithoutProperties(e,["classes","className","component","square","elevation","variant"]);return"production"!==process.env.NODE_ENV&&void 0===t["elevation".concat(l)]&&console.error("Material-UI: this elevation `".concat(l,"` is not implemented.")),React.createElement(s,_extends({className:clsx(t.root,r,"outlined"===d?t.outlined:t["elevation".concat(l)],!i&&t.rounded),ref:o},m))});"production"!==process.env.NODE_ENV&&(Paper.propTypes={children:PropTypes.node,classes:PropTypes.object,className:PropTypes.string,component:PropTypes.elementType,elevation:PropTypes.number,square:PropTypes.bool,variant:PropTypes.oneOf(["elevation","outlined"])});export default withStyles(styles,{name:"MuiPaper"})(Paper);