// source --> https://www.vacutah.org/wp-content/plugins/sugar-calendar/assets/js/frontend/legacy/sc-ajax.min.js?ver=3.9.0 
jQuery(document).ready(function(s){var e=s(".sc_events_calendar");let t=Intl.DateTimeFormat().resolvedOptions().timeZone;function n(){var e=s('form input[name="sc_visitor_tz"]');t&&0<t.length&&0<e.length&&e.val(t)}function c(t,e){s.post(sc_vars.ajaxurl,e,function(e){s("#"+t).parent().html(e),i(),n()}).done(function(){document.body.style.cursor="default"})}function i(){!(s(window).width()<=480)||s(".sc_events_calendar").hasClass("sc_small")?s("#sc_event_select").show():s("#sc_event_select").hide()}0<e.length&&sc_vars.cal_sc_visitor_tz&&"1"===sc_vars.cal_sc_visitor_tz&&(n(),c(s(".sc_events_calendar").attr("id"),s("#sc_event_select").serialize())),s("body").on("submit",".sc_events_form",function(){return document.body.style.cursor="wait",c(s(this).parents("div.sc_events_calendar").attr("id"),s(this).serialize()),!1}),0<e.length&&s(window).resize(function(){i()}),i()});