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