PageSourceSearch

https://assets.wordans.com/assets/plp-dda932233bd470d178af3d61ba0e4ed9436c1fc701b7538002291c7a6ab3ce28.js

js wordans.com collected 2026-09-24 19:55:36 UTC 2,199 bytes, 1 lines download raw bytes

1var filterOrder=["select","category","brand","style","gender","color","size","option","grammage","weight","warehouse","attribute","static"],filterTypes={c:"category",b:"brand",s:"style",g:"gender",m:"color",x:"size",o:"option",grammage:"grammage",weight:"weight",ww:"warehouse",a:"attribute",select:"select"};document.addEventListener("alpine:init",()=>{Alpine.store("plp",{filtersOpen:!1,getBasePath(){const e=new URL(window.location.href).pathname.split("/").filter(Boolean);return"select"===e[0]?`/${e.slice(0,2).join("/")}`:""},toggleFilter(e,t){const r=e.replace("/",""),o=this.isSlugInUrl(r),i=this.getFilterSlugs(),n=i[t];if(o){const t=window.location.href.replace(e,"");this.getFilteredProducts(t)}else{n&&n.push(r),n||(i[t]=[r]);const e=this.buildFiltersUrl(i),o=new URL(window.location.href),a=this.getBasePath();o.pathname=a?`${a}/${e}`:`/${e}`,o.search=window.location.search,this.getFilteredProducts(o.toString())}},buildFiltersUrl:e=>filterOrder.reduce((t,r)=>{const o=e[r];return o&&o.forEach(e=>t.push(e)),t},[]).join("/"),isSlugInUrl:e=>Boolean(window.location.href.match(e)),getFilterSlugs(e=window.location.href){const t=new URL(e).pathname.split("/").filter(Boolean);return("select"===t[0]?t.slice(2):t).reduce((e,t)=>{const r=t.match(/(?:^(grammage)-)|(?:^(weight)-)|(?:-([a-z]+)\d+)$/);if(!r){const r=e.static||[];return r.push(t),{...e,static:r}}const o=r.filter(Boolean).pop(),i=filterTypes[o];if(!i){const r=e.static||[];return r.push(t),{...e,static:r}}const n=e[i]||[];return n.push(t),{...e,[i]:n}},{})},getFilteredProducts(e){jQuery.pjax({url:e,container:"#pjax-container",timeout:1e4,scrollTo:!1})},setPrice(e,t){const r=PARAM_PRICE_MIN,o=PARAM_PRICE_MAX,i=new URL(window.location.href),n=i.searchParams;n.delete(r),n.delete(o),n.append(r,e),n.append(o,t),jQuery.pjax.reload({url:i.toString(),container:"#pjax-container",timeout:1e4,scrollTo:!1})},addSortFilter(e,t){const r=new URL(window.location.href),o=r.searchParams;o.delete(e),o.append(e,t),jQuery.pjax.reload({url:r.toString(),container:"#pjax-container",timeout:1e4,scrollTo:!1})},resetFilters(){this.getFilteredProducts(ROOT_URL)}})}),jQuery(window).on("load",()=>{document.querySelector("tc-range-slider")});

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.