function mec_fluent_wrap_init(){jQuery(".mec-fluent-wrap").length<0||(jQuery(window).on("resize",monthlyCalendarUI),monthlyCalendarUI(),jQuery(document).on("click",".mec-fluent-wrap .mec-more-events-icon",customScrollbar))}function monthlyCalendarUI(){jQuery(".mec-fluent-monthly-wrap").length<1||(jQuery(window).innerWidth()<=767?jQuery("dt.mec-calendar-day").each(function(e,n){var o,r,t,c=jQuery(n);0<c.find(".mec-more-events-mobile").length||((r=c.children(".simple-skin-ended")).length<1||(o=[],r.each(function(e,n){var r=jQuery(n),t=r.clone().empty().addClass("mec-more-event-copy"),c=r.find(".mec-event-title")[0].outerHTML,n='<span class="mec-event-start-time">'+r.data("start-time")+"</span>",r='<span class="mec-event-end-time">'+r.data("end-time")+"</span>";t.append('\n<div class="mec-more-events-content">\n'.concat(c,'\n<i class="mec-sl-clock"></i>\n').concat(n,"\n").concat(r,"\n</div>")),o[e]=t[0].outerHTML}),c.find(".mec-more-events-wrap").length<1&&(t=c.data("day"),r=(n=c.data("month").toString()).slice(-2),n=n.substring(0,n.length-2),t=new Date(n,r-1,t,0,0,0,0),t=dateFormat(t,"fullDate"),t='\n<span class="mec-more-events-icon">...</span>\n<div class="mec-more-events-wrap mec-more-events-generated" style="display: none;">\n<div class="mec-more-events">\n<h5 class="mec-more-events-header">'.concat(t,'</h5>\n<div class="mec-more-events-body"></div>\n</div>\n</div>'),c.append(t)),o.forEach(function(e){c.find(".mec-more-events-wrap").addClass("mec-more-events-mobile").end().find(".mec-more-events-body").prepend(e)})))}):(jQuery(".mec-more-events-generated").siblings(".mec-more-events-icon").remove().end().remove(),jQuery(".mec-more-events-wrap.mec-more-events-mobile").removeClass("mec-more-events-mobile").find(".mec-more-event-copy").remove()))}function customScrollbar(){var e;jQuery(".mec-fluent-wrap").length<0||jQuery().niceScroll&&((e=jQuery(this)).siblings(".mec-more-events-wrap").find(".mec-more-events-body").hasClass("mec-custom-scrollbar")||e.siblings(".mec-more-events-wrap").find(".mec-more-events-body").addClass("mec-custom-scrollbar").niceScroll({cursorcolor:"#C7EBFB",cursorwidth:"4px",cursorborderradius:"4px",cursorborder:"none",railoffset:{left:-2}}),e.siblings(".mec-more-events-wrap").find(".mec-more-events-body").getNiceScroll().onResize())}jQuery(document).ready(function(){mec_fluent_wrap_init()});