!function(e){"use strict";ElementsKit_Helper.registerWidget("elementskit-image-accordion.default",(function(i){const t=i.find(".elementskit-single-image-accordion");let n;for(let i=0;i<t.length;i++){let l=t[i];"yes"===e(l).data("active")&&(n=t[i])}i.on("click",".ekit-image-accordion-item",(function(i){let t=e(this),l=t.data("link"),a=t.data("behavior"),s=t.find("a, a *"),o=e(i.target).is(s),r=l?.is_external?l.is_external:"_self";if("hover"===a||n===this)!o&&l?.url&&ElementsKit_Helper.isValidURL(l.url)&&window.open(l.url,r);else{if(!t.hasClass("item-opened"))return n="",e(this).closest(".elementskit-image-accordion-wraper").find(".ekit-image-accordion-item").removeClass("item-opened"),void t.addClass("item-opened");t.hasClass("item-opened")&&!o&&l?.url&&ElementsKit_Helper.isValidURL(l.url)&&window.open(l.url,r)}}))}))}(jQuery);