(()=>{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 o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,i(n.key),n)}}function o(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(o=function(){return!!t})()}function n(t){return n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},n(t)}function r(t,e){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},r(t,e)}function i(e){var o=function(e){if("object"!=t(e)||!e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var n=o.call(e,"string");if("object"!=t(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==t(o)?o:o+""}!function(){"use strict";var u=function(){window.JetSmartFilters.filtersList.JetEngineUserGeolocation="jet-smart-filters-user-geolocation",window.JetSmartFilters.filters.JetEngineUserGeolocation=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 a,c,l,f=e.find(".geolocation-data");return r=function(e,r,i){return r=n(r),function(e,o){if(o&&("object"==t(o)||"function"==typeof o))return o;if(void 0!==o)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,o()?Reflect.construct(r,i||[],n(e).constructor):r.apply(e,i))}(this,u,[e,f]),a=r,l="user-geolocation",(c=i(c="name"))in a?Object.defineProperty(a,c,{value:l,enumerable:!0,configurable:!0,writable:!0}):a[c]=l,navigator.geolocation&&navigator.geolocation.getCurrentPosition(function(t){var e;r.dataValue={latitude:t.coords.latitude,longitude:t.coords.longitude},null===(e=window.JetSmartFilters)||void 0===e||null===(e=e.filterGroups)||void 0===e||null===(e=e[r.provider+"/"+r.queryId])||void 0===e||e.activeItemsExceptions.push(r.name),r.emitFitersApply()}),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&&r(t,e)}(u,window.JetSmartFilters.filters.Search),a=u,(c=[{key:"processData",value:function(){}},{key:"reset",value:function(){}}])&&e(a.prototype,c),Object.defineProperty(a,"prototype",{writable:!1}),a;var a,c}()};window.JetMapListingGeolocationFilterData&&"jet-smart-filters/before-init"===window.JetMapListingGeolocationFilterData.initEvent?document.addEventListener("jet-smart-filters/before-init",function(t){u()}):window.addEventListener("DOMContentLoaded",function(t){u()})}(jQuery)})();