(()=>{"use strict";var e,i,t=function(e){if("undefined"!=typeof elementorFrontend){var i=e(".rtsb-image-accordion-wrapper"),t=elementorFrontend.getKitSettings("global_image_lightbox");i.length&&(i.each(function(){var i=e(this),t=i.find(".item").data("active-type");"click"===t&&i.find(".item").click(function(){e(this).parent().find(".item").removeClass("item-active"),e(this).parent().find(".item").removeClass("checkedItem"),e(this).addClass("item-active")}),"hover"===t&&i.find(".item").mouseover(function(){e(this).parent().find(".item").removeClass("checkedItem")})}),"yes"!==t&&function(e){var i=e(".pswp")[0],t=[];e(".rtsb-accordion-popup").each(function(n,r){var o=e(r).data("size").split("x");t.push({src:e(r).attr("href"),w:parseInt(o[0],10),h:parseInt(o[1],10),title:e(r).data("caption")||""}),e(r).on("click",function(e){e.preventDefault(),new PhotoSwipe(i,PhotoSwipeUI_Default,t,{index:n,bgOpacity:.9,showHideOpacity:!0,easing:"ease-out",duration:500}).init()})})}(e))}};e=jQuery,window.RTSB&&window.RTSB._initialized&&(null===(i=window.RTSB.modules.registerAfterElementor("imageAccordion",function(){var i=(window.RTSB||{}).helpers;return{name:"imageAccordion",version:"1.0.0",init:function(){return this.run(e),this},refresh:function(){this.run(e)},run:function(){i.rAF(function(){return t(e)})}}}))||void 0===i||i.init())})();