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=1;function s(s){let c=t.default(s),{prefixCls:l,locale:u,value:d,viewDate:f,generateConfig:p}=c,{rangedValue:m,hoverRangedValue:h}=e.useInjectRange(),g=i.default({cellPrefixCls:`${l}-cell`,value:d,generateConfig:p,rangedValue:m.value,hoverRangedValue:h.value,isSameCell:(e,t)=>r.isSameQuarter(p,e,t),isInView:()=>!0,offsetCell:(e,t)=>p.addMonth(e,t*3)}),_=p.setDate(p.setMonth(f,0),1);return(0,a.createVNode)(n.default,{...c,rowNum:o,colNum:4,baseDate:_,getCellText:e=>r.formatValue(e,{locale:u,format:u.quarterFormat||`[Q]Q`,generateConfig:p}),getCellClassName:g,getCellDate:(e,t)=>p.addMonth(e,t*3),titleCell:e=>r.formatValue(e,{locale:u,format:`YYYY-[Q]Q`,generateConfig:p})},null)}s.displayName=`QuarterBody`,s.inheritAttrs=!1,exports.default=s;