"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("../../theme/internal.js");const f=require("./light.js"),H=require("../../theme/util/genComponentStyleHook.js"),x=require("../../theme/util/statistic.js"),$=o=>{const{antCls:t,componentCls:e,colorText:a,colorTextLightSolid:r,colorBgHeader:i,colorBgBody:n,colorBgTrigger:g,layoutHeaderHeight:u,layoutHeaderPaddingInline:b,layoutHeaderColor:y,layoutFooterPadding:p,layoutTriggerHeight:c,layoutZeroTriggerSize:d,motionDurationMid:s,motionDurationSlow:h,fontSize:S,borderRadius:l}=o;return{[e]:{display:"flex",flex:"auto",flexDirection:"column",color:a,minHeight:0,background:n,"&, *":{boxSizing:"border-box"},[`&${e}-has-sider`]:{flexDirection:"row",[`> ${e}, > ${e}-content`]:{width:0}},[`${e}-header, &${e}-footer`]:{flex:"0 0 auto"},[`${e}-header`]:{height:u,paddingInline:b,color:y,lineHeight:`${u}px`,background:i,[`${t}-menu`]:{lineHeight:"inherit"}},[`${e}-footer`]:{padding:p,color:a,fontSize:S,background:n},[`${e}-content`]:{flex:"auto",minHeight:0},[`${e}-sider`]:{position:"relative",minWidth:0,background:i,transition:`all ${s}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${t}-menu${t}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:c},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:c,color:r,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:r,fontSize:o.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}}}},...f.default(o),"&-rtl":{direction:"rtl"}}}},m=H.default("Layout",o=>{const{colorText:t,controlHeightSM:e,controlHeight:a,controlHeightLG:r,marginXXS:i}=o,n=r*1.25,g=x.merge(o,{layoutHeaderHeight:a*2,layoutHeaderPaddingInline:n,layoutHeaderColor:t,layoutFooterPadding:`${e}px ${n}px`,layoutTriggerHeight:r+i*2,layoutZeroTriggerSize:r});return[$(g)]},o=>{const{colorBgLayout:t}=o;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140"}});exports.default=m;
