1const c=".c-hero__buttons",i="is-wrapped";function l(o){const t=o.map(e=>e.getBoundingClientRect()).filter(e=>e.width>0||e.height>0).sort((e,s)=>e.top-s.top);if(!t.length)return 0;let n=1,r=t[0].bottom;for(let e=1;e<t.length;e++)t[e].top>=r-1?(n++,r=t[e].bottom):r=Math.max(r,t[e].bottom);return n}function a(o){o.classList.remove(i);const t=Array.from(o.querySelectorAll(":scope > .wp-block-button"));t.length<2||l(t)>1&&o.classList.add(i)}function f(){const o=Array.from(document.querySelectorAll(c));if(!o.length)return;const t=()=>o.forEach(a);if(t(),document.fonts&&document.fonts.ready&&document.fonts.ready.then(t).catch(()=>{}),"ResizeObserver"in window){let n=0;const r=new ResizeObserver(()=>{n&&cancelAnimationFrame(n),n=requestAnimationFrame(t)});o.forEach(e=>r.observe(e))}else{let n=0;window.addEventListener("resize",()=>{clearTimeout(n),n=setTimeout(t,150)})}}export{f as init}; 2//# sourceMappingURL=hero-button-wrap-DlAXT_fo.js.map
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.