"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const U=require("vue"),e=require("./index.js"),g=require("../../hooks/useMergeProps.js"),F=require("../PanelBody.js"),s=3,_=4;function o(N){const c=g.default(N),n=e.DECADE_UNIT_DIFF-1,{prefixCls:d,viewDate:C,generateConfig:r}=c,l=`${d}-cell`,E=r.getYear(C),u=Math.floor(E/e.DECADE_UNIT_DIFF)*e.DECADE_UNIT_DIFF,a=Math.floor(E/e.DECADE_DISTANCE_COUNT)*e.DECADE_DISTANCE_COUNT,i=a+e.DECADE_DISTANCE_COUNT-1,T=r.setYear(C,a-Math.ceil((s*_*e.DECADE_UNIT_DIFF-e.DECADE_DISTANCE_COUNT)/2)),A=D=>{const t=r.getYear(D),I=t+n;return{[`${l}-in-view`]:a<=t&&I<=i,[`${l}-selected`]:t===u}};return U.createVNode(F.default,{...c,rowNum:_,colNum:s,baseDate:T,getCellText:D=>{const t=r.getYear(D);return`${t}-${t+n}`},getCellClassName:A,getCellDate:(D,t)=>r.addYear(D,t*e.DECADE_UNIT_DIFF)},null)}o.displayName="DecadeBody";o.inheritAttrs=!1;exports.DECADE_COL_COUNT=s;exports.default=o;
