"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const f=require("vue"),a=require("../utils/dateUtil.js"),h=require("../utils/miscUtil.js");function b({picker:o,locale:q,selectedValue:m,disabledDate:c,disabled:D,generateConfig:e},S){const r=f.computed(()=>h.getValue(m.value,0)),t=f.computed(()=>h.getValue(m.value,1));function l(u){return e.value.locale.getWeekFirstDate(q.value.locale,u)}function v(u){const n=e.value.getYear(u),i=e.value.getMonth(u);return n*100+i}function s(u){const n=e.value.getYear(u),i=a.getQuarter(e.value,u);return n*10+i}return[u=>{if(c&&c?.value?.(u))return!0;if(D[1]&&t)return!a.isSameDate(e.value,u,t.value)&&e.value.isAfter(u,t.value);if(S.value[1]&&t.value)switch(o.value){case"quarter":return s(u)>s(t.value);case"month":return v(u)>v(t.value);case"week":return l(u)>l(t.value);default:return!a.isSameDate(e.value,u,t.value)&&e.value.isAfter(u,t.value)}return!1},u=>{if(c.value?.(u))return!0;if(D[0]&&r)return!a.isSameDate(e.value,u,t.value)&&e.value.isAfter(r.value,u);if(S.value[0]&&r.value)switch(o.value){case"quarter":return s(u)<s(r.value);case"month":return v(u)<v(r.value);case"week":return l(u)<l(r.value);default:return!a.isSameDate(e.value,u,r.value)&&e.value.isAfter(r.value,u)}return!1}]}exports.default=b;
