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