import e from"../../theme/util/genComponentStyleHook.mjs";import{merge as t}from"../../theme/util/statistic.mjs";import n from"./light.mjs";var r=e=>{let{antCls:t,componentCls:r,colorText:i,colorTextLightSolid:a,colorBgHeader:o,colorBgBody:s,colorBgTrigger:c,layoutHeaderHeight:l,layoutHeaderPaddingInline:u,layoutHeaderColor:d,layoutFooterPadding:f,layoutTriggerHeight:p,layoutZeroTriggerSize:m,motionDurationMid:h,motionDurationSlow:g,fontSize:_,borderRadius:v}=e;return{[r]:{display:`flex`,flex:`auto`,flexDirection:`column`,color:i,minHeight:0,background:s,"&, *":{boxSizing:`border-box`},[`&${r}-has-sider`]:{flexDirection:`row`,[`> ${r}, > ${r}-content`]:{width:0}},[`${r}-header, &${r}-footer`]:{flex:`0 0 auto`},[`${r}-header`]:{height:l,paddingInline:u,color:d,lineHeight:`${l}px`,background:o,[`${t}-menu`]:{lineHeight:`inherit`}},[`${r}-footer`]:{padding:f,color:i,fontSize:_,background:s},[`${r}-content`]:{flex:`auto`,minHeight:0},[`${r}-sider`]:{position:`relative`,minWidth:0,background:o,transition:`all ${h}, background 0s`,"&-children":{height:`100%`,marginTop:-.1,paddingTop:.1,[`${t}-menu${t}-menu-inline-collapsed`]:{width:`auto`}},"&-has-trigger":{paddingBottom:p},"&-right":{order:1},"&-trigger":{position:`fixed`,bottom:0,zIndex:1,height:p,color:a,lineHeight:`${p}px`,textAlign:`center`,background:c,cursor:`pointer`,transition:`all ${h}`},"&-zero-width":{"> *":{overflow:`hidden`},"&-trigger":{position:`absolute`,top:l,insetInlineEnd:-m,zIndex:1,width:m,height:m,color:a,fontSize:e.fontSizeXL,display:`flex`,alignItems:`center`,justifyContent:`center`,background:o,borderStartStartRadius:0,borderStartEndRadius:v,borderEndEndRadius:v,borderEndStartRadius:0,cursor:`pointer`,transition:`background ${g} ease`,"&::after":{position:`absolute`,inset:0,background:`transparent`,transition:`all ${g}`,content:`""`},"&:hover::after":{background:`rgba(255, 255, 255, 0.2)`},"&-right":{insetInlineStart:-m,borderStartStartRadius:v,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:v}}}},...n(e),"&-rtl":{direction:`rtl`}}}},i=e(`Layout`,e=>{let{colorText:n,controlHeightSM:i,controlHeight:a,controlHeightLG:o,marginXXS:s}=e,c=o*1.25;return[r(t(e,{layoutHeaderHeight:a*2,layoutHeaderPaddingInline:c,layoutHeaderColor:n,layoutFooterPadding:`${i}px ${c}px`,layoutTriggerHeight:o+s*2,layoutZeroTriggerSize:o}))]},e=>{let{colorBgLayout:t}=e;return{colorBgHeader:`#001529`,colorBgBody:t,colorBgTrigger:`#002140`}});export{i as default};