import{r as e,j as o}from"./react-B_SyE9nW.js";import{s,j as i,o as n,m as r}from"./index-Flm6m8Wj.js";import{R as a,G as t,y as c,I as d,f as l}from"./index-C6Ujt1Uk.js";import{G as x}from"./Grid-DM22V-x0.js";const p=s(a)`
  position: fixed;
  z-index: 4500;
  margin: 0;
  padding: 5px 5px 0 0;
  top: 0;

  & .MuiSvgIcon-root {
    fill: ${i.white};
  }
`;const j=n((function({onClose:s,children:i,sx:n,open:a,...j}){const m=t();return e.useLayoutEffect((()=>{a&&r.register(m)}),[a]),o.jsx(c,{sx:{...n,zIndex:e=>e.zIndex.drawer+1,"&.MuiModal-root .MuiDialog-container":{"& .MuiPaper-root":{width:"100%",maxWidth:"100vw"},width:"100%"}},open:a,...j,fullScreen:!0,hideBackdrop:!0,keepMounted:r.keep.has(m),children:o.jsxs(x,{container:!0,flexDirection:"column",children:[s?o.jsx(p,{justify:"flex-end",children:o.jsx(d,{"aria-label":"close",onClick:s,className:"enj-backdrop-close-btn",children:o.jsx(l,{color:"secondary",className:"enj-backdrop-close-icon"})})}):o.jsx(o.Fragment,{}),i]})})}));export{j as E};