PageSourceSearch

https://www.tires-easy-truck.com/_ui/versioned/d95925b249f703e4cdc…/dist/js/chunk-BhEeiWGS.js

js tires-easy-truck.com collected 2026-10-04 04:54:14 UTC 2,522 bytes, 1 lines download raw bytes

1import{S as E}from"./chunk-D0-HvtUF.js";import{a as b}from"./chunk-DDHtAA0h.js";import"./chunk-Dy1_dM2R.js";const h=".j-size-search-container",d=".j-size-search-submit",m="lastSizeSearch",C="lastTireSelectorSearch",f=["sizeCrossSectionWidth","sizeAspectRatio","sizeWheelDiameter"];let o=null;const x=()=>{z(),w()},w=()=>{const i={container:h,onItemSelected:async(e,t)=>{const n=t.children("a, button").first(),r=n.attr("href")||n.attr("data-url");if(!r)return Promise.resolve();$(`${h} .applyTireSize`).data("submit-url",r).addClass("changed");const l=t.closest(".j-dropdown").data("field-code"),a=o.getFields().map(c=>c.code).filter(c=>c!==l);return o.showLoaders(a),p(r)},submit:{selector:d,onSubmit:()=>{const e=$(d).data("submit-url"),t={};o.getFields().filter(n=>f.includes(n.code)).forEach(n=>t[n.code]=n.$element.find("input").val()),_(t)?(window.localStorage.setItem(m,JSON.stringify(t)),window.localStorage.setItem(C,"tireSize")):window.localStorage.removeItem(m),e&&(window.location.href=e)}},clearAll:{selector:h+" .search-clear-all-button",onClick:()=>{const e=window.location.pathname.replace(ACC.config.contextPath,"")+window.location.search,t=$("#j-sizes-applied-filter").data("remove-url")||e,n=S(t),r=n!=null?"/tires/"+n:e;$(d).data("submit-url",r).addClass("changed"),o.showLoaders(),p(r)}}};o=new E(i),$(d).data("submit-url",window.location.href)},A=i=>Object.fromEntries(Object.keys(i).map(e=>[e,i[e].values.map(t=>({selected:t.selected,url:t.query.url,content:t.name}))])),p=i=>{const e=`${ACC.config.contextPath}/facets${i}`;return b(e,"GET",null).then(t=>{o.refresh(A(t)),o.hideLoaders()}).catch(t=>{console.error("Failed to load facets:",t),o.hideLoaders()})},z=()=>{$("#j-sizes-applied-filter").on("click",function(){const i=$(this).data("remove-url");window.location.href=ACC.config.contextPath+"/tires/"+S(i)})},F=i=>{const e=i.split("/");if(!e.length)return null;const t=e.length-1,n=e[t];return n.split("-").length!==3||n.includes("-tires")?null:t<=0?"":e[t-1]==="c"||e[t-1]==="s"?null:(e.pop(),e.join("/"))},O=i=>i.split(",").filter(e=>!f.includes(e)).join(","),S=i=>{const e="/tires/",t=i.indexOf(e);if(t===-1)return null;let n=i.substring(t+e.length);const r=n.indexOf("?filtering");if(r===0)return n=O(n),n;const s=r===-1?n:n.substring(0,r),l=s.indexOf("/o"),a=l===-1?"":s.substring(l+1,s.length),c=l===-1?s:s.substring(0,l),u=F(c);if(u!=null){const g=l===-1?u:u!==""?`${u}/${a}`:a;n=n.replace(s,g)}return n},_=i=>f.length===Object.values(i).filter(e=>e&&e!=="").length;export{x as init};

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.