/*! For license information please see 75a15d6a6c0b8bd720af0a466869752c.js.LICENSE.txt */
"use strict";(wx["webpackJsonp"]=wx["webpackJsonp"]||[]).push([["sub-common/75a15d6a6c0b8bd720af0a466869752c"],{"./src/components/calendar/common/plugins.ts":function(a,e,s){var r=s("./node_modules/dayjs/dayjs.min.js");var n=s.n(r);var i=s("./node_modules/lodash/isEmpty.js");var t=s.n(i);function handleActive(a,e){var s=a.selectedDate;var r=e._value;var i=s.start,t=s.end;var d=n()(t);var l=i?n()(i):d;e.isSelected=r.isSame(d)||r.isSame(l)||r.isAfter(l)&&r.isBefore(d);e.isSelectedHead=r.isSame(l);e.isSelectedTail=r.isSame(d);e.isToday=r.diff(n()(Date.now()).startOf("day"),"day")===0;return e}function handleMarks(a,e){var s=a.options;var r=e._value;var i=s.marks;var t=i.filter((function(a){return n()(a.value).startOf("day").isSame(r)}));e.marks=t.slice(0,1);return e}function handleDisabled(a,e){var s=a.options;var r=e._value;var i=s.minDate,t=s.maxDate;var d=n()(i);var l=n()(t);e.isDisabled=!!(i&&r.isBefore(d))||!!(t&&r.isAfter(l));return e}function handleValid(a,e){var s=a.options;var r=e._value;var i=s.validDates;if(!t()(i)){var d=i.some((function(a){return n()(a.value).startOf("day").isSame(r)}));e.isDisabled=!d}delete e._value;return e}e["default"]=[handleActive,handleMarks,handleDisabled,handleValid]}}]);