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