import{operationUnit as e}from"../../style/operationUnit.mjs";import{resetComponent as t,textEllipsis as n}from"../../style/index.mjs";import r from"../../theme/util/genComponentStyleHook.mjs";import{merge as i}from"../../theme/util/statistic.mjs";var a=r=>{let{componentCls:i,antCls:a}=r;return{[i]:{...t(r),position:`relative`,padding:`${r.pageHeaderPaddingVertical}px ${r.pageHeaderPadding}px`,backgroundColor:r.colorBgContainer,[`&${i}-ghost`]:{backgroundColor:r.pageHeaderGhostBg},"&.has-footer":{paddingBottom:0},[`${i}-back`]:{marginRight:r.marginMD,fontSize:r.fontSizeLG,lineHeight:1,"&-button":{...e(r),color:r.pageHeaderBackColor,cursor:`pointer`}},[`${a}-divider-vertical`]:{height:`14px`,margin:`0 ${r.marginSM}`,verticalAlign:`middle`},[`${a}-breadcrumb + &-heading`]:{marginTop:r.marginXS},[`${i}-heading`]:{display:`flex`,justifyContent:`space-between`,"&-left":{display:`flex`,alignItems:`center`,margin:`${r.marginXS/2}px 0`,overflow:`hidden`},"&-title":{marginRight:r.marginSM,marginBottom:0,color:r.colorTextHeading,fontWeight:600,fontSize:r.pageHeaderHeadingTitle,lineHeight:`${r.controlHeight}px`,...n},[`${a}-avatar`]:{marginRight:r.marginSM},"&-sub-title":{marginRight:r.marginSM,color:r.colorTextDescription,fontSize:r.pageHeaderHeadingSubTitle,lineHeight:r.lineHeight,...n},"&-extra":{margin:`${r.marginXS/2}px 0`,whiteSpace:`nowrap`,"> *":{marginLeft:r.marginSM,whiteSpace:`unset`},"> *:first-child":{marginLeft:0}}},[`${i}-content`]:{paddingTop:r.pageHeaderContentPaddingVertical},[`${i}-footer`]:{marginTop:r.marginMD,[`${a}-tabs`]:{[`> ${a}-tabs-nav`]:{margin:0,"&::before":{border:`none`}},[`${a}-tabs-tab`]:{paddingTop:r.paddingXS,paddingBottom:r.paddingXS,fontSize:r.pageHeaderTabFontSize}}},[`${i}-compact ${i}-heading`]:{flexWrap:`wrap`},[`&${r.componentCls}-rtl`]:{direction:`rtl`}}}},o=r(`PageHeader`,e=>[a(i(e,{pageHeaderPadding:e.paddingLG,pageHeaderPaddingVertical:e.paddingMD,pageHeaderPaddingBreadcrumb:e.paddingSM,pageHeaderContentPaddingVertical:e.paddingSM,pageHeaderBackColor:e.colorTextBase,pageHeaderGhostBg:`transparent`,pageHeaderHeadingTitle:e.fontSizeHeading4,pageHeaderHeadingSubTitle:e.fontSize,pageHeaderTabFontSize:e.fontSizeLG}))]);export{o as default};