1import{c as o}from"/build/_shared/chunk-L4FEFM7G.js";var p=["burton","coast","wallis","dorothy-perkins","misspap","principles","oasis","warehouse","maine","coastie","gorgeous","nastygal","foreverunique"],C=()=>{let i=o(),r=(t,a)=>{if(!t)return"";if(!a)return t;let s=i.pathname.toLowerCase(),n=p.find(e=>s.includes(`/pages/brands/${e.toLowerCase()}`));if(n&&(t.startsWith("/categories/")||t.startsWith("categories/"))){let e=t.startsWith("/")?t:`/${t}`,d=n.replace(/-/g,"%20");return`${e}/facet/collection/${d}`}return t};return{getModifiedUrl:t=>"href"in t&&"autoApplyBrandFilterOnDBZ"in t?r(t.href,t.autoApplyBrandFilterOnDBZ):"primaryHref"in t&&"autoApplyBrandFilterOnDBZ"in t?t.primaryHref?r(t.primaryHref,t.autoApplyBrandFilterOnDBZ):"":(console.error("Invalid component type passed to getModifiedUrl"),"")}};export{C as a};
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.