(()=>{function e(e,t,n,i){({"jet-engine":!0,"jet-engine-calendar":!0,"jet-data-table":!0})[i]&&window.JetPopupFrontend&&window.JetPopupFrontend.initAttachedPopups&&window.JetPopupFrontend.initAttachedPopups(t)}window.JetPlugins.hooks.addAction("jet-engine.modules-include","module-calendar",function(t){t.filtersCompatibility=e,document.addEventListener("jet-smart-filters/inited",function(){window.JetEngine.initFrontStores&&window.JetSmartFilters.events.subscribe("ajaxFilters/updated",function(e,t){const n=window.JetSmartFilters?.filterGroups?.[e+"/"+t]?.$provider;n?.length&&window.JetEngine.initFrontStores(n)})}),document.addEventListener("jet-smart-filters/inited",function(){new class{isResolving=!1;constructor(){this.init()}init(e){JetSmartFilters.events.subscribe("fiter/change",e=>{if(this.isResolving||e?.filterConflictHandlerBlocked)return;if(this.isResolving=!0,!["map-sync","user-geolocation","location-distance"].includes(e?.name))return;let t=[];switch(e.name){case"map-sync":t=["user-geolocation","location-distance"];break;case"location-distance":t=["map-sync","user-geolocation"];break;default:t=["map-sync"]}this.resetConflictingFilters(e,t)})}resetConflictingFilters(e,t){for(const n of this.getFilters(e,t))n.reset(),n.dataValue=!1,n.wasChanged?n.wasChanged():n.wasСhanged();this.isResolving=!1}getFilters(e,t){if(!t.length)return[];let n=[];return e.filterGroup.filters.forEach(e=>{t.includes(e.name)&&n.push(e)}),n}}})}),window.JetPlugins.hooks.addAction("jet-engine.common-events","module-calendar",function(e,t){e.on("jet-filter-content-rendered",t.filtersCompatibility).on("jet-filter-content-rendered",t.maybeReinitSlider)})})();