trAvis - MANAGER
Edit File: plus-accordion.min.js
(function(a){"use strict";var b=function(a,b){let c=a[0].querySelectorAll(".theplus-accordion-wrapper"),d=c[0].dataset.accordionType,e=c[0].dataset.toogleSpeed,f=c[0].dataset.connection,g=c[0].dataset.rowBgConn,h=c[0].querySelectorAll(".theplus-accordion-item"),i=c[0].querySelectorAll(".theplus-accordion-item .plus-accordion-header"),j=window.location.hash;h.forEach(function(a){let c=a.querySelector(".plus-accordion-header");if(c.classList.contains("active-default")&&(c.classList.add("active"),0<a.querySelectorAll(".plus-accordion-content").length)){let c=a.querySelector(".plus-accordion-content");c.classList.add("active"),c.style.cssText="display: block;",b(c).slideDown(e);let d=a.querySelector(".plus-accordion-content.active").dataset.tab;f&&document.querySelectorAll("."+f).length&&setTimeout(function(){accordion_tabs_connection(d,f)},150),b(a).next(".plus-accordion-content").find(" .list-carousel-slick > .post-inner-loop").length&&b(a).next(".plus-accordion-content").find(" .list-carousel-slick > .post-inner-loop").slick("setPosition"),g&&document.querySelectorAll("#"+g).length&&background_accordion_tabs_conn(d,g)}}),"accordion"==d?b(i).on("click",function(){if(this.classList.contains("active"))this.classList.remove("active"),this.nextElementSibling&&(this.nextElementSibling.classList.remove("active"),b(this.nextElementSibling).slideUp(e));else{h.forEach(function(a){a.children[0].classList.contains("active")&&a.children[0].classList.remove("active"),a.children[1]&&a.children[1].classList.contains("active")&&(a.children[1].classList.remove("active"),b(a.children[1]).slideUp(e))}),this.classList.toggle("active"),this.nextElementSibling&&(this.nextElementSibling.classList.toggle("active"),b(this.nextElementSibling).slideToggle(e)),b(this).next(".plus-accordion-content").find(" .list-carousel-slick > .post-inner-loop").length&&b(this).next(".plus-accordion-content").find(" .list-carousel-slick > .post-inner-loop").slick("setPosition");let a=this.dataset.tab;f&&document.querySelectorAll("."+f).length&&accordion_tabs_connection(a,f),g&&document.querySelectorAll("#"+g).length&&background_accordion_tabs_conn(a,g)}}):"hover"==d?b(i).on("mouseover",function(){if(this.classList.contains("active"));else{let a=c[0].querySelectorAll(".plus-accordion-header.active"),d=this.dataset.tab;0<a.length&&(a[0].classList.remove("active"),a[0].nextElementSibling&&(a[0].nextElementSibling.classList.remove("active"),b(a[0].nextElementSibling).slideUp(e))),this.classList.toggle("active"),this.nextElementSibling&&(this.nextElementSibling.classList.toggle("active"),b(this.nextElementSibling).slideToggle(e)),b(this).next(".plus-accordion-content").find(" .list-carousel-slick > .post-inner-loop").length&&b(this).next(".plus-accordion-content").find(" .list-carousel-slick > .post-inner-loop").slick("setPosition"),f&&document.querySelectorAll("."+f).length&&accordion_tabs_connection(d,f),g&&document.querySelectorAll("#"+g).length&&background_accordion_tabs_conn(d,g)}}):"toggle"==d&&b(i).on("click",function(){this.classList.contains("active")?(this.classList.remove("active"),this.nextElementSibling&&(this.nextElementSibling.classList.remove("active"),b(this.nextElementSibling).slideUp(e))):(this.classList.toggle("active"),this.nextElementSibling&&(this.nextElementSibling.classList.toggle("active"),b(this.nextElementSibling).slideToggle(e)))}),j&&!b(j).hasClass("active")&&b(j).length&&(b("html, body").animate({scrollTop:b(j).offset().top},1500),b(j+".plus-accordion-header").trigger("click"))};a(window).on("elementor/frontend/init",function(){elementorFrontend.hooks.addAction("frontend/element_ready/tp-accordion.default",b)})})(jQuery);