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