import{a as n,F as c,j as x}from"./index-b983ad9b.js";/* empty css                *//* empty css              */import{r as m}from"./react-b0e0d18a.js";import{f as d}from"./index.module-32df86df.js";import{x as E}from"./antd-8ca2e36c.js";/* empty css              *//* empty css              *//* empty css              *//* empty css              *//* empty css              *//* empty css              *//* empty css              *//* empty css              *//* empty css              *//* empty css              */import"./Room-7ae51b0a.js";/* empty css              *//* empty css              */const a=new Date(864e13),l=["respondedAt","handledAt","closedAt"];function B({event:t,direction:A="vertical"}){const r=t.respondedAt,s=t.handledAt,e=t.closedAt,u=m.useMemo(()=>{var i,p;const o={respondedAt:{title:"响应",subTitle:r?d(r):void 0,description:r?n(c,{children:["首先被",((i=t.responder)==null?void 0:i.name)||"某人","响应"]}):void 0},handledAt:{title:"处置",subTitle:s?d(s):void 0,description:s?n(c,{children:["被",((p=t.responder)==null?void 0:p.name)||"某人","处置"]}):void 0}};return e&&(o.closedAt={title:"恢复",subTitle:d(e)}),o},[t,r,s,e]),f=m.useMemo(()=>l.sort((o,i)=>{const p=t[o]||a,T=t[i]||a;return p-T}),[t,r,s,e]),h=m.useMemo(()=>l.filter(o=>t[o]).length,[t]);return x(E,{current:h,progressDot:!0,direction:A,items:[{title:"发生",subTitle:d(t.createdAt)},...f.map(o=>u[o])]})}export{B as default};
