import{d as m,s as f,e as a,f as i,g,F as h,j as y,G as T,n as k,u as R}from"./index.0308b213.js";const b={class:"task-blocks"},A=m({props:{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(o){const e=o,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:n,endTimeOfRenderArea:s}=e,c=new Date(r).getTime(),p=new Date(t).getTime();return c<=s&&p>=n}return(r,t)=>(a(),i("div",b,[g("div",{class:"task-block-row-wrapper",style:k({height:e.datas.length*e.cellHeight+"px"}),ref:"wrapperElement"},[(a(!0),i(h,null,y(e.datas,(n,s)=>T(r.$slots,"BlockRow",{key:n.id,rowData:{...n,rawIndex:s},showList:d(n.children)})),128))],4)]))}});export{A as _};
