const e=require("../../theme/util/genComponentStyleHook.js"),t=require("../../theme/util/statistic.js"),n=require("./motion.js");var r=e=>{let{componentCls:t,zIndexPopup:n,colorBgMask:r,colorBgElevated:i,motionDurationSlow:a,motionDurationMid:o,padding:s,paddingLG:c,fontSizeLG:l,lineHeightLG:u,lineWidth:d,lineType:f,colorSplit:p,marginSM:m,colorIcon:h,colorIconHover:g,colorText:_,fontWeightStrong:v,drawerFooterPaddingVertical:y,drawerFooterPaddingHorizontal:b}=e,x=`${t}-content-wrapper`;return{[t]:{position:`fixed`,inset:0,zIndex:n,pointerEvents:`none`,"&-pure":{position:`relative`,background:i,[`&${t}-left`]:{boxShadow:e.boxShadowDrawerLeft},[`&${t}-right`]:{boxShadow:e.boxShadowDrawerRight},[`&${t}-top`]:{boxShadow:e.boxShadowDrawerUp},[`&${t}-bottom`]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:`absolute`},[`${t}-mask`]:{position:`absolute`,inset:0,zIndex:n,background:r,pointerEvents:`auto`},[x]:{position:`absolute`,zIndex:n,transition:`all ${a}`,"&-hidden":{display:`none`}},[`&-left > ${x}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${x}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${x}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${x}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${t}-content`]:{width:`100%`,height:`100%`,overflow:`auto`,background:i,pointerEvents:`auto`},[`${t}-wrapper-body`]:{display:`flex`,flexDirection:`column`,width:`100%`,height:`100%`},[`${t}-header`]:{display:`flex`,flex:0,alignItems:`center`,padding:`${s}px ${c}px`,fontSize:l,lineHeight:u,borderBottom:`${d}px ${f} ${p}`,"&-title":{display:`flex`,flex:1,alignItems:`center`,minWidth:0,minHeight:0}},[`${t}-extra`]:{flex:`none`},[`${t}-close`]:{display:`inline-block`,marginInlineEnd:m,color:h,fontWeight:v,fontSize:l,fontStyle:`normal`,lineHeight:1,textAlign:`center`,textTransform:`none`,textDecoration:`none`,background:`transparent`,border:0,outline:0,cursor:`pointer`,transition:`color ${o}`,textRendering:`auto`,"&:focus, &:hover":{color:g,textDecoration:`none`}},[`${t}-title`]:{flex:1,margin:0,color:_,fontWeight:e.fontWeightStrong,fontSize:l,lineHeight:u},[`${t}-body`]:{flex:1,minWidth:0,minHeight:0,padding:c,overflow:`auto`},[`${t}-footer`]:{flexShrink:0,padding:`${y}px ${b}px`,borderTop:`${d}px ${f} ${p}`},"&-rtl":{direction:`rtl`}}}},i=e.default(`Drawer`,e=>{let i=t.merge(e,{drawerFooterPaddingVertical:e.paddingXS,drawerFooterPaddingHorizontal:e.padding});return[r(i),n.default(i)]},e=>({zIndexPopup:e.zIndexPopupBase}));exports.default=i;