(()=>{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){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,a)}return o}function o(t){for(var o=1;ot.target.value.length)a.clearDropdown();else{if(a.updateLocationData({address:t.target.value},!0),13===e)return a.maybeApplyFilter(),void a.clearDropdown();a.debounced&&clearTimeout(a.debounced),a.debounced=setTimeout(a.fillAddressDropdown.bind(a),200,t.target.value)}}),a.$locationDropdown.on("click",".jsf-location-distance__location-dropdown-item",function(t){var o=e(t.target);a.$locationInput.val(o.data("address")),a.clearDropdown(),a.updateLocationData({address:o.data("address"),latitude:0,longitude:0})}),a.$locationParent.on("click",".jsf-location-distance__location-clear",function(t){a.reset()}),a.$locationParent.on("click",".jsf-location-distance__location-locate",function(t){a.switchLocate(),a.switchLoading(!0),navigator.geolocation.getCurrentPosition(function(t){a.switchLoading(),a.$locationInput.val(a.currentLocationVerbose),a.switchClear(!0),a.updateLocationData({address:0,latitude:t.coords.latitude,longitude:t.coords.longitude})})}),e(document).on("click",function(t){e(t.target).closest(".jsf-location-distance__location").length||a.clearDropdown()}),a}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&&c(t,e)}(s,window.JetSmartFilters.filters.Search),l=s,(u=[{key:"fillAddressDropdown",value:function(t){var o=this;this.xhr&&this.xhr.abort(),this.xhr=e.ajax({url:window.JetMapListingLocationDistanceFilterData.apiAutocomplete,type:"GET",dataType:"json",data:{query:t}}).done(function(t){if(o.clearDropdown(),t&&t.success){o.$locationDropdown.addClass("is-active");for(var e=0;e