import{isInRange as e}from"../utils/dateUtil.mjs";import{getValue as t}from"../utils/miscUtil.mjs";function n({cellPrefixCls:n,generateConfig:r,rangedValue:i,hoverRangedValue:a,isInView:o,isSameCell:s,offsetCell:c,today:l,value:u}){function d(d){let f=c(d,-1),p=c(d,1),m=t(i,0),h=t(i,1),g=t(a,0),_=t(a,1),v=e(r,g,_,d);function y(e){return s(m,e)}function b(e){return s(h,e)}let x=s(g,d),S=s(_,d),C=(v||S)&&(!o(f)||b(f)),w=(v||x)&&(!o(p)||y(p));return{[`${n}-in-view`]:o(d),[`${n}-in-range`]:e(r,m,h,d),[`${n}-range-start`]:y(d),[`${n}-range-end`]:b(d),[`${n}-range-start-single`]:y(d)&&!h,[`${n}-range-end-single`]:b(d)&&!m,[`${n}-range-start-near-hover`]:y(d)&&(s(f,g)||e(r,g,_,f)),[`${n}-range-end-near-hover`]:b(d)&&(s(p,_)||e(r,g,_,p)),[`${n}-range-hover`]:v,[`${n}-range-hover-start`]:x,[`${n}-range-hover-end`]:S,[`${n}-range-hover-edge-start`]:C,[`${n}-range-hover-edge-end`]:w,[`${n}-range-hover-edge-start-near-range`]:C&&s(f,h),[`${n}-range-hover-edge-end-near-range`]:w&&s(p,m),[`${n}-today`]:s(l,d),[`${n}-selected`]:s(u,d)}}return d}export{n as default};