import n from"node:path";import{getNodeAttribute as f}from"../../../../markdoc/helpers/get-node-attribute.js";import{setNodeAttributeValue as p}from"../../../../markdoc/helpers/set-node-attribute-value.js";import{getLinkOriginalAttrName as a}from"./utils.js";import{resolveLinksFromConfig as v}from"../../nav-utils.js";async function L(o,r,t,{context:s,actions:i}){const e=a(r),m=o[e]||f(o,r);o[e]=m;const l=await v(m,n.dirname(n.resolve(i.contentDir,t)),i,s,{navFile:t});p(o,r,l)}export{L as resolveNavLinks};
