"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const E=require("../utils/dateUtil.js"),u=require("../utils/miscUtil.js");function T({cellPrefixCls:n,generateConfig:r,rangedValue:p,hoverRangedValue:q,isInView:R,isSameCell:g,offsetCell:y,today:_,value:j}){function O(o){const t=y(o,-1),a=y(o,1),$=u.getValue(p,0),s=u.getValue(p,1),d=u.getValue(q,0),v=u.getValue(q,1),H=E.isInRange(r,d,v,o);function e(b){return g($,b)}function h(b){return g(s,b)}const I=g(d,o),M=g(v,o),N=(H||M)&&(!R(t)||h(t)),U=(H||I)&&(!R(a)||e(a));return{[`${n}-in-view`]:R(o),[`${n}-in-range`]:E.isInRange(r,$,s,o),[`${n}-range-start`]:e(o),[`${n}-range-end`]:h(o),[`${n}-range-start-single`]:e(o)&&!s,[`${n}-range-end-single`]:h(o)&&!$,[`${n}-range-start-near-hover`]:e(o)&&(g(t,d)||E.isInRange(r,d,v,t)),[`${n}-range-end-near-hover`]:h(o)&&(g(a,v)||E.isInRange(r,d,v,a)),[`${n}-range-hover`]:H,[`${n}-range-hover-start`]:I,[`${n}-range-hover-end`]:M,[`${n}-range-hover-edge-start`]:N,[`${n}-range-hover-edge-end`]:U,[`${n}-range-hover-edge-start-near-range`]:N&&g(t,s),[`${n}-range-hover-edge-end-near-range`]:U&&g(a,$),[`${n}-today`]:g(_,o),[`${n}-selected`]:g(j,o)}}return O}exports.default=T;
