PageSourceSearch

https://www.smartwool.com/cdn/shop/t/68/assets/customer-service-menu.D3KDAX_q.min.js

js smartwool.com collected 2026-09-24 10:26:24 UTC 2,112 bytes, 1 lines download raw bytes

1const l=e=>e?e.classList.contains("shopify-section")||typeof e.id=="string"&&e.id.startsWith("shopify-section"):!1,d=e=>(e==null?void 0:e.closest(".customer-service__sidebar"))||(e==null?void 0:e.closest(".shopify-section"))||(e==null?void 0:e.closest('[id^="shopify-section"]')),p=e=>{const t=[...e.children].find(o=>{var n;return(n=o.classList)==null?void 0:n.contains("customer-service__content")});if(t){for(;t.firstChild;)e.insertBefore(t.firstChild,t);t.remove()}},h=()=>{const e=document.querySelector('[data-component="customer-service-menu"]');if(!e)return;const t=document.querySelector("#MainContent");if(!t)return;t.querySelectorAll(".cs-above-menu").forEach(c=>{c.classList.remove("cs-above-menu")});const o=d(e);if(!o)return;let n=o.previousElementSibling;for(;n;)l(n)&&n.classList.add("cs-above-menu"),n=n.previousElementSibling},v=()=>{const e=document.querySelector('[data-component="customer-service-menu"]');if(!e)return;const t=document.querySelector("#MainContent");if(!t)return;const o=d(e);if(!o)return;const n=[];let c=o.nextElementSibling;for(;c;){const r=c;c=c.nextElementSibling,l(r)&&n.push(r)}if(!n.length)return;const i=document.createElement("div");i.className="customer-service__content",t.insertBefore(i,o.nextElementSibling),n.forEach(r=>{i.appendChild(r)})},u=e=>e.replace(/\/$/,"")||"/",S=()=>{const e=()=>{const t=document.querySelector("#MainContent");t&&p(t),h(),v();const o=window.location.pathname,n=u(o),c=document.querySelector('[data-component="customer-service-menu"]'),i=c==null?void 0:c.querySelector("[data-customer-service-menu-select]");if(document.querySelectorAll('[data-component="customer-service-menu"] a').forEach(s=>{new URL(s.href).pathname===o&&(s.classList.add("active-link"),s.setAttribute("aria-current","page"))}),i){const a=[...i.options].find(f=>{try{return u(new URL(f.value,window.location.origin).pathname)===n}catch{return!1}});a&&(i.value=a.value),i.addEventListener("change",()=>{i.value&&(window.location.href=i.value)})}};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",e,{once:!0}):e()};export{S as default};

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.