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