import{booleanType as e,tuple as t}from"../_util/type.mjs";import n from"../_util/props-util/initDefaultProps.mjs";import r from"../config-provider/hooks/useConfigInject.mjs";import i from"../_util/vue-types/index.mjs";import{computed as a,createVNode as o,defineComponent as s}from"vue";var c=()=>({prefixCls:String,color:String,dot:i.any,pending:e(),position:i.oneOf(t(`left`,`right`,``)).def(``),label:i.any}),l=s({compatConfig:{MODE:3},name:`ATimelineItem`,props:n(c(),{color:`blue`,pending:!1}),slots:Object,setup(e,{slots:t}){let{prefixCls:n}=r(`timeline`,e),i=a(()=>({[`${n.value}-item`]:!0,[`${n.value}-item-pending`]:e.pending})),s=a(()=>/blue|red|green|gray/.test(e.color||``)?void 0:e.color||`blue`),c=a(()=>({[`${n.value}-item-head`]:!0,[`${n.value}-item-head-${e.color||`blue`}`]:!s.value}));return()=>{let{label:r=t.label?.(),dot:a=t.dot?.()}=e;return o(`li`,{class:i.value},[r&&o(`div`,{class:`${n.value}-item-label`},[r]),o(`div`,{class:`${n.value}-item-tail`},null),o(`div`,{class:[c.value,!!a&&`${n.value}-item-head-custom`],style:{borderColor:s.value,color:s.value}},[a]),o(`div`,{class:`${n.value}-item-content`},[t.default?.()])])}}});export{l as default,c as timelineItemProps};