"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("vue"),y=require("../../hooks/useMergeProps.js"),v=require("../../utils/uiUtil.js"),h=require("./QuarterBody.js"),P=require("./QuarterHeader.js");function s(f){const o=y.default(f),{prefixCls:l,operationRef:p,onViewDateChange:g,generateConfig:a,value:u,viewDate:r,onPanelChange:d,onSelect:n}=o,C=`${l}-quarter-panel`;p.value={onKeydown:t=>v.createKeydownHandler(t,{onLeftRight:e=>{n(a.addMonth(u||r,e*3),"key")},onCtrlLeftRight:e=>{n(a.addYear(u||r,e),"key")},onUpDown:e=>{n(a.addYear(u||r,e),"key")}})};const c=t=>{const e=a.addYear(r,t);g(e),d(null,e)};return i.createVNode("div",{class:C},[i.createVNode(P.default,{...o,prefixCls:l,onPrevYear:()=>{c(-1)},onNextYear:()=>{c(1)},onYearClick:()=>{d("year",r)}},null),i.createVNode(h.default,{...o,prefixCls:l,onSelect:t=>{n(t,"mouse")}},null)])}s.displayName="QuarterPanel";s.inheritAttrs=!1;exports.default=s;
