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