import u from"node:path";import{addTrailingSlash as i}from"../../shared/utils.js";function a(r,t){return i(t(u.normalize(r.replace(/^\.\//,""))))}function m(r,t,e){const n=i(t);return r.find(({folder:l})=>{const o=a(l,e);return n===o||n.startsWith(o)})}export{m as findProductBySlug};
