PageSourceSearch

https://badnbare.com/cdn/shop/t/113/assets/details-modal.js?v=35660696592464559941785245511

js badnbare.com collected 2026-10-09 22:40:51 UTC 2,235 bytes, 2 lines download raw bytes

1class DetailsModal extends HTMLElement{constructor(){super(),this.header=document.querySelector(".header-wrapper"),this.detailsContainer=this.querySelector("details"),this.summaryToggle=this.querySelector("summary"),this.header.preventHide=!1,this.detailsContainer.addEventListener("keyup",event=>event.code==="Escape"&&this.close()),this.summaryToggle.addEventListener("click",this.onSummaryClick.bind(this)),this.querySelector('button[type="button"]').addEventListener("click",this.close.bind(this)),this.summaryToggle.setAttribute("role","button")}isOpen(){return this.detailsContainer.hasAttribute("open")}onSummaryClick(event){if(event.preventDefault(),event.target.closest("details").hasAttribute("open"))this.close(),this.header.preventHide=!1;else{if(this.open(event),!this.header)return;this.header.preventHide=this.detailsContainer.open}}onBodyClick(event){(!this.contains(event.target)||event.target.classList.contains("modal-overlay"))&&this.close(!1)}open(event){this.closeBurgerMenu(),this.onBodyClickEvent=this.onBodyClickEvent||this.onBodyClick.bind(this),event.target.closest("details").setAttribute("open",!0),document.body.addEventListener("click",this.onBodyClickEvent),document.body.classList.add("overflow-hidden"),document.body.classList.add(`overflow-hidden-${this.dataset.breakpoint}`),trapFocus(this.detailsContainer.querySelector('[tabindex="-1"]'),this.detailsContainer.querySelector('input:not([type="hidden"])'))}close(focusToggle=!0){removeTrapFocus(focusToggle?this.summaryToggle:null),this.detailsContainer.removeAttribute("open"),document.body.removeEventListener("click",this.onBodyClickEvent),document.body.classList.remove("overflow-hidden"),document.body.classList.remove(`overflow-hidden-${this.dataset.breakpoint}`),this.header.preventHide=!1}closeBurgerMenu(){const burgerMenu=document.querySelector(".burger-menu--open");burgerMenu&&(burgerMenu.classList.remove("burger-menu--open"),burgerMenu.querySelector(".burger-menu__overlay")?.classList?.remove("burger-menu__overlay--active"),document.body.classList.remove("overflow-hidden-drawer"))}}customElements.define("details-modal",DetailsModal);
2//# sourceMappingURL=/cdn/shop/t/113/assets/details-modal.js.map?v=35660696592464559941785245511

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.