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