import{genFocusStyle as e,resetComponent as t}from"../../style/index.mjs";import n from"../../theme/util/genComponentStyleHook.mjs";import{merge as r}from"../../theme/util/statistic.mjs";var i=n=>{let{componentCls:r,iconCls:i}=n;return{[r]:{...t(n),color:n.breadcrumbBaseColor,fontSize:n.breadcrumbFontSize,[i]:{fontSize:n.breadcrumbIconFontSize},ol:{display:`flex`,flexWrap:`wrap`,margin:0,padding:0,listStyle:`none`},a:{color:n.breadcrumbLinkColor,transition:`color ${n.motionDurationMid}`,padding:`0 ${n.paddingXXS}px`,borderRadius:n.borderRadiusSM,height:n.lineHeight*n.fontSize,display:`inline-block`,marginInline:-n.marginXXS,"&:hover":{color:n.breadcrumbLinkColorHover,backgroundColor:n.colorBgTextHover},...e(n)},"li:last-child":{color:n.breadcrumbLastItemColor,[`& > ${r}-separator`]:{display:`none`}},[`${r}-separator`]:{marginInline:n.breadcrumbSeparatorMargin,color:n.breadcrumbSeparatorColor},[`${r}-link`]:{[`
          > ${i} + span,
          > ${i} + a
        `]:{marginInlineStart:n.marginXXS}},[`${r}-overlay-link`]:{borderRadius:n.borderRadiusSM,height:n.lineHeight*n.fontSize,display:`inline-block`,padding:`0 ${n.paddingXXS}px`,marginInline:-n.marginXXS,[`> ${i}`]:{marginInlineStart:n.marginXXS,fontSize:n.fontSizeIcon},"&:hover":{color:n.breadcrumbLinkColorHover,backgroundColor:n.colorBgTextHover,a:{color:n.breadcrumbLinkColorHover}},a:{"&:hover":{backgroundColor:`transparent`}}},[`&${n.componentCls}-rtl`]:{direction:`rtl`}}}},a=n(`Breadcrumb`,e=>[i(r(e,{breadcrumbBaseColor:e.colorTextDescription,breadcrumbFontSize:e.fontSize,breadcrumbIconFontSize:e.fontSize,breadcrumbLinkColor:e.colorTextDescription,breadcrumbLinkColorHover:e.colorText,breadcrumbLastItemColor:e.colorText,breadcrumbSeparatorMargin:e.marginXS,breadcrumbSeparatorColor:e.colorTextDescription}))]);export{a as default};