1function l(n){const s=n.classList.contains("is-expanded"),a=n.querySelector("[data-flip-card-open]"),r=n.querySelector("[data-flip-card-front]"),t=n.querySelector("[data-flip-card-back]");!a||!r||!t||(a.setAttribute("aria-expanded",s?"true":"false"),s?(r.setAttribute("inert",""),t.removeAttribute("inert")):(t.setAttribute("inert",""),r.removeAttribute("inert")))}function u(n){return n instanceof Element&&!!n.closest('button, a, input, select, textarea, summary, [role="button"], [data-flip-card-ignore]')}function y(n){const s=n.querySelector('ul[role="list"]'),a=[...n.querySelectorAll("[data-flip-card]")],r=[...n.querySelectorAll("li > article:not([data-flip-card])")];if(s&&a.length===0&&r.length===0){n.hidden=!0;return}for(const t of a){const i=t.querySelector("[data-flip-card-open]"),c=t.querySelector("[data-flip-card-close]"),f=t.querySelector("[data-flip-card-front]"),p=t.querySelector("[data-flip-card-back]");if(!i||!c)continue;t.dataset.flipCardInitial==="true"&&t.classList.add("is-expanded"),l(t);const d=e=>{t.classList.add("is-expanded"),l(t),e?.moveFocus&&c.focus()},o=e=>{t.classList.remove("is-expanded"),l(t),e?.moveFocus&&i.focus()};i.addEventListener("click",e=>{e.preventDefault(),d()}),i.addEventListener("keydown",e=>{(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),d({moveFocus:!0}))}),f?.addEventListener("click",e=>{u(e.target)||t.classList.contains("is-expanded")||d()}),p?.addEventListener("click",e=>{u(e.target)||t.classList.contains("is-expanded")&&o()}),c.addEventListener("click",e=>{e.preventDefault(),o()}),c.addEventListener("keydown",e=>{(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),o({moveFocus:!0}))}),t.addEventListener("keydown",e=>{e.key==="Escape"&&t.classList.contains("is-expanded")&&(e.preventDefault(),o({moveFocus:!0}))})}}export{y as default}; 2//# sourceMappingURL=flip-card-grid-CNu3-x81.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.