PageSourceSearch

https://turboswim.com/cdn/shop/t/25/assets/wim-pcard-color-swatch.js?v=120482509050417281431778508818

js turboswim.com collected 2026-10-07 19:00:11 UTC 1,979 bytes, 2 lines download raw bytes

1(()=>{if(window.__pcardSwatchInitialStateSync)return;window.__pcardSwatchInitialStateSync=!0;const syncSwatchState=(root=document)=>{root.querySelectorAll('ul[is="color-swatch"]').forEach(swatchList=>{if(swatchList.querySelector('li.swatch-item[aria-selected="true"]')){swatchList.querySelectorAll("li.swatch-item[data-initial-selected]").forEach(item=>{item.removeAttribute("data-initial-selected")});return}const initialSwatch=swatchList.querySelector('li.swatch-item[data-initial-selected="true"]');initialSwatch&&initialSwatch.setAttribute("aria-selected","true")})},runInitialSync=()=>syncSwatchState();document.readyState==="loading"?document.addEventListener("DOMContentLoaded",runInitialSync):runInitialSync();let syncScheduled=!1;const scheduleSyncAfterDomUpdate=()=>{syncScheduled||(syncScheduled=!0,requestAnimationFrame(()=>{requestAnimationFrame(()=>{syncScheduled=!1,syncSwatchState()})}))},addedNodesNeedSwatchSync=nodeList=>{for(const node of nodeList)if(node.nodeType===Node.ELEMENT_NODE&&(node.matches?.('ul[is="color-swatch"]')||node.querySelector?.('ul[is="color-swatch"]')))return!0;return!1};new MutationObserver(mutations=>{for(const m of mutations)if(!(m.type!=="childList"||m.addedNodes.length===0)&&addedNodesNeedSwatchSync(m.addedNodes)){scheduleSyncAfterDomUpdate();return}}).observe(document.body,{childList:!0,subtree:!0}),document.addEventListener("mouseover",event=>{const swatchItem=event.target.closest('ul[is="color-swatch"] li.swatch-item');
1if(!swatchItem)return;const swatchList=swatchItem.closest('ul[is="color-swatch"]');swatchList&&(swatchList.querySelectorAll('li.swatch-item[aria-selected="true"]').forEach(item=>{item!==swatchItem&&item.setAttribute("aria-selected","false")}),swatchList.querySelectorAll("li.swatch-item[data-initial-selected]").forEach(item=>{item.removeAttribute("data-initial-selected")}))},{passive:!0})})();
2//# sourceMappingURL=/cdn/shop/t/25/assets/wim-pcard-color-swatch.js.map?v=120482509050417281431778508818

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.