import{_ as u,a as i,c as _,e as m,k as p,i as h,g as e,t,n as f,R as g,S as T}from"./index.0308b213.js";const S="#D5F8EA",v="#BFF2FE",F="#F2F2F2",k={name:"Test",props:{data:Object,item:Object,currentTime:i,updateTimeLines:Function,cellHeight:Number,startTimeOfRenderArea:Number},data(){return{dayjs:i}},computed:{statusColor(){let{item:n,currentTime:l}=this,s=i(n.start),o=i(n.end);return s.isBefore(l)&&o.isAfter(l)?S:o.isBefore(l)?F:v},startToString(){return i(this.item.start).format("HH:mm")},endToString(){return i(this.item.end).format("HH:mm")}},methods:{onClick(){this.updateTimeLines(this.item.start,this.item.end)}}},r=n=>(g("data-v-c1e72775"),n=n(),T(),n),y={class:"runTime"},C={class:"middle"},A={class:"detail"},H={class:"header"},N=r(()=>e("span",null,"\u53D1\u8F66\u65F6\u95F4\uFF1A",-1)),b=r(()=>e("span",null,"\u5230\u7AD9\u65F6\u95F4\uFF1A",-1)),x=r(()=>e("span",null,"\u8F7D\u5458\uFF1A",-1)),B=r(()=>e("span",null,"\u7F16\u53F7\uFF1A",-1));function L(n,l,s,o,j,a){const c=_("el-popover");return m(),p(c,{placement:"bottom",trigger:"hover"},{default:h(()=>[e("div",{slot:"reference",class:"plan",style:f({"background-color":a.statusColor,"margin-top":.1*s.cellHeight+"px"}),onClick:l[0]||(l[0]=(...d)=>a.onClick&&a.onClick(...d))},[e("div",y,[e("span",null,"S:"+t(a.startToString),1),e("span",null,"E:"+t(a.endToString),1)]),e("div",C,"\u7F16\u53F7"+t(s.item.id),1)],4),e("div",A,[e("span",H,t(s.data.type)+t(s.data.name)+t(s.data.id),1),e("ul",null,[e("li",null,[N,e("span",null,t(a.startToString),1)]),e("li",null,[b,e("span",null,t(a.endToString),1)]),e("li",null,[x,e("span",null,t(s.item.passenger),1)]),e("li",null,[B,e("span",null,t(s.item.id),1)])])])]),_:1})}const I=u(k,[["render",L],["__scopeId","data-v-c1e72775"]]);export{I as default};
