import{j as o}from"./main-ac2fa4b1.js";import{c as r}from"./chunk-index-89b7ba38.js";import{m as w,aX as C,I as b,q as f,G as c,e as d,B as p}from"./chunk-material-ui-42c43899.js";const B=w(n=>({closeBtn:{position:"absolute",top:24,padding:0,zIndex:n.zIndex.drawer,"&:hover":{backgroundColor:"unset"}},closeBtnLeft:{left:24},closeBtnRight:{right:24},paperRoot:{width:540,overflow:"auto","@media (max-width: 479px)":{width:"100%;"}},childrenContainer:{padding:"24px","@media (max-width: 479px)":{padding:16},"@media (max-width: 1279px)":{"@media (orientation: landscape)":{paddingBlock:11}}},childrenWrapper:{height:"100%","box-sizing":"border-box"},textSubTitle:{color:n.color.black80}}),{name:"Drawer"}),v=n=>{const{children:s,handlerCloseIcon:h,showCloseIcon:x,isWrapped:m,classes:t,IconComponent:u,closeIconPosition:g="left",title:a,subTitle:i,...j}=n,l=g,e=B();return o.jsxs(C,{...j,classes:{root:t==null?void 0:t.root,paper:r([e.paperRoot,t==null?void 0:t.paper])},elevation:0,children:[x&&o.jsx(b,{classes:{root:r([e.closeBtn,l==="left"&&e.closeBtnLeft,l==="right"&&e.closeBtnRight])},onClick:h,children:u||o.jsx(f,{})}),i&&o.jsx(c,{classes:{root:e.childrenContainer},container:!0,justifyContent:"center",alignItems:"center",children:o.jsx(c,{item:!0,xs:"auto",children:o.jsx(d,{variant:"body2",classes:{root:e.textSubTitle},children:i})})}),a&&o.jsx(p,{className:e.childrenContainer,children:o.jsx(d,{variant:"h1",children:a})}),m?o.jsx(p,{className:r([e.childrenContainer,e.childrenWrapper]),children:s}):s]})};export{v as D};