1import{dC as i,u as n,bI as h,M as p,ap as y,dD as g,dP as m,H as f,dF as q,a7 as C}from"./CYRhJ6we.js";const _=i(async r=>{let e,t;const l=n(),s=h(),o=Array.isArray(r.query.qc)?r.query.qc[0]:r.query.qc,u=p(s),c=y(s),{data:a,error:d}=([e,t]=g(()=>l.$apollo.default.query({query:m,variables:{paging:{},filter:{category:o,searchTerm:c.searchTerm},selectedCarModelId:u.modelId||void 0}})),e=await e,t(),e);if(d)return f.error("[%s] (%s) Check apollo logs to see what went wrong",new Date().toLocaleString(),"searchResultRedirect.ts (middleware)"),q({statusCode:500,statusMessage:`Could not retrieve shop search redirect for searchTerm: ${c.searchTerm} for category: ${o}. Check logs.`});if(a.shop_search?.__typename==="RedirectSearchResult"&&a.shop_search.link?.url)return C(a.shop_search.link.url)});export{_ 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.