const e=require("../../style/index.js"),t=require("../../theme/util/genComponentStyleHook.js"),n=require("../../theme/util/statistic.js");var r=t=>{let{componentCls:n,holderOffsetBlock:r,motionDurationSlow:i,lineWidthBold:a,colorPrimary:o,lineType:s,colorSplit:c}=t;return{[`${n}-wrapper`]:{marginBlockStart:-r,paddingBlockStart:r,backgroundColor:`transparent`,[n]:{...e.resetComponent(t),position:`relative`,paddingInlineStart:a,[`${n}-link`]:{paddingBlock:t.anchorPaddingBlock,paddingInline:`${t.anchorPaddingInline}px 0`,"&-title":{...e.textEllipsis,position:`relative`,display:`block`,marginBlockEnd:t.anchorTitleBlock,color:t.colorText,transition:`all ${t.motionDurationSlow}`,"&:only-child":{marginBlockEnd:0}},[`&-active > ${n}-link-title`]:{color:t.colorPrimary},[`${n}-link`]:{paddingBlock:t.anchorPaddingBlockSecondary}}},[`&:not(${n}-wrapper-horizontal)`]:{[n]:{"&::before":{position:`absolute`,left:{_skip_check_:!0,value:0},top:0,height:`100%`,borderInlineStart:`${a}px ${s} ${c}`,content:`" "`},[`${n}-ink`]:{position:`absolute`,left:{_skip_check_:!0,value:0},display:`none`,transform:`translateY(-50%)`,transition:`top ${i} ease-in-out`,width:a,backgroundColor:o,[`&${n}-ink-visible`]:{display:`inline-block`}}}},[`${n}-fixed ${n}-ink ${n}-ink`]:{display:`none`}}}},i=e=>{let{componentCls:t,motionDurationSlow:n,lineWidthBold:r,colorPrimary:i}=e;return{[`${t}-wrapper-horizontal`]:{position:`relative`,"&::before":{position:`absolute`,left:{_skip_check_:!0,value:0},right:{_skip_check_:!0,value:0},bottom:0,borderBottom:`1px ${e.lineType} ${e.colorSplit}`,content:`" "`},[t]:{overflowX:`scroll`,position:`relative`,display:`flex`,scrollbarWidth:`none`,"&::-webkit-scrollbar":{display:`none`},[`${t}-link:first-of-type`]:{paddingInline:0},[`${t}-ink`]:{position:`absolute`,bottom:0,transition:`left ${n} ease-in-out, width ${n} ease-in-out`,height:r,backgroundColor:i}}}}},a=t.default(`Anchor`,e=>{let{fontSize:t,fontSizeLG:a,padding:o,paddingXXS:s}=e,c=n.merge(e,{holderOffsetBlock:s,anchorPaddingBlock:s,anchorPaddingBlockSecondary:s/2,anchorPaddingInline:o,anchorTitleBlock:t/14*3,anchorBallSize:a/2});return[r(c),i(c)]});exports.default=a;