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