"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("vue"),e=require("./index.js"),N=require("../../PanelContext.js"),p=require("../../hooks/useMergeProps.js"),E=require("../Header.js");function r(o){const t=p.default(o),{prefixCls:s,generateConfig:u,viewDate:d,onPrevDecades:c,onNextDecades:i}=t,{hideHeader:l}=N.useInjectPanel();if(l)return null;const C=`${s}-header`,D=u.getYear(d),a=Math.floor(D/e.DECADE_DISTANCE_COUNT)*e.DECADE_DISTANCE_COUNT,f=a+e.DECADE_DISTANCE_COUNT-1;return n.createVNode(E.default,{...t,prefixCls:C,onSuperPrev:c,onSuperNext:i},{default:()=>[a,n.createTextVNode("-"),f]})}r.displayName="DecadeHeader";r.inheritAttrs=!1;exports.default=r;
