import{d as m,s as f,e as i,f as o,g,F as h,j as k,G as y,H as T,n as b,u as R}from"./index.0308b213.js";const O={class:"task-blocks"},A=m({props:{taskMode:{type:String,required:!0,default:"day"},unVisibleHeight:{type:Number,required:!0},cellHeight:{type:Number,required:0},scale:{type:Number,required:!0},endTimeOfRenderArea:{type:[Number,null]},startTimeOfRenderArea:{type:[Number,null]},heightOfBlocksWrapper:{type:Number,default:0},datas:{type:Array,default:()=>{}}},setup(s){const e=s,l=f(()=>e.heightOfBlocksWrapper===0?!1:!(!e.startTimeOfRenderArea||!e.endTimeOfRenderArea)),d=r=>r.filter(t=>u(t.start,t.end));function u(r,t){if(!R(l))return!1;const{startTimeOfRenderArea:a,endTimeOfRenderArea:n}=e,c=new Date(r).getTime(),p=new Date(t).getTime();return c<=n&&p>=a}return(r,t)=>(i(),o("div",O,[g("div",{class:T(["task-block-row-wrapper",s.taskMode!=="day"?"task-block-colunmn-wrapper":""]),style:b({height:e.datas.length*e.cellHeight+"px"}),ref:"wrapperElement"},[(i(!0),o(h,null,k(e.datas,(a,n)=>y(r.$slots,"BlockRow",{key:a.id,rowData:{...a,rawIndex:n},showList:d(a.children)})),128))],6)]))}});export{A as _};
