import{resetComponent as e}from"../../style/index.mjs";import t from"../../theme/util/genComponentStyleHook.mjs";import{merge as n}from"../../theme/util/statistic.mjs";var r=t=>{let{componentCls:n}=t;return{[n]:{...e(t),margin:0,padding:0,listStyle:`none`,[`${n}-item`]:{position:`relative`,margin:0,paddingBottom:t.timeLineItemPaddingBottom,fontSize:t.fontSize,listStyle:`none`,"&-tail":{position:`absolute`,insetBlockStart:t.timeLineItemHeadSize,insetInlineStart:(t.timeLineItemHeadSize-t.timeLineItemTailWidth)/2,height:`calc(100% - ${t.timeLineItemHeadSize}px)`,borderInlineStart:`${t.timeLineItemTailWidth}px ${t.lineType} ${t.colorSplit}`},"&-pending":{[`${n}-item-head`]:{fontSize:t.fontSizeSM,backgroundColor:`transparent`},[`${n}-item-tail`]:{display:`none`}},"&-head":{position:`absolute`,width:t.timeLineItemHeadSize,height:t.timeLineItemHeadSize,backgroundColor:t.colorBgContainer,border:`${t.timeLineHeadBorderWidth}px ${t.lineType} transparent`,borderRadius:`50%`,"&-blue":{color:t.colorPrimary,borderColor:t.colorPrimary},"&-red":{color:t.colorError,borderColor:t.colorError},"&-green":{color:t.colorSuccess,borderColor:t.colorSuccess},"&-gray":{color:t.colorTextDisabled,borderColor:t.colorTextDisabled}},"&-head-custom":{position:`absolute`,insetBlockStart:t.timeLineItemHeadSize/2,insetInlineStart:t.timeLineItemHeadSize/2,width:`auto`,height:`auto`,marginBlockStart:0,paddingBlock:t.timeLineItemCustomHeadPaddingVertical,lineHeight:1,textAlign:`center`,border:0,borderRadius:0,transform:`translate(-50%, -50%)`},"&-content":{position:`relative`,insetBlockStart:-(t.fontSize*t.lineHeight-t.fontSize)+t.lineWidth,marginInlineStart:t.margin+t.timeLineItemHeadSize,marginInlineEnd:0,marginBlockStart:0,marginBlockEnd:0,wordBreak:`break-word`},"&-last":{[`> ${n}-item-tail`]:{display:`none`},[`> ${n}-item-content`]:{minHeight:t.controlHeightLG*1.2}}},[`&${n}-alternate,
        &${n}-right,
        &${n}-label`]:{[`${n}-item`]:{"&-tail, &-head, &-head-custom":{insetInlineStart:`50%`},"&-head":{marginInlineStart:`-${t.marginXXS}px`,"&-custom":{marginInlineStart:t.timeLineItemTailWidth/2}},"&-left":{[`${n}-item-content`]:{insetInlineStart:`calc(50% - ${t.marginXXS}px)`,width:`calc(50% - ${t.marginSM}px)`,textAlign:`start`}},"&-right":{[`${n}-item-content`]:{width:`calc(50% - ${t.marginSM}px)`,margin:0,textAlign:`end`}}}},[`&${n}-right`]:{[`${n}-item-right`]:{[`${n}-item-tail,
            ${n}-item-head,
            ${n}-item-head-custom`]:{insetInlineStart:`calc(100% - ${(t.timeLineItemHeadSize+t.timeLineItemTailWidth)/2}px)`},[`${n}-item-content`]:{width:`calc(100% - ${t.timeLineItemHeadSize+t.marginXS}px)`}}},[`&${n}-pending
        ${n}-item-last
        ${n}-item-tail`]:{display:`block`,height:`calc(100% - ${t.margin}px)`,borderInlineStart:`${t.timeLineItemTailWidth}px dotted ${t.colorSplit}`},[`&${n}-reverse
        ${n}-item-last
        ${n}-item-tail`]:{display:`none`},[`&${n}-reverse ${n}-item-pending`]:{[`${n}-item-tail`]:{insetBlockStart:t.margin,display:`block`,height:`calc(100% - ${t.margin}px)`,borderInlineStart:`${t.timeLineItemTailWidth}px dotted ${t.colorSplit}`},[`${n}-item-content`]:{minHeight:t.controlHeightLG*1.2}},[`&${n}-label`]:{[`${n}-item-label`]:{position:`absolute`,insetBlockStart:-(t.fontSize*t.lineHeight-t.fontSize)+t.timeLineItemTailWidth,width:`calc(50% - ${t.marginSM}px)`,textAlign:`end`},[`${n}-item-right`]:{[`${n}-item-label`]:{insetInlineStart:`calc(50% + ${t.marginSM}px)`,width:`calc(50% - ${t.marginSM}px)`,textAlign:`start`}}},"&-rtl":{direction:`rtl`,[`${n}-item-head-custom`]:{transform:`translate(50%, -50%)`}}}}},i=t(`Timeline`,e=>[r(n(e,{timeLineItemPaddingBottom:e.padding*1.25,timeLineItemHeadSize:10,timeLineItemCustomHeadPaddingVertical:e.paddingXXS,timeLinePaddingInlineEnd:2,timeLineItemTailWidth:e.lineWidthBold,timeLineHeadBorderWidth:e.wireframe?e.lineWidthBold:e.lineWidth*3}))]);export{i as default};