1(function(){if(window.MobileSkeleton)return;var MOBILE_MQ=window.matchMedia("(max-width: 1023.98px)"),ASYNC_SHOW_DELAY_MS=200,SAFETY_TIMEOUT_MS=4e3,showTimers=new WeakMap,pendingControllers=new WeakMap;function isMobile(){return MOBILE_MQ.matches}function resolve(target){return target?typeof target=="string"?document.querySelector(target):target:null}function readCookie(name){try{var match=document.cookie.match(new RegExp("(?:^|;\\s*)"+name+"=([^;]*)"));return match?decodeURIComponent(match[1]):null}catch(e){return null}}function getColumns(){return readCookie("plp-grid-btn")==="grid-mobile"?2:1}function applyColumns(host){for(var cols=String(getColumns()),grids=host.querySelectorAll("[data-skeleton-grid]"),i=0;i<grids.length;i++)grids[i].setAttribute("data-cols",cols)}function hasEmptyState(host){if(!host)return!1;var content=host.querySelector("[data-section-content]");return content?content.matches(".collection--empty, .template-search--empty")?!0:!!content.querySelector(".collection--empty, .template-search--empty"):!1}function setBusy(host,busy){host&&host.setAttribute("aria-busy",busy?"true":"false")}function show(target){var host=resolve(target);if(host){if(!isMobile()){setBusy(host,!1);return}if(!host.hasAttribute("data-skeleton-initial")){var existing=showTimers.get(host);existing&&clearTimeout(existing);var t=setTimeout(function(){if(!isMobile()||hasEmptyState(host)){setBusy(host,!1);return}host.dataset.skeletonLayout==="grid"&&applyColumns(host),setBusy(host,!0)},ASYNC_SHOW_DELAY_MS);showTimers.set(host,t)}}}function hide(target){var host=resolve(target);if(host){var existing=showTimers.get(host);existing&&(clearTimeout(existing),showTimers.delete(host)),setBusy(host,!1)}}function abortPrevious(target){var host=resolve(target);if(!host)return null;var prev=pendingControllers.get(host);if(prev)try{prev.abort()}catch(e){}var ctrl=new AbortController;return pendingControllers.set(host,ctrl),ctrl}function clearController(target,ctrl){var host=resolve(target);!host||!ctrl||pendingControllers.get(host)===ctrl&&pendingControllers.delete(host)}function finishInitialHost(host){host&&(host.removeAttribute("data-skeleton-initial"),setBusy(host,!1))}function revealInitialHost(host){if(!(!host||!host.hasAttribute("data-skeleton-initial"))){if(!isMobile()){finishInitialHost(host);return}if(hasEmptyState(host)){finishInitialHost(host);return}host.dataset.skeletonLayout==="grid"&&applyColumns(host);var safety=setTimeout(function(){finishInitialHost(host)},SAFETY_TIMEOUT_MS);host.offsetHeight,requestAnimationFrame(function(){requestAnimationFrame(function(){clearTimeout(safety),finishInitialHost(host)})})}}function initInitial(){for(var nodes=document.querySelectorAll("[data-skeleton-key][data-skeleton-initial]"),i=0;i<nodes.length;i++)revealInitialHost(nodes[i]);typeof window.__fgSkeletonCancelSafety=="function"&&window.__fgSkeletonCancelSafety()}function observeInitialHosts(){if(typeof MutationObserver!="undefined"){var observer=new MutationObserver(function(mutations){for(var i=0;i<mutations.length;i++){var mutation=mutations[i];if(mutation.type==="attributes"&&mutation.attributeName==="data-skeleton-initial"){var attrHost=mutation.target;attrHost instanceof HTMLElement&&attrHost.hasAttribute("data-skeleton-initial")&&revealInitialHost(attrHost);continue}mutation.type==="childList"&&mutation.addedNodes.forEach(function(node){if(node instanceof HTMLElement){if(node.matches("[data-skeleton-key][data-skeleton-initial]")){revealInitialHost(node);return}for(var nested=node.querySelectorAll("[data-skeleton-key][data-skeleton-initial]"),j=0;j<nested.length;j++)revealInitialHost(nested[j])}})}});observer.observe(document.documentElement,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["data-skeleton-initial"]})}}function bootInitialSkeletons(){requestAnimationFrame(initInitial),observeInitialHosts()}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",bootInitialSkeletons,{once:!0}):bootInitialSkeletons(),window.MobileSkeleton={show:show,hide:hide,isMobile:isMobile,getColumns:getColumns,abortPrevious:abortPrevious,clearController:clearController,revealInitialHost:revealInitialHost,initInitial:initInitial}}
1)(); 2//# sourceMappingURL=/cdn/shop/t/75/assets/fg-mobile-skeleton.js.map?v=99945788170357256991781081473
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.