https://12storeez.store/cdn/shop/t/617/assets/MindboxPopupHelper.js?v=121017017477260382941732110087
1const POPMECHANIC_OPENED_CLASS_NAME="popmechanic-disable-scroll";class MindboxPopupHelper{static SCROLL_BLOCKER_GROUP="mindbox-popup";constructor({scrollBlocker}){this.$scrollBlocker=scrollBlocker,this.$html=document.querySelector("html"),this.$body=document.querySelector("body"),this.initScrollBlockerObserver()}initScrollBlockerObserver(){let isPopupOpened=!1,scrollBlockTimeout=null;const documentClassNameObserver=new MutationObserver(mutations=>{mutations.forEach(mutation=>{if(mutation.attributeName==="class"){const hasPopmechanicClassName=mutation.target.classList.contains(POPMECHANIC_OPENED_CLASS_NAME);hasPopmechanicClassName&&!isPopupOpened?(mutation.target.classList.remove(POPMECHANIC_OPENED_CLASS_NAME),this.$body.style.setProperty("overflow","auto","important"),clearTimeout(scrollBlockTimeout),scrollBlockTimeout=setTimeout(()=>{isPopupOpened=!0,this.$scrollBlocker.enableGroup(MindboxPopupHelper.SCROLL_BLOCKER_GROUP),setTimeout(()=>{this.$body.classList.add(POPMECHANIC_OPENED_CLASS_NAME),this.$html.classList.add(POPMECHANIC_OPENED_CLASS_NAME)},50),this.$body.style.overflow=""},0)):!hasPopmechanicClassName&&isPopupOpened&&(isPopupOpened=!1,this.$scrollBlocker.disableGroup(MindboxPopupHelper.SCROLL_BLOCKER_GROUP))}})}),mutationObserverOptions={childList:!1,subtree:!1,attributes:!0,attributeFilter:["class"]};documentClassNameObserver.observe(this.$body,mutationObserverOptions),documentClassNameObserver.observe(this.$html,mutationObserverOptions)}} 2//# sourceMappingURL=/cdn/shop/t/617/assets/MindboxPopupHelper.js.map?v=121017017477260382941732110087
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.