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