import e from"../../hooks/useMergeProps.mjs";import t from"../PanelBody.mjs";import{createVNode as n}from"vue";var r=4;function i(i){let a=e(i),{prefixCls:o,viewDate:s,generateConfig:c}=a,l=`${o}-cell`,u=c.getYear(s),d=Math.floor(u/10)*10,f=Math.floor(u/100)*100,p=f+100-1,m=c.setYear(s,f-Math.ceil((3*r*10-100)/2)),h=e=>{let t=c.getYear(e),n=t+9;return{[`${l}-in-view`]:f<=t&&n<=p,[`${l}-selected`]:t===d}};return n(t,{...a,rowNum:r,colNum:3,baseDate:m,getCellText:e=>{let t=c.getYear(e);return`${t}-${t+9}`},getCellClassName:h,getCellDate:(e,t)=>c.addYear(e,t*10)},null)}i.displayName=`DecadeBody`,i.inheritAttrs=!1;export{i as default};