PageSourceSearch

https://www.melindamaria.com/cdn/shop/t/979/assets/mm_cart-drawer-heal.js?v=31153081248516104221790022030

js melindamaria.com collected 2026-10-02 14:42:47 UTC 1,419 bytes, 2 lines download raw bytes

1(()=>{if(window.__mmCartDrawerHealBound)return;window.__mmCartDrawerHealBound=!0;const COLLAPSED_HEIGHT_THRESHOLD=200;let healing=!1;function healDialog(){if(healing)return;const dialog=document.querySelector("cart-drawer-component dialog");if(!dialog||!dialog.hasAttribute("open"))return;const rect=dialog.getBoundingClientRect();if(!(rect.height>=COLLAPSED_HEIGHT_THRESHOLD)&&!dialog.matches(":modal")){healing=!0;try{if(console.warn("[mm_cart-drawer-heal] Drawer dialog collapsed (height="+rect.height+"px, :modal=false). Re-opening as modal."),dialog.style.setProperty("--start-x","0px"),dialog.style.setProperty("--start-y","0px"),dialog.style.setProperty("--start-opacity","1"),dialog.close(),dialog.showModal(),typeof dialog.getAnimations=="function")for(const anim of dialog.getAnimations())anim.finish();requestAnimationFrame(()=>{dialog.style.removeProperty("--start-x"),dialog.style.removeProperty("--start-y"),dialog.style.removeProperty("--start-opacity")})}catch(err){console.error("[mm_cart-drawer-heal] Failed to re-open dialog:",err),dialog.style.removeProperty("--start-x"),dialog.style.removeProperty("--start-y"),dialog.style.removeProperty("--start-opacity")}finally{healing=!1}}}document.addEventListener("cart:update",()=>{requestAnimationFrame(()=>{requestAnimationFrame(healDialog)})})})();
2//# sourceMappingURL=/cdn/shop/t/979/assets/mm_cart-drawer-heal.js.map?v=31153081248516104221790022030

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.