const e=require("../_util/type.js"),t=require("../_util/props-util/index.js"),n=require("../config-provider/hooks/useConfigInject.js"),r=require("../_util/vue-types/index.js"),i=require("./style/index.js");let a=require("vue");var o=()=>({actions:Array,author:r.default.any,avatar:r.default.any,content:r.default.any,prefixCls:String,datetime:r.default.any}),s=(0,a.defineComponent)({compatConfig:{MODE:3},name:`AComment`,inheritAttrs:!1,props:o(),slots:Object,setup(e,{slots:r,attrs:o}){let{prefixCls:s,direction:c}=n.default(`comment`,e),[l,u]=i.default(s),d=(e,t)=>(0,a.createVNode)(`div`,{class:`${e}-nested`},[t]),f=e=>!e||!e.length?null:e.map((e,t)=>(0,a.createVNode)(`li`,{key:`action-${t}`},[e]));return()=>{let n=s.value,i=e.actions??r.actions?.(),p=e.author??r.author?.(),m=e.avatar??r.avatar?.(),h=e.content??r.content?.(),g=e.datetime??r.datetime?.(),_=(0,a.createVNode)(`div`,{class:`${n}-avatar`},[typeof m==`string`?(0,a.createVNode)(`img`,{src:m,alt:`comment-avatar`},null):m]),v=i?(0,a.createVNode)(`ul`,{class:`${n}-actions`},[f(Array.isArray(i)?i:[i])]):null,y=(0,a.createVNode)(`div`,{class:`${n}-content-author`},[p&&(0,a.createVNode)(`span`,{class:`${n}-content-author-name`},[p]),g&&(0,a.createVNode)(`span`,{class:`${n}-content-author-time`},[g])]),b=(0,a.createVNode)(`div`,{class:`${n}-content`},[y,(0,a.createVNode)(`div`,{class:`${n}-content-detail`},[h]),v]),x=(0,a.createVNode)(`div`,{class:`${n}-inner`},[_,b]),S=t.flattenChildren(r.default?.());return l((0,a.createVNode)(`div`,{...o,class:[n,{[`${n}-rtl`]:c.value===`rtl`},o.class,u.value]},[x,S&&S.length?d(n,S):null]))}}}),c=e.withInstall(s);exports.commentProps=o,exports.default=c;