import{R as o}from"./router.B9yJslVs.js";const l=n=>n?.split("/").map(encodeURIComponent).join("/")??"";function u(n,t){let e=n;if(!t)return e;switch(n){case o.Post:{const s="data"in t?t.data?.link:t.link,i=t.slug;e+=`/${l(s??i)}`;break}}return e}o.Post;export{l as e,u as r};
