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