import{checkArg as i}from"../utilities/checkArg.js";import{deepSearchAndTransform as t}from"../utilities/object.js";import{toAbsoluteUri as e}from"../utilities/uri.js";export function resolveRelativeHrefs(o,r){if(i("json",o).isNotMissing(),i("portalItem",r).isNotMissing(),r.itemUrl&&"object"==typeof o&&null!=o){t("href",o,(i=>e(i,`${r.itemUrl}/`)))}}