// source --> https://mhwre.com/wp-content/plugins/easy-property-listings/lib/assets/js/epl.min.js?ver=3.5.17 
var epl={ui:{init:null,prefix:"epl_ui_",tabs:null,accordion:null},helpers:{error:null,strip_html_special_chars:null,string_to_name:null},hooks:null};!function(l){epl.ui.init=function(){epl.ui.tabs(".epl-tabs, .epl-tabs-horizontal"),epl.ui.tabs({selector:".epl-tabs-vertical",type:"vertical"}),epl.ui.accordion(".epl-accordion")},epl.helpers.error=function(e){throw e},epl.helpers.ajax_submit=function(t,r){l(document).on("submit",l(t),function(e){e.preventDefault(),l.ajax({method:"POST",url:epl_frontend_vars.ajaxurl,data:{action:r,data:l(t).serialize()}}).done(function(e){})})},epl.helpers.strip_html_special_chars=function(e){var t=document.createElement("div");return t.innerHTML=e,(e=t.textContent||t.innerText).replace(/\W+/g," ")},epl.helpers.string_to_name=function(e){return e=(e=epl.helpers.strip_html_special_chars(e)).toLowerCase(e),l.trim(e.replace(/ /g,"_"))},epl.helpers.get_unique_name=function(e,t){var r=epl.helpers.string_to_name(e);if(name_orig=void 0===t?r:t+"["+r+"]",l('[name="'+name_orig+'"]').length)for(var n=1;0<l('[name="'+name_orig+'"]').length;)name_orig="undefined"==t?r+"_"+n:t+"["+r+"_"+n+"]",n++;return name_orig},epl.ui.tabs=function(){var e=arguments,r=null,t={selector:null,first:0,type:"horizontal"},n={};0<e.length?("string"==typeof e[0]?r=e[0]:"object"==typeof e[0]&&(r=(n=e[0]).selector),l.extend(!0,t,n),l(r).each(function(){l(this).addClass(epl.ui.prefix+"tab_wrapper "+epl.ui.prefix+"tab_wrapper_"+t.type+" epl-clearfix"),l(this).children("div").each(function(e){e==t.first&&l(this).addClass(epl.ui.prefix+"tab_content_current"),l(this).addClass(epl.ui.prefix+"tab_content")}),l(this).find("ul:first li").each(function(e){e==t.first&&(l(this).addClass(epl.ui.prefix+"tab_menu_current"),l(this).closest("ul").addClass(epl.ui.prefix+"tab_menu_wrapper "+epl.ui.prefix+"tab_menu_wrapper_"+t.type)),l(this).addClass(epl.ui.prefix+"tab_menu"),l(this).on("click",function(e){var t=l(this).children("a:first").attr("href");e.preventDefault(),l(this).trigger("tabchange",l(this).index()),l(this).siblings().removeClass(epl.ui.prefix+"tab_menu_current"),l(this).addClass(epl.ui.prefix+"tab_menu_current"),l(this).closest(r).find(t).siblings().removeClass(epl.ui.prefix+"tab_content_current"),l(this).closest(r).find(t).addClass(epl.ui.prefix+"tab_content_current")})})})):epl.helpers.error("no arguments passed to tabs")},epl.ui.accordion=function(){var e=arguments,t=null,i={selector:null,first:0,head:"h3",allClosed:!1,allOpen:!1,autoClose:!0},r={};0<e.length?("string"==typeof e[0]?t=e[0]:"object"==typeof e[0]&&(t=(r=e[0]).selector),l.extend(!0,i,r),l(t).each(function(){var n=l(this);n.addClass(epl.ui.prefix+"accordion_wrapper"),n.children(i.head).each(function(e){var t=l(this),r=t.next();t.addClass(epl.ui.prefix+"accordion_menu"),r.addClass(epl.ui.prefix+"accordion_content"),i.allOpen?(i.allClosed=!1,t.addClass(epl.ui.prefix+"accordion_menu_current"),r.addClass(epl.ui.prefix+"accordion_content_current"),r.show()):i.allClosed?(t.removeClass(epl.ui.prefix+"accordion_menu_current"),r.removeClass(epl.ui.prefix+"accordion_content_current"),r.hide()):e===i.first?(t.addClass(epl.ui.prefix+"accordion_menu_current"),r.addClass(epl.ui.prefix+"accordion_content_current"),r.show()):r.hide(),t.on("click",function(e){t.toggleClass(epl.ui.prefix+"accordion_menu_current"),r.slideToggle("fast"),i.autoClose&&(t.siblings(i.head).removeClass(epl.ui.prefix+"accordion_menu_current"),t.siblings("div").not(r).slideUp("fast")),t.hasClass(epl.ui.prefix+"accordion_menu_current")?n.trigger("accordionOpened",[t,r]):n.trigger("accordionClosed",[t,r])})})})):epl.helpers.error("no arguments passed to tabs")},epl.hooks_api=function(){var r=Array.prototype.slice,i={removeFilter:function(e,t){"string"==typeof e&&n("filters",e,t);return i},applyFilters:function(){var e=r.call(arguments),t=e.shift();return"string"!=typeof t?i:a("filters",t,e)},addFilter:function(e,t,r,n){"string"==typeof e&&"function"==typeof t&&(r=parseInt(r||10,10),l("filters",e,t,r,n));return i},removeAction:function(e,t){"string"==typeof e&&n("actions",e,t);return i},doAction:function(){var e=r.call(arguments),t=e.shift();"string"==typeof t&&a("actions",t,e);return i},addAction:function(e,t,r,n){"string"==typeof e&&"function"==typeof t&&(r=parseInt(r||10,10),l("actions",e,t,r,n));return i}},o={actions:{},filters:{}};function n(e,t,r,n){var i,l,a;if(o[e][t])if(r)if(i=o[e][t],n)for(a=i.length;a--;)(l=i[a]).callback===r&&l.context===n&&i.splice(a,1);else for(a=i.length;a--;)i[a].callback===r&&i.splice(a,1);else o[e][t]=[]}function l(e,t,r,n,i){r={callback:r,priority:n,context:i},n=(n=o[e][t])?(n.push(r),function(e){for(var t,r,n,i=1,l=e.length;i<l;i++){for(t=e[i],r=i;(n=e[r-1])&&n.priority>t.priority;)e[r]=e[r-1],--r;e[r]=t}return e}(n)):[r];o[e][t]=n}function a(e,t,r){var n,i,l=o[e][t];if(!l)return"filters"===e&&r[0];if(i=l.length,"filters"===e)for(n=0;n<i;n++)r[0]=l[n].callback.apply(l[n].context,r);else for(n=0;n<i;n++)l[n].callback.apply(l[n].context,r);return"filters"!==e||r[0]}return i},epl.hooks=new epl.hooks_api}(jQuery),jQuery(document).ready(function(e){epl.ui.init()});