(()=>{function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,u(r.key),r)}}function n(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(n=function(){return!!t})()}function r(){return r="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=function(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=o(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(arguments.length<3?t:n):i.value}},r.apply(null,arguments)}function o(t){return o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},o(t)}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function a(t,e,n){return(e=u(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function u(e){var n=function(e){if("object"!=t(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=t(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==t(n)?n:n+""}!function(){"use strict";var u=function(){window.JetSmartFilters.filtersList.JetEngineMapSync="jet-smart-filters-map-sync",window.JetSmartFilters.filters.JetEngineMapSync=function(){function u(e){var r;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u);var i=e.find(".jet-smart-filters-map-sync");a(r=function(e,r,i){return r=o(r),function(e,n){if(n&&("object"==t(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(e)}(e,n()?Reflect.construct(r,i||[],o(e).constructor):r.apply(e,i))}(this,u,[e,i]),"name","map-sync"),a(r,"mapSelector",".jet-map-listing"),a(r,"mapDefaults",null),r.$container=e;var c=e.data("query-id");return c&&"default"!==c&&(r.mapSelector="#".concat(c," > .jet-map-listing, #").concat(c," > .elementor-widget-container > .jet-map-listing")),document.addEventListener("jet-engine/maps/update-sync-bounds",r.updateBounds.bind(r)),document.addEventListener("jet-engine/maps/init-sync-bounds",r.saveDefaults.bind(r)),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(u,window.JetSmartFilters.filters.BasicFilter),c=u,l=[{key:"updateBounds",value:function(t){if(t.detail.div===document.querySelector(this.mapSelector)){this.mapDefaults||this.saveDefaults(t),this.mapDefaults.map.jetPlugins.autoCenterBlock=!0;var e=this.dataValue||{};this.dataValue=t.detail.bounds,JSON.stringify(e)===JSON.stringify(this.dataValue)&&(this.mapDefaults.map.jetPlugins.autoCenterBlock=!1),this.wasChanged?this.wasChanged():this.wasСhanged()}}},{key:"saveDefaults",value:function(t){if(t.detail.div===document.querySelector(this.mapSelector)){this.mapDefaults=t.detail;var e=this.mapDefaults.map;this.mapDefaults.center=e.getCenter(),this.mapDefaults.zoom=e.getZoom()}}},{key:"reset",value:function(){var t,e,n;(t=u,e=this,"function"==typeof(n=r(o(1&3?t.prototype:t),"reset",e))?function(t){return n.apply(e,t)}:n)([]),this.mapDefaults&&(this.mapDefaults.map.jetPlugins.autoCenterBlock=!1)}},{key:"processData",value:function(){}}],l&&e(c.prototype,l),Object.defineProperty(c,"prototype",{writable:!1}),c;var c,l}()};document.addEventListener("DOMContentLoaded",function(t){u()})}(jQuery)})();