PageSourceSearch

https://www.thediamondstore.co.uk/cdn/shop/t/243/assets/magic360-lightbox.js?v=83565678550388379641788777715

js thediamondstore.co.uk collected 2026-09-28 05:42:51 UTC 1,753 bytes, 2 lines download raw bytes

1const CONTROLS="[data-m360-prev], [data-m360-next], .m360-controls";function startEngine(scope,attempt=0){if(typeof window.Magic360?.start!="function"){if(attempt>50)return;window.setTimeout(()=>startEngine(scope,attempt+1),100);return}window.Magic360.start(),import("@theme/magic360-arrows").then(module=>module.initMagic360Arrows?.(scope)).catch(()=>{})}function activateDeferredSpins(scope){const deferred=scope.querySelectorAll(".Magic360-deferred[data-magic360-options]");deferred.length&&(deferred.forEach(el=>{el.classList.remove("Magic360-deferred"),el.classList.add("Magic360")}),startEngine(scope))}function isolateFromSlider(root){const swallow=event=>{event.target.closest(CONTROLS)||event.stopPropagation()};root.addEventListener("pointerdown",swallow),root.addEventListener("touchstart",swallow,{passive:!0})}function bindDeferredSpin(root){if(root.dataset.m360LightboxBound==="true")return;root.dataset.m360LightboxBound="true",isolateFromSlider(root);const modal=root.closest("[data-lightbox-modal], [data-modal]");if(!modal)return;const showClass=window.__quickfireModalController?.showClass||"active",isOpen=()=>modal.classList.contains(showClass)||modal.getAttribute("aria-hidden")==="false";if(isOpen()){activateDeferredSpins(modal);return}const observer=new MutationObserver(()=>{isOpen()&&(activateDeferredSpins(modal),observer.disconnect())});observer.observe(modal,{attributes:!0,attributeFilter:["class","aria-hidden"]})}export function initMagic360Lightbox(root=document){(root&&typeof root.querySelectorAll=="function"?root:document).querySelectorAll("[data-m360-deferred]").forEach(bindDeferredSpin)}initMagic360Lightbox();
2//# sourceMappingURL=/cdn/shop/t/243/assets/magic360-lightbox.js.map?v=83565678550388379641788777715

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.