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