{
  "version": 3,
  "sources": ["hub-link.js"],
  "sourcesContent": ["// A link from the account to a page on a company's hub opens it in manage mode: through /manage/, which\n// hands the hub a pass (functions/api/hub/pass.js) and lands on the same page, so the team never has to find the\n// hub's own Manage link. Anything that isn't on a hub subdomain is left as it is.\nconst HUB = /\\.resonatelabs\\.(studio|co)$/i;\nexport function asManager(url) {\n  let u; try { u = new URL(String(url || \"\")); } catch { return url; }\n  if (u.protocol !== \"https:\" || !HUB.test(u.hostname) || /^(www\\.)?resonatelabs\\.co$/i.test(u.hostname)) return url;\n  return `/manage/?${new URLSearchParams({ host: u.hostname, back: u.pathname || \"/\" })}`;\n}\n"],
  "mappings": "AAGA,MAAMA,EAAM,gCACL,gBAAS,UAAUC,EAAK,CAC7B,IAAIC,EAAG,GAAI,CAAEA,EAAI,IAAI,IAAI,OAAOD,GAAO,EAAE,CAAC,CAAG,MAAQ,CAAE,OAAOA,CAAK,CACnE,OAAIC,EAAE,WAAa,UAAY,CAACF,EAAI,KAAKE,EAAE,QAAQ,GAAK,8BAA8B,KAAKA,EAAE,QAAQ,EAAUD,EACxG,YAAY,IAAI,gBAAgB,CAAE,KAAMC,EAAE,SAAU,KAAMA,EAAE,UAAY,GAAI,CAAC,CAAC,EACvF",
  "names": ["HUB", "url", "u"]
}
