"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const R=require("vue"),N=require("../../RangeContext.js"),v=require("../../hooks/useCellClassName.js"),T=require("../../hooks/useMergeProps.js"),r=require("../../utils/dateUtil.js"),V=require("../PanelBody.js"),u=4,_=1;function o(n){const s=T.default(n),{prefixCls:i,locale:l,value:c,viewDate:d,generateConfig:t}=s,{rangedValue:C,hoverRangedValue:f}=N.useInjectRange(),g=`${i}-cell`,m=v.default({cellPrefixCls:g,value:c,generateConfig:t,rangedValue:C.value,hoverRangedValue:f.value,isSameCell:(e,a)=>r.isSameQuarter(t,e,a),isInView:()=>!0,offsetCell:(e,a)=>t.addMonth(e,a*3)}),Q=t.setDate(t.setMonth(d,0),1);return R.createVNode(V.default,{...s,rowNum:_,colNum:u,baseDate:Q,getCellText:e=>r.formatValue(e,{locale:l,format:l.quarterFormat||"[Q]Q",generateConfig:t}),getCellClassName:m,getCellDate:(e,a)=>t.addMonth(e,a*3),titleCell:e=>r.formatValue(e,{locale:l,format:"YYYY-[Q]Q",generateConfig:t})},null)}o.displayName="QuarterBody";o.inheritAttrs=!1;exports.QUARTER_COL_COUNT=u;exports.default=o;
