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