1class a{constructor(){"CSS"in window&&CSS.supports("display","grid")&&this.initGridMasonry()}initGridMasonry(){window.addEventListener("load",this.resizeAllMasonryItems.bind(this));let t=null;window.addEventListener("resize",()=>{clearTimeout(t),t=setTimeout(()=>{this.resizeAllMasonryItems()},250)})}resizeAllMasonryItems(){const t=document.querySelectorAll(".js-masonry-item");Array.from(t).forEach(e=>{this.resizeMasonryItem(e)})}resizeMasonryItem(t){var e=t.closest(".js-masonry");if(e){const o=parseInt(window.getComputedStyle(e).getPropertyValue("grid-row-gap")),s=parseInt(window.getComputedStyle(e).getPropertyValue("grid-auto-rows")),r=t.querySelector(".js-masonry-content");r&&(r.style.height="auto");const i=Math.ceil((t.querySelector(".js-masonry-content").getBoundingClientRect().height+o)/(s+o));t.style.gridRowEnd="span "+i,r&&(r.style.height=t.getBoundingClientRect().height+"px")}}}export{a as MasonryComponent};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.