import e from"../../../../@babel/runtime/helpers/esm/objectWithoutProperties.js";import o from"../../../../@babel/runtime/helpers/esm/extends.js";import*as t from"react";import r from"../../../../prop-types/index.js";import a from"../../../../clsx/dist/clsx.m.js";import n from"../styles/withStyles.js";import i from"../../../utils/esm/chainPropTypes.js";var s=function(e){var t={};return e.shadows.forEach((function(e,o){t["elevation".concat(o)]={boxShadow:e}})),o({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)}},t)},l=t.forwardRef((function(r,n){var i=r.classes,s=r.className,l=r.component,c=void 0===l?"div":l,d=r.square,p=void 0!==d&&d,m=r.elevation,u=void 0===m?1:m,v=r.variant,f=void 0===v?"elevation":v,b=e(r,["classes","className","component","square","elevation","variant"]);return t.createElement(c,o({className:a(i.root,s,"outlined"===f?i.outlined:i["elevation".concat(u)],!p&&i.rounded),ref:n},b))}));"production"!==process.env.NODE_ENV&&(l.propTypes={children:r.node,classes:r.object,className:r.string,component:r.elementType,elevation:i(r.number,(function(e){var o=e.classes,t=e.elevation;return void 0===o?null:null!=t&&void 0===o["elevation".concat(t)]?new Error("Material-UI: This elevation `".concat(t,"` is not implemented.")):null})),square:r.bool,variant:r.oneOf(["elevation","outlined"])});var c=n(s,{name:"MuiPaper"})(l);export default c;export{s as styles};
//# sourceMappingURL=Paper.js.map
