const e=require("../utils/dateUtil.js"),t=require("../utils/miscUtil.js");let n=require("vue");function r({picker:r,locale:i,selectedValue:a,disabledDate:o,disabled:s,generateConfig:c},l){let u=(0,n.computed)(()=>t.getValue(a.value,0)),d=(0,n.computed)(()=>t.getValue(a.value,1));function f(e){return c.value.locale.getWeekFirstDate(i.value.locale,e)}function p(e){let t=c.value.getYear(e),n=c.value.getMonth(e);return t*100+n}function m(t){let n=c.value.getYear(t),r=e.getQuarter(c.value,t);return n*10+r}return[t=>{if(o&&o?.value?.(t))return!0;if(s[1]&&d)return!e.isSameDate(c.value,t,d.value)&&c.value.isAfter(t,d.value);if(l.value[1]&&d.value)switch(r.value){case`quarter`:return m(t)>m(d.value);case`month`:return p(t)>p(d.value);case`week`:return f(t)>f(d.value);default:return!e.isSameDate(c.value,t,d.value)&&c.value.isAfter(t,d.value)}return!1},t=>{if(o.value?.(t))return!0;if(s[0]&&u)return!e.isSameDate(c.value,t,d.value)&&c.value.isAfter(u.value,t);if(l.value[0]&&u.value)switch(r.value){case`quarter`:return m(t)<m(u.value);case`month`:return p(t)<p(u.value);case`week`:return f(t)<f(u.value);default:return!e.isSameDate(c.value,t,u.value)&&c.value.isAfter(u.value,t)}return!1}]}exports.default=r;