const e=require("../../_util/classNames.js"),t=require("../PanelContext.js"),n=require("../hooks/useMergeProps.js"),r=require("../utils/timeUtil.js"),i=require("../utils/dateUtil.js");let a=require("vue");function o(o){let{prefixCls:s,disabledDate:c,onSelect:l,picker:u,rowNum:d,colNum:f,prefixColumn:p,rowClassName:m,baseDate:h,getCellClassName:g,getCellText:_,getCellNode:v,getCellDate:y,generateConfig:b,titleCell:x,headerCells:S}=n.default(o),{onDateMouseenter:C,onDateMouseleave:w,mode:T}=t.useInjectPanel(),E=`${s}-cell`,D=[];for(let t=0;t<d;t+=1){let n=[],o;for(let s=0;s<f;s+=1){let d=y(h,t*f+s),m=i.getCellDateDisabled({cellDate:d,mode:T.value,disabledDate:c,generateConfig:b});s===0&&(o=d,p&&n.push(p(o)));let S=x&&x(d);n.push((0,a.createVNode)(`td`,{key:s,title:S,class:e.default(E,{[`${E}-disabled`]:m,[`${E}-start`]:_(d)===1||u===`year`&&Number(S)%10==0,[`${E}-end`]:S===r.getLastDay(b,d)||u===`year`&&Number(S)%10==9,...g(d)}),onClick:e=>{e.stopPropagation(),m||l(d)},onMouseenter:()=>{!m&&C&&C(d)},onMouseleave:()=>{!m&&w&&w(d)}},[v?v(d):(0,a.createVNode)(`div`,{class:`${E}-inner`},[_(d)])]))}D.push((0,a.createVNode)(`tr`,{key:t,class:m&&m(o)},[n]))}return(0,a.createVNode)(`div`,{class:`${s}-body`},[(0,a.createVNode)(`table`,{class:`${s}-content`},[S&&(0,a.createVNode)(`thead`,null,[(0,a.createVNode)(`tr`,null,[S])]),(0,a.createVNode)(`tbody`,null,[D])])])}o.displayName=`PanelBody`,o.inheritAttrs=!1,exports.default=o;