import{i as e}from"./chunk-aKtaBQYM.js";import{C as t,H as n,K as r,O as i,U as a,Vt as o,W as s,dt as c,ft as l,tt as u,ut as d,wt as f}from"./mui-B6lh3XSP.js";var p=e(o(),1);function m(e){return c(`MuiAppBar`,e)}d(`MuiAppBar`,[`root`,`positionFixed`,`positionAbsolute`,`positionSticky`,`positionStatic`,`positionRelative`,`colorDefault`,`colorPrimary`,`colorSecondary`,`colorInherit`,`colorTransparent`,`colorError`,`colorInfo`,`colorSuccess`,`colorWarning`]);var h=f(),g=e=>{let{color:t,position:r,classes:i}=e;return u({root:[`root`,`color${n(t)}`,`position${n(r)}`]},m,i)},_=(e,t)=>e?`${e.replace(`)`,``)}, ${t})`:t,v=r(i,{name:`MuiAppBar`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t[`position${n(r.position)}`],t[`color${n(r.color)}`]]}})(s(({theme:e})=>({display:`flex`,flexDirection:`column`,width:`100%`,boxSizing:`border-box`,flexShrink:0,variants:[{props:{position:`fixed`},style:{position:`fixed`,zIndex:(e.vars||e).zIndex.appBar,top:0,left:`auto`,right:0,"@media print":{position:`absolute`}}},{props:{position:`absolute`},style:{position:`absolute`,zIndex:(e.vars||e).zIndex.appBar,top:0,left:`auto`,right:0}},{props:{position:`sticky`},style:{position:`sticky`,zIndex:(e.vars||e).zIndex.appBar,top:0,left:`auto`,right:0}},{props:{position:`static`},style:{position:`static`}},{props:{position:`relative`},style:{position:`relative`}},{props:{color:`inherit`},style:{"--AppBar-color":`inherit`,color:`var(--AppBar-color)`}},{props:{color:`default`},style:{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[100],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[100]),...e.applyStyles(`dark`,{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[900],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[900])})}},...Object.entries(e.palette).filter(t([`contrastText`])).map(([t])=>({props:{color:t},style:{"--AppBar-background":(e.vars??e).palette[t].main,"--AppBar-color":(e.vars??e).palette[t].contrastText}})),{props:e=>e.enableColorOnDark===!0&&![`inherit`,`transparent`].includes(e.color),style:{backgroundColor:`var(--AppBar-background)`,color:`var(--AppBar-color)`}},{props:e=>e.enableColorOnDark===!1&&![`inherit`,`transparent`].includes(e.color),style:{backgroundColor:`var(--AppBar-background)`,color:`var(--AppBar-color)`,...e.applyStyles(`dark`,{backgroundColor:e.vars?_(e.vars.palette.AppBar.darkBg,`var(--AppBar-background)`):null,color:e.vars?_(e.vars.palette.AppBar.darkColor,`var(--AppBar-color)`):null})}},{props:{color:`transparent`},style:{"--AppBar-background":`transparent`,"--AppBar-color":`inherit`,backgroundColor:`var(--AppBar-background)`,color:`var(--AppBar-color)`,...e.applyStyles(`dark`,{backgroundImage:`none`})}}]}))),y=p.forwardRef(function(e,t){let n=a({props:e,name:`MuiAppBar`}),{className:r,color:i=`primary`,enableColorOnDark:o=!1,position:s=`fixed`,...c}=n,u={...n,color:i,position:s,enableColorOnDark:o};return(0,h.jsx)(v,{square:!0,component:`header`,ownerState:u,elevation:4,className:l(g(u).root,r,s===`fixed`&&`mui-fixed`),ref:t,...c})});export{y as t};