(()=>{var e=e||{};e.ajax={event:{}},function(e,t){"use strict";t.init=function(){this.init_ajax()},t.init_ajax=function(){this.$widget_wrapper=e(".tribe-this-week-widget-wrapper").parent(),this.$widget_wrapper.on("click",".tribe-this-week-nav-link",this.event.ajax)},t.event.ajax=function(t){t.preventDefault();const a=e(this),i=a.closest(".tribe-this-week-widget-wrapper");i.find(".tribe-this-week-widget-weekday-wrapper").css("opacity",.25),i.find(".tribe-events-ajax-loading").addClass("tribe-events-active-spinner");let n=i.data("prev-date");a.hasClass("nav-next")&&(n=i.data("next-date"));const s={action:"tribe_this_week",start_date:n,count:i.data("count"),layout:i.data("layout"),tax_query:i.data("tax-query"),hide_weekends:i.data("hide-weekends"),nonce:i.data("nonce")};e.post(tribe_this_week.ajaxurl,s,(function(t){if(t.success){const a=e.parseHTML(t.html);i.replaceWith(a)}}))},e((function(){t.init()}))}(jQuery,e.ajax),window.tec=window.tec||{},window.tec.eventsPro=window.tec.eventsPro||{},window.tec.eventsPro.widgetThisWeek={}})();