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