import{U as u,K as n,al as c}from"./BZVsOO3g.js";const l=(a,r,s)=>{const e=s??u("locale.setting").value,t=[];if(e&&t.push(`/${e}`),!a||a==="/")return{path:n([...t,"/"])};const o=[...t,"/p"];return{path:n(o.concat(a??"")),query:{[c.ProductVariant]:r??null}}};export{l as b}; //# sourceMappingURL=C-Qlh0lg.js.map