import{a as e,n as t}from"./preload-helper-DxX6f4wy.js";import{$ as n,B as r,E as i,F as a,I as o,L as s,O as c,P as l,R as u,U as d,Z as f,b as p,d as m,f as h,g,it as _,x as v,y}from"./Fade-Bj1YUcWe.js";var b=e(t()),x=n();function S(e={}){let{themeId:t,defaultTheme:n,defaultClassName:i=`MuiBox-root`,generateClassName:a}=e,s=f(`div`,{shouldForwardProp:e=>e!==`theme`&&e!==`sx`&&e!==`as`})(d);return b.forwardRef(function(e,c){let l=r(n),{className:d,component:f=`div`,...p}=u(e);return(0,x.jsx)(s,{as:f,ref:c,className:o(d,a?a(i):i),theme:t&&l[t]||l,...p})})}function C(e){return a(`MuiPaper`,e)}l(`MuiPaper`,`root.rounded.outlined.elevation.elevation0.elevation1.elevation2.elevation3.elevation4.elevation5.elevation6.elevation7.elevation8.elevation9.elevation10.elevation11.elevation12.elevation13.elevation14.elevation15.elevation16.elevation17.elevation18.elevation19.elevation20.elevation21.elevation22.elevation23.elevation24`.split(`.`));var w=e=>{let{square:t,elevation:n,variant:r,classes:a}=e;return i({root:[`root`,r,!t&&`rounded`,r===`elevation`&&`elevation${n}`]},C,a)},T=g(`div`,{name:`MuiPaper`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant===`elevation`&&t[`elevation${n.elevation}`]]}})(h(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create(`box-shadow`),variants:[{props:({ownerState:e})=>!e.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:`outlined`},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:`elevation`},style:{boxShadow:`var(--Paper-shadow)`,backgroundImage:`var(--Paper-overlay)`}}]}))),E=b.forwardRef(function(e,t){let n=m({props:e,name:`MuiPaper`}),r=y(),{className:i,component:a=`div`,elevation:s=1,square:l=!1,variant:u=`elevation`,...d}=n,f={...n,component:a,elevation:s,square:l,variant:u},p=w(f);return(0,x.jsx)(T,{as:a,ownerState:f,className:o(p.root,i),ref:t,...d,style:{...u===`elevation`&&{"--Paper-shadow":(r.vars||r).shadows[s],...r.vars&&{"--Paper-overlay":r.vars.overlays?.[s]},...!r.vars&&r.palette.mode===`dark`&&{"--Paper-overlay":`linear-gradient(${c(`#fff`,v(s))}, ${c(`#fff`,v(s))})`}},...d.style}})}),D=l(`MuiBox`,[`root`]),O=S({themeId:_,defaultTheme:p(),defaultClassName:D.root,generateClassName:s.generate});export{E as n,O as t};