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