const e=require("../../RangeContext.js"),t=require("../../hooks/useMergeProps.js"),n=require("../PanelBody.js"),r=require("../../utils/dateUtil.js"),i=require("../../hooks/useCellClassName.js");let a=require("vue");var o=4;function s(s){let c=t.default(s),{prefixCls:l,locale:u,value:d,viewDate:f,generateConfig:p,monthCellRender:m}=c,{rangedValue:h,hoverRangedValue:g}=e.useInjectRange(),_=i.default({cellPrefixCls:`${l}-cell`,value:d,generateConfig:p,rangedValue:h.value,hoverRangedValue:g.value,isSameCell:(e,t)=>r.isSameMonth(p,e,t),isInView:()=>!0,offsetCell:(e,t)=>p.addMonth(e,t)}),v=u.shortMonths||(p.locale.getShortMonths?p.locale.getShortMonths(u.locale):[]),y=p.setMonth(f,0),b=m?e=>m({current:e,locale:u}):void 0;return(0,a.createVNode)(n.default,{...c,rowNum:o,colNum:3,baseDate:y,getCellNode:b,getCellText:e=>u.monthFormat?r.formatValue(e,{locale:u,format:u.monthFormat,generateConfig:p}):v[p.getMonth(e)],getCellClassName:_,getCellDate:p.addMonth,titleCell:e=>r.formatValue(e,{locale:u,format:`YYYY-MM`,generateConfig:p})},null)}s.displayName=`MonthBody`,s.inheritAttrs=!1,exports.default=s;