!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n(require("react")):"function"==typeof define&&define.amd?define(["react"],n):(e="undefined"!=typeof globalThis?globalThis:e||self).Weekends=n(e.React)}(this,(function(e){"use strict";return function(n){var a=n.state,r=n.weekends,t=n.handlePropsChange,i=e.useRef({});return e.useEffect((function(){var e={gregorian:[0,6],persian:[6],arabic:[0,6],indian:[0]},n=JSON.stringify(r);i.current.stringWeekends===n&&i.current.calendar===a.date.calendar.name||(i.current={stringWeekends:n,calendar:a.date.calendar.name},t({mapDays:function(n){var a=n.date;if((Array.isArray(r)?r:e[a.calendar.name]).includes(a.weekDay.index))return{className:"highlight highlight-red"}}}))}),[a.date.calendar.name,r,t]),null}}));
