"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("vue"),p=require("../../PanelContext.js"),v=require("../../hooks/useMergeProps.js"),C=require("../../utils/dateUtil.js"),P=require("../Header.js");function e(n){const r=v.default(n),{prefixCls:t,generateConfig:u,locale:a,viewDate:l,onNextYear:s,onPrevYear:i,onYearClick:c}=r,{hideHeader:d}=p.useInjectPanel();if(d.value)return null;const f=`${t}-header`;return o.createVNode(P.default,{...r,prefixCls:f,onSuperPrev:i,onSuperNext:s},{default:()=>[o.createVNode("button",{type:"button",onClick:c,class:`${t}-year-btn`},[C.formatValue(l,{locale:a,format:a.yearFormat,generateConfig:u})])]})}e.displayName="QuarterHeader";e.inheritAttrs=!1;exports.default=e;
