function fusionInitGallery(e){var n;e.data("isotope")||e.parents('.fusion-builder-live-element[data-type="fusion_gallery"]').length||(n=e.find(".fusion-gallery-column"),e.css("min-height","500px"),n.hide(),e.hasClass("fusion-gallery-layout-masonry")&&!e.hasClass("fusion-masonry-has-vertical")&&0=s&&n(o,e)):n(o,e)}function n(e,n){e.show(),setTimeout(()=>{e.find(".fusion-loading-spinner").hide(),e.find(".fusion-loading-msg").html(window.fusionGalleryVars.no_more_items_msg)},500),setTimeout(()=>{e.slideUp(),jQuery(n).hide()},1e3)}jQuery("body").on("click",".awb-gallery-load-more-btn",(function(){event.preventDefault(),e(this)}));const i=new IntersectionObserver(n=>{n.forEach(n=>{n.isIntersecting&&!jQuery(n.target).hasClass("is-active")&&(jQuery(n.target).addClass("is-active"),e(n.target))})});document.querySelectorAll(".awb-gallery-infinite-scroll-handle").forEach(e=>{i.observe(e)}),jQuery(document).on("fusion-element-render-fusion_gallery",(function(e,n){var o=jQuery('div[data-cid="'+n+'"]').find(".awb-gallery-infinite-scroll-handle");o.length&&o.hasClass("is-active")&&(o.removeClass("is-active"),i.observe(o[0]))}))})),jQuery(document).on("fusion-element-render-fusion_tab fusion-element-render-fusion_tabs fusion-element-render-fusion_toggle fusion-element-render-fusion_tagline_box fusion-element-render-fusion_text",(function(e,n){jQuery('div[data-cid="'+n+'"]').find(".fusion-gallery").each((function(){jQuery(this).removeData(),fusionInitGallery(jQuery(this))}))}));