let loadStatus=!0;function uagb_carousel_height(e){e=document.querySelector("#wpwrap .is-carousel.uagb-block-"+e);e&&window.UAGBPostCarousel._setHeight(e)}function uagb_carousel_unset_height(e){e=document.querySelector("#wpwrap .is-carousel.uagb-block-"+e);e&&window.UAGBPostCarousel._unSetHeight(e)}window.UAGBPostCarousel={_setHeight(e){if(0{var t=r[e].offsetHeight,e=r[e].querySelector(".uagb-post__inner-wrap")?.offsetHeight;o{const t=r[e].querySelector(".uagb-post__inner-wrap");t&&(t.style.height=o+"px")}),e[0].querySelector(".slick-list"));s&&(s.style.height=n+"px"),o=-1,a=-1,Object.keys(l).forEach(e=>{const t=l[e];if(t.classList.contains("slick-active"))return!0;e=(s=t.querySelector(".uagb-post__inner-wrap"))?.offsetHeight;e&&(s.style.height=e+"px")})}},_unSetHeight(e){if(0{const t=o[e].querySelector(".uagb-post__inner-wrap");t.style.height="auto"}),Object.keys(o).forEach(e=>{const t=a[e];if(t.classList.contains("slick-active"))return!0;const o=t.querySelector(".uagb-post__inner-wrap");o.style.height="auto"})}}},window.UAGBPostMasonry={_init(a,e){let n=2;const s=window.innerHeight/1.25;let l=document.querySelector(e);const r=l.querySelectorAll(".uagb-post-inf-loader");"none"!==a.paginationType&&"scroll"===a.paginationEventType&&window.addEventListener("scroll",function(){let e=l.querySelector(".uagb-post__items");var t,o=(e=e||l).lastElementChild.getBoundingClientRect().top+window.scrollY;window.pageYOffset+s>=o&&(o={page_number:n},t=l.getAttribute("data-total"),!0===loadStatus&&n<=t&&(0e.json()).then(function(e){let t=r.querySelector(".is-masonry");t=t||r;const o=new Isotope(t,{itemSelector:"article"});o.insert(window.UAGBPostMasonry.createElementFromHTML(e.data)),loadStatus=!0,0